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/

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

相关推荐
tzhou644524 天前
搭建Jenkins+GitLab持续集成环境
ci/cd·gitlab·jenkins
编程、小哥哥4 天前
AI之gitlab代码分析之按迭代评审
gitlab
可爱又迷人的反派角色“yang”5 天前
GitLab配置与git集成实践
linux·网络·git·docker·云计算·gitlab
LucidX5 天前
从零搭建Jenkins+GitLab持续集成环境:详细教程
ci/cd·gitlab·jenkins
m0_485614675 天前
GitLab基础管理
gitlab
不爱学习的笨蛋5 天前
ubuntu安装gitlab
linux·ubuntu·gitlab
梁萌5 天前
Jenkins构建的触发方式
运维·svn·gitlab·jenkins·webhook·job触发方式·自动触发构建
叫致寒吧6 天前
GitLab详解
gitlab
linweidong6 天前
解决gitlab配置Webhooks,提示 Invalid url given的问题
gitlab·notepad++
隔壁阿布都6 天前
Docker 离线安装 GitLab 完整步骤
docker·gitlab