Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Gitlab migration encountered problems with inconsistent versions and unable to import

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)06/01 Report--

At this point, you need to uninstall the gitlab version installed on the current server, download the backup version of gitlab and reinstall it (Tsinghua tuna project has all gitlab versions backed up, download address: https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/)

Here, you need to choose e16 or E17 according to the current operating system type. (centos 64bit is e16 centos7 is E17. If you don't know exactly what executes uname-a, you'll know.

After downloading the corresponding version of the rpm package, install it directly and import the backup file again.

"gitlab undefined method `full_path'"

This problem is encountered because there is an undeleted warehouse record in the database and the repository does not exist in the backup file, so comment out line 78 of the / opt/gitlab/embedded/service/gitlab-rails/lib/backup/repository.rb file directly:

# project.ensure_storage_path_exists

Then execute:

Gitlab-ctl reconfigure

Gitlab-ctl restart

Gitlab-rake gitlab:backup:restore BACKUP=XXXXXX

Wait for the command execution to complete and the data can be recovered successfully.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report