error:
  Gitlab "bundler: command not found: unicorn_rails"
soluton:
  cd /home/git/gitlab
  git checkout -b tmp
  vi Gemfile and Gemfile.lock , change like:
  http://stackoverflow.com/questions/22825497/installing-gitlab-missing-modernizer
  --> Step1: In Gemfile, line 164, change "modernizr", "2.6.2" to "modernizr-rails", "2.7.1"
  --> Step2: In Gemfile.lock, line 292, change modernizr (2.6.2) to modernizr-rails (2.7.1) \
    and on line 626, change modernizr (= 2.6.2) to modernizr-rails (= 2.7.1).

error:

  Could not find modernizr-2.6.2 in any of the sources
  Could not find i18n-0.6.9 in any of the sources
solution:
  同上, Duplicate Issue,解决上边问题同时会解决这个。

error:

  rake aborted!
  Access denied for user 'git'@'localhost' (using password: YES)

solution:

  修改/home/git/gitlab/config/database.yml中第10行的git为gitlab

error:
  rake aborted!
  undefined method `default_value_for' for Snippet(Table doesn't exist):Class
solution:
  sudo -u git -H git checkout origin/6-5-stable -b 6-5-stable
  sudo -u git -H bundle exec rake gitlab:setup RAILS_ENV=production

error:
  Nginx 502 Bad GateWay
solutoin:
  cp config/unicorn.rb.example config/unicorn.rb
  sudo -u git -H bundle exec unicorn_rails -c config/unicorn.rb -E production -D

error:
  nginx: [emerg] a duplicate default server for 0.0.0.0:80 in /etc/nginx/sites-enabled/gitlab:10
solution:
  #sudo rm -f /etc/nginx/sites-available/default # 不推荐,可使用下一条命令代替
  sudo rm -f /etc/nginx/sites-enabled/default # 这是一个ln文件,推荐
  sudo service nginx restart

error:
  /home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/mysql2-0.3.11/lib/mysql2/client.rb:44:in `connect': Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) (Mysql2::Error)
solution:
  mysql启动出错,重启即可
  sudo service mysql restart
  sudo service gitlab restart

一些有利于解决问题的命令行:
  # 一些参考链接:
  1. 在Ubuntu 12.04 上安装Gitlab: http://www.linuxidc.com/Linux/2012-12/75249.htm
  2. 在Ubuntu 12.04 上安装Gitlab: http://www.vpsee.com/2012/11/install-gitlab-on-ubuntu-12-04/
  3. 搭建 Linux 下 GitLab 服务器: http://www.linuxidc.com/Linux/2012-11/74769.htm

  # ugit: 以git用户执行程序
  alias ugit='sudo -u git -H'

  # 测试gitlab程序状态
  ugit bundle exec rake gitlab:app:status RAILS_ENV=production

  # 运行gitlab
  ugit bundle exec rails s -e production -d

  #启动resque(不了解实际功能)
  ugit bundle exec rake environment resque:work QUEUE=* RAILS_ENV=production BACKGROUND=yes

【Linux】Ubuntu13.10搭建gitlab报错信息及解决的更多相关文章

  1. vue.js常见的报错信息及其解决方法的记录

    1.Vue packages version mismatch 翻译:vue包版本匹配错误 报错样例: 报错原因:通常出现于一些依赖库的更新或者安装新的依赖库之后(可以认为npm update已经成为 ...

  2. Hive 报错信息及解决方法

    return code 2 为SQL报错. return code 1 一般为权限问题. 具体要看源码.

  3. svn提交代码失败提示清理(清理失败并且报错信息乱码解决办法)

    原因是;svn的数据库队列原因 1,下载sqlite3.exe,  sqlite官网http://www.sqlite.org/download.html) 2.在Windows的D盘中新建tools ...

  4. VM装mac10.9教程+报错信息解决办法

    VM装mac10.9教程+报错信息解决办法 教程1: 教你在Vmware 10下安装苹果Mac10.9系统 地址:http://tieba.baidu.com/p/2847457021 教程2: VM ...

  5. vue2.X版本vue-cli生成项目后运行失败,报错信息为getaddrinfo ENOTFOUND localhost

    问题: 1.使用vue-cli生成项目 2.npm install 3.npm run dev,报错信息如下 解决方法: 经查,发现package.json中dev的脚本变成了"webpac ...

  6. TNS-12532: TNS:invalid argument,Oracle的报错信息太让人无语

    TNS-12532: TNS:invalid argument,Oracle的报错信息太让人无语 现象: Tnsping报错: [oracle@unicomGZ01 admin]$ ../../bin ...

  7. Vmware下的Linux系统,安装WPS报错:[Errno 256] No more mirrors to try

    最近新装了虚拟环境Vmware下的Linux系统,准备看doc文档发现不能读取,才想起来一起都是重新开始的~没别的~开始安装吧: 1.关虚拟机Linux,添加cdrom镜像ISO文件--开虚拟机--- ...

  8. Linux安装U盘启动报错Failed to load ldlinux.c32

    报错信息 使用U盘安装linux无法正常启动 Start booting from USB device... SYSLINUX 5.10 EDD 2013-06-04 Copyright (C) 1 ...

  9. 报错信息ImportError: /lib64/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by............)

    报错信息ImportError: /lib64/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by............) L ...

随机推荐

  1. [Hook] 免root,自己进程内,binder hook (ClipboardManager)

    cp from : http://weishu.me/2016/02/16/understand-plugin-framework-binder-hook/ Android系统通过Binder机制给应 ...

  2. Orchard之Module升级

    在上一篇中,我们提到了 Migrations,这一篇稍微衍生一下. 1:Migrations 是什么 Orchard 提供了模块升级的功能,即,如果我们模块发布后,需要进行升级,我们可以通过编码来实现 ...

  3. [转]mysql dual虚拟表

    From : http://thobian.info/?p=1035 虚拟表dual 其实我是今天第一次听说,虽然以前有过它的应用.说不定你也用过哦,看这条sql:select sysdate(); ...

  4. uva 331 Mapping the Swaps 求交换排序的map 纯DFS

    给出一个序列,每次交换两个数,求有几种交换方法能使序列变成升序. n不大于5,用dfs做. 代码: #include <cstdio> #include <cstring> # ...

  5. 【转】 Qt如何设置自动补全快捷键

    原文:https://blog.csdn.net/u014597198/article/details/52797435 在用Qt编程的时,它默认是以“CTRL+空格”来作为自动补全的快捷键的,但是这 ...

  6. [leetcode]Best Time to Buy and Sell Stock II @ Python

    原题地址:https://oj.leetcode.com/problems/best-time-to-buy-and-sell-stock-ii/ 题意: Say you have an array ...

  7. 重启Windows的PowerShell

    这么简单的一个命令都单独写一篇blog, 是不是太无耻了? 好吧, 谁让咱不会呢. 学会了就来一篇. 呵呵. Restart-Computer   来源 ================ http:/ ...

  8. iOS开发-Instruments性能调优

    性能是苹果审核的一个很重要的部分,CPU,内存,图形绘制,存储空间和网络性能都是应用的重要的评估和组成部分.不管是作为个人应用开发者还是企业的开发人员,都需要遵循的一个原则是站在用户的角度去思考问题, ...

  9. 【MySQL】PostgresSQL-MySQL对比

    PostgresSQL-MySQL对比 (5 条消息)PostgreSQL 与 MySQL 相比,优势何在? - 知乎 IOC匹配 - 天眼公共空间 - 360企业安全Confluence 调查分析 ...

  10. 斯坦福深度学习与nlp第四讲词窗口分类和神经网络

    http://www.52nlp.cn/%E6%96%AF%E5%9D%A6%E7%A6%8F%E6%B7%B1%E5%BA%A6%E5%AD%A6%E4%B9%A0%E4%B8%8Enlp%E7%A ...