1. Marcin Kuzminski
  2. RhodeCode
  3. Issues


Issue #564 resolved

"IOError: [Errno 28] No space left on device" when push

Xpol Wan
created an issue

When i push a repo to server I got : {{{ HTTP Error: 500 (Internal Server Error) }}}

And I checked the paster.log, it says "IOError: [Errno 28] No space left on device"

{{{ 2012-09-12 11:52:42.441 INFO [rhodecode.lib.middleware.simplehg] push action on HG repo "l3/l3" 2012-09-12 11:52:44.042 ERROR [rhodecode.lib.middleware.simplehg] Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/RhodeCode-1.4.1-py2.7.egg/rhodecode/lib/middleware/simplehg.py", line 195, in _handle_request return app(environ, start_response) File "/usr/local/lib/python2.7/dist-packages/mercurial-2.3-py2.7-linux-x86_64.egg/mercurial/hgweb/hgweb_mod.py", line 92, in call return self.run_wsgi(req) File "/usr/local/lib/python2.7/dist-packages/mercurial-2.3-py2.7-linux-x86_64.egg/mercurial/hgweb/hgweb_mod.py", line 128, in run_wsgi return protocol.call(self.repo, req, cmd) File "/usr/local/lib/python2.7/dist-packages/mercurial-2.3-py2.7-linux-x86_64.egg/mercurial/hgweb/protocol.py", line 76, in call rsp = wireproto.dispatch(repo, p, cmd) File "/usr/local/lib/python2.7/dist-packages/mercurial-2.3-py2.7-linux-x86_64.egg/mercurial/wireproto.py", line 351, in dispatch return func(repo, proto, *args) File "/usr/local/lib/python2.7/dist-packages/mercurial-2.3-py2.7-linux-x86_64.egg/mercurial/wireproto.py", line 577, in unbundle proto.getfile(fp) File "/usr/local/lib/python2.7/dist-packages/mercurial-2.3-py2.7-linux-x86_64.egg/mercurial/hgweb/protocol.py", line 49, in getfile fp.write(s) IOError: [Errno 28] No space left on device


I checked the disk: df -h

{{{ Filesystem Size Used Avail Use% Mounted on /dev/md2 180G 1.9G 169G 2% / none 977M 240K 977M 1% /dev none 984M 0 984M 0% /dev/shm none 984M 48K 984M 1% /var/run none 984M 0 984M 0% /var/lock /dev/md1 462M 11M 428M 3% /tmp /dev/md3 734G 9.7G 687G 2% /var }}}

Could anyone know how this happens?

Comments (8)

  1. Xpol Wan reporter

    After a some test. i found that when push, it use the /tmp dir. which on my system is too small.

    Is there any to config RhodeCode use alternative dir for tmp usage?

  2. Xpol Wan reporter


    I tried add hook in both rhodecode and /etc/mercurial/hgrc none works. I googled, but has little information on pre-serve hook.

  3. Log in to comment