Report this

What is the reason for this report?

git push failes with “access denied” error on gitlab 7

Posted on October 25, 2014

When I try to push (from an existing repo) to a new repository on a freshly installed Gitlab CE instance I get an error:

Access Denied.
fatal: The remote end hung up unexpectedly

Strange thing is that pushing actually works for the first repository I created. The second repository gives this error.

I installed Gitlab (gitlab_7.3.2-omnibus-1_amd64.deb) on a fresh DigitalOcean instance (1GB ram) on Debian 7 x64.

An ssh -vT git@[domain] command gives ok: Welcome to GitLab, Ruurd Adema!

When tying to clone the second (empty) repo I get this error:

fatal: '/var/opt/gitlab/git-data/repositories/ruurdadema/encoder.git' does not appear to be a git repository
fatal: The remote end hung up unexpectedly

Checking the repositories folder tells me that the repository isn’t there, but the wiki of the project is indeed there.

I found this error in the log of omnibus 7.4.2:

E, [2014-10-24T21:09:32.502741 #11717] ERROR -- : API call <POST http://127.0.0.1:8080/api/v3/internal/allowed> failed: 500 => <{"message"=>"500 Internal Server Error"}>.

Any ideas of what’s going on?



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hi, thanks for your reply.

I already destroyed the VPS with the broken Gitlab instance, so I installed a new instance.

Remarkably it is working now! I don’t know what changed, but the problem seems to be gone.

Thanks anyway.

Consider running a check with: sudo gitlab-rake gitlab:check

(from https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/README.md#invoking-rake-tasks)

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.