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

Re: git-daemon serving repos with repo.git/git-daemon-export-ok

From
Jonathan Nieder <jrnieder@gmail.com>
Date
Jan 3, 2011, 23:11 UTC
Message-ID
<20110103231153.GA10733@burratino>
In-Reply-To
<4D224475.1090805@ecosensory.com>
Hi John,
John Griessen wrote:
> john@toolbench:~/EEProjects/test$ git clone git://ecosensory.com/tek_7k_ext.git
> Cloning into tek_7k_ext...
> fatal: protocol error: bad line length character: fata
[...]
Show 7 quoted lines
> Next I tried changing my command that runs git-daemon
> from
> 
> exec 2>&1
> echo 'git-daemon starting.'
> exec chpst -ugitdaemon \
>   "$(git --exec-path)"/git-daemon --verbose --base-path=/var/cache /var/cache/git

Worrisome. Based on /usr/share/doc/git-daemon-run/README.Debian, I would be interested in:

	git --version
	dpkg -l git-daemon-run
	sv stat git-daemon
	cat /var/log/git-daemon/current

It looks like the daemon is sending a malformed reply starting with "fatal: ", similar to the bug fixed by v1.7.0.3~7 (daemon: parse_host_and_port SIGSEGV if port is specified, 2010-03-20).

It the error message does not provide any insight, I'd also suggest using strace or ltrace to attach to the running git-daemon process to see what's going on.

Thanks for reporting, Jonathan

Previous: John GriessenNext: John Griessen
Message 3 of 8 in “git-daemon serving repos with repo.git/git-daemon-export-ok”
  1. John GriessenJan 3, 2011
  2. John GriessenJan 3, 2011
  3. Jonathan NiederJan 3, 2011
  4. John GriessenJan 3, 2011
  5. Jonathan NiederJan 3, 2011
  6. John GriessenJan 4, 2011
  7. Jonathan NiederJan 4, 2011
  8. Jonathan NiederJan 4, 2011

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.