首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >更新GitLab后,nginx不会启动

更新GitLab后,nginx不会启动
EN

Server Fault用户
提问于 2016-05-12 17:40:16
回答 1查看 6.2K关注 0票数 1

我尝试通过运行GitLab和sudo apt-get install gitlab-ce来更新sudo apt-get update。在安装过程中,一切看起来都很好,但是在安装完成后,nginx停止了工作,我无法启动它。

运行完:sudo gitlab-ctl status之后,我得到了以下内容:

代码语言:javascript
运行
复制
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

有什么想法吗?谢谢!

EN

回答 1

Server Fault用户

发布于 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

我能说的就是*面部表情*。我做了让加密来修复我的配置后,我把它修好了。

票数 3
EN
页面原文内容由Server Fault提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://serverfault.com/questions/776442

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档