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/

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

相关推荐
云攀登者-望正茂33 分钟前
60个GitLab CI/CD 面试问题和答案
ci/cd·gitlab·devops
懿瑾3 小时前
GitLab Auth2授权-Express + passport-gitlab2
gitlab·angular.js
zhang238390615415 小时前
IDEA add gitlab account 提示
java·gitlab·intellij-idea·idea
宁酱醇21 小时前
各种各样的bug合集
开发语言·笔记·python·gitlab·bug
极小狐1 天前
极狐GitLab Git LFS 速率限制如何设置?
运维·git·ssh·gitlab·github
极小狐1 天前
如何解决极狐GitLab 合并冲突?
人工智能·git·机器学习·gitlab
量子位2 天前
无需数据标注!测试时强化学习,模型数学能力暴增 | 清华 & 上海 AI Lab
人工智能·gitlab·aigc
梁萌3 天前
10-DevOps-Jenkins参数化构建实现多版本发布
运维·gitlab·jenkins·devops·tag
午后书香3 天前
入职前你需要知道的git操作大指南
前端·git·gitlab
亮学长3 天前
GitLab 提交权限校验脚本
gitlab