极狐GitLab 正式推出面向 GitLab 老旧版本(12.x、13.x、14.x、15.x 等)免费用户的专业升级服务,点击查看详情

返回列表 发布新帖

pg-upgrade报错

66 2
发表于 2025-3-6 18:02:52 | 显示全部楼层 阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?注册

×

从16.7升级到 16.11,提示需要升级postgresql,然后运行 pg-upgrade就报错

[root@gitlab /]# gitlab-ctl pg-upgrade /opt/gitlab/embedded/service/omnibus-ctl/lib/gitlab_ctl/util.rb:51:in parse_json_file': Attributes not found in /opt/gitlab/embedded/nodes/gitlab.json, has reconfigure been run yet? (GitlabCtl::Errors::NodeError) from /opt/gitlab/embedded/service/omnibus-ctl/lib/gitlab_ctl/util.rb:66:inget_node_attributes' from /opt/gitlab/embedded/service/omnibus-ctl/lib/gitlab_ctl/util.rb:105:in roles' from /opt/gitlab/embedded/service/omnibus-ctl/pg-upgrade.rb:147:inblock in load_file' from /opt/gitlab/embedded/lib/ruby/gems/3.1.0/gems/omnibus-ctl-0.6.12/lib/omnibus-ctl.rb:204:in block in add_command_under_category' from /opt/gitlab/embedded/lib/ruby/gems/3.1.0/gems/omnibus-ctl-0.6.12/lib/omnibus-ctl.rb:747:inrun' from /opt/gitlab/embedded/lib/ruby/gems/3.1.0/gems/omnibus-ctl-0.6.12/bin/omnibus-ctl:31:in <top (required)>' from /opt/gitlab/embedded/bin/omnibus-ctl:25:inload' from /opt/gitlab/embedded/bin/omnibus-ctl:25:in `<main>' [root@gitlab /]# cat /opt/gitlab/embedded/nodes/gitlab.json

回复

使用道具 举报

评论2

wangkaixuanLv.7 发表于 4 天前 | 显示全部楼层
建议执行下 gitlab-ctl reconfigure 后再试试
回复

使用道具 举报

Fusion楼主Lv.1 发表于 4 天前 | 显示全部楼层
wangkaixuan 发表于 2025-3-10 09:51
建议执行下 gitlab-ctl reconfigure 后再试试

就是先执行 gitlab-ctl reconfigure,然后再升级pg
回复

使用道具 举报

意见建议

Email:forum@gitlab.cn
  • 关注公众号
  • 添加专业顾问
Copyright © 2001-2025 极狐GitLab论坛 版权所有 All Rights Reserved. 鄂ICP备2021008419号-1|鄂公网安备42018502006137号
关灯 快速发帖
扫一扫添加专业顾问
返回顶部
快速回复 返回顶部 返回列表