GItLab 502错误

时间:2016-04-15 20:53:13

标签: nginx gitlab unicorn

我已经在cent操作系统上设置了gitlab,但是遇到了502错误并且不知道该去哪里,我已经升级了我的服务器,因为我担心它是内存但升级后的错误是相同的。

gitlab.rb

external_url 'http://gitlab.adamprocter.co.uk:8081'
web_server['external_users'] = ['www-data']

我的服务器正在运行自己的nginx以及端口80等上的其他服务但是我无法获得gitlab甚至在我的custom.conf中使用-nginx ['enable'] = false和我自己的设置获得502我认为这应该工作配置好像重启

ok: run: gitlab-workhorse: (pid 32665) 1s
ok: run: logrotate: (pid 32673) 0s
ok: run: nginx: (pid 32680) 1s
ok: run: postgresql: (pid 32697) 0s
ok: run: redis: (pid 32705) 0s
ok: run: sidekiq: (pid 32733) 0s
ok: run: unicorn: (pid 32737) 0s

但是尾部有这个错误

2016-04-15_20:31:17.45447 2016/04/15 16:31:17 error: proxyRoundTripper: GET "/" failed with: "dial unix /var/opt/gitlab/gitlab-rails/sockets/gitlab.socket: connect: permission denied"

还在日志

2016-04-15_20:45:27.58466   from /opt/gitlab/embedded/service/gem/ruby/2.1.0/bin/unicorn:23:in `load'
2016-04-15_20:45:27.58469   from /opt/gitlab/embedded/service/gem/ruby/2.1.0/bin/unicorn:23:in `<main>'
2016-04-15_20:45:27.60371 master failed to start, check stderr log for details
2016-04-15_20:45:28.61194 failed to start a new unicorn master
2016-04-15_20:45:28.63357 starting new unicorn master
2016-04-15_20:45:30.23368 /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/unicorn-4.9.0/lib/unicorn/http_server.rb:778:in `initialize': Permission denied @ rb_sysopen - /var/log/gitlab/unicorn/unicorn_stderr.log (Errno::EACCES)

我曾尝试编辑权限,但我不知道我是否做得对......并没有任何区别

sudo chmod 0660 /var/opt/gitlab/gitlab-rails/sockets/gitlab.socket
sudo chown nginx:gitlab-www /var/opt/gitlab/gitlab-rails/sockets/gitlab.socket

0 个答案:

没有答案