E
E
Eduards Vigulis2019-10-24 11:57:59
git
Eduards Vigulis, 2019-10-24 11:57:59

Why can't I push to GitLab after an update?

After I upgraded Gitlab from 12.2.1 to 12.4.0, I can't push changes to any branch.
This is what it shows me when I push:

remote: GitLab: This action cannot be performed by internal users
To git.repo.com:repo/main-websites/repo.com.git
! [remote rejected] branch -> branch (pre-receive hook declined)
error: failed to push some refs to '[email protected]:repo/main-websites/repo.com.git'

I tried:
  • Reconfigure/restart Gitlab: sudo gitlab-ctl reconfigure && sudo gitlab-ctl restart
  • Delete the local copy of the project and create it again. I can download it, but I can't push changes
  • Tried to make changes from other machines, everywhere the same story
  • Tried deleting the SSH key and generating a new one, but that didn't work either.

Here is the only more or less relevant piece of logs that I found:
{
  "method":"POST",
  "url":"http://127.0.0.1:8080/api/v4/internal/allowed",
  "code":"401",
  "body":"{
    "status":false,
    "message":"This action cannot be performed by internal users"
  }",
  "pid":17255,
  "level":"error",
  "msg":"Call failed",
  "time":"2019-10-23T13:55:33+00:00"
}

I would be grateful for any ideas, for the second day I can not understand what's wrong.
Thanks in advance!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Eduards Vigulis, 2019-10-24
@AIS

The key file was broken on the GitLab server.
Fixed it like this:
Everything works again!
The answer was found here: https://stackoverflow.com/a/29765704/1544230

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question