Zen-Updater Crash, anyone else seeing this?
![](https://seccdn.libravatar.org/avatar/ded3c1cf46ea720a1f3f65df348eff3a.jpg?s=120&d=mm&r=g)
As of this morning Zen Updater crashes with this message: System.NullReferenceException: Object reference not set to an instance of an object in <0x003d6> Novell.Zenworks.Gui.ZenTrayIcon:CheckUpdatesLoop () in (wrapper delegate-invoke) System.MulticastDelegate:invoke_void () Anyone else seeing this? Any known work around? -- _____________________________________ John Andersen
![](https://seccdn.libravatar.org/avatar/ded3c1cf46ea720a1f3f65df348eff3a.jpg?s=120&d=mm&r=g)
On Saturday 16 September 2006 13:21, John Andersen wrote:
As of this morning Zen Updater crashes with this message:
System.NullReferenceException: Object reference not set to an instance of an object in <0x003d6> Novell.Zenworks.Gui.ZenTrayIcon:CheckUpdatesLoop () in (wrapper delegate-invoke) System.MulticastDelegate:invoke_void ()
Anyone else seeing this? Any known work around?
So I read the help and I see I can avoid the tray-icon with --no-tray. When I run it that way I get: Novell.Zenworks.Zmd.Public.ZenException: database disk image is malformed Server stack trace: Exception rethrown at [0]: in <0x006dc> System.Runtime.Remoting.Proxies.RealProxy:PrivateInvoke (System.Runtime.Remoting.Proxies.RealProxy rp, IMessage msg, System.Exception exc, System.Object[] out_args) WTF? -- _____________________________________ John Andersen
![](https://seccdn.libravatar.org/avatar/c5f4bee0462b941085db12d80f746efa.jpg?s=120&d=mm&r=g)
On Saturday 16 September 2006 22:41, John Andersen wrote:
WTF?
Try my usual technique, which is to stop zmd with 'rczmd stop', remove /var/lib/zmd/zmd.db (I think) (move it somewhere rather than just deleting it completely, in case you want to restore it ...), then restart zmd. The database is then rebuilt (you might need your installation media present at this point), and the updater starts working again. I think the updater front end should perhaps have a handler which catches this exception, and pops up a dialogue box which says "Database corrupted. Try to rebuild the database automatically?" Perhaps this would no longer be necessary with the latest updates to the update stack - I expect there are no remaining bugs ;)
![](https://seccdn.libravatar.org/avatar/ded3c1cf46ea720a1f3f65df348eff3a.jpg?s=120&d=mm&r=g)
On Monday 18 September 2006 00:28, William Gallafent wrote:
Try my usual technique, which is to stop zmd with 'rczmd stop', remove /var/lib/zmd/zmd.db (I think) (move it somewhere rather than just deleting it completely, in case you want to restore it ...), then restart zmd. The database is then rebuilt (you might need your installation media present at this point), and the updater starts working again.
I've been looking into those files ( the .db files in that dir) with knoda. They appear to be sqlite db format. I've found that installation sources I deleted LONG ago are still in there (kernal.org has been fairly useless, so i deleted it as an installation source, but its still there). That's what makes this db so damn big and slow. I'll probably try your suggestion, and see what happens. -- _____________________________________ John Andersen
![](https://seccdn.libravatar.org/avatar/ded3c1cf46ea720a1f3f65df348eff3a.jpg?s=120&d=mm&r=g)
On Monday 18 September 2006 00:28, William Gallafent wrote:
On Saturday 16 September 2006 22:41, John Andersen wrote:
WTF?
Try my usual technique, which is to stop zmd with 'rczmd stop', remove /var/lib/zmd/zmd.db (I think) (move it somewhere rather than just deleting it completely, in case you want to restore it ...), then restart zmd. The database is then rebuilt (you might need your installation media present at this point), and the updater starts working again.
Reporting back (for the archives if nothing else), I backed up the data in both the /var/lib/zmd directory and the /var/lib/zypp directory and nuked all files, leaving only the two directories themselves. Next I went into yast and set up install sources again. I was careful to set up one for Suse itself and one for KDE so that I can run the latest stuff. I'll get brave and add Packman later. Lo and behold my zen-updater no longer abends. What's more, after a refresh, it even found patches that were needed. Furthermore my zmd.db is half the size it was before, and poking around in it (very carefully) shows that none of the old repositories are in there any more. So, thanks William, it appears the operation was a success. -- _____________________________________ John Andersen
participants (2)
-
John Andersen
-
William Gallafent