remote: /opt/gitlab/embedded/service/gitlab-shell/lib/gitlab_net.rb:213:in `request': undefined method `error'
This error happens from time to time during a git push
:
# Pushing: updating remote master branch using local master branch along with objects necessary to complete the given refs
$ git push --porcelain --progress --recurse-submodules=check --tags origin "refs/heads/master:refs/heads/master"
Counting objects: 5, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (5/5), done.
Writing objects: 100% (5/5), 525 bytes | 525.00 KiB/s, done.
Total 5 (delta 4), reused 0 (delta 0)
remote: /opt/gitlab/embedded/service/gitlab-shell/lib/gitlab_net.rb:213:in `request': undefined method `error' for #<GitlabLogger:0x0000000001ebfe28> (NoMethodError)
remote: from /opt/gitlab/embedded/service/gitlab-shell/lib/gitlab_net.rb:224:in `post'
remote: from /opt/gitlab/embedded/service/gitlab-shell/lib/gitlab_net.rb:37:in `check_access'
remote: from /opt/gitlab/embedded/service/gitlab-shell/lib/gitlab_access.rb:27:in `block in exec'
remote: from /opt/gitlab/embedded/service/gitlab-shell/lib/gitlab_metrics.rb:50:in `measure'
remote: from /opt/gitlab/embedded/service/gitlab-shell/lib/gitlab_access.rb:26:in `exec'
remote: from hooks/pre-receive:30:in `<main>'
error: failed to push some refs to 'git@gitlab.com:jean-christophe-manciot/dr.git'
To gitlab.com:jean-christophe-manciot/dr.git
! refs/heads/master:refs/heads/master [remote rejected] (pre-receive hook declined)