Thread (1 message) 1 message, 1 author, 2016-06-15

Re: git xinet service setup questions

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:44:02

Scott L Baker [off-list ref] 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...
quoted
quoted
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..
quoted
quoted
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?
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help