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/

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

相关推荐
画船听雨眠aa1 天前
gitlab云服务器配置
服务器·git·elasticsearch·gitlab
玉米的玉*」*4 天前
新项目上传gitlab
gitlab
鲁子狄4 天前
[笔记] 极狐GitLab实例 : 手动备份步骤总结
linux·运维·笔记·ubuntu·centos·gitlab
节省钱8 天前
【Git】如何在 Git 提交后补充 Change-Id
服务器·git·gitee·gitlab·github·gitcode
dujunqiu8 天前
gitlab处理空文件夹的提交或空文件夹提交失败
git·gitlab·github
摸鱼仙人~8 天前
将本地项目上传到 GitLab/GitHub
elasticsearch·gitlab·github
pingxiaozhao9 天前
Windows的docker中安装gitlab
docker·容器·gitlab
Channing Lewis9 天前
如何实现gitlab和jira连通
gitlab·jira
一颗大樱桃9 天前
Ubuntu安装GitLab
linux·ubuntu·gitlab
Channing Lewis9 天前
PPT大纲:如何用python实现gitlab和jira的集成
python·gitlab·jira