[Zope-dev] FileStorage instance has no attribute '_serial'

Jeff Kowalczyk jtk at yahoo.com
Sun Jan 4 23:28:56 EST 2004


I'm not sure whether the collector issue 1164 I posted is simply a 
missing configuration step on my part. At any rate, I'm still unable to
start the current checkout of Zope HEAD. The only edit I make to
/var/zope/etc/zope.conf is 'effective-user zuser', and the problem below
also occurs if I then bin/runzope as root.

Can anyone tell me if I'm missing something, or is this a bug?

Thanks.

[zuser at laptop Zope]$ ./configure
[zuser at laptop Zope]$ make
[root at laptop Zope]$ make install
[root at laptop var]# /opt/Zope-2.8/bin/mkzopeinstance.py
[root at laptop Zope]# chown -R zuser /var/zope/var
[root at laptop Zope]# chgrp -R zuser /var/zope/var
[zuser at laptop Zope]$ /var/zope/bin/runzope
------
2004-01-04T23:06:08 INFO(0) ZServer HTTP server started at Sun Jan  4 23:06:08 2004
        Hostname: localhost.localdomain
        Port: 8080
------
2004-01-04T23:06:08 INFO(0) ZServer FTP server started at Sun Jan  4 23:06:08 2004
        Hostname: laptop
        Port: 8021
------
2004-01-04T23:06:10 DEBUG(-200) FileStorage create storage /var/zope/var/Data.fsTraceback (most recent call last):
  File "/opt/Zope-2.8/lib/python/Zope/Startup/run.py", line 49, in ?
    run()
  File "/opt/Zope-2.8/lib/python/Zope/Startup/run.py", line 19, in run
    start_zope(opts.configroot)
  File "/opt/Zope-2.8/lib/python/Zope/Startup/__init__.py", line 50, in start_zope
    starter.startZope()
  File "/opt/Zope-2.8/lib/python/Zope/Startup/__init__.py", line 218, in startZope
    Zope.startup()
  File "/opt/Zope-2.8/lib/python/Zope/__init__.py", line 46, in startup
    _startup()
  File "/opt/Zope-2.8/lib/python/Zope/App/startup.py", line 54, in startup
    DB = configuration.dbtab.getDatabase('/', is_root=1)
  File "/opt/Zope-2.8/lib/python/DBTab/DBTab.py", line 96, in getDatabase
    db = self._createDatabase(name, is_root)
  File "/opt/Zope-2.8/lib/python/DBTab/DBTab.py", line 113, in _createDatabase
    db = factory.open()
  File "/opt/Zope-2.8/lib/python/Zope/Startup/datatypes.py", line 172, in open
    DB = self.createDB()
  File "/opt/Zope-2.8/lib/python/Zope/Startup/datatypes.py", line 169, in createDB
    return ZODBDatabase.open(self)
  File "/opt/Zope-2.8/lib/python/ZODB/config.py", line 101, in open
    version_cache_size=section.version_cache_size)
  File "/opt/Zope-2.8/lib/python/ZODB/DB.py", line 98, in __init__
    storage.store('\0\0\0\0\0\0\0\0', None, file.getvalue(), '', t)
  File "/opt/Zope-2.8/lib/python/ZODB/FileStorage.py", line 791, in store
    newserial=self._serial
AttributeError: FileStorage instance has no attribute '_serial'

[zuser at laptop var]$ ls -l /var/zope/var
total 24
-rw-rw-r--    1 zuser   zuser             4 Jan  4 23:06 Data.fs
-rw-rw-r--    1 zuser   zuser           103 Jan  4 23:06 Data.fs.index
-rw-rw-r--    1 zuser   zuser             5 Jan  4 23:06 Data.fs.lock
-rw-rw-r--    1 zuser   zuser             0 Jan  4 23:06 Data.fs.tmp
-rw-r--r--    1 zuser   zuser           299 Jan  4 23:01 README.txt
-rw-rw-r--    1 zuser   zuser             4 Jan  4 23:06 Z2.lock
-rw-rw-r--    1 zuser   zuser             4 Jan  4 23:06 Z2.pid






More information about the Zope-Dev mailing list