With a little side of applesauce...

Monday, January 29, 2007

Zope - Error Value: [Errno 28] No space left on device

I was trying to import a zexp file that was about 1.5GB, and kept getting:

Error Value: [Errno 28] No space left on device

After finding a reference to the /tmp dir here:

http://mail.zope.org/pipermail/zope/2002-May/114219.html

and checking to see where my /tmp lived, I found:

Filesystem Size Used Avail Use% Mounted on
/dev/hde3 1.8G 826M 866M 49% /
tmpfs 443M 0 443M 0% /dev/shm
/dev/md2 74G 7.1G 63G 11% /Inetpub
/dev/hde1 45M 9.4M 33M 23% /boot
/dev/md0 5.5G 770M 4.5G 15% /usr
/dev/md1 9.2G 393M 8.4G 5% /var

To work around this, I:

1. created a temporary /tmp directory in /Inetpub/tmp, and set the sticky bit on it:

chmod 1777 /Inetpub/tmp

2. moved the old /tmp:

mv /tmp /tmpOLD

3. created a symlink from the new tmp to the old location:

ln -s /Inetpub/tmp /tmp

2 comments:

speeves said...

Rasda sent the following tip, which is much easier than my workaround :)

<snip>
hello,

i googled this zope error and found your site.

if found this workaround which is much easier in my opinion:

open your "zopectl" with your favourite editor.
then add the line:
TMPDIR="/path/to/your/tmpdir"
and add TMPDIR to the line:
export PYTHONPATH INSTANCE_HOME SOFTWARE_HOME

stop and start your zope instance and be happy ;-)
</snip>

Thanks!!

speeves said...

rasda posted it at:
http://rasda.de/blog/?p=63