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/

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

相关推荐
lisanmengmeng1 天前
gitlab 免密配置
linux·服务器·gitlab
求知若渴,虚心若愚。2 天前
Jenkins 自动化流水线(CICD)
运维·自动化·gitlab
mnasd3 天前
Gitlab + Jenkins 实现 CICD
运维·gitlab·jenkins
鹤鸣的日常4 天前
前端运行时动态环境变量方案
前端·react.js·docker·前端框架·vue·gitlab
starvapour4 天前
Ubuntu部署gitlab频繁出现502的问题
linux·ubuntu·gitlab
开发者联盟league4 天前
使用Jenkins整合Sonarqube/Gitlab/Harbor/Kubernetes的Demo工程
kubernetes·gitlab·jenkins
开发者联盟league5 天前
使用Jenkins整合Sonarqube/Gitlab/Harbor/Kubernetes实现CICD
kubernetes·gitlab·jenkins
zyl837215 天前
前后端项目自动部署方案主流实现方案
ci/cd·gitlab·github
tingting01195 天前
Anolis OS release 8.10安装gitlab
gitlab
shchojj5 天前
gitlab推送触发jekins编译
运维·gitlab