Temporary partition problem
In a machine that is not in my full control is a problem with running zopes that have mosterious databases getting close to 2 gigs. Now there are problems with temp files that Zope puts on /tmp partition that is only 200 megs. I've set in start script TMPDIR to be on /spool in start script with TMPDIR ='/spool/something' EXPORT TMPDIR, but Zope does not follow that. While doing a large copy operation /tmp gets filled AND operation fails, but space on /tmp will not be freed. Python 2.1.3 and Zope 2.6.0 I searched mailinglists and in the past someone has had similar problem, but solution was not said. Any help would be appreciated. -- -huima
On Friday 14 November 2003 10:17, Heimo Laukkanen wrote:
I've set in start script TMPDIR to be on /spool in start script with TMPDIR ='/spool/something' EXPORT TMPDIR, but Zope does not follow that.
For most things (if not all) Zope uses Pythons tempfile module. There are several ways you can tell it where to put temporary files. It will use TMPDIR, but some other environment variables have higher priority. Read tempfile.py for the full story, or try:
import tempfile tempfile.gettempdir() '/tmp'
-- Toby Dickenson
What OS and shell are running the start script? I'm starting zope in init.d on RH7/bash, and instead of what you had I put: set TMPDIR /blah/blah in the bash script just before starting zope and that worked. On Friday, November 14, 2003, at 05:17 AM, Heimo Laukkanen wrote:
In a machine that is not in my full control is a problem with running zopes that have mosterious databases getting close to 2 gigs. Now there are problems with temp files that Zope puts on /tmp partition that is only 200 megs.
I've set in start script TMPDIR to be on /spool in start script with TMPDIR ='/spool/something' EXPORT TMPDIR, but Zope does not follow that. While doing a large copy operation /tmp gets filled AND operation fails, but space on /tmp will not be freed.
Python 2.1.3 and Zope 2.6.0
I searched mailinglists and in the past someone has had similar problem, but solution was not said. Any help would be appreciated.
-- -huima
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
participants (3)
-
Heimo Laukkanen -
Marc Lindahl -
Toby Dickenson