Git push over http failed with error code 52

1,222 views
Skip to first unread message

SuryaK

unread,
Aug 10, 2010, 7:01:15 AM8/10/10
to Gitorious
Hello all,
I'm able to clone my project from git using http. but when pushing
thru http I'm getting this error

error: cannot access URL http://git.gitorious.org/<myproject.git>,
return code 52.
fatal git-http-push failed.

I've deleted all my public-keys and added new ones. It did not help.

Thanks,
Surya

Benjamin Podszun

unread,
Aug 10, 2010, 7:18:53 AM8/10/10
to gito...@googlegroups.com
Hi.

On Tue, Aug 10, 2010 at 1:01 PM, SuryaK <suryakiran...@gmail.com> wrote:
> Hello all,
> I'm able to clone my project from git using http. but when pushing
> thru http I'm getting this error

That's probably the thing, don't push through http I guess.

> error: cannot access URL http://git.gitorious.org/<myproject.git>,
> return code 52.
> fatal git-http-push failed.
>
> I've deleted all my public-keys and added new ones. It did not help.

I've to admit that I don't know how git over http works, but I cannot
imagine that it is using ssh keys.. You add ssh keys so that you can
connect with that protocol.

Can you use the ssh url (should be listed as push url for your project)?

Regards,
Ben

SuryaK

unread,
Aug 10, 2010, 8:09:31 AM8/10/10
to Gitorious
> Can you use the ssh url (should be listed as push url for your project)?

I tried using ssh and git protocols. They're not working as I'm behind
a firewall.
Also, the http url was also a push url.

Surya

Marius Mårnes Mathiesen

unread,
Aug 12, 2010, 9:54:23 AM8/12/10
to gito...@googlegroups.com
On Tue, Aug 10, 2010 at 1:18 PM, Benjamin Podszun <benjamin...@gmail.com> wrote:
I've to admit that I don't know how git over http works, but I cannot
imagine that it is using ssh keys.. You add ssh keys so that you can
connect with that protocol.

Git fairly recently got support for push over HTTP, but Gitorious currently uses its own HTTP service for Git traffic since the URLs and the location of the actual repositories on disk are not the same. Our HTTP service simply translates the supplied path into a disk path.

Porting Git's HTTP push mechanism for use in Gitorious would require some C coding, it cannot be used directly. It would be a very welcome feature, though...

Cheers,
- Marius

manu

unread,
Aug 29, 2010, 8:06:37 PM8/29/10
to Gitorious
Are there any plans to overcome this issue?

Best regards,
Manuel.

On Aug 12, 9:54 am, Marius Mårnes Mathiesen
<marius.mathie...@gmail.com> wrote:
> On Tue, Aug 10, 2010 at 1:18 PM, Benjamin Podszun <
>

Marius Mårnes Mathiesen

unread,
Aug 30, 2010, 4:44:05 AM8/30/10
to gito...@googlegroups.com
On Mon, Aug 30, 2010 at 2:06 AM, manu <mva...@gmail.com> wrote:
Are there any plans to overcome this issue?

Manuel,
Personally, I have been looking at Grack (http://github.com/schacon/grack), which is a Ruby implementation of Git's smart HTTP functionality. I made an experiment where Grack would query the Gitorious web app for the actual location on disk for a requested repository and allow push/pull to that repository over HTTP. Grack, however, doesn't seem to be actively maintained, but I'm sure the code could be used as a starting point. It currently doesn't support eg. access control, so it can't be used right away - but it could be a solution.

Cheers,
- Marius
Reply all
Reply to author
Forward
0 new messages