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

Error cloning from Git Repository

From
KRkanagesh radhakrishnan <rkanagesh@gmail.com>
Date
May 7, 2009, 12:25 UTC
Message-ID
<ece1079f0905070525r636bf145tc9741de0ad90988@mail.gmail.com>
Hello All,

I am trying to setup a git repository and then publish it using git-daemon and inetd for other developers in the network to access the sources.

Server Setup ------------------- Host system running on Fedora Core 8 Git version 1.5.4.3

A summary of what I have done to setup the Git server is as follows: $ mkdir /home/kanagesh/test-repo $ cd test-repo $ vi test.c <insert text, save, quit> $ git-init-db $ git-config user.name kanagesh $ git-config user.email rkanagesh@gmail.com $ git-add test.c $ git-commit -a -m"Initial Commit"

# mkdir -p /var/cache/git
# ln -s /home/kanagesh/test-repo/.git test-repo
# ls -l
    test-repo -> /home/kanagesh/test-repo/.git

xinetd has been setup to listen for git requests on port 9418 and spawn git-daemon. This has been done by placing a config file named 'git' under /etc/xinetd.d. The contents of the config file is as follows:

service git
{
        disable        = no
        type            = UNLISTED
        port             = 9418
        socket_type = stream
        wait             = no
        user            = nobody
        server          = /usr/local/bin/git-daemon
        server_args     = --inetd --export-all
--base-path=/var/cache/git --syslog --verbose
        log_on_failure  += USERID
}

Clone from the Server ------------------------------- When I attempt to clone the source from the Git server, I end up with the following error:

[kanagesh@localhost test]$ git-clone git://192.168.13.171/test-repo Initialized empty Git repository in /home/kanagesh/work/test/test-repo/.git/ fatal: The remote end hung up unexpectedly fetch-pack from 'git://192.168.13.171/test-repo' failed.

On checking the log messages in /var/log/messages, I see the following:

May 7 17:29:19 localhost xinetd[17108]: START: git pid=17128 from=::ffff:192.168.13.171 May 7 17:29:19 localhost git-daemon: [17128] Connection from 192.168.13.171:42360 May 7 17:29:19 localhost git-daemon: [17128] Extended attributes (21 bytes) exist <host=192.168.13.171> May 7 17:29:19 localhost git-daemon: [17128] Request upload-pack for '/test-repo' May 7 17:29:19 localhost xinetd[17108]: EXIT: git status=255 pid=17128 duration=0(sec)

Can anyone tell me what I am doing incorrectly? Any pointers on how to get a more verbose log from git-daemon would also be very helpful.

Thanks in advance.

Regards, Kanagesh

Message 1 of 1 in “Error cloning from Git Repository”
  1. kanagesh radhakrishnanMay 7, 2009

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.