git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: git xinet service setup questions
       [not found] <827742.53287.qm@web56014.mail.re3.yahoo.com>
@ 2008-01-03 20:35 ` Junio C Hamano
  0 siblings, 0 replies; only message in thread
From: Junio C Hamano @ 2008-01-03 20:35 UTC (permalink / raw)
  To: Scott L Baker; +Cc: git, torvalds

Scott L Baker <freecycler23@yahoo.com> writes:

> This is probably a simple mistake on my part.. so apologies in advance..
>
> I am trying to setup a git server and I have a few questions.
> My sys-admin (I do not have root access) setup an xinet service, e.g.

Addressing individuals for this kind of help requests is an
inefficient way to resolve problems.  I've tried to spawn
git-daemon from inetd just as a test to make sure it works in
the past, but I personally never have run xinetd.

You would have better luck finding somebody who have used xinetd
to run git-daemon if you asked git@vger.kernel.org mailing list,
which you can send mails to without subscribing yourself.

Having said that...

>>> cat /etc/xinetd.d/git-daemon
>
> # default: off
> # description: The git server offers access to git repositories service git
> service git
> {
>         disable = no
>         type            = UNLISTED
>         port            = 9418
>         socket_type    = stream
>         wait            = no
>         user            = nobody
>         server          = /usr/intel/bin/git-daemon
>         server_args    = --inetd --syslog --export-all --base-path=/git
>         log_on_failure  += USERID
> }
>
> I then created a repo in /git/myrepo and tried to clone it..
>
>>> git clone git://plxc1214.pdx/git/myrepo
>
> Initialized empty Git repository in /users/myuser/junk/myrepo/.git/
> fatal: The remote end hung up unexpectedly
> fetch-pack from 'git://plxc1214.pdx/git/myrepo' failed.
>
> Is the xinet service setup correctly?
> What is the correct syntax for cloning from the local xinet service?
>
> Thanks,
> Scott L Baker

The first thing you would want to try is to see if it is xinetd
or git-daemon that is misconfigured.  Try running the daemon
without xinetd involved and see if you can access the
repository.  I think there is something in Documentation/howto/*
on running the daemon.

The --base-path is used to hide the (often unsightly) leading
prefix from the general public.  If you are trying to fetch from
git://plxc1214.pdx/git/myrepo, the --base-path I see in your
configuration would mean the repository is at /git/git/myrepo
directory on the filesystem.  Is it the case?  Does it help to
try cloning from git://plxc1214.pdx/myrepo instead?

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-01-03 20:36 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <827742.53287.qm@web56014.mail.re3.yahoo.com>
2008-01-03 20:35 ` git xinet service setup questions Junio C Hamano

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).