git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* setting up a git repo on apache
@ 2006-08-09 15:58 Alan Larkin
  2006-08-09 16:35 ` Johannes Schindelin
  2006-08-09 16:43 ` Rutger Nijlunsing
  0 siblings, 2 replies; 6+ messages in thread
From: Alan Larkin @ 2006-08-09 15:58 UTC (permalink / raw
  To: git

New user ... Hi.

I realise that this is really an apache question, but Im not getting any
help from their mailing lists and figure that there must be someone here
whos done this.

Can someone please help me get a GIT repo running on Apache 2.
Specifically my problem is with DAV.

$ git push http://localhost:/webdav/git/myproj master
Error: no DAV locking support on remote repo

I have dav_fs.conf, dav_fs.load, and dav.load in mods-enabled. They
load the modules and set

DAVLockDB /var/lock/apache2/DAV.lock

Apache owns and has full access to that directory.

I have removed all .htaccess files below /var/www/webdav. I am not
using any form of authentication. I have tried with and without aliases
for the repo directory. I have tried setting DAV on for
/var/www/webdav/git, and /var/www/webdav/git/myproj.

Its always the same. No DAV locking support.

If could help or even point me to some appropriate documentation (Ive
looked and looked and cant find any) Id appreciate it.

Thanks.

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

* Re: setting up a git repo on apache
  2006-08-09 15:58 setting up a git repo on apache Alan Larkin
@ 2006-08-09 16:35 ` Johannes Schindelin
  2006-08-09 17:01   ` Alan Larkin
  2006-08-10  9:43   ` Alan Larkin
  2006-08-09 16:43 ` Rutger Nijlunsing
  1 sibling, 2 replies; 6+ messages in thread
From: Johannes Schindelin @ 2006-08-09 16:35 UTC (permalink / raw
  To: Alan Larkin; +Cc: git

Hi,

On Wed, 9 Aug 2006, Alan Larkin wrote:

> $ git push http://localhost:/webdav/git/myproj master
> Error: no DAV locking support on remote repo

What do the access_log and the error_log say about this?

It could also be that you have a "Require valid-user" somewhere in there 
by mistake.

Further, you might want to check if it works _with_ authentication (I 
never tried without, and I am not sure if it should be allowed to begin 
with).

There is a recent thread by Junio, Rutger and me, which might help you:

http://thread.gmane.org/gmane.comp.version-control.git/24816/focus=24861

Hth,
Dscho

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

* Re: setting up a git repo on apache
  2006-08-09 15:58 setting up a git repo on apache Alan Larkin
  2006-08-09 16:35 ` Johannes Schindelin
@ 2006-08-09 16:43 ` Rutger Nijlunsing
  2006-08-09 17:02   ` Alan Larkin
  1 sibling, 1 reply; 6+ messages in thread
From: Rutger Nijlunsing @ 2006-08-09 16:43 UTC (permalink / raw
  To: Alan Larkin; +Cc: git

On Wed, Aug 09, 2006 at 04:58:03PM +0100, Alan Larkin wrote:
> New user ... Hi.
> 
> I realise that this is really an apache question, but Im not getting any
> help from their mailing lists and figure that there must be someone here
> whos done this.
> 
> Can someone please help me get a GIT repo running on Apache 2.
> Specifically my problem is with DAV.
> 
> $ git push http://localhost:/webdav/git/myproj master
> Error: no DAV locking support on remote repo

This 'localhost:' is a typo, right?

(just to be sure)


-- 
Rutger Nijlunsing ---------------------------------- eludias ed dse.nl
never attribute to a conspiracy which can be explained by incompetence
----------------------------------------------------------------------

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

* Re: setting up a git repo on apache
  2006-08-09 16:35 ` Johannes Schindelin
@ 2006-08-09 17:01   ` Alan Larkin
  2006-08-10  9:43   ` Alan Larkin
  1 sibling, 0 replies; 6+ messages in thread
From: Alan Larkin @ 2006-08-09 17:01 UTC (permalink / raw
  To: git

Johannes Schindelin wrote:
> Hi,
> 
> On Wed, 9 Aug 2006, Alan Larkin wrote:
> 
>> $ git push http://localhost:/webdav/git/myproj master
>> Error: no DAV locking support on remote repo
> 
> What do the access_log and the error_log say about this?
> 
> It could also be that you have a "Require valid-user" somewhere in there 
> by mistake.
> 
> Further, you might want to check if it works _with_ authentication (I 
> never tried without, and I am not sure if it should be allowed to begin 
> with).
> 
> There is a recent thread by Junio, Rutger and me, which might help you:
> 
> http://thread.gmane.org/gmane.comp.version-control.git/24816/focus=24861
> 
> Hth,
> Dscho
> 
> 
> 

I initially had authentication in place (which was working insofar as I
couldnt browse the repo without logging in) but I removed it to simplify
the process of tracking down the DAV problem. I have also removed all
.htaccess files so nothing can be overriding apache2.conf and that only
contains:

<Directory /var/www/webdav>
	Order allow,deny
        Allow from localhost
        DAV on
</Directory>


Ill look into that previous thread. Apologies for not finding it before
posting.

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

* Re: setting up a git repo on apache
  2006-08-09 16:43 ` Rutger Nijlunsing
@ 2006-08-09 17:02   ` Alan Larkin
  0 siblings, 0 replies; 6+ messages in thread
From: Alan Larkin @ 2006-08-09 17:02 UTC (permalink / raw
  To: git

Rutger Nijlunsing wrote:
> On Wed, Aug 09, 2006 at 04:58:03PM +0100, Alan Larkin wrote:
>> New user ... Hi.
>>
>> I realise that this is really an apache question, but Im not getting any
>> help from their mailing lists and figure that there must be someone here
>> whos done this.
>>
>> Can someone please help me get a GIT repo running on Apache 2.
>> Specifically my problem is with DAV.
>>
>> $ git push http://localhost:/webdav/git/myproj master
>> Error: no DAV locking support on remote repo
> 
> This 'localhost:' is a typo, right?
> 
> (just to be sure)
> 
> 

Um ... it wasnt actually. I was copying this line from "A git core
tutorial for developers":

$ git push <public-host>:/path/to/my-git.git master

Although I did think it curious enough to try it with and without the
colon (it is the colon youre questioning right?).

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

* Re: setting up a git repo on apache
  2006-08-09 16:35 ` Johannes Schindelin
  2006-08-09 17:01   ` Alan Larkin
@ 2006-08-10  9:43   ` Alan Larkin
  1 sibling, 0 replies; 6+ messages in thread
From: Alan Larkin @ 2006-08-10  9:43 UTC (permalink / raw
  To: git

Johannes Schindelin wrote:
> Hi,
> 
> On Wed, 9 Aug 2006, Alan Larkin wrote:
> 
>> $ git push http://localhost:/webdav/git/myproj master
>> Error: no DAV locking support on remote repo
> 
> What do the access_log and the error_log say about this?
> 
> It could also be that you have a "Require valid-user" somewhere in there 
> by mistake.
> 
> Further, you might want to check if it works _with_ authentication (I 
> never tried without, and I am not sure if it should be allowed to begin 
> with).
> 
> There is a recent thread by Junio, Rutger and me, which might help you:
> 
> http://thread.gmane.org/gmane.comp.version-control.git/24816/focus=24861
> 
> Hth,
> Dscho
> 
> 
> 
For the record, I followed the steps in the above linked thread as
closely as possible but the problem persists. It did however contain the
suggestion to use litmus to test the webdav and thats proving curious
insofar as several tests are failing, but in a not entirely reproducible
way. I mean, on one test I might see

14. cond_put.............. FAIL (PUT conditional on lock and etag
failed: 412 Precondition Failed)
15. fail_cond_put......... pass
16. cond_put_with_not..... pass
17. cond_put_corrupt_token WARNING: PUT failed with 400 not 423
    ...................... pass (with 1 warning)
18. complex_cond_put...... FAIL (PUT with complex conditional failed:
412 Precondition Failed)

and if run again I might see

14. cond_put.............. pass
15. fail_cond_put......... pass
16. cond_put_with_not..... pass
17. cond_put_corrupt_token WARNING: PUT failed with 400 not 423
    ...................... pass (with 1 warning)
18. complex_cond_put...... FAIL (PUT with complex conditional failed:
412 Precondition Failed)

and on another a different combination.

But this has no real place here, so I shall off and try find the
solution elsewhere and post back if its relevant.

Thanks for the help.

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

end of thread, other threads:[~2006-08-10  9:43 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-09 15:58 setting up a git repo on apache Alan Larkin
2006-08-09 16:35 ` Johannes Schindelin
2006-08-09 17:01   ` Alan Larkin
2006-08-10  9:43   ` Alan Larkin
2006-08-09 16:43 ` Rutger Nijlunsing
2006-08-09 17:02   ` Alan Larkin

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).