git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: git xinet service setup questions

From
Junio C Hamano <gitster@pobox.com>
Date
Jan 3, 2008, 20:35 UTC
Message-ID
<7vk5mqpryq.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<827742.53287.qm@web56014.mail.re3.yahoo.com>
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...
Show 30 quoted lines
>>> 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?

Message 1 of 1 in “Re: git xinet service setup questions”
  1. Junio C HamanoJan 3, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.