Hi all,
After zenoss 2.3.0 installation, every zenoss process running alright. But
after restoring database from zenoss 2.2.4 into new machine (running Ubuntu
8.0.4.1 64-bit machine), running zenmigrate shows error as shown below.
# zenmigrate
INFO:zen.migrate:Database going to version Zenoss 2.3.0
INFO:zen.migrate:Installing AdminObjectMenus (2.3.0)
INFO:zen.migrate:Installing DifferentiateTemplates (2.3.0)
INFO:zen.migrate:Installing EvenMoreBettererStandardErrorMessage (2.3.0)
INFO:zen.migrate:Installing FixOldTemplates_23 (2.3.0)
INFO:zen.migrate:Installing HappierZenPackRels (2.3.0)
INFO:zen.migrate:Installing Layer2Catalog (2.3.0)
Indexing interfaces. This may take a while.
.INFO:zen.migrate:Installing MonitoringMenuItem (2.3.0)
INFO:zen.migrate:Installing PortletPaths (2.3.0)
INFO:zen.migrate:Installing ReindexIpAddressNetworkIds (2.3.0)
INFO:zen.migrate:Installing ReindexZenPackPerstence (2.3.0)
INFO:zen.migrate:Installing fixPropertyAccess (2.3.0)
INFO:zen.migrate:Installing monitorAsHeartbeatDevice (2.3.0)
INFO:zen.migrate:Clearing heartbeats from devices that aren't collectors.
Recovering
Traceback (most recent call last):
File "/usr/local/zenoss/Products/ZenModel/migrate/zenmigrate.py", line 21, in
?
main()
File "/usr/local/zenoss/Products/ZenModel/migrate/zenmigrate.py", line 18, in
main
m.main()
File "/usr/local/zenoss/Products/ZenModel/migrate/Migrate.py", line 425, in
main
self.cutover()
File "/usr/local/zenoss/Products/ZenModel/migrate/Migrate.py", line 305, in
cutover
self.migrate()
File "/usr/local/zenoss/Products/ZenModel/migrate/Migrate.py", line 281, in
migrate
m.cutover(self.dmd)
File
"/usr/local/zenoss/Products/ZenModel/migrate/monitorAsHeartbeatDevice.py", line
34, in cutover
conn = dmd.ZenEventManager.connect()
File "/usr/local/zenoss/Products/ZenEvents/DbAccessBase.py", line 33, in
connect
database=self.database)
File "/usr/local/zenoss/Products/ZenEvents/DbConnectionPool.py", line 71, in
get
database=database)
File "/usr/local/zenoss/Products/ZenEvents/DbConnectionPool.py", line 107, in
_createConnection
raise MySQLConnectionError(str(e))
Products.ZenEvents.Exceptions.MySQLConnectionError: (1044, "Access denied for
user 'zenoss'@'localhost' to database 'events2_24'")
Step to reproduce:
1- After install, turn off zenoss.
2- restoring db backup from zenoss 2.2.4
3- start zeoctl and zopectl only.
4- run zenmigrate
I also noticed that zenhub and zenactions won't run as well. Try to start
zenhub with v 10 shows:
DEBUG:zen.Events:looking up ip localhost
DEBUG:zen.Events:EventClassInst=Start
DEBUG:zen.DbConnectionPool:Creating a new connection; Pool size: 0
ERROR:zen.ZenHub:Unable to send an event
Traceback (most recent call last):
File "/usr/local/zenoss/Products/ZenHub/zenhub.py", line 358, in sendEvent
self.zem.sendEvent(Event(**kw))
File "/usr/local/zenoss/Products/ZenEvents/MySqlSendEvent.py", line 97, in
sendEvent
evid = self.doSendEvent(event)
File "/usr/local/zenoss/Products/ZenEvents/MySqlSendEvent.py", line 110, in
doSendEvent
conn = self.connect()
File "/usr/local/zenoss/Products/ZenEvents/DbAccessBase.py", line 33, in
connect
database=self.database)
File "/usr/local/zenoss/Products/ZenEvents/DbConnectionPool.py", line 71, in
get
database=database)
File "/usr/local/zenoss/Products/ZenEvents/DbConnectionPool.py", line 107, in
_createConnection
raise MySQLConnectionError(str(e))
MySQLConnectionError: (1044, "Access denied for user 'zenoss'@'localhost' to
database 'events2_24'")
DEBUG:zen.thresholds:Updating threshold ('zeneventlog cycle time',
('localhost', ''))
DEBUG:zen.thresholds:Updating threshold ('zenmodeler cycle time', ('localhost',
''))
DEBUG:zen.thresholds:Updating threshold ('zenperfsnmp cycle time',
('localhost', ''))
DEBUG:zen.thresholds:Updating threshold ('zenping cycle time', ('localhost',
''))
DEBUG:zen.thresholds:Updating threshold ('zenprocess cycle time', ('localhost',
''))
DEBUG:zen.thresholds:Updating threshold ('zenwin cycle time', ('localhost', ''))
DEBUG:zen.hub:adding listener for localhost:EventService
The error still looking for old db (2.2.4) while the new db which used within
the new machine is (2.3.0)
Help?[/code]
-------------------- m2f --------------------
Read this topic online here:
http://forums.zenoss.com/viewtopic.php?p=28078#28078
-------------------- m2f --------------------
_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users