Bug 333310

Summary: database disk image is malformed
Product: [openSUSE] openSUSE 10.3 Reporter: Bernhard Walle <bwalle>
Component: libzyppAssignee: Duncan Mac-Vicar <dmacvicar>
Status: RESOLVED DUPLICATE QA Contact: Duncan Mac-Vicar <dmacvicar>
Severity: Major    
Priority: P5 - None    
Version: Final   
Target Milestone: ---   
Hardware: i686   
OS: Other   
Whiteboard:
Found By: Development Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Bernhard Walle 2007-10-12 09:44:33 UTC
zypper and yast give me the error message

   database disk image is malformed

Removing the /var/cache/zypp/zypp.db helps. The old /var/cache/zypp/zypp.db is at 
http://www.bwalle.de/temp/zypp.db.old.bz2 since Bugzilla cannot deal with such large files.

Please tell me after you downloaded the file, so that I can delete it from my web space.
Comment 1 Duncan Mac-Vicar 2007-10-12 12:11:42 UTC
is there a .journal file in the same dir?
Comment 2 Bernhard Walle 2007-10-12 15:26:31 UTC
No:

kepler:/var/cache/zypp # find -name '*journal*'
kepler:/var/cache/zypp # 
Comment 3 Duncan Mac-Vicar 2007-10-29 10:39:57 UTC
Sorry, we can't help with the information available (in order to reproduce it), I guess some abnormal termination of zypper or YaST corrupted the cache. (Ctrl-C?).
Comment 4 Bernhard Walle 2007-10-29 10:42:14 UTC
That may be true. But: The average user is lost here! If the database is corrupted, then yast/zypper must recover automatically by deleting the cache und creating a new one. Letting the user do this is not an option IMO.
Comment 5 Duncan Mac-Vicar 2007-10-29 16:58:23 UTC
I agree, I haven't said that the bug is not important, the point is the report does not help to find the cause of the bug in any way.

Comment 6 Duncan Mac-Vicar 2007-10-31 16:07:52 UTC

*** This bug has been marked as a duplicate of bug 337657 ***