* (osx 10.4.11) can't push from linux to Apache on mac: can't access location
@ 2010-06-13 0:48 ddw_music
2010-06-13 5:23 ` Tay Ray Chuan
0 siblings, 1 reply; 9+ messages in thread
From: ddw_music @ 2010-06-13 0:48 UTC (permalink / raw)
To: git
Apologies if this has been covered in the past -- I searched the nabble
archives but didn't find the answer.
I'm new to git, and wanted to synchronize repositories between my main
machine (OSX 10.4.11) and satellite net book (puredyne 9.10, based on ubuntu
karmic). I've gotten as far as being able to get the directory listing in
Firefox on the Mac (same machine where Apache is running) at
http://ip.address/~username/git/kc ('git/kc' is the bare repository under
~/Sites/).
I tried to follow the directions in setup-git-server-over-http.txt:
- added at the end of the load module section of httpd.conf:
LoadModule dav_module libexec/httpd/libdav.so
- added at the end of the add module section of httpd.conf:
AddModule mod_dav.c
- added at the end of the file, just above the final "include":
DAVLockDB "/usr/local/apache2/temp/DAV.lock"
<Location /git/kc>
DAV on
AuthType Basic
AuthName "Git"
AuthUserFile /usr/local/apache2/conf/passwd.git
Require valid-user
</Location>
- chmod -R ugo+w ~/Sites/git
git clone works.
git push... fails. The remote machine says that it couldn't access the
location. Apache's access log shows:
"PROPFIND /~dewdrop/git/kc/ HTTP/1.1" 404 288
404? The folder most certainly exists.
Anyway, I'm confused. I'm not an expert in Web server configuration, would
appreciate some advice.
Thanks!
James
--
View this message in context: http://git.661346.n2.nabble.com/osx-10-4-11-can-t-push-from-linux-to-Apache-on-mac-can-t-access-location-tp5173157p5173157.html
Sent from the git mailing list archive at Nabble.com.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: (osx 10.4.11) can't push from linux to Apache on mac: can't access location
2010-06-13 0:48 (osx 10.4.11) can't push from linux to Apache on mac: can't access location ddw_music
@ 2010-06-13 5:23 ` Tay Ray Chuan
2010-06-13 6:35 ` ddw_music
2010-06-17 22:26 ` mobi phil
0 siblings, 2 replies; 9+ messages in thread
From: Tay Ray Chuan @ 2010-06-13 5:23 UTC (permalink / raw)
To: ddw_music; +Cc: git
On Sun, Jun 13, 2010 at 8:48 AM, ddw_music <jamshark70@gmail.com> wrote:
>[snip]
>
> DAVLockDB "/usr/local/apache2/temp/DAV.lock"
>
> <Location /git/kc>
> DAV on
> AuthType Basic
> AuthName "Git"
> AuthUserFile /usr/local/apache2/conf/passwd.git
> Require valid-user
> </Location>
>
> - chmod -R ugo+w ~/Sites/git
>
> git clone works.
>
> git push... fails. The remote machine says that it couldn't access the
> location. Apache's access log shows:
>
> "PROPFIND /~dewdrop/git/kc/ HTTP/1.1" 404 288
Where are you pushing to? Look at your <Location> again - you
configured Apache to look out for '/git/kc/', not '/~dewdrop/git/kc/'.
I'm assuming the <Location> isn't nested in something else, that is.
--
Cheers,
Ray Chuan
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: (osx 10.4.11) can't push from linux to Apache on mac: can't access location
2010-06-13 5:23 ` Tay Ray Chuan
@ 2010-06-13 6:35 ` ddw_music
2010-06-13 7:20 ` Tay Ray Chuan
2010-06-17 22:26 ` mobi phil
1 sibling, 1 reply; 9+ messages in thread
From: ddw_music @ 2010-06-13 6:35 UTC (permalink / raw)
To: git
Tay Ray Chuan wrote:
>
> Where are you pushing to? Look at your <Location> again - you
> configured Apache to look out for '/git/kc/', not '/~dewdrop/git/kc/'.
>
Ah... of course. Now I do get the directory listing of the repository on the
remote machine.
Still a problem pushing, though: the famous "cannot lock existing info/refs"
message. I see a reference on a Google group -- a problem/solution post* --
but that's inaccessible to me from mainland China. Likely to be something
simple, but I have actual work that I need to get back to at the moment :-)
* groups.google.com/group/.../0792d1750d764225
Thanks for further advice.
James
--
View this message in context: http://git.661346.n2.nabble.com/osx-10-4-11-can-t-push-from-linux-to-Apache-on-mac-can-t-access-location-tp5173157p5173593.html
Sent from the git mailing list archive at Nabble.com.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: (osx 10.4.11) can't push from linux to Apache on mac: can't access location
2010-06-13 6:35 ` ddw_music
@ 2010-06-13 7:20 ` Tay Ray Chuan
2010-06-13 10:28 ` ddw_music
0 siblings, 1 reply; 9+ messages in thread
From: Tay Ray Chuan @ 2010-06-13 7:20 UTC (permalink / raw)
To: ddw_music; +Cc: git
Hi,
On Sun, Jun 13, 2010 at 2:35 PM, ddw_music <jamshark70@gmail.com> wrote:
> Still a problem pushing, though: the famous "cannot lock existing info/refs"
> message. I see a reference on a Google group -- a problem/solution post* --
> but that's inaccessible to me from mainland China. Likely to be something
> simple, but I have actual work that I need to get back to at the moment :-)
I vaguely remember encountering this. Use a dav client, like cadaver,
to manually release the lock.
$ cadaver http://yourserver/git/kc/
> discover info/refs
<bla bla: look for the lock token>
> unlock <token>
Sorry if this looks vague - I don't have access to a DAV server.
--
Cheers,
Ray Chuan
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: (osx 10.4.11) can't push from linux to Apache on mac: can't access location
2010-06-13 7:20 ` Tay Ray Chuan
@ 2010-06-13 10:28 ` ddw_music
2010-06-13 10:44 ` Jakub Narebski
0 siblings, 1 reply; 9+ messages in thread
From: ddw_music @ 2010-06-13 10:28 UTC (permalink / raw)
To: git
Tay Ray Chuan wrote:
>
> I vaguely remember encountering this. Use a dav client, like cadaver,
> to manually release the lock.
>
> $ cadaver http://yourserver/git/kc/
> > discover info/refs
>
> <bla bla: look for the lock token>
> > unlock <token>
>
I do appreciate the help... unfortunately, cadaver reports no locks but the
error persists...
For my purposes, I think I can use git-daemon. It's approaching the point
where it will not be worth dealing with the Apache layer. Unless there is a
simple solution, the HTTP approach seems to be adding complexity without
much benefit.
If anyone out there knows of a straightforward way to set this up, I'm eager
to hear it. (By "straightforward," I mean I'm out of time to fiddle around
with it much more.) If there is no straightforward way, git-daemon it will
be for me.
Thanks.
James
--
View this message in context: http://git.661346.n2.nabble.com/osx-10-4-11-can-t-push-from-linux-to-Apache-on-mac-can-t-access-location-tp5173157p5173934.html
Sent from the git mailing list archive at Nabble.com.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: (osx 10.4.11) can't push from linux to Apache on mac: can't access location
2010-06-13 10:28 ` ddw_music
@ 2010-06-13 10:44 ` Jakub Narebski
2010-06-13 11:56 ` ddw_music
0 siblings, 1 reply; 9+ messages in thread
From: Jakub Narebski @ 2010-06-13 10:44 UTC (permalink / raw)
To: ddw_music; +Cc: git, Tay Ray Chuan
ddw_music <jamshark70@gmail.com> writes:
> Tay Ray Chuan wrote:
> >
> > I vaguely remember encountering this. Use a dav client, like cadaver,
> > to manually release the lock.
> >
> > $ cadaver http://yourserver/git/kc/
> > > discover info/refs
> >
> > <bla bla: look for the lock token>
> > > unlock <token>
> >
>
> I do appreciate the help... unfortunately, cadaver reports no locks but the
> error persists...
>
> For my purposes, I think I can use git-daemon. It's approaching the point
> where it will not be worth dealing with the Apache layer. Unless there is a
> simple solution, the HTTP approach seems to be adding complexity without
> much benefit.
>
> If anyone out there knows of a straightforward way to set this up, I'm eager
> to hear it. (By "straightforward," I mean I'm out of time to fiddle around
> with it much more.) If there is no straightforward way, git-daemon it will
> be for me.
Why can't you use SSH for pushing instead of "dumb" HTTPS via WebDAV?
This would require having sshd (SSH daemon, i.e. SSH server) installed,
and perhaps Gitosis or Gitolite for access control (so one can use only
single shell account).
git-daemon in default configuration doesn't allow pushing.
I don't know if new "smart" HTTP has support for pushing, and whether
it would be easier to set up than WebDAV..
P.S. You did run git-update-server-info (and added it to 'update'
hook), didn't you?
--
Jakub Narebski
Poland
ShadeHawk on #git
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: (osx 10.4.11) can't push from linux to Apache on mac: can't access location
2010-06-13 10:44 ` Jakub Narebski
@ 2010-06-13 11:56 ` ddw_music
2010-06-13 12:38 ` Jakub Narebski
0 siblings, 1 reply; 9+ messages in thread
From: ddw_music @ 2010-06-13 11:56 UTC (permalink / raw)
To: git
Jakub Narebski wrote:
>
> Why can't you use SSH for pushing instead of "dumb" HTTPS via WebDAV?
> This would require having sshd (SSH daemon, i.e. SSH server) installed,
> and perhaps Gitosis or Gitolite for access control (so one can use only
> single shell account).
>
I'll consider that later on. For the moment -- I spent probably five or six
hours today and fiddling around with the configuration, and I don't have
time to look at any other tools (gitosis etc). (At least osx comes with
"Remote Login" == sshd preinstalled.)
While experimenting with git-daemon this morning, I did get the
functionality that I need working by enabling receive-pack. Yes, I know
that's a security risk, but I'm the only user, behind a hardware router (no
exposed IP address) and I will have the daemon running only for a few
minutes at a time when needed for sync.
I realize this isn't the "correct" or "optimal" configuration, but I know
that it will work for the moment and, as stated, I simply won't have any
further time for experimentation for the next few weeks.
> P.S. You did run git-update-server-info (and added it to 'update' hook),
> didn't you?
>
Yes, no help.
Thanks, in any case - it's a good tip for the future (and word to the wise
to git noobs who find this in the list archives: avoid HTTP!).
James
--
View this message in context: http://git.661346.n2.nabble.com/osx-10-4-11-can-t-push-from-linux-to-Apache-on-mac-can-t-access-location-tp5173157p5174101.html
Sent from the git mailing list archive at Nabble.com.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: (osx 10.4.11) can't push from linux to Apache on mac: can't access location
2010-06-13 11:56 ` ddw_music
@ 2010-06-13 12:38 ` Jakub Narebski
0 siblings, 0 replies; 9+ messages in thread
From: Jakub Narebski @ 2010-06-13 12:38 UTC (permalink / raw)
To: ddw_music; +Cc: git
ddw_music <jamshark70@gmail.com> writes:
> Jakub Narebski wrote:
> >
> > Why can't you use SSH for pushing instead of "dumb" HTTPS via WebDAV?
> > This would require having sshd (SSH daemon, i.e. SSH server) installed,
> > and perhaps Gitosis or Gitolite for access control (so one can use only
> > single shell account).
> >
>
> I'll consider that later on. For the moment -- I spent probably five or six
> hours today and fiddling around with the configuration, and I don't have
> time to look at any other tools (gitosis etc). (At least osx comes with
> "Remote Login" == sshd preinstalled.)
Gitosis / Gitolite would be needed only if there are many people that
you want to have SSH access to git repositories without giving them
all shell access...
>
> While experimenting with git-daemon this morning, I did get the
> functionality that I need working by enabling receive-pack. Yes, I know
> that's a security risk, but I'm the only user, behind a hardware router (no
> exposed IP address) and I will have the daemon running only for a few
> minutes at a time when needed for sync.
>
> I realize this isn't the "correct" or "optimal" configuration, but I know
> that it will work for the moment and, as stated, I simply won't have any
> further time for experimentation for the next few weeks.
...but in your situation it would be anough to have on server (i.e. on
computer you want to push to) to have sshd and git installed, and have
sshd enabled (turned on) and git available in your $PATH on server.
Then
git push <user>@<host>:/path/to/repo.git <branch>
should work (or you can configure remote).
--
Jakub Narebski
Poland
ShadeHawk on #git
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: (osx 10.4.11) can't push from linux to Apache on mac: can't access location
2010-06-13 5:23 ` Tay Ray Chuan
2010-06-13 6:35 ` ddw_music
@ 2010-06-17 22:26 ` mobi phil
1 sibling, 0 replies; 9+ messages in thread
From: mobi phil @ 2010-06-17 22:26 UTC (permalink / raw)
To: Tay Ray Chuan; +Cc: ddw_music, git
was here to report something, and found the post... maybe the
following article can help you:
http://www.mobiphil.com/2010/03/git-on-shared-hosting-with-git-http-backend/#comment-11347
regards
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2010-06-17 22:26 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-13 0:48 (osx 10.4.11) can't push from linux to Apache on mac: can't access location ddw_music
2010-06-13 5:23 ` Tay Ray Chuan
2010-06-13 6:35 ` ddw_music
2010-06-13 7:20 ` Tay Ray Chuan
2010-06-13 10:28 ` ddw_music
2010-06-13 10:44 ` Jakub Narebski
2010-06-13 11:56 ` ddw_music
2010-06-13 12:38 ` Jakub Narebski
2010-06-17 22:26 ` mobi phil
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).