[Bug 337657] New: Repository database may corrupt and leave zypper/yast/ opensuseupdater unusable
https://bugzilla.novell.com/show_bug.cgi?id=337657 Summary: Repository database may corrupt and leave zypper/yast/opensuseupdater unusable Product: openSUSE 10.3 Version: Final Platform: Other OS/Version: openSUSE 10.3 Status: NEW Severity: Critical Priority: P5 - None Component: libzypp AssignedTo: dmacvicar@novell.com ReportedBy: maacruz@gmail.com QAContact: dmacvicar@novell.com Found By: --- For some unknown circunstance the repository database zypp.db file (probably trying to add a community repository which failed) got damaged. Then: Opensuseupdater failed to show new updates giving no sign of failure or error messages. yast software installation module showed only part of the installed repositories (4 from 8) Trying to add a new repository would fail with a sql error message, both with yast and zypper. Trying to manually refresh one repository ("Update repository") caused yast to segfault. Deleting it and adding it again didn't solved the problem. After deleting all repositories, some could be added again, but trying to add one ("Main OSS repository") caused yast/zypper to hang forever with 100% CPU usage while building the cache Trying to rebuild the database with "zypper -b" didn't solved the problem. The only way I could recover from such situation was to manually deleting zypp.db and adding/refreshing everything again. Crashing/being unable to recover if zypp.db gets corrupted/damaged for whatever reason is a very bad situation. I suggest for yast/zypper, as recovery procedure if a database error is detected: giving an error message, deleting zypp.db and rebuilding everything again from scratch. The user should have an option in yast/zypper to delete and rebuild, too. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=337657#c1
Duncan Mac-Vicar
https://bugzilla.novell.com/show_bug.cgi?id=337657#c2
--- Comment #2 from Duncan Mac-Vicar
https://bugzilla.novell.com/show_bug.cgi?id=337657#c3
Bernhard Walle
https://bugzilla.novell.com/show_bug.cgi?id=337657#c5
Miguel Angel Alvarez
https://bugzilla.novell.com/show_bug.cgi?id=337657#c6
--- Comment #6 from Duncan Mac-Vicar
https://bugzilla.novell.com/show_bug.cgi?id=337657#c7
--- Comment #7 from Miguel Angel Alvarez
https://bugzilla.novell.com/show_bug.cgi?id=337657#c8
Duncan Mac-Vicar
https://bugzilla.novell.com/show_bug.cgi?id=337657#c9
Fred Fox
https://bugzilla.novell.com/show_bug.cgi?id=337657#c10
Arvin Schnell
https://bugzilla.novell.com/show_bug.cgi?id=337657
User maacruz@gmail.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=337657#c11
--- Comment #11 from Miguel Angel Alvarez
https://bugzilla.novell.com/show_bug.cgi?id=337657
User aschnell@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=337657#c12
Arvin Schnell
participants (1)
-
bugzilla_noreply@novell.com