Mailing List Archive

mayday: zope does not start with ERROR ZODB.Connection Couldn't load state for 0x01 error
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

sorry for crossposting.
after stoping and restarting zope one of the zeo/zope instances does
not start anymore, and stop with an error.

what could be the reason. how can we fix it.
fstest.py does not report any error.

thanks very much
robert



2007-02-06 18:43:44 ERROR ZODB.Connection Couldn't load state for 0x01
Traceback (most recent call last):
File "/webserver/zope/Zope-2.9.3/lib/python/ZODB/Connection.py", line
735, in setstate
self._setstate(obj)
File "/webserver/zope/Zope-2.9.3/lib/python/ZODB/Connection.py", line
789, in _setstate
self._reader.setGhostState(obj, p)
File "/webserver/zope/Zope-2.9.3/lib/python/ZODB/serialize.py", line
604, in setGhostState
state = self.getState(pickle)
File "/webserver/zope/Zope-2.9.3/lib/python/ZODB/serialize.py", line
597, in getState
return unpickler.load()
File "/webserver/zope/Zope-2.9.3/lib/python/ZODB/serialize.py", line
479, in _persistent_load
return self.loaders[reference_type](self, *args)
File "/webserver/zope/Zope-2.9.3/lib/python/ZODB/serialize.py", line
540, in load_multi_oid
conn = self._conn.get_connection(database_name)
File "/webserver/zope/Zope-2.9.3/lib/python/ZODB/Connection.py", line
308, in get_connection
new_con = self._db.databases[database_name].open(
KeyError: 'root'
Traceback (most recent call last):
File "/webserver/zope/Zope-2.9.3/lib/python/Zope2/Startup/run.py",
line 56, in ?
run()
File "/webserver/zope/Zope-2.9.3/lib/python/Zope2/Startup/run.py",
line 21, in run
starter.prepare()
File
"/webserver/zope/Zope-2.9.3/lib/python/Zope2/Startup/__init__.py", line
98, in prepare
self.startZope()
File
"/webserver/zope/Zope-2.9.3/lib/python/Zope2/Startup/__init__.py", line
257, in startZope
Zope2.startup()
File "/webserver/zope/Zope-2.9.3/lib/python/Zope2/__init__.py", line
47, in startup
_startup()
File "/webserver/zope/Zope-2.9.3/lib/python/Zope2/App/startup.py",
line 103, in startup
OFS.Application.initialize(application)
File "/webserver/zope/Zope-2.9.3/lib/python/OFS/Application.py", line
304, in initialize
initializer.initialize()
File "/webserver/zope/Zope-2.9.3/lib/python/OFS/Application.py", line
325, in initialize
self.install_cp_and_products()
File "/webserver/zope/Zope-2.9.3/lib/python/OFS/Application.py", line
345, in install_cp_and_products
app._setObject('Control_Panel', cpl)
File "/webserver/zope/Zope-2.9.3/lib/python/ZODB/Connection.py", line
735, in setstate
self._setstate(obj)
File "/webserver/zope/Zope-2.9.3/lib/python/ZODB/Connection.py", line
789, in _setstate
self._reader.setGhostState(obj, p)
File "/webserver/zope/Zope-2.9.3/lib/python/ZODB/serialize.py", line
604, in setGhostState
state = self.getState(pickle)
File "/webserver/zope/Zope-2.9.3/lib/python/ZODB/serialize.py", line
597, in getState
return unpickler.load()
File "/webserver/zope/Zope-2.9.3/lib/python/ZODB/serialize.py", line
479, in _persistent_load
return self.loaders[reference_type](self, *args)
File "/webserver/zope/Zope-2.9.3/lib/python/ZODB/serialize.py", line
540, in load_multi_oid
conn = self._conn.get_connection(database_name)
File "/webserver/zope/Zope-2.9.3/lib/python/ZODB/Connection.py", line
308, in get_connection
new_con = self._db.databases[database_name].open(
KeyError: 'root'
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org

iD8DBQFFyMEQGaryJ0T9kUYRAjLrAJ92qgUaBl4E1vnhKVcOLD9nk+Gy8gCdGDVf
ZmIaBtkY8Gbl46T9rkth6Vc=
=uZhM
-----END PGP SIGNATURE-----
_______________________________________________
Zope-DB mailing list
Zope-DB@zope.org
http://mail.zope.org/mailman/listinfo/zope-db
Re: mayday: zope does not start with ERROR ZODB.Connection Couldn't load state for 0x01 error [ In reply to ]
robert rottermann wrote at 2007-2-6 18:55 +0100:
>sorry for crossposting.
>after stoping and restarting zope one of the zeo/zope instances does
>not start anymore, and stop with an error.
>
>what could be the reason. how can we fix it.
>fstest.py does not report any error.

The object with oid "0x1" is the "Application" object.
The error message indicates that it still is referenced in
the root object but is no longer itself in the ZODB.

It is quite difficult to create such a situation.
Truncating the file drastically may produce such a result.



--
Dieter
_______________________________________________
Zope-DB mailing list
Zope-DB@zope.org
http://mail.zope.org/mailman/listinfo/zope-db