GitLab|GitLab报错:Restoring PostgreSQL database gitlabhq_production...

错误信息:

Restoring PostgreSQL database gitlabhq_production ... ERROR: must be owner of extension pg_trgm

ERROR: must be owner of extension btree_gist

ERROR: must be owner of extension btree_gist

ERROR: must be owner of extension pg_trgm

解决方案:

  1. 修改postgresql相关配置

修改配置文件postgresql.conf,修改端口监听地址,默认监控localhost,* 代表all

复制代码
$ vim /var/opt/gitlab/postgresql/data/postgresql.conf
listen_addresses = '*'

修改配置文件pg_hba.conf,新增以下两行

复制代码
$ vim /var/opt/gitlab/postgresql/data/pg_hba.conf
local all all trust
host all all 127.0.0.1/32 trust
  1. 重启gitlab服务

    gitlab-ctl restart

  2. 修改数据

    su - gitlab-psql /opt/gitlab/embedded/bin/psql -h 127.0.0.1 gitlabhq_production
    gitlabhq_production=# ALTER USER gitlab WITH SUPERUSER;
    ALTER ROLE
    gitlabhq_production=# \q
    $ exit

作者:Kkoo

链接:https://www.pwwwp.com/

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

相关推荐
秦时明月天明1 小时前
GitLab SSH Key 过期:git pull failed : remote your ssh key has expired
git·ssh·gitlab
极限实验室12 小时前
程序员爆哭!我们让 COCO AI 接管 GitLab 审查后,团队直接起飞:连 CTO 都说“这玩意儿比人靠谱多了
人工智能·gitlab
HIT_Weston2 天前
61、【Ubuntu】【Gitlab】拉出内网 Web 服务:Gitlab 配置审视(五)
前端·ubuntu·gitlab
HIT_Weston2 天前
60、【Ubuntu】【Gitlab】拉出内网 Web 服务:Gitlab 配置审视(四)
前端·ubuntu·gitlab
周杰伦_Jay3 天前
【GOFrame】模块化框架与生产级实践
开发语言·gitlab·github
丫丫学AI3 天前
gitlab-runner注册执行器
gitlab
yuguo.im3 天前
5 分钟快速入门 Gitlab CI/CD
ci/cd·gitlab·github
aoxiang_ywj4 天前
GitLab 子模块(子仓)更新到主仓的完整流程
gitlab
HIT_Weston4 天前
57、【Ubuntu】【Gitlab】拉出内网 Web 服务:Gitlab 配置审视(一)
前端·ubuntu·gitlab
HIT_Weston4 天前
58、【Ubuntu】【Gitlab】拉出内网 Web 服务:Gitlab 配置审视(二)
前端·ubuntu·gitlab