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/

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

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