docker-gitlab icon indicating copy to clipboard operation
docker-gitlab copied to clipboard

remote:Not Found when https cloning

Open urquilla opened this issue 11 years ago • 20 comments

I recently upgraded to 8.0.5 but when trying to clone/pull/fetch projects through https I received the following message:

git clone https://example.com:1090/bint-group/project1.git
Cloning into 'project1'...
Username for 'https://example.com:1090': urquilla
Password for 'https://example.com:1090': 
remote: Not Found
fatal: repository 'https://example.com:1090/bint-group/project1.git/' not found

It happened with all the projects, but didn't when cloning through ssh.

What I could found at the logs was at the production.log and just:

Started POST "/ci/api/v1/builds/register.json" for 127.0.0.1 at 2015-10-18 06:56:17 -0600
Started POST "/ci/api/v1/builds/register.json" for 127.0.0.1 at 2015-10-18 06:56:20 -0600
Started GET "/bint-group/project1.git/info/refs?service=git-upload-pack" for XXX.XXX.XX.X at 2015-10-18 06:56:20 -0600
Started POST "/ci/api/v1/builds/register.json" for 127.0.0.1 at 2015-10-18 06:56:23 -0600
Started POST "/ci/api/v1/builds/register.json" for 127.0.0.1 at 2015-10-18 06:56:26 -0600
Started GET "/bint-group/project1.git/info/refs?service=git-upload-pack" for XXX.XXX.XX.X at 2015-10-18 06:56:28 -0600

As a workaround downgrading to 8.0.4 immediately fixed the issue. Where could I search for more clues on this?

urquilla avatar Oct 18 '15 13:10 urquilla

Same problem for me.

Zenithar avatar Oct 19 '15 06:10 Zenithar

+1 same problem here. I have rolled back to 8.0.4-1.

knight42 avatar Oct 19 '15 14:10 knight42

Just checked this on a production system running quay.io/sameersbn/gitlab:8.0.5 and had no issues cloning the repo using the https:// url. This could be an issue with the load balancer. But you can try looking at the logs on /var/lib/gitlab/ to see if you notice anything in there.

sameersbn avatar Oct 19 '15 15:10 sameersbn

I'm seeing this on 8.0.5 as well, our docker-gitlab is proxied behind an HTTPS nginx container, could that be the issue?

mikew avatar Oct 19 '15 16:10 mikew

@mikew i do the same without problems. Are you using a relative_url by any chance as that can cause issues,

sameersbn avatar Oct 19 '15 16:10 sameersbn

Nope, no relative_url stuff here.

mikew avatar Oct 19 '15 17:10 mikew

Are you aware of the changes to nginx.conf?

mikew avatar Oct 19 '15 17:10 mikew

@sameersbn no clue how, but my gitlab:8.0.5 has gitlab-git-http-server 0.3.0, which is causing this issue, and GITLAB_GIT_HTTP_SERVER_VERSION is not set in my container.

mikew avatar Oct 20 '15 01:10 mikew

@mikew gitlab gitlab-git-http-server 0.3.0 is not compatible with GitLab 8.0.x. Please see the changelog https://gitlab.com/gitlab-org/gitlab-git-http-server/blob/master/CHANGELOG

sameersbn avatar Oct 20 '15 04:10 sameersbn

Oh sorry something is a miss. will make a new point release.

sameersbn avatar Oct 20 '15 04:10 sameersbn

can you guys try with 8.0.5-1.. Build should be ready in a couple of minutes.

sameersbn avatar Oct 20 '15 04:10 sameersbn

@sameersbn It works like a charm now :+1: What happened?

knight42 avatar Oct 20 '15 04:10 knight42

After the GITLAB_GIT_HTTP_SERVER_VERSION variable was added and fixed to 0.2.14, i forgot to make a release.

sameersbn avatar Oct 20 '15 05:10 sameersbn

Thanks a lot ! I was pulling my hair for couple of hours

ithiru avatar Oct 20 '15 08:10 ithiru

@sameersbn still not seeing 8.0.5-1 on the tags page

mikew avatar Oct 20 '15 13:10 mikew

@mikew docker pull quay.io/sameersbn/gitlab:8.0.5-1

fernandoneto avatar Oct 20 '15 14:10 fernandoneto

@mikew something wrong with quay.io. the pull will work.

sameersbn avatar Oct 20 '15 14:10 sameersbn

@sameersbn 8.0.5-1 works like a charm :thumbsup:

Sundypha avatar Oct 21 '15 13:10 Sundypha

Just to report back, 8.1.0-1 working perfectly here

urquilla avatar Nov 12 '15 21:11 urquilla

Thanks!

urquilla avatar Nov 12 '15 22:11 urquilla