jakubgarfield / Bonobo-Git-Server

Bonobo Git Server for Windows is a web application you can install on your IIS and easily manage and connect to your git repositories. Go to homepage for release and more info.
http://bonobogitserver.com
MIT License
1.81k stars 603 forks source link

GitAuth: No auth header, anon operations not allowed #814

Open Kadmeore opened 6 years ago

Kadmeore commented 6 years ago

I put Bonobo on my Windows Server 2012, set everything up in IIS, added users, created a repository and tried to got: $ git clone http://myname@git.mydomain.com/ACH_API.git A window for entering username and password has appeared, few seconds and response: Cloning into 'ACH_API'... fatal: http://myname@git.mydomain.com/ACH_API.git/info/refs not valid: is this a git repository?

Logs: 2018-08-04 16:07:05.110 +02:00 [Warning] GitAuth: No auth header, anon operations not allowed 2018-08-04 16:17:37.396 +02:00 [Warning] GitAuth: No auth header, anon operations not allowed 2018-08-04 16:18:23.747 +02:00 [Warning] GitAuth: No auth header, anon operations not allowed 2018-08-04 16:18:30.041 +02:00 [Warning] GitAuth: No auth header, anon operations not allowed

Web.config: AuthenticationProvider=Cookies MembershipService=Internal

EsmerinoBrito commented 5 years ago

Hi, I have similar problem. Same S.O. (WS12k) and configuration in "Web.config". But in my case the Log is:

fatal: unable to access 'http://****.****.com/Bonobo/****.git/': The requested URL returned error: 500

The GIT_CURL_VERBOSE = 1 says:

*   Trying ***.***.***.***...
* TCP_NODELAY set
* Expire in 200 ms for 4 (transfer 0x1108de0)
* Connected to ****.****.com (***.***.***.***) port 80 (#0)
> GET /Bonobo/****.git/info/refs?service=git-upload-pack HTTP/1.1
Host: ****.****.com
User-Agent: git/2.21.0.windows.1
Accept: */*
Accept-Encoding: deflate, gzip
Pragma: no-cache

< HTTP/1.1 500 Internal Server Error
< Content-Type: text/html
< Server: Microsoft-IIS/8.5
< Date: Tue, 26 Mar 2019 19:40:52 GMT
< Content-Length: 75
<
* Connection #0 to host ****.*****.com left intact

If, by bonobo web, I change the repository configuration to "Anonymous" = "Yes", So, I can execute git clone normally (without errors).

Help are welcome. Thanks.