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/

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

相关推荐
三天不学习15 小时前
GitLab Docker 安装完整配置项说明
docker·容器·gitlab
一念一花一世界3 天前
Arbess从初级到进阶(9) - 使用Arbess+GitLab实现C++项目自动化部署
c++·ci/cd·gitlab·arbess
X***48963 天前
GitLab
gitlab
一世一生命3 天前
GitLab Package依赖管理:从 Dependabot 到 Renovate 的迁移实践和两者对比
gitlab
t***L2663 天前
GitLab API使用实例
运维·gitlab
x***B4113 天前
GitLab Runner配置教程
gitlab
9***Y483 天前
GitLab CI/CD配置教程
ci/cd·gitlab
y***54883 天前
GitLab CI缓存配置
缓存·ci/cd·gitlab
p***c9493 天前
GitLab CI/CD变量
git·ci/cd·gitlab
O***p6043 天前
GitLab CI/CD自动化部署实践
ci/cd·自动化·gitlab