[Bug 334639] New: openldap2 update renders DB unusable
https://bugzilla.novell.com/show_bug.cgi?id=334639 Summary: openldap2 update renders DB unusable Product: openSUSE 10.3 Version: Final Platform: x86 OS/Version: Linux Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: jengelh@gmx.de QAContact: qa@suse.de Found By: Beta-Customer When upgrading from 10.2's openldap to 10.3's openldap, it did not convert the database (which makes BDB/HDB quite unsuitable, to begin). Ideas on how to correct this now? Plans to add a proper conversion? (It is already done for mysql tables for example, AFAICT.) # slapcat bdb(o=ICHI): Program version 4.5 doesn't match environment version 4.4 hdb_db_open: Database cannot be opened, err -30972. Restore from backup! bdb(o=ICHI): DB_ENV->lock_id_free interface requires an environment configured for the locking subsystem backend_startup_one: bi_db_open failed! (-30972) slap_startup failed -- 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=334639 Mark Gordon <mtgordon@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mtgordon@novell.com AssignedTo|bnc-team-screening@forge.provo.novell.com |rhafer@novell.com -- 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=334639 Ralf Haferkamp <rhafer@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED -- 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=334639#c1 Ralf Haferkamp <rhafer@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |NEEDINFO Info Provider| |jengelh@gmx.de --- Comment #1 from Ralf Haferkamp <rhafer@novell.com> 2007-10-31 09:23:00 MST --- Hm, libdb once again change in an incompatible way :(. I missed that, sorry. But, this time it is really easy to fix. Just remove the database's environment files (all files matching "__db.*") from the LDAP database directory (usually /var/lib/ldap/). After that start the LDAP server and it will take care to recreate the files correctly. Does that work for you? -- 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=334639#c2 --- Comment #2 from Jan Engelhardt <jengelh@gmx.de> 2007-10-31 09:36:38 MST --- That seems very risky. What I did in the meantime was slapcat; upgrade; slapadd. -- 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=334639#c3 Ralf Haferkamp <rhafer@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |ASSIGNED Info Provider|jengelh@gmx.de | --- Comment #3 from Ralf Haferkamp <rhafer@novell.com> 2007-10-31 09:48:17 MST --- (In reply to comment #2 from Jan Engelhardt)
That seems very risky. Not really. You can always savely remove the "__db.*" files, when slapd is not running. You will not loose any data, by that. You should however not delete any of the *.db files ;-)
What I did in the meantime was slapcat; upgrade; slapadd. Ok, that works as well.
-- 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=334639#c5 Stephan Kulow <coolo@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |ASSIGNED Info Provider|coolo@novell.com | --- Comment #5 from Stephan Kulow <coolo@novell.com> 2007-11-07 02:23:35 MST --- Ralf, if you want you can release the patch with a script to do the fixing. If it's fixable after the fact. If not, add the bug to the most annoying bugs wiki page and assign to Karl. -- 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=334639#c6 Ralf Haferkamp <rhafer@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |rhafer@novell.com AssignedTo|rhafer@novell.com |ke@novell.com Status|ASSIGNED |NEW --- Comment #6 from Ralf Haferkamp <rhafer@novell.com> 2007-11-19 06:36:01 MST --- Updated the most annoying bugs wiki page. Reassigning to Karl. -- 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=334639#c7 Karl Eichwalder <ke@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO Info Provider| |coolo@novell.com --- Comment #7 from Karl Eichwalder <ke@novell.com> 2007-11-19 06:55:52 MST --- I guess you want me to add it to the release notes, too? If yes, I'll happily do it. -- 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=334639#c8 Stephan Kulow <coolo@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW Info Provider|coolo@novell.com | --- Comment #8 from Stephan Kulow <coolo@novell.com> 2007-11-19 09:33:07 MST --- Yes, I guess that wasn't explicitly spelled out :) -- 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=334639 Karl Eichwalder <ke@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED -- 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=334639#c9 --- Comment #9 from Karl Eichwalder <ke@novell.com> 2007-11-21 02:53:02 MST --- I'm going to add the following text to the release notes: <sect3 id="db-and-ldap"> <title> Berkeley DB Change Affects OpenLDAP Server</title> <para>There is a format change in Berkeley DB's on-disk log files between Berkely DB 4.3 and 4.4. This change prevents an installed OpenLDAP server from starting start after the system update.</para> <para>To avoid this issue, export existing LDAP Databases using the <command>slapcat</command> utility <emphasis>before</emphasis> starting the system update and re-import the data using <command>slapadd</command> after the update. On an already updated machine get the LDAP Server running as follows:</para> <orderedlist> <listitem> <para>Stop the LDAP Server.</para> </listitem> <listitem> <para>Remove all files starting with <literal>_db.</literal> from the database directory.</para> </listitem> <listitem> <para>Start the LDAP server again.</para> </listitem> </orderedlist> </sect3> -- 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=334639#c10 Karl Eichwalder <ke@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |NEEDINFO Info Provider| |ast@novell.com --- Comment #10 from Karl Eichwalder <ke@novell.com> 2007-11-21 03:21:24 MST --- Anja, once again a SWAMPID for release notes, please. -- 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=334639#c13 Karl Eichwalder <ke@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED --- Comment #13 from Karl Eichwalder <ke@novell.com> 2007-11-23 07:58:12 MST --- -> /work -- 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=334639 User ast@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=334639#c14 --- Comment #14 from Anja Stock <ast@novell.com> 2007-12-06 04:24:54 MST --- released -- 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=334639 User jengelh@gmx.de added comment https://bugzilla.novell.com/show_bug.cgi?id=334639#c15 --- Comment #15 from Jan Engelhardt <jengelh@gmx.de> 2008-03-28 10:07:18 MST --- No RPM update? -- 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.
participants (1)
-
bugzilla_noreply@novell.com