0

Please I'm opening a new question because all the answers i found in this question:

GitLab remote: HTTP Basic: Access denied and fatal Authentication

have proven not helpful,

while this question:

remote: HTTP Basic: Access denied

lacks of the Curl Trace (but is very similar).

My problem is that (suddenly) I cannot use git on one of my lapotops because I always end-up with that error. The only thing that changed has been the introduction of a proxy but as you can see in the traces it seems to not interfier.

Traces obteined by GIT_CURL_VERBOSE=1 GIT_TRACE=1 git push origin unitTesting:unitTesting I replaced sensible info using §REPLACEMENT§

13:54:24.193605 exec-cmd.c:237          trace: resolved executable dir: C:/Program Files/Git/mingw64/bin
13:54:24.193605 git.c:440               trace: built-in: git push origin unitTesting:unitTesting
13:54:24.193605 run-command.c:663       trace: run_command: GIT_DIR=.git git remote-https origin https://§HOSTNAME§/§UserName§/§Project§.git
13:54:24.224851 exec-cmd.c:237          trace: resolved executable dir: C:/Program Files/Git/mingw64/libexec/git-core
13:54:24.224851 git.c:703               trace: exec: git-remote-https origin https://§HOSTNAME§/§UserName§/§Project§.git
13:54:24.224851 run-command.c:663       trace: run_command: git-remote-https origin https://§HOSTNAME§/§UserName§/§Project§.git
13:54:24.271734 exec-cmd.c:237          trace: resolved executable dir: C:/Program Files/Git/mingw64/libexec/git-core
* Couldn't find host §HOSTNAME§ in the _netrc file; using defaults
*   Trying §HOST_IP§:443...
* TCP_NODELAY set
* Connected to §HOSTNAME§ (§HOST_IP§) port 443 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
* successfully set certificate verify locations:
*   CAfile: C:/Users/§LocalUser§/ca-bundle.crt
  CApath: none
* SSL connection using TLSv1.2 / ECDHE-RSA-AES256-GCM-SHA384
* ALPN, server did not agree to a protocol
* Server certificate:
*  subject: CN=§HOSTNAME§
*  start date: Aug 26 17:11:41 2019 GMT
*  expire date: Nov 24 17:11:41 2019 GMT
*  subjectAltName: host "§HOSTNAME§" matched cert's "§HOSTNAME§"
*  issuer: C=US; O=Cloud Services; OU=Operations; CN=SSL-SG1-FRA3
*  SSL certificate verify ok.
> GET /§UserName§/§Project§.git/info/refs?service=git-receive-pack HTTP/1.1
Host: §HOSTNAME§
User-Agent: git/2.23.0.windows.1
Accept: */*
Accept-Encoding: deflate, gzip
Pragma: no-cache

* Mark bundle as not supporting multiuse
< HTTP/1.1 401 Unauthorized
< Server: nginx
< Date: Wed, 09 Oct 2019 11:54:24 GMT
< Content-Type: text/plain; charset=utf-8
< Content-Length: 26
< WWW-Authenticate: Basic realm="GitLab"
< X-Content-Type-Options: nosniff
< X-Frame-Options: DENY
< X-Request-Id: cb9fe730-192f-46d9-b506-36692b31c2fe
< X-Runtime: 0.025252
< X-Ua-Compatible: IE=edge
< X-Xss-Protection: 1; mode=block
< Cache-Control: no-cache, proxy-revalidate
< Connection: Keep-Alive
< Set-Cookie: BCSI-CS-25fa8402553b85b2=1; Path=/
<
* Ignoring the response-body
* Connection #0 to host §HOSTNAME§ left intact
* Issue another request to this URL: 'https://§HOSTNAME§/§UserName§/§Project§.git/info/refs?service=git-receive-pack'
* Couldn't find host §HOSTNAME§ in the _netrc file; using defaults
* Found bundle for host §HOSTNAME§: 0x54a8860 [serially]
* Can not multiplex, even if we wanted to!
* Re-using existing connection! (#0) with host §HOSTNAME§
* Connected to §HOSTNAME§ (§HOST_IP§) port 443 (#0)
* Server auth using Basic with user ''
> GET /§UserName§/§Project§.git/info/refs?service=git-receive-pack HTTP/1.1
Host: §HOSTNAME§
Authorization: Basic Og==
User-Agent: git/2.23.0.windows.1
Accept: */*
Accept-Encoding: deflate, gzip
Pragma: no-cache

* Mark bundle as not supporting multiuse
< HTTP/1.1 401 Unauthorized
< Server: nginx
< Date: Wed, 09 Oct 2019 11:54:24 GMT
< Content-Type: text/plain; charset=utf-8
< Content-Length: 26
* Authentication problem. Ignoring this.
< WWW-Authenticate: Basic realm="GitLab"
< X-Content-Type-Options: nosniff
< X-Frame-Options: DENY
< X-Request-Id: 2343fdd8-7139-4cac-908f-ac58cf49fb7b
< X-Runtime: 0.025140
< X-Ua-Compatible: IE=edge
< X-Xss-Protection: 1; mode=block
< Cache-Control: no-cache, proxy-revalidate
< Connection: Keep-Alive
< Set-Cookie: BCSI-CS-25fa8402553b85b2=1; Path=/
<
* Connection #0 to host §HOSTNAME§ left intact
13:54:24.928163 run-command.c:663       trace: run_command: 'git credential-manager get'
13:54:25.068689 exec-cmd.c:237          trace: resolved executable dir: C:/Program Files/Git/mingw64/libexec/git-core
13:54:25.068689 git.c:703               trace: exec: git-credential-manager get
13:54:25.068689 run-command.c:663       trace: run_command: git-credential-manager get
* Found bundle for host §HOSTNAME§: 0x54a8860 [serially]
* Can not multiplex, even if we wanted to!
* Re-using existing connection! (#0) with host §HOSTNAME§
* Connected to §HOSTNAME§ (§HOST_IP§) port 443 (#0)
* Server auth using Basic with user '§USER_EMIAL§'
> GET /§UserName§/§Project§.git/info/refs?service=git-receive-pack HTTP/1.1
Host: §HOSTNAME§
Authorization: Basic §CORRECT_STRING§
User-Agent: git/2.23.0.windows.1
Accept: */*
Accept-Encoding: deflate, gzip
Pragma: no-cache

* Mark bundle as not supporting multiuse
< HTTP/1.1 401 Unauthorized
< Server: nginx
< Date: Wed, 09 Oct 2019 11:54:25 GMT
< Content-Type: text/plain; charset=utf-8
< Content-Length: 26
* Authentication problem. Ignoring this.
< WWW-Authenticate: Basic realm="GitLab"
< X-Content-Type-Options: nosniff
< X-Frame-Options: DENY
< X-Request-Id: aa8a033c-a11e-44d1-980b-452efebb13d6
< X-Runtime: 0.027163
< X-Ua-Compatible: IE=edge
< X-Xss-Protection: 1; mode=block
< Cache-Control: no-cache, proxy-revalidate
< Connection: Keep-Alive
< Set-Cookie: BCSI-CS-25fa8402553b85b2=1; Path=/
<
* Connection #0 to host §HOSTNAME§ left intact
13:54:25.568738 run-command.c:663       trace: run_command: 'git credential-manager erase'
13:54:25.662533 exec-cmd.c:237          trace: resolved executable dir: C:/Program Files/Git/mingw64/libexec/git-core
13:54:25.662533 git.c:703               trace: exec: git-credential-manager erase
13:54:25.662533 run-command.c:663       trace: run_command: git-credential-manager erase
remote: HTTP Basic: Access denied
fatal: Authentication failed for 'https://§HOSTNAME§/§UserName§/§Project§.git/'

From another Laptop evrithing works fine,

my git config obtained by git config --list

core.symlinks=false
core.autocrlf=true
core.fscache=true
color.diff=auto
color.status=auto
color.branch=auto
color.interactive=true
help.format=html
rebase.autosquash=true
http.sslbackend=schannel
diff.astextplain.textconv=astextplain
filter.lfs.clean=git-lfs clean -- %f
filter.lfs.smudge=git-lfs smudge --skip -- %f
filter.lfs.process=git-lfs filter-process --skip
filter.lfs.required=true
credential.helper=manager
http.sslcainfo=C:/Users/§LocalUser§/ca-bundle.crt
http.emptyauth=true
http.sslbackend=openssl
core.editor="C:\Users\§LocalUser§\AppData\Local\Programs\Microsoft VS Code\Code.exe" --wait
core.repositoryformatversion=0
core.filemode=false
core.bare=false
core.logallrefupdates=true
core.symlinks=false
core.ignorecase=true
remote.origin.url=https://§URLtoMyGitLab§/§UserName§/§Project§.git
remote.origin.fetch=+refs/heads/*:refs/remotes/origin/*
branch.master.remote=origin
branch.master.merge=refs/heads/master
branch.unitTesting.remote=origin
branch.unitTesting.merge=refs/heads/unitTesting
http.sslverify=true
ALGDB
  • 483
  • 4
  • 19

0 Answers0