Skip navigation
6086 Views 9 Replies Latest reply: Feb 21, 2012 3:34 PM by Shane Scott RSS
taupehat Rank: White Belt 20 posts since
Jun 29, 2011
Currently Being Moderated

Jun 29, 2011 5:49 PM

zenrestore Access denied for user 'zenoss'@'localhost' followed by more grief

We have an existing ZenOss machine running on RHEL 5 32-bit, I wanted to bring up a dev machine for testing upgrades, used same arch same OS and installed the same version (2.5.2) of Core, added in same ZenPacks and made sure everything was matching the production machine.

 

I did a backup and copied the largish (782 MB) file over to the dev box and did (as zenoss user) like follows:

$ zenrestore --file zenbackup_20110629.tgz

ERROR 1045 (28000): Access denied for user 'zenoss'@'localhost' (using password: YES)

Curious about what's going on with the DB, I did a zendmd, or tried to:

$ /opt/zenoss/bin/zendmd
Traceback (most recent call last):
  File "/opt/zenoss/Products/ZenModel/zendmd.py", line 245, in ?
    myconsole = HistoryConsole(locals=_customStuff())
  File "/opt/zenoss/Products/ZenModel/zendmd.py", line 71, in _customStuff
    app = Zope2.app()
  File "/opt/zenoss/lib/python/Zope2/__init__.py", line 51, in app
    startup()
  File "/opt/zenoss/lib/python/Zope2/__init__.py", line 47, in startup
    _startup()
  File "/opt/zenoss/lib/python/Zope2/App/startup.py", line 65, in startup
    DB = dbtab.getDatabase('/', is_root=1)
  File "/opt/zenoss/lib/python/Zope2/Startup/datatypes.py", line 288, in getDatabase
    db = factory.open(name, self.databases)
  File "/opt/zenoss/lib/python/Zope2/Startup/datatypes.py", line 186, in open
    DB = self.createDB(database_name, databases)
  File "/opt/zenoss/lib/python/Zope2/Startup/datatypes.py", line 183, in createDB
    return ZODBDatabase.open(self, databases)
  File "/opt/zenoss/lib/python/ZODB/config.py", line 105, in open
    databases=databases)
  File "/opt/zenoss/lib/python/ZODB/DB.py", line 270, in __init__
    storage.load(z64, '')
  File "/opt/zenoss/lib/python/ZEO/ClientStorage.py", line 712, in load
    return self.loadEx(oid, version)[:2]
  File "/opt/zenoss/lib/python/ZEO/ClientStorage.py", line 735, in loadEx
    data, tid, ver = self._server.loadEx(oid, version)
  File "/opt/zenoss/lib/python/ZEO/ServerStub.py", line 196, in loadEx
    return self.rpc.call("loadEx", oid, version)
  File "/opt/zenoss/lib/python/ZEO/zrpc/connection.py", line 699, in call
    raise inst # error raised by server
ZODB.FileStorage.format.CorruptedDataError: Error reading oid 0x00.  Found "\x00\x00\x00\x00\x00\x00\x00\n\x03\x7fho\xd4'\xf7\xdd\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x05h\x00\x00\x00\x00\x00\x00\x00\x00\x00\x1e" at 1421

 

Google showed me a couple of other cases where people were having such troubles, but they were all trying to do a zenrestore onto a 64-bit platform from a 32-bit-generated backup.  Since that's not the case here, what else could be causing this grief and more importantly how can it be fixed?

More Like This

  • Retrieving data ...

Legend

  • Correct Answers - 4 points
  • Helpful Answers - 2 points