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

返回列表 发布新帖

gitlab从redhat7备份还原到redhat8失败

122 4
发表于 2024-12-5 16:57:34 | 显示全部楼层 阅读模式

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

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

×

gitlab还原操作报错,信息如下;备份包是从Redhat7上的docker中导出的,目标系统是Redhat8上用rpm方式安装的gitlab,版本都是13.12.15,有没有大佬提供一些解决思路

[Failed] restoring apps/ECIF/ecifweb (@hashed/f8/d6/f8d64a31eb7d864da9252b7e5dd2659229cf1a3c4bf9d6d544c0318c81e13cff)
Error 14:failed to connect to all addresses.
 * apps/ECIF/ecifweb.wiki (@hashed/f8/d6/f8d64a31eb7d864da9252b7e5dd2659229cf1a3c4bf9d6d544c0318c81e13cff.wiki) ...
 * apps/ECIF/ecifweb.wiki (@hashed/f8/d6/f8d64a31eb7d864da9252b7e5dd2659229cf1a3c4bf9d6d544c0318c81e13cff.wiki) ... [DONE]
 * apps/ECIF/ecifweb.design (@hashed/f8/d6/f8d64a31eb7d864da9252b7e5dd2659229cf1a3c4bf9d6d544c0318c81e13cff.design) ...
 * apps/ECIF/ecifweb.design (@hashed/f8/d6/f8d64a31eb7d864da9252b7e5dd2659229cf1a3c4bf9d6d544c0318c81e13cff.design) ... [DONE]
 * apps/NOBP/dockerfile (@hashed/1c/91/1c918023d679a37e1f3338c9029fe54730b3338643dea17773a25e4c67956699) ...
[Failed] restoring apps/NOBP/dockerfile (@hashed/1c/91/1c918023d679a37e1f3338c9029fe54730b3338643dea17773a25e4c67956699)
Error 14:failed to connect to all addresses. debug_error_string:{"created":"@1733387082.347453917","description":"Failed to pick subchannel","file":"src/core/ext/filters/client_channel/client_channel.cc","file_line":3952,"referenced_errors":[{"created":"@1733387079.575870534","description":"failed to connect to all addresses","file":"src/core/ext/filters/client_channel/lb_policy/pick_first/pick_first.cc","file_line":394,"grpc_status":14}]}
 * apps/NOBP/dockerfile.wiki (@hashed/1c/91/1c918023d679a37e1f3338c9029fe54730b3338643dea17773a25e4c67956699.wiki) ...
 * apps/NOBP/dockerfile.wiki (@hashed/1c/91/1c918023d679a37e1f3338c9029fe54730b3338643dea17773a25e4c67956699.wiki) ... [DONE]
 * apps/NOBP/dockerfile.design (@hashed/1c/91/1c918023d679a37e1f3338c9029fe54730b3338643dea17773a25e4c67956699.design) ...
 * apps/NOBP/dockerfile.design (@hashed/1c/91/1c918023d679a37e1f3338c9029fe54730b3338643dea17773a25e4c67956699.design) ... [DONE]
 * coding/AMLS/aml_v7 (@hashed/31/9f/319f6d0f44f72b8278c5abaf74ad0357c9d13f8d7328246f3474063f08150952) ...
[Failed] restoring coding/AMLS/aml_v7 (@hashed/31/9f/319f6d0f44f72b8278c5abaf74ad0357c9d13f8d7328246f3474063f08150952)
Error 14:failed to connect to all addresses. debug_error_string:{"created":"@1733387082.359232977","description":"Failed to pick subchannel","file":"src/core/ext/filters/client_channel/client_channel.cc","file_line":3952,"referenced_errors":[{"created":"@1733387079.575870534","description":"failed to connect to all addresses","file":"src/core/ext/filters/client_channel/lb_policy/pick_first/pick_first.cc","file_line":394,"grpc_status":14}]}
 * coding/AMLS/aml_v7.wiki (@hashed/31/9f/319f6d0f44f72b8278c5abaf74ad0357c9d13f8d7328246f3474063f08150952.wiki) ...
 * coding/AMLS/aml_v7.wiki (@hashed/31/9f/319f6d0f44f72b8278c5abaf74ad0357c9d13f8d7328246f3474063f08150952.wiki) ... [DONE]
 * coding/AMLS/aml_v7.design (@hashed/31/9f/319f6d0f44f72b8278c5abaf74ad0357c9d13f8d7328246f3474063f08150952.design) ...
 * coding/AMLS/aml_v7.design (@hashed/31/9f/319f6d0f44f72b8278c5abaf74ad0357c9d13f8d7328246f3474063f08150952.design) ... [DONE]
 * apps/LEO/boot/basic (@hashed/74/7a/747ad1db126a954a4c23ad79aa71eef66768ece8f664d810921017c812f5acaf) ...
[Failed] restoring apps/LEO/boot/basic (@hashed/74/7a/747ad1db126a954a4c23ad79aa71eef66768ece8f664d810921017c812f5acaf)
Error 14:failed to connect to all addresses. debug_error_string:{"created":"@1733387082.375132238","description":"Failed to pick subchannel","file":"src/core/ext/filters/client_channel/client_channel.cc","file_line":3952,"referenced_errors":[{"created":"@1733387079.575870534","description":"failed to connect to all addresses","file":"src/core/ext/filters/client_channel/lb_policy/pick_first/pick_first.cc","file_line":394,"grpc_status":14}]}
 * apps/LEO/boot/basic.wiki (@hashed/74/7a/747ad1db126a954a4c23ad79aa71eef66768ece8f664d810921017c812f5acaf.wiki) ...
 * apps/LEO/boot/basic.wiki (@hashed/74/7a/747ad1db126a954a4c23ad79aa71eef66768ece8f664d810921017c812f5acaf.wiki) ... [DONE]
 * apps/LEO/boot/basic.design (@hashed/74/7a/747ad1db126a954a4c23ad79aa71eef66768ece8f664d810921017c812f5acaf.design) ...
 * apps/LEO/boot/basic.design (@hashed/74/7a/747ad1db126a954a4c23ad79aa71eef66768ece8f664d810921017c812f5acaf.design) ... [DONE]
 * apps/AEIP/AEIP (@hashed/10/f1/10f15d8a9d76da2d65de8b9fa59150f6591ae53813e3789272a344edec36a04d) ...
[Failed] restoring apps/AEIP/AEIP (@hashed/10/f1/10f15d8a9d76da2d65de8b9fa59150f6591ae53813e3789272a344edec36a04d)
Error 14:failed to connect to all addresses.
 * apps/AEIP/AEIP.wiki (@hashed/10/f1/10f15d8a9d76da2d65de8b9fa59150f6591ae53813e3789272a344edec36a04d.wiki) ...
 * apps/AEIP/AEIP.wiki (@hashed/10/f1/10f15d8a9d76da2d65de8b9fa59150f6591ae53813e3789272a344edec36a04d.wiki) ... [DONE]
 * apps/AEIP/AEIP.design (@hashed/10/f1/10f15d8a9d76da2d65de8b9fa59150f6591ae53813e3789272a344edec36a04d.design) ...
 * apps/AEIP/AEIP.design (@hashed/10/f1/10f15d8a9d76da2d65de8b9fa59150f6591ae53813e3789272a344edec36a04d.design) ... [DONE]
 * snippets/1 (@snippets/6b/86/6b86b273ff34fce19d6b804eff5a3f5747ada4eaa22f1d49c01e52ddb7875b4b) ...
[Failed] restoring snippets/1 (@snippets/6b/86/6b86b273ff34fce19d6b804eff5a3f5747ada4eaa22f1d49c01e52ddb7875b4b)
Error 14:failed to connect to all addresses. debug_error_string:{"created":"@1733387082.544226826","description":"Failed to pick subchannel","file":"src/core/ext/filters/client_channel/client_channel.cc","file_line":3952,"referenced_errors":[{"created":"@1733387079.575870534","description":"failed to connect to all addresses","file":"src/core/ext/filters/client_channel/lb_policy/pick_first/pick_first.cc","file_line":394,"grpc_status":14}]}
rake aborted!
GRPC::Unavailable: 14:failed to connect to all addresses. debug_error_string:{"created":"@1733387082.551280688","description":"Failed to pick subchannel","file":"src/core/ext/filters/client_channel/client_channel.cc","file_line":3952,"referenced_errors":[{"created":"@1733387079.575870534","description":"failed to connect to all addresses","file":"src/core/ext/filters/client_channel/lb_policy/pick_first/pick_first.cc","file_line":394,"grpc_status":14}]}
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/gitaly_client.rb:177:in `execute'
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/gitaly_client/call.rb:18:in `block in call'
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/gitaly_client/call.rb:55:in `recording_request'
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/gitaly_client/call.rb:17:in `call'
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/gitaly_client.rb:167:in `call'
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/gitaly_client/repository_service.rb:19:in `exists?'
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/git/repository.rb:98:in `exists?'
回复

使用道具 举报

评论4

zybLv.2 发表于 2024-12-6 16:55:59 | 显示全部楼层
看报错提示应该是gitaly上,有些仓库文件找不到,还原动作最后有完成吗,完成的话可以看下gitaly和rails的日志

如果数据库是恢复成功的,可以看下报错的这些路径存不存在,不存在可以尝试从旧实例rsync过来试试看
回复

使用道具 举报

卌巜珡楼主Lv.1 发表于 2024-12-6 17:50:44 | 显示全部楼层
zyb 发表于 2024-12-6 16:55
看报错提示应该是gitaly上,有些仓库文件找不到,还原动作最后有完成吗,完成的话可以看下gitaly和rails的 ...

恢复失败了,上面第一步报错就结束了,看解压的东西跟原来服务器上的比是少了一些.git文件,但是不知道为啥原服务器备份的时候没有压进去。原服务器备份的时候没有报错,备份都是提示成功的。
回复

使用道具 举报

zybLv.2 发表于 2024-12-9 17:00:31 | 显示全部楼层
看看原实例有没有配置对象存储,备份不会备份对象存储上的内容
回复

使用道具 举报

zybLv.2 发表于 2024-12-9 17:39:20 | 显示全部楼层
可以看下用来恢复的实例状态是否都是正常的,尤其是gitaly的
回复

使用道具 举报

意见建议

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