From: Tim Ansell <mithro@mithis.com>
To: git@vger.kernel.org
Subject: Problem with git-daemon and mmap.
Date: Wed, 25 Apr 2007 16:21:15 +0930 [thread overview]
Message-ID: <1177483875.12689.22.camel@localhost> (raw)
Hello,
I am trying to use git-daemon on a Debian stable machine. We converted
our repositories from darcs to git using tailor (which seemed to work
well). Most of the repositories work fine, however our web repository
which is quite large (about ~126Mb) is causing problems when trying to
clone via git-daemon.
The repository is public, you can find our gitweb here
http://git.thousandparsec.net/gitweb/gitweb.cgi?p=web.git;a=summary
You can clone using the following URLs,
http://git.thousandparsec.net/git/web.git
git://git.thousandparsec.net/git/web.git
git+ssh://<username>@git.thousandparsec.net/git/web.git
I can clone the repository fine locally (using both cg-clone and
git-clone) and with both git+ssh:// and http://
When trying to clone via git-daemon the git-daemon process dies with an
the following error (in the git-daemon logs - timestamps trimmed to make
the log more readable),
[30957] Connection from 203.122.246.117:20108
[30957] Extended attributes (29 bytes) exist
<host=git.thousandparsec.net>
[30957] Request upload-pack for '/git/web.git'
fatal: Out of memory? mmap failed: Bad file descriptor
error: git-upload-pack: git-rev-list died with error.
fatal: git-upload-pack: aborting due to possible repository corruption
on the remote side.
[30957] Disconnected (with error)
On the client side you see,
<snip>
remote: Generating pack...
remote: aborting due to possible repository corruption on the remote
side.
fatal: early EOF
fatal: index-pack died with error code 128
<snip>
After chatting with people on #git (on freenode) I was able to produce a
strace for this, you can find a copy of this strace log here,
http://www.thousandparsec.net/~tim/strace.log
The machine as only 512mb of Ram. It isn't running much else apart from
a few websites served via apache. Here is some more (hopefully useful)
information about the machine,
verbal:~# cat /proc/meminfo
MemTotal: 500536 kB
MemFree: 20556 kB
<snip>
SwapTotal: 1542232 kB
SwapFree: 1542200 kB
verbal:~# dpkg --list | grep git
ii cogito 0.18.2-1
version control system
ii git-core 1.5.1.1-1
fast, scalable, distributed revision control
ii git-daemon-run 1.5.1.1-1
fast, scalable, distributed revision control
ii gitweb 1.5.1.1-1
fast, scalable, distributed revision control
verbal:~# git --version
git version 1.5.1.1
Hopefully this gives you enough information to track down this bug. I'm
happy to provide more information if needed. I'll also be on #git, but
I'm in Australia so you might have a hard time catching me.
Thank you for your time.
Tim Ansell
--
http://blog.mithis.net/ - Mithro Rants about Stuff
next reply other threads:[~2007-04-25 7:13 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-04-25 6:51 Tim Ansell [this message]
2007-04-25 7:42 ` Problem with git-daemon and mmap Gerrit Pape
2007-04-25 8:01 ` Tim Ansell
2007-04-25 8:11 ` Gerrit Pape
2007-04-25 7:43 ` Shawn O. Pearce
2007-04-25 16:13 ` Linus Torvalds
2007-04-25 8:17 ` Alex Riesen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1177483875.12689.22.camel@localhost \
--to=mithro@mithis.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).