Submitted by ianaz on Tue, 07/31/2012 - 07:31
Hello,
by installing git with your modules installer, I can checkout the content but I cannot push in there. I get an error message:
error: Cannot access URL http://www.domain.com/git/test.git/, return code 22 fatal: git-http-push failed
Is that your problem or mine? Thanks again and great job, the services you're providing are much better than other more more and more expensive! :)
Status:
Closed (fixed)
Comments
Submitted by ianaz on Tue, 07/31/2012 - 07:46 Comment #1
Submitted by andreychek on Tue, 07/31/2012 - 08:45 Comment #2
Howdy -- it should allow you to checkin code.
What shows up in $HOME/logs/error_log when that happens?
Also, what command is it that you're using to push the code into the repository?
Thanks!
Submitted by ianaz on Tue, 07/31/2012 - 09:58 Comment #3
I am using Git Extensions on Windows (7). When I push it prints these messages:
git push -u --recurse-submodules=check --progress "origin" master:master Done error: Cannot access URL http://ianaz@ianaz.com/git/test.git/, return code 22 fatal: git-http-push failed
I couldn't find any error_log for git, is there any? (used found / -name 'error_log')
Submitted by JamieCameron on Tue, 07/31/2012 - 13:04 Comment #4
Check the Apache error log for the domain, at
/var/log/virtualmin/ianaz.com_error_log
Submitted by ianaz on Tue, 07/31/2012 - 13:06 Comment #5
Ok thanks. This is the error:
Directory index forbidden by Options directive: /home/ianaz/public_html/git/test.git/
Submitted by JamieCameron on Tue, 07/31/2012 - 15:09 Comment #6
Have you tried using the regular Linux command-line
git
client? I would be interested to know if that fails too ..Submitted by ianaz on Thu, 08/02/2012 - 06:35 Comment #7
It fails exactly the same... :(
git push origin master
cannot access url bla bla bla return code 22 fatal: git-http-push failed
Submitted by andreychek on Thu, 08/02/2012 - 08:29 Comment #8
Are you by chance seeing any new errors in /var/log/virtualmin/ianaz.com_error_log?
That one you mentioned before wasn't one we were really expecting :-)
Also, can you verify that you get that "Directory index forbidden by Options directive" error each time you run the "git push" command?
I just wanted to make sure that you were seeing that error each time, rather than it just being from an unrelated attempt to access the repository.
Thanks!
Submitted by ianaz on Thu, 08/02/2012 - 09:10 Comment #9
You are right, that error doesn't show anymore... instead you may find this useful:
GET /git/test.git/info/refs?service=git-receive-pack HTTP/1.1" 401 716 "-" "git/1.7.10.5997.gaa4aa" GET /git/test.git/info/refs?service=git-receive-pack HTTP/1.1" 401 716 "-" "git/1.7.10.5997.gaa4aa" GET /git/test.git/info/refs?service=git-receive-pack HTTP/1.1" 200 233 "-" "git/1.7.10.5997.gaa4aa" GET /git/test.git/HEAD HTTP/1.1" 200 258 "-" "git/1.7.10.5997.gaa4aa" PROPFIND /git/test.git/ HTTP/1.1" 401 716 "-" "git/1.7.10.5997.gaa4aa"
Submitted by ianaz on Sat, 08/04/2012 - 10:51 Comment #10
I've solved by reinitialize repository
git --bare init --shared
Thanks anyway :) I will initialize repositories manually from now on...
Submitted by JamieCameron on Fri, 08/03/2012 - 16:07 Comment #11
Ok, glad that worked..
Previously did you only run
git init
?Submitted by ianaz on Sat, 08/04/2012 - 10:50 Comment #12
No, I previously created the repository using Virtualmin...
Submitted by JamieCameron on Sat, 08/04/2012 - 12:20 Comment #13
I mean on the client - you need to run git init there as well.
Submitted by Issues on Sat, 08/18/2012 - 12:46 Comment #14
Automatically closed -- issue fixed for 2 weeks with no activity.