Git commands on a remote GitLab computer with 403

I have a GitLab 5.0 installation that suddenly, for no apparent reason, started to crash git commands on HTTP URLs. Any command such as git clone/pull/push fails with the following error:

 fatal: unable to access 'http://host/user/project.git/': The requested URL returned error: 403 

Error before user / password request. This happens for existing and new projects. SSH URLs continue to work fine. GitLab's user interface on HTTP also works great.

Any idea what might be wrong or how to fix it?

+5
source share
1 answer

As it often happens, I found that the problem was shortly after publication. The hint was that HTTP worked locally on the hosting. It turns out that I had the HTTP_PROXY variable configured in all the Windows mailboxes I tried (I recently needed this for cabal , which does not detect automatic proxy settings in Windows). It seems that git connecting to the GitLab through a proxy, resulting in an error. Leaving an answer if it helps someone else.

+5
source

Source: https://habr.com/ru/post/1214645/


All Articles