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/

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

相关推荐
星释1 天前
如何自动部署GitLab项目
gitlab
keson要进步1 天前
CICD实战(二)-----gitlab的安装与配置
linux·运维·gitlab
猫头虎1 天前
[特殊字符]解决 “IDEA 登录失败。不支持早于 14.0 的 GitLab 版本” 问题的几种方法
java·ide·网络协议·http·https·gitlab·intellij-idea
风早君1 天前
jenkins集成gitlab发布到远程服务器
服务器·gitlab·jenkins
大白要努力!3 天前
在 Android Studio 中使用 GitLab 添加图片到 README.md
android·gitlab·android studio
星释3 天前
如何编写GitLab-CI配置文件
ci/cd·gitlab
馨羽的玩具3 天前
gitlab rss订阅失败
gitlab
t198751284 天前
jenkins结合gitlab实现CI
ci/cd·gitlab·jenkins
一颗小豆4 天前
07-接着玩-linux的CD/CI全流程体验
gitlab