大网数据广告活动
服务器运维问答

nginx won't start after updating GitLab

· 52CE 我爱测

I tried updating GitLab by running sudo apt-get update and sudo apt-get install gitlab-ce . Everything seemed fine during the install, but after it finished, nginx stopped working and I can't get it to start. After running: sudo …

问题原文

原帖链接 · Nick · CC BY-SA 3.0

I tried updating GitLab by running sudo apt-get update and sudo apt-get install gitlab-ce. Everything seemed fine during the install, but after it finished, nginx stopped working and I can't get it to start.

After running: sudo gitlab-ctl status, I get this:

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

I tried running sudo gitlab-ctl reconfigure and rebooting. That didn't help. I also tried sudo gitlab-ctl restart nginx, which gave me this:

timeout: down: nginx: 0s, normally up, want up

Any ideas? Thanks!

社区高分解答

原帖链接 · Daniel Cheung · CC BY-SA 4.0

Try running sudo gitlab-ctl tail to view all errors.

I made a silly mistake of not creating certificates for the GitLab registry subdomain on my previous edit to my GitLab instance.

After viewing the errors, I found nginx was waiting to read the file and got stuck here:

==> /var/log/gitlab/nginx/current <==

2019-03-05_09:17:42.23918 nginx: [emerg] BIO_new_file("/etc/gitlab/ssl/registry.gitlab.xxx.com.crt") failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen('/etc/gitlab/ssl/registry.gitlab.xxx.com.crt','r') error:2006D080:BIO routines:BIO_new_file:no such file)

All I can say is *facepalm*. I got it fixed after doing letsencrypt to fix my configuration.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2016-05-12)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0 / CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。