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/

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

相关推荐
Cchaofan31 分钟前
Git/GitLab日常使用的命令指南来了!
git·gitlab
可乐加.糖7 小时前
项目版本管理和Git分支管理方案
java·git·目标跟踪·gitlab·敏捷流程·源代码管理
GoodStudyAndDayDayUp17 小时前
gitlab+portainer 实现Ruoyi Vue后端CI/CD
vue.js·ci/cd·gitlab
伊成1 天前
gitlab提交测试分支的命令和流程
gitlab
山师第一深情1 天前
ssh connect to remote gitlab without authority
服务器·ssh·gitlab
GoodStudyAndDayDayUp2 天前
gitlab+portainer 实现Ruoyi Vue前端CI/CD
前端·vue.js·gitlab
风屿.3 天前
部署安装gitlab-ce-17.9.7-ce.0.el8.x86_64.rpm
gitlab
亮1114 天前
GITLAB跑gradle项目 不借助maven-publish直接上传到nexus私人仓库
java·gitlab·gradle·maven
极小狐4 天前
极狐GitLab 通用软件包存储库功能介绍
java·数据库·c#·gitlab·maven
小马爱打代码4 天前
K8S - GitLab CI 自动化构建镜像入门
ci/cd·kubernetes·gitlab