【Linux】Ubuntu13.10搭建gitlab报错信息及解决
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报错信息及解决的更多相关文章
- vue.js常见的报错信息及其解决方法的记录
1.Vue packages version mismatch 翻译:vue包版本匹配错误 报错样例: 报错原因:通常出现于一些依赖库的更新或者安装新的依赖库之后(可以认为npm update已经成为 ...
- Hive 报错信息及解决方法
return code 2 为SQL报错. return code 1 一般为权限问题. 具体要看源码.
- svn提交代码失败提示清理(清理失败并且报错信息乱码解决办法)
原因是;svn的数据库队列原因 1,下载sqlite3.exe, sqlite官网http://www.sqlite.org/download.html) 2.在Windows的D盘中新建tools ...
- VM装mac10.9教程+报错信息解决办法
VM装mac10.9教程+报错信息解决办法 教程1: 教你在Vmware 10下安装苹果Mac10.9系统 地址:http://tieba.baidu.com/p/2847457021 教程2: VM ...
- vue2.X版本vue-cli生成项目后运行失败,报错信息为getaddrinfo ENOTFOUND localhost
问题: 1.使用vue-cli生成项目 2.npm install 3.npm run dev,报错信息如下 解决方法: 经查,发现package.json中dev的脚本变成了"webpac ...
- TNS-12532: TNS:invalid argument,Oracle的报错信息太让人无语
TNS-12532: TNS:invalid argument,Oracle的报错信息太让人无语 现象: Tnsping报错: [oracle@unicomGZ01 admin]$ ../../bin ...
- Vmware下的Linux系统,安装WPS报错:[Errno 256] No more mirrors to try
最近新装了虚拟环境Vmware下的Linux系统,准备看doc文档发现不能读取,才想起来一起都是重新开始的~没别的~开始安装吧: 1.关虚拟机Linux,添加cdrom镜像ISO文件--开虚拟机--- ...
- Linux安装U盘启动报错Failed to load ldlinux.c32
报错信息 使用U盘安装linux无法正常启动 Start booting from USB device... SYSLINUX 5.10 EDD 2013-06-04 Copyright (C) 1 ...
- 报错信息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 ...
随机推荐
- C# 异步编程Task整理(二)异常捕捉
一.在任务并行库中,如果对任务运行Wait.WaitAny.WaitAll等方法,或者求Result属性,都能捕获到AggregateException异常. 可以将AggregateExceptio ...
- SVG.js 文本绘制整理
1.SVG.Text var draw = SVG('svg1').size(300, 300); //画文字内容展示 //var text = draw.text('中文内容测试\n换行处理'); ...
- [转]MySQL主从复制(Master-Slave)与读写分离(MySQL-Proxy)实践
转自:http://heylinux.com/archives/1004.html Mysql作为目前世界上使用最广泛的免费数据库,相信所有从事系统运维的工程师都一定接触过.但在实际的生产环境中,由单 ...
- 用SLF4j/Logback打印日志-1
在 浅谈后端日志系统 中已经写了很多日志方面的零散的非技术的东西.本篇更像一份入门说明,讲解一下SLF4j/Logback.SLF4J是一套抽象的日志API接口,logback它是的底层实现,所以在这 ...
- HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\aspnet_state\Parameters\AllowRemoteConnection
ylbtech-Error-WebForm: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\aspnet_state\Parameters\ ...
- go语言之进阶篇拷贝文件案例
1.文件案例:拷贝文件 示例: package main import ( "fmt" "io" "os" ) func main() { ...
- go语言之进阶篇方法表达式
1.方法表达式 示例: package main import "fmt" type Person struct { name string //名字 sex byte //性别, ...
- [leetcode]Validate Binary Search Tree @ Python
原题地址:https://oj.leetcode.com/problems/validate-binary-search-tree/ 题意:检测一颗二叉树是否是二叉查找树. 解题思路:看到二叉树我们首 ...
- 用Visual C#来清空回收站(2)
四.程序的源代码(recycled.cs).编译方法及运行后的界面: (1).程序的源代码:recycled.cs: using System.IO ; using System.Windows.Fo ...
- 高德地图JS-API (超简单Get新技能√)
上几章我们研究了百度地图SDK的用法,虽然不难但是配置起来也是相当的繁琐,现在高德LBS开放平台推出了基于HTML5的地图组件,我们可以通过WebView直接用URL 以GET方式进行请求就可以实现位 ...