系统是 Arch Linux ,按照 https://wiki.archlinux.org/index.php/Gitlab 配下来前面都没什么问题。用 rails s 服务也能启动。但是后面配 nginx 和 unicorn 就有问题了。
日志显示是这样:
2012/08/23 20:29:22 [crit] 5586#0: *19 connect() to unix:/home/gitlab/gitlab/tmp/sockets/gitlab.socket failed (13: Permission denied) while connecting to upstream, client: 114.222.182.176, server: gitlab.yesmeck.com, request: "GET /favicon.ico HTTP/1.1", upstream: "http://unix:/home/gitlab/gitlab/tmp/sockets/gitlab.socket:/favicon.ico", host: "gitlab.host.com"
nginx 的进程
root 5585 0.0 0.1 7780 896 ? Ss 20:18 0:00 nginx: master process nginx
http 5586 0.0 0.3 7912 1684 ? S 20:18 0:00 nginx: worker process
unicorn 的进程
gitlab 5476 2.1 12.5 139096 64104 ? Sl 20:17 0:20 unicorn_rails master -c config/unicorn.rb -E production -D
gitlab 5495 0.0 11.6 139096 59516 ? Sl 20:18 0:00 unicorn_rails worker[0] -c config/unicorn.rb -E production -D
gitlab 5498 0.0 11.6 139096 59516 ? Sl 20:18 0:00 unicorn_rails worker[1] -c config/unicorn.rb -E production -D
/home/gitlab/gitlab/tmp/sockets/gitlab.socket 的权限
srwxrwxrwx 1 gitlab gitlab 0 Aug 23 20:17 /home/gitlab/gitlab/tmp/sockets/gitlab.socket