GitLab push cannot find gitlab_update

Source: Internet
Author: User

Today, GitLab push suddenly reports an error:

Git push origin issue_232
Counting objects: 5, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (2/2), done.
Writing objects: 100% (3/3), 348 bytes, done.
Total 3 (delta 0), reused 0 (delta 0)
Remote: hooks/update: 10: in 'require _ relative ': cannot load such file --/home/git/repositories/test-project.git/lib/gitlab_update (LoadError)
Remote: from hooks/update: 10: in '<main>'
Remote: error: hook declined to update refs/heads/issue_232
To git@gitlab.cmltechnology.cn: CRF/jiangshu-sports-lottery.git
! [Remote rejected] issue_232-> issue_232 (hook declined)

The reason is that gitlab has just been migrated to another server. After comparing the results, we found that the old gitlab server is correct.

/Home/git/repositories/test-project.git/hooks/update file is a link that points

Update->/home/git/gitlab-shell/hooks/update

Therefore, manually delete the file and add Link

Rm update
Ln-s/home/git/gitlab-shell/hooks/update

In this way, the directory to be searched becomes gitlab-shell, and files can be found naturally.

Once you restart gitlab, update becomes a file, and push returns an error again. In the future, write a script to start post-processing.

Read more: GitLab 5.3 upgrade notes

GitLab details: click here
GitLab: click here

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.