查看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