异常断电后gitlab无法使用,访问出现502错误

查看gitlab-shell.log 

WARN -- : gitlab-shell: Access denied for Git command <git-upload-pack 'root/Android.git'> by user with key key-8.

ERROR -- : API call <POST http://127.0.0.1:80/api/v3/internal/allowed> failed: 500


运行check

Check GitLab API access: FAILED. code: 500


手动启动gitlab发现报错

sudo /opt/gitlab/ctlscript.sh start


waiting for server to start........ stopped waiting
pg_ctl.bin: could not start server
Examine the log output.
/opt/gitlab/postgresql/scripts/ctl.sh : postgresql  could not be started
/opt/gitlab/Redis/scripts/ctl.sh : redis started
/opt/gitlab/apps/gitlab/scripts/sidekiq.sh : gitlab_sidekiq started
/opt/gitlab/apps/gitlab-workhorse/scripts/ctl.sh : gitlab-workhorse started
/opt/gitlab/apps/gitlabci/gitlabci-multirunner/scripts/ctl.sh : gitlabci_multirunner started
Syntax OK
/opt/gitlab/apache2/scripts/ctl.sh : httpd started at port 80


数据库没有起来


修复postgres



正常启动


sudo /opt/gitlab/ctlscript.sh restart

Syntax OK
/opt/gitlab/apache2/scripts/ctl.sh : httpd stopped
/opt/gitlab/apps/gitlab/scripts/sidekiq.sh : gitlab_sidekiq not running
/opt/gitlab/apps/gitlab-workhorse/scripts/ctl.sh : gitlab-workhorse stopped
/opt/gitlab/apps/gitlabci/gitlabci-multirunner/scripts/ctl.sh : gitlabci stopped
/opt/gitlab/redis/scripts/ctl.sh : redis stopped
/opt/gitlab/postgresql/scripts/ctl.sh : postgresql not running
waiting for server to start.... done
server started
/opt/gitlab/postgresql/scripts/ctl.sh : postgresql  started at port 5432
/opt/gitlab/redis/scripts/ctl.sh : redis started
/opt/gitlab/apps/gitlab/scripts/sidekiq.sh : gitlab_sidekiq started
/opt/gitlab/apps/gitlab-workhorse/scripts/ctl.sh : gitlab-workhorse started
/opt/gitlab/apps/gitlabci/gitlabci-multirunner/scripts/ctl.sh : gitlabci_multirunner started
Syntax OK
/opt/gitlab/apache2/scripts/ctl.sh : httpd started at port 80


评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值