我尝试通过运行GitLab和sudo apt-get install gitlab-ce
来更新sudo apt-get update
。在安装过程中,一切看起来都很好,但是在安装完成后,nginx停止了工作,我无法启动它。
运行完:sudo gitlab-ctl status
之后,我得到了以下内容:
run: gitlab-workhorse: (pid 4378) 8613s; run: log: (pid 937) 9953s
run: logrotate: (pid 19116) 1412s; run: log: (pid 933) 9953s
down: nginx: 0s, normally up, want up; run: log: (pid 943) 9953s
run: postgresql: (pid 4456) 8581s; run: log: (pid 939) 9953s
run: redis: (pid 4466) 8581s; run: log: (pid 935) 9953s
run: sidekiq: (pid 4474) 8578s; run: log: (pid 940) 9953s
run: unicorn: (pid 4496) 8576s; run: log: (pid 931) 9953s
我试着运行sudo gitlab-ctl reconfigure
并重新启动。这没什么用。我也尝试了sudo gitlab-ctl restart nginx
,它给了我这个:
timeout: down: nginx: 0s, normally up, want up
有什么想法吗?谢谢!
发布于 2019-03-05 09:26:01
尝试运行sudo gitlab-ctl tail
查看所有错误。
我犯了一个愚蠢的错误,没有在以前编辑GitLab实例时为GitLab注册表子域创建证书。
查看了这些错误后,我发现nginx正在等待读取该文件,并被困在这里:
BIO_new_file("/etc/gitlab/ssl/registry.gitlab.xxx.com.crt") /var/ ==> /gitlab/nginx/当前的<== 2019-03-05_09:17:42.23918 nginx:埃默格 routines:BIO_new_file:no失败(SSL:错误:02001002:系统库:fopen:没有这样的文件或directory:fopen('/etc/gitlab/ssl/registry.gitlab.xxx.com.crt','r')错误:2006D080:BIO routines:BIO_new_file:no
我能说的就是*面部表情*。我做了让加密来修复我的配置后,我把它修好了。
https://serverfault.com/questions/776442
复制相似问题