GitLab|GitLab报错:PG::ConnectionBad: could not connect to server...

错误信息:

PG::ConnectionBad: could not connect to server: No such file or directory

Is the server running locally and accepting

connections on Unix domain socket "/var/opt/gitlab/postgresql/.s.PGSQL.5432"?

/opt/gitlab/embedded/service/gitlab-rails/lib/tasks/gitlab/db.rake:49:in `block (3 levels) in <top (required)>'

/opt/gitlab/embedded/bin/bundle:23:in `load'

/opt/gitlab/embedded/bin/bundle:23:in `<main>'

Tasks: TOP => gitlab:db:configure

(See full trace by running task with --trace)

解决方案:

  1. 按住CTRL+C强制结束

  2. 停止 GitLab,执行命令:gitlab-ctl stop

  3. 执行命令:chmod 755 /var/opt/gitlab/postgresql

  4. 再次配置:gitlab-ctl reconfigure

  5. 启动即可:gitlab-ctl restart

作者:Kkoo

链接:https://www.pwwwp.com/

著作权归作者所有。商业转载请联系作者进行授权,非商业转载请注明出处。

相关推荐
HIT_Weston6 小时前
60、【Ubuntu】【Gitlab】拉出内网 Web 服务:Gitlab 配置审视(四)
前端·ubuntu·gitlab
周杰伦_Jay1 天前
【GOFrame】模块化框架与生产级实践
开发语言·gitlab·github
丫丫学AI1 天前
gitlab-runner注册执行器
gitlab
yuguo.im1 天前
5 分钟快速入门 Gitlab CI/CD
ci/cd·gitlab·github
aoxiang_ywj2 天前
GitLab 子模块(子仓)更新到主仓的完整流程
gitlab
HIT_Weston2 天前
57、【Ubuntu】【Gitlab】拉出内网 Web 服务:Gitlab 配置审视(一)
前端·ubuntu·gitlab
HIT_Weston2 天前
58、【Ubuntu】【Gitlab】拉出内网 Web 服务:Gitlab 配置审视(二)
前端·ubuntu·gitlab
HIT_Weston2 天前
59、【Ubuntu】【Gitlab】拉出内网 Web 服务:Gitlab 配置审视(三)
前端·ubuntu·gitlab
一念一花一世界3 天前
Arbess从基础到实践(5) - 集成GitLab+SonarQube搭建Java项目自动化部署
java·gitlab·sonarqube·cicd·arbess
qq_281317473 天前
GitLab
gitlab