Discussion:
Failing to upgrade Zenoss from 3.1.0 to 4.2.0
Mouhammed Soueidane
2012-12-07 23:00:36 UTC
Permalink
Mouhammed Soueidane [http://community.zenoss.org/people/raziology] created the discussion

"Failing to upgrade Zenoss from 3.1.0 to 4.2.0"

To view the discussion, visit: http://community.zenoss.org/message/70414#70414

--------------------------------------------------------------
Dear guys,
After doing all the changes that I need to do in order to upgrade Zenoss from version 3.1.0 to 4.2.0 (Followed the steps here: http://community.zenoss.org/docs/DOC-13022 http://community.zenoss.org/docs/DOC-13022)
And after successfully resolving all the dependencies, I tried to start my Zenoss service for the very first time after the upgrade, and I'm getting the following:
WARNING:zen.migrate:Unable to index /zport/dmd/JobManager/jobs/DeviceCreationJobStatus_13e37941-071b-4ab6-80e1-e01329e02636/DeviceCreationJob_13e37941-071b-4ab6-80e1-e01329e02636
WARNING:zen.migrate:Recovering
Traceback (most recent call last):
  File "/opt/zenoss/Products/ZenModel/migrate/zenmigrate.py", line 19, in <module>
    main()
  File "/opt/zenoss/Products/ZenModel/migrate/zenmigrate.py", line 16, in main
    m.main()
  File "/opt/zenoss/Products/ZenModel/migrate/Migrate.py", line 424, in main
    self.cutover()
  File "/opt/zenoss/Products/ZenModel/migrate/Migrate.py", line 311, in cutover
    self.migrate()
  File "/opt/zenoss/Products/ZenModel/migrate/Migrate.py", line 287, in migrate
    m.cutover(self.dmd)
  File "/opt/zenoss/Products/ZenModel/migrate/rebuildPathIndex.py", line 43, in cutover
    zport.global_catalog.catalog_object(x.getObject(),x.getPath(),
  File "/opt/zenoss/lib/python/Products/ZCatalog/CatalogBrains.py", line 102, in getObject
    return parent.restrictedTraverse(path[-1])
AttributeError: 'NoneType' object has no attribute 'restrictedTraverse'

I tried to fix the problem by following the solution mentioned in this discussion ( http://community.zenoss.org/thread/18690?start=15&tstart=0 http://community.zenoss.org/thread/18690?start=15&tstart=0) But I still got this same exception.

Any ideas on how I can fix this?

Thanks,
Mouhammed Soueidane
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/70414#70414]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
Mouhammed Soueidane
2012-12-13 13:16:04 UTC
Permalink
Mouhammed Soueidane [http://community.zenoss.org/people/raziology] created the discussion

"Re: Failing to upgrade Zenoss from 3.1.0 to 4.2.0"

To view the discussion, visit: http://community.zenoss.org/message/70532#70532

--------------------------------------------------------------
Well I managed to fix the problem, though it required me to revert back to my old installation of Zenoss core 3.2.1, and then going to the URL:
http://yourzenoss:8080/zport/dmd/JobManager/jobs/manage_main http://yourZenoss:8080/zport/dmd/JobManager/jobs/manage_main

Then I had to manually click on the "X" button of each and every job that I have once issued through Zenoss' UI. After that, the upgrade just worked great.
Note that if you go to http://yourzenoss:8080/zport/dmd/JobManager/jobs/manage_main http://yourZenoss:8080/zport/dmd/manage_main
and then go manually to the "JobManager" page, in which you have a "SELECT ALL" option and then delete, the same problem would occur since Zenoss will complain that it couldn't find a job (The job that was found to be corrupt during the failed upgrade)
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/70532#70532]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
Loading...