[ZODB-Dev] pack database increases its size by 5Mb

Courtland Idstrom court@pixar.com
Wed, 31 Jul 2002 09:16:56 -0700 (PDT)


Hi -

I'm having trouble packing my zope database from the web interface. I have
a script that runs and updates a bunch of files, and thus it creates a lot
of undo information.  So I want to pack it in order to remove this.
Unfortunately, my pack db doesn't seem to work, it instead increases the
size of my database by about 5Mb each time. With about 300 html files in
Zope, I'm up to >250Mb database size. Here is my version information:

Zope Version
(Zope 2.5.1 (source release, python 2.1, linux2), python 2.1.1, linux2)

Python Version
2.1.1 (#1, Jun 10 2002, 11:11:21) [GCC 3.1]

System Platform
linux2

Additionally, when I press the pack button, it gives me the following
message

 Error Type: IOError
Error Value: [Errno 13] Permission denied:
'/pixar/d2/sets/www/share/zope/var/Data.fs'

Traceback (innermost last):
  File /tmp/d2-build/Zope-2.5.1-src/lib/python/ZPublisher/Publish.py, line
150, in publish_module
  File /tmp/d2-build/Zope-2.5.1-src/lib/python/ZPublisher/Publish.py, line
114, in publish
  File /tmp/d2-build/Zope-2.5.1-src/lib/python/Zope/__init__.py, line 159,
in zpublisher_exception_hook
    (Object: DatabaseManagement)
  File /tmp/d2-build/Zope-2.5.1-src/lib/python/ZPublisher/Publish.py, line
98, in publish
  File /tmp/d2-build/Zope-2.5.1-src/lib/python/ZPublisher/mapply.py, line
88, in mapply
    (Object: manage_pack)
  File /tmp/d2-build/Zope-2.5.1-src/lib/python/ZPublisher/Publish.py, line
39, in call_object
    (Object: manage_pack)
  File /tmp/d2-build/Zope-2.5.1-src/lib/python/App/ApplicationManager.py,
line 350, in manage_pack
    (Object: Control_Panel)
  File /tmp/d2-build/Zope-2.5.1-src/lib/python/ZODB/DB.py, line 479, in
pack
  File /tmp/d2-build/Zope-2.5.1-src/lib/python/ZODB/FileStorage.py, line
1396, in pack
    (Object: /pixar/d2/sets/www/share/zope/var/Data.fs)
IOError: (see above)

The file system console shows the following:

2002-07-31T16:15:01 ERROR(200) ZODB packing
Traceback (innermost last):
  File /tmp/d2-build/Zope-2.5.1-src/lib/python/ZODB/DB.py, line 479, in
pack
  File /tmp/d2-build/Zope-2.5.1-src/lib/python/ZODB/FileStorage.py, line
1396, in pack
    (Object: /pixar/d2/sets/www/share/zope/var/Data.fs)
IOError: [Errno 13] Permission denied:
'/pixar/d2/sets/www/share/zope/var/Data.fs'

And says in the console that it is unable to access the Data.fs file. If I
hit reload, though, it will sometimes spend about 20 seconds 'packing' the
database (keep in mind i have an extremely fast machine). Zope was run
under the root user, and it appears that all but 1 of its python processes
are running as 'nobody'.

 Any help would be extremely appreciated.
Thanks
-Court