Have a running zenoss 4.2.4 instance and created a new 4.2.4 instance (different PC or VM). I would like to backup the running instance and restore the backup to the new instance. Is it possible?
What I tried:
1) In the first zenoss instance, used the GUI to create a backup
2) Copied the resulting backup file to the new zenoss instance
3) Untarred/unzipped the backup file
4) Edited the backup.settings file, replacing zodb_password and zepdbpass with the values corresponding to the new instance
5) Tarred/zipped again
6) As user zenoss, run zenrestore --file=edited_backup_filename.tgz -v
However I got the following error:
Unpacking backup file
Flushing memcached cache.
Completed flushing memcached cache.
Restoring ZODB database.
Done Restoring ZODB database.
Restoring ZODB session database.
Done Restoring ZODB session database.
Restoring config files.
2013-11-06 23:05:03,401 WARNING relstorage.adapters.mysql: Unable to connect: (1045, "Access denied for user 'zenoss'@'localhost' (using password: YES)")
Traceback (most recent call last):
File "/opt/zenoss/Products/ZenUtils/ZenRestore.py", line 434, in <module>
if zb.doRestore():
File "/opt/zenoss/Products/ZenUtils/ZenRestore.py", line 397, in doRestore
self.restoreZenPackContents()
File "/opt/zenoss/Products/ZenUtils/ZenRestore.py", line 313, in restoreZenPackContents
dmd = ZCmdBase(noopts=True).dmd
File "/opt/zenoss/Products/ZenUtils/ZCmdBase.py", line 96, in __init__
self.zodbConnect()
File "/opt/zenoss/Products/ZenUtils/ZCmdBase.py", line 104, in zodbConnect
self.db, self.storage = connectionFactory.getConnection(**self.options.__dict__)
File "/opt/zenoss/Products/ZenUtils/MySqlZodbFactory.py", line 162, in getConnection
storage = relstorage.storage.RelStorage(adapter, **relstoreParams)
File "/opt/zenoss/lib/python/relstorage/storage.py", line 167, in __init__
self._adapter.schema.prepare()
File "/opt/zenoss/lib/python/relstorage/adapters/schema.py", line 856, in prepare
self.connmanager.open_and_call(callback)
File "/opt/zenoss/lib/python/relstorage/adapters/connmanager.py", line 73, in open_and_call
conn, cursor = self.open()
File "/opt/zenoss/lib/python/relstorage/adapters/mysql.py", line 231, in open
conn = MySQLdb.connect(**self._params)
File "/opt/zenoss/lib/python/MySQLdb/__init__.py", line 81, in Connect
return Connection(*args, **kwargs)
File "/opt/zenoss/lib/python/MySQLdb/connections.py", line 187, in __init__
super(Connection, self).__init__(*args, **kwargs2)
_mysql_exceptions.OperationalError: (1045, "Access denied for user 'zenoss'@'localhost' (using password: YES)")
I also tried resetting the mysql root password to blank, but got the same error message