git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Problems with git over http
@ 2008-09-20 17:13 Sean Davis
  2008-09-20 18:42 ` Uwe Kleine-König
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Sean Davis @ 2008-09-20 17:13 UTC (permalink / raw)
  To: git

I am new to git and trying to set up a remote repository over http.  I
have configured apache2 and the bare, empty repository.  Using curl, I
can get the file HEAD without a password (seems .netrc is correct?).
However, when I try to push to the repository, I get the following:

sdavis@lestrade:/tmp/testing> git push
http://sdavis@watson.nci.nih.gov/git/sean_git.git/ master
fatal: exec http-push failed.
error: failed to push some refs to
'http://sdavis@watson.nci.nih.gov/git/sean_git.git/'

What can I do to try to debug this, as the error message isn't helping
me to sort out what is wrong.  The client and server are both running
git-1.5.x (although the minor versions are a bit different).  Any
suggestions?

Thanks,
Sean

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Problems with git over http
  2008-09-20 17:13 Problems with git over http Sean Davis
@ 2008-09-20 18:42 ` Uwe Kleine-König
  2008-09-20 20:40   ` Sean Davis
  2008-09-20 21:42 ` Jakub Narebski
  2008-09-21 16:25 ` Matthieu Moy
  2 siblings, 1 reply; 7+ messages in thread
From: Uwe Kleine-König @ 2008-09-20 18:42 UTC (permalink / raw)
  To: Sean Davis; +Cc: git

Hello Sean,

On Sat, Sep 20, 2008 at 01:13:53PM -0400, Sean Davis wrote:
> I am new to git and trying to set up a remote repository over http.  I
> have configured apache2 and the bare, empty repository.  Using curl, I
> can get the file HEAD without a password (seems .netrc is correct?).
> However, when I try to push to the repository, I get the following:
> 
> sdavis@lestrade:/tmp/testing> git push
> http://sdavis@watson.nci.nih.gov/git/sean_git.git/ master
> fatal: exec http-push failed.
> error: failed to push some refs to
> 'http://sdavis@watson.nci.nih.gov/git/sean_git.git/'
> 
> What can I do to try to debug this, as the error message isn't helping
> me to sort out what is wrong.  The client and server are both running
> git-1.5.x (although the minor versions are a bit different).  Any
> suggestions?
Try cloning first.  And check the error log of apache.  I don't know how
pushing over http works, but maybe you installed git into /usr/local and
/usr/local/bin is not in the PATH for the apache user?

Best regards
Uwe

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Problems with git over http
  2008-09-20 18:42 ` Uwe Kleine-König
@ 2008-09-20 20:40   ` Sean Davis
  0 siblings, 0 replies; 7+ messages in thread
From: Sean Davis @ 2008-09-20 20:40 UTC (permalink / raw)
  To: Uwe Kleine-König; +Cc: git

On Sat, Sep 20, 2008 at 2:42 PM, Uwe Kleine-König <ukleinek@strlen.de> wrote:
> Hello Sean,
>
> On Sat, Sep 20, 2008 at 01:13:53PM -0400, Sean Davis wrote:
>> I am new to git and trying to set up a remote repository over http.  I
>> have configured apache2 and the bare, empty repository.  Using curl, I
>> can get the file HEAD without a password (seems .netrc is correct?).
>> However, when I try to push to the repository, I get the following:
>>
>> sdavis@lestrade:/tmp/testing> git push
>> http://sdavis@watson.nci.nih.gov/git/sean_git.git/ master
>> fatal: exec http-push failed.
>> error: failed to push some refs to
>> 'http://sdavis@watson.nci.nih.gov/git/sean_git.git/'
>>
>> What can I do to try to debug this, as the error message isn't helping
>> me to sort out what is wrong.  The client and server are both running
>> git-1.5.x (although the minor versions are a bit different).  Any
>> suggestions?
> Try cloning first.  And check the error log of apache.  I don't know how
> pushing over http works, but maybe you installed git into /usr/local and
> /usr/local/bin is not in the PATH for the apache user?

Thanks, Uwe.  Good idea.  On the client:

orf-01569049:/tmp sdavis$ git clone
http://sdavis@watson.nci.nih.gov/git/sean_git.git/
Initialized empty Git repository in /tmp/sean_git/.git/
cat: /tmp/sean_git/.git/refs/remotes/origin/master: No such file or directory
/usr/local/bin/git-clone: line 4: cd:
/tmp/sean_git/.git/refs/remotes/origin: No such file or directory
fatal: Not a valid object name HEAD

Nothing in the error_log on apache.  Why would git be looking for a
remotes origin since I am cloning from a remote source?

Sean

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Problems with git over http
  2008-09-20 17:13 Problems with git over http Sean Davis
  2008-09-20 18:42 ` Uwe Kleine-König
@ 2008-09-20 21:42 ` Jakub Narebski
  2008-09-20 22:27   ` Sean Davis
  2008-09-21 16:25 ` Matthieu Moy
  2 siblings, 1 reply; 7+ messages in thread
From: Jakub Narebski @ 2008-09-20 21:42 UTC (permalink / raw)
  To: Sean Davis; +Cc: git

"Sean Davis" <sdavis2@mail.nih.gov> writes:

> I am new to git and trying to set up a remote repository over http.  I
> have configured apache2 and the bare, empty repository.  Using curl, I
> can get the file HEAD without a password (seems .netrc is correct?).
> However, when I try to push to the repository, I get the following:
> 
> sdavis@lestrade:/tmp/testing> git push
> http://sdavis@watson.nci.nih.gov/git/sean_git.git/ master
> fatal: exec http-push failed.
> error: failed to push some refs to
> 'http://sdavis@watson.nci.nih.gov/git/sean_git.git/'

Errr... to _push_ via https you have to enable WebDAV.
See Documentation/howto/setup-git-server-over-http.txt
-- 
Jakub Narebski
Poland
ShadeHawk on #git

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Problems with git over http
  2008-09-20 21:42 ` Jakub Narebski
@ 2008-09-20 22:27   ` Sean Davis
  0 siblings, 0 replies; 7+ messages in thread
From: Sean Davis @ 2008-09-20 22:27 UTC (permalink / raw)
  To: Jakub Narebski; +Cc: git

On Sat, Sep 20, 2008 at 5:42 PM, Jakub Narebski <jnareb@gmail.com> wrote:
> "Sean Davis" <sdavis2@mail.nih.gov> writes:
>
>> I am new to git and trying to set up a remote repository over http.  I
>> have configured apache2 and the bare, empty repository.  Using curl, I
>> can get the file HEAD without a password (seems .netrc is correct?).
>> However, when I try to push to the repository, I get the following:
>>
>> sdavis@lestrade:/tmp/testing> git push
>> http://sdavis@watson.nci.nih.gov/git/sean_git.git/ master
>> fatal: exec http-push failed.
>> error: failed to push some refs to
>> 'http://sdavis@watson.nci.nih.gov/git/sean_git.git/'
>
> Errr... to _push_ via https you have to enable WebDAV.
> See Documentation/howto/setup-git-server-over-http.txt

WebDAV is enabled and authentication is working.

Sean

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Problems with git over http
  2008-09-20 17:13 Problems with git over http Sean Davis
  2008-09-20 18:42 ` Uwe Kleine-König
  2008-09-20 21:42 ` Jakub Narebski
@ 2008-09-21 16:25 ` Matthieu Moy
  2008-09-21 20:51   ` Sean Davis
  2 siblings, 1 reply; 7+ messages in thread
From: Matthieu Moy @ 2008-09-21 16:25 UTC (permalink / raw)
  To: Sean Davis; +Cc: git

"Sean Davis" <sdavis2@mail.nih.gov> writes:

> I am new to git and trying to set up a remote repository over http.  I
> have configured apache2 and the bare, empty repository.  Using curl, I
> can get the file HEAD without a password (seems .netrc is correct?).
> However, when I try to push to the repository, I get the following:
>
> sdavis@lestrade:/tmp/testing> git push
> http://sdavis@watson.nci.nih.gov/git/sean_git.git/ master
> fatal: exec http-push failed.

Do you have git-http-push somewhere? What does "git http-push" say?

Probably you have a version of Git compiled with a too old libcurl
(IIRC, it could have "worked", but a bug in the old libcurl could
cause repository corruption, and therefore, git refuses to build
http-push with such version of libcurl).

-- 
Matthieu

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Problems with git over http
  2008-09-21 16:25 ` Matthieu Moy
@ 2008-09-21 20:51   ` Sean Davis
  0 siblings, 0 replies; 7+ messages in thread
From: Sean Davis @ 2008-09-21 20:51 UTC (permalink / raw)
  To: Matthieu Moy; +Cc: git

On Sun, Sep 21, 2008 at 12:25 PM, Matthieu Moy <Matthieu.Moy@imag.fr> wrote:
> "Sean Davis" <sdavis2@mail.nih.gov> writes:
>
>> I am new to git and trying to set up a remote repository over http.  I
>> have configured apache2 and the bare, empty repository.  Using curl, I
>> can get the file HEAD without a password (seems .netrc is correct?).
>> However, when I try to push to the repository, I get the following:
>>
>> sdavis@lestrade:/tmp/testing> git push
>> http://sdavis@watson.nci.nih.gov/git/sean_git.git/ master
>> fatal: exec http-push failed.
>
> Do you have git-http-push somewhere? What does "git http-push" say?
>
> Probably you have a version of Git compiled with a too old libcurl
> (IIRC, it could have "worked", but a bug in the old libcurl could
> cause repository corruption, and therefore, git refuses to build
> http-push with such version of libcurl).

That was dumb on my part.  That is, indeed, an issue.  Both the mac
binary that I found and the rpm for opensuse do not include
git-http-push.

Sean

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2008-09-21 20:52 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-20 17:13 Problems with git over http Sean Davis
2008-09-20 18:42 ` Uwe Kleine-König
2008-09-20 20:40   ` Sean Davis
2008-09-20 21:42 ` Jakub Narebski
2008-09-20 22:27   ` Sean Davis
2008-09-21 16:25 ` Matthieu Moy
2008-09-21 20:51   ` Sean Davis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).