Bug 461726 - git xinetd config is invalid
Summary: git xinetd config is invalid
Status: RESOLVED DUPLICATE of bug 495060
Alias: None
Product: openSUSE.org
Classification: openSUSE
Component: 3rd party software (show other bugs)
Version: unspecified
Hardware: Other Other
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Petr Baudis
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-12-22 20:08 UTC by Peter Poeml
Modified: 2010-06-01 01:22 UTC (History)
1 user (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Poeml 2008-12-22 20:08:06 UTC
{20}root@svn:/srv/git/repositories# Dec 22 21:05:43 svn git-daemon: [8013] base-path '"/srv/git/repositories"' does not exist or is not a directory

 % git clone git://git.opensuse.org/people/dmacvicar/software-service.git
Initialize software-service/.git
Initialized empty Git repository in /tmp/git/software-service/.git/
fatal: read error (Connection reset by peer)
[1]    12204 exit 128   git clone git://git.opensuse.org/people/dmacvicar/software-service.git


This is due to 
server_args     = daemon --syslog --detach --reuseaddr --user=git-daemon --group=nogroup --pid-file=/var/run/git-daemon.pid --base-path="/srv/git/repositories"
in /etc/xinet.d/git.
Comment 1 Peter Poeml 2008-12-22 20:09:39 UTC
Another problem is that git can't write its pid file. It's started with:
  --pid-file=/var/run/git-daemon.pid

Dec 22 21:07:22 svn git-daemon: [8056] cannot open pid file /var/run/git-daemon.pid: Permission denied

drwxr-xr-x 11 root root 704 2008-12-22 21:06 /var/run/
Comment 2 Peter Poeml 2008-12-22 20:19:51 UTC
Looking at the build service, the package doesn't seem to be maintained
by Takashi in fact. Petr, could you have a look please?

There seem to be more problems in the setup. The next one I run into is 
that git doesn't work with the error message
Dec 22 21:16:01 svn git-daemon: [8275] cannot drop privileges
(after I configured the pid file location to a writable place)

This blocks git.opensuse.org deployment at the moment.
Comment 3 Peter Poeml 2008-12-22 20:54:15 UTC
The following configuration seems to work:

service git
{
        disable = yes
        socket_type     = stream
        protocol        = tcp
        wait            = no
        user            = git-daemon
        group           = nogroup
        server          = /usr/bin/git
        server_args     = daemon --inetd --syslog --detach --reuseaddr --base-path=/srv/git
        type            = UNLISTED
        port            = 9418
        log_on_failure  += USERID
}

Comment 4 Petr Baudis 2010-06-01 01:22:31 UTC
Sorry for the delay; I have already fixed this within another bugreport.

*** This bug has been marked as a duplicate of bug 495060 ***