[Bug 658227] Re: won't start after Maverick upgrade; bdb "Program version 4.8 doesn't match environment version 4.7"
** Description changed: I just upgraded from Lucid to Maverick, and now slapd won't start. From syslog: Oct 11 06:10:31 helium slapd[12130]: @(#) $OpenLDAP: slapd 2.4.23 (Aug 7 2010 01:39:36) $#012#011bui...@yellow:/build/buildd/openldap-2.4.23/debian/build/servers/slapd Oct 11 06:10:32 helium slapd[12131]: bdb(dc=5200-glenwood,dc=net): Program version 4.8 doesn't match environment version 4.7 Oct 11 06:10:32 helium slapd[12131]: hdb_db_open: database "dc=5200-glenwood,dc=net" cannot be opened, err -30971. Restore from backup! Oct 11 06:10:32 helium slapd[12131]: bdb(dc=5200-glenwood,dc=net): txn_checkpoint interface requires an environment configured for the transaction subsystem Oct 11 06:10:32 helium slapd[12131]: bdb_db_close: database "dc=5200-glenwood,dc=net": txn_checkpoint failed: Invalid argument (22). Oct 11 06:10:32 helium slapd[12131]: backend_startup_one (type=hdb, suffix="dc=5200-glenwood,dc=net"): bi_db_open failed! (-30971) Oct 11 06:10:32 helium slapd[12131]: bdb_db_close: database "dc=5200-glenwood,dc=net": alock_close failed Oct 11 06:10:32 helium slapd[12131]: slapd stopped. Information on the web says that I need to run some kind of manual database upgrade to BDB 4.8, but I have no familiarity with the BDB tools, and the recipes that are suggested are varied and uncertain. Please suggest a workaround or manual upgrade, as some of my network services are at a dead stop due to this problem. Thanks, Andrew. ProblemType: BugDistroRelease: Ubuntu 10.10 Package: slapd 2.4.23-0ubuntu3 ProcVersionSignature: Ubuntu 2.6.35-22.33-generic 2.6.35.4 Uname: Linux 2.6.35-22-generic x86_64 NonfreeKernelModules: nvidia Architecture: amd64 Date: Mon Oct 11 06:07:49 2010InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release amd64 (20091027) ProcEnviron: PATH=(custom, user) LANG=en_US.UTF-8 SHELL=/bin/bashSourcePackage: openldap WORKAROUND: Install db4.7-util and recover slapd databases: apt-get install db4.7-util cd /var/lib cp -a ldap ldap.bak cd ldap db4.7_checkpoint -1 db4.7_recover slapd will then start correctly. + + TEST CASE: + Steps to re-produce on a new Lucid install + + sudo apt-get install slapd ldap-utils + + Follow the Lucid Server guide through the section entitled populating + LDAP to the point where data is loaded into ldap for the backend + configuration. + + Perform a Lucid->Maverick update: + + sudo do-release-upgrade -d + + slapd fails to start with the following error message + + Oct 11 16:19:33 lucid-clone-01 slapd[773]: bdb(dc=example,dc=com): + Program version 4.8 doesn't match environment version 4.7 -- won't start after Maverick upgrade; bdb "Program version 4.8 doesn't match environment version 4.7" https://bugs.launchpad.net/bugs/658227 You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to openldap in ubuntu. -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 658227] Re: won't start after Maverick upgrade; bdb "Program version 4.8 doesn't match environment version 4.7"
Thanks for reporting this bug and any supporting documentation. Since this bug has enough information provided for a developer to begin work, I'm going to mark it as confirmed and let them handle it from here. Thanks for taking the time to make Ubuntu better! ** Changed in: openldap (Ubuntu) Status: Confirmed => Triaged -- won't start after Maverick upgrade; bdb "Program version 4.8 doesn't match environment version 4.7" https://bugs.launchpad.net/bugs/658227 You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to openldap in ubuntu. -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 658227] Re: won't start after Maverick upgrade; bdb "Program version 4.8 doesn't match environment version 4.7"
do-release-upgrade -d completely successfully with no errors; this message from the log above is a bit misleading: Starting OpenLDAP: slapd. slapd starts and then fails when it tried to attach to the database (with the associated 4.7/4.8 error message). -- won't start after Maverick upgrade; bdb "Program version 4.8 doesn't match environment version 4.7" https://bugs.launchpad.net/bugs/658227 You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to openldap in ubuntu. -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 658227] Re: won't start after Maverick upgrade; bdb "Program version 4.8 doesn't match environment version 4.7"
I just remembered that the postinst failure I mentioned in my previous post wasn't triggered by the restart of the slapd daemon, but rather by another step that the postinst script was attempting to do at that time. So, in your case, did the apt upgrade/configure cycle appear to complete normally, and it wasn't until afterwards you discovered that the slapd daemon wasn't actually running? (Similarly, James, did your "do-release-upgrade -d" process appear to finish normally, or did you get an error during the slapd package install that cause the release-upgrade to abort?) -- won't start after Maverick upgrade; bdb "Program version 4.8 doesn't match environment version 4.7" https://bugs.launchpad.net/bugs/658227 You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to openldap in ubuntu. -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 658227] Re: won't start after Maverick upgrade; bdb "Program version 4.8 doesn't match environment version 4.7"
Andrew, As we expected, this shows that the slapd scripts made no attempt to do an export/import cycle on your database. (When that happened during my Hardy->Lucid upgrade, I had a "Dumping..." line, like this: Preparing to replace slapd 2.4.9-0ubuntu0.8.04.3 (using .../slapd_2.4.21-0ubuntu3_amd64.deb) ... Stopping OpenLDAP: slapd. Dumping to /var/backups/slapd-2.4.9-0ubuntu0.8.04.3: - directory dc=example,dc=com... done. Unpacking replacement slapd ... And the postinst script should generate the corresponding "Loading from " lines, as well.) However, from the log you posted, it looks like slapd was restarted successfully during the upgrade process. Is that true? In other words, did the upgrade process complete successfully, and the slapd daemon only begin failing when you tried to restart it sometime later? (When I ran into this problem for the Hardy->Lucid upgrade, the error caused the "Starting OpenLDAP" command to fail, which in turned caused dpkg to abort with a "subprocess installed post-installation script returned error exit status 1" error message.) -- won't start after Maverick upgrade; bdb "Program version 4.8 doesn't match environment version 4.7" https://bugs.launchpad.net/bugs/658227 You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to openldap in ubuntu. -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 658227] Re: won't start after Maverick upgrade; bdb "Program version 4.8 doesn't match environment version 4.7"
** Changed in: openldap (Ubuntu) Importance: Undecided => Low -- won't start after Maverick upgrade; bdb "Program version 4.8 doesn't match environment version 4.7" https://bugs.launchpad.net/bugs/658227 You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to openldap in ubuntu. -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 658227] Re: won't start after Maverick upgrade; bdb "Program version 4.8 doesn't match environment version 4.7"
Here are excerpts from apt/term.log. Note that this is in a different apt log because my dist-upgrade was a little unusual - interrupted, then completed in a second session. I'm attaching the complete apt log file in case it's of interest. Log started: 2010-10-11 03:59:04 Restarting services possibly affected by the upgrade: slapd: restarting...done. Preparing to replace slapd 2.4.21-0ubuntu5.3 (using .../slapd_2.4.23-0ubuntu3_amd64.deb) ... Stopping OpenLDAP: slapd. Unpacking replacement slapd ... Setting up slapd (2.4.23-0ubuntu3) ... Installing new version of config file /etc/ldap/schema/README ... Installing new version of config file /etc/ldap/schema/cosine.ldif ... Installing new version of config file /etc/ldap/schema/inetorgperson.ldif ... Installing new version of config file /etc/ldap/schema/nis.ldif ... Installing new version of config file /etc/ldap/schema/openldap.ldif ... Installing new version of config file /etc/ldap/schema/duaconf.schema ... Installing new version of config file /etc/ldap/schema/dyngroup.schema ... Installing new version of config file /etc/ldap/schema/inetorgperson.schema ... Installing new version of config file /etc/ldap/schema/misc.schema ... Installing new version of config file /etc/ldap/schema/nis.schema ... Installing new version of config file /etc/ldap/schema/openldap.schema ... Installing new version of config file /etc/ldap/schema/pmi.schema ... Installing new version of config file /etc/apparmor.d/usr.sbin.slapd ... Backing up /etc/ldap/slapd.d/ in /var/backups/slapd-2.4.21-0ubuntu5.3... done. Starting OpenLDAP: slapd. ** Attachment added: "apt upgrade log" https://bugs.launchpad.net/ubuntu/+source/openldap/+bug/658227/+attachment/1685170/+files/term.log -- won't start after Maverick upgrade; bdb "Program version 4.8 doesn't match environment version 4.7" https://bugs.launchpad.net/bugs/658227 You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to openldap in ubuntu. -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 658227] Re: won't start after Maverick upgrade; bdb "Program version 4.8 doesn't match environment version 4.7"
Note that the way the pre and post installation scripts should upgrade the database is to dump the data from the pre-upgrade database using slapcat, wipe out the existing database files and then reload from the pre-upgrade data dumped to disk in the post-installation step. However as @Nathan points out this is not happening. -- won't start after Maverick upgrade; bdb "Program version 4.8 doesn't match environment version 4.7" https://bugs.launchpad.net/bugs/658227 You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to openldap in ubuntu. -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 658227] Re: won't start after Maverick upgrade; bdb "Program version 4.8 doesn't match environment version 4.7"
** Description changed: I just upgraded from Lucid to Maverick, and now slapd won't start. From syslog: Oct 11 06:10:31 helium slapd[12130]: @(#) $OpenLDAP: slapd 2.4.23 (Aug 7 2010 01:39:36) $#012#011bui...@yellow:/build/buildd/openldap-2.4.23/debian/build/servers/slapd Oct 11 06:10:32 helium slapd[12131]: bdb(dc=5200-glenwood,dc=net): Program version 4.8 doesn't match environment version 4.7 Oct 11 06:10:32 helium slapd[12131]: hdb_db_open: database "dc=5200-glenwood,dc=net" cannot be opened, err -30971. Restore from backup! Oct 11 06:10:32 helium slapd[12131]: bdb(dc=5200-glenwood,dc=net): txn_checkpoint interface requires an environment configured for the transaction subsystem Oct 11 06:10:32 helium slapd[12131]: bdb_db_close: database "dc=5200-glenwood,dc=net": txn_checkpoint failed: Invalid argument (22). Oct 11 06:10:32 helium slapd[12131]: backend_startup_one (type=hdb, suffix="dc=5200-glenwood,dc=net"): bi_db_open failed! (-30971) Oct 11 06:10:32 helium slapd[12131]: bdb_db_close: database "dc=5200-glenwood,dc=net": alock_close failed Oct 11 06:10:32 helium slapd[12131]: slapd stopped. Information on the web says that I need to run some kind of manual database upgrade to BDB 4.8, but I have no familiarity with the BDB tools, and the recipes that are suggested are varied and uncertain. Please suggest a workaround or manual upgrade, as some of my network services are at a dead stop due to this problem. Thanks, Andrew. - ProblemType: Bug - DistroRelease: Ubuntu 10.10 + ProblemType: BugDistroRelease: Ubuntu 10.10 Package: slapd 2.4.23-0ubuntu3 ProcVersionSignature: Ubuntu 2.6.35-22.33-generic 2.6.35.4 Uname: Linux 2.6.35-22-generic x86_64 NonfreeKernelModules: nvidia Architecture: amd64 - Date: Mon Oct 11 06:07:49 2010 - InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release amd64 (20091027) + Date: Mon Oct 11 06:07:49 2010InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release amd64 (20091027) ProcEnviron: - PATH=(custom, user) - LANG=en_US.UTF-8 - SHELL=/bin/bash - SourcePackage: openldap + PATH=(custom, user) + LANG=en_US.UTF-8 + SHELL=/bin/bashSourcePackage: openldap + + WORKAROUND: + Install db4.7-util and recover slapd databases: + apt-get install db4.7-util + cd /var/lib + cp -a ldap ldap.bak + cd ldap + db4.7_checkpoint -1 + db4.7_recover + + slapd will then start correctly. -- won't start after Maverick upgrade; bdb "Program version 4.8 doesn't match environment version 4.7" https://bugs.launchpad.net/bugs/658227 You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to openldap in ubuntu. -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 658227] Re: won't start after Maverick upgrade; bdb "Program version 4.8 doesn't match environment version 4.7"
Confirmed; Steps to re-produce on a new Lucid install sudo apt-get install slapd ldap-utils Follow the Lucid Server guide through the section entitled populating LDAP to the point where data is loaded into ldap for the backend configuration. Perform a Lucid->Maverick update: sudo do-release-upgrade -d slapd fails to start with the following error message Oct 11 16:19:33 lucid-clone-01 slapd[773]: bdb(dc=example,dc=com): Program version 4.8 doesn't match environment version 4.7 ** Changed in: openldap (Ubuntu) Status: New => Confirmed -- won't start after Maverick upgrade; bdb "Program version 4.8 doesn't match environment version 4.7" https://bugs.launchpad.net/bugs/658227 You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to openldap in ubuntu. -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 658227] Re: won't start after Maverick upgrade; bdb "Program version 4.8 doesn't match environment version 4.7"
Ubuntu devs, I took a quick look at the slapd.posting/slapd.scripts-common files in the lp:ubuntu/maverick/openldap branch, and also in the Bazaar change summary for revision 26 (which is the one that includes the note "Use libdb4.8-dev (LP: #572489)"), but I don't see any edits to the postinst script to cause the "database_format_changed()" function to to get triggered when upgrading across that db4.7-to-db4.8 switch. Is this step no longer expected to be needed when doing the BDB upgrade, or does the postinst need to be updated to recognize this situation? -- won't start after Maverick upgrade; bdb "Program version 4.8 doesn't match environment version 4.7" https://bugs.launchpad.net/bugs/658227 You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to openldap in ubuntu. -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 658227] Re: won't start after Maverick upgrade; bdb "Program version 4.8 doesn't match environment version 4.7"
Can you look through the /var/log/dist-upgrade/apt-term.log and post the lines that come from the upgrade of the slapd package? (I don't know off hand if any of the discussion there applies in the Lucid-to-Mavick upgrade case, but in case it's helpful I'll point you to LP #536958, which covers the similar bug I ran into when upgrading from Hardy to Lucid.) -- won't start after Maverick upgrade; bdb "Program version 4.8 doesn't match environment version 4.7" https://bugs.launchpad.net/bugs/658227 You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to openldap in ubuntu. -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 658227] Re: won't start after Maverick upgrade; bdb "Program version 4.8 doesn't match environment version 4.7"
OK, per https://bbs.archlinux.org/viewtopic.php?id=84077 and then http://dbaspot.com/forums/berkeley-db/265933-how-upgrade-4-2-4-3-a.html, I installed db4.7-utils and ran cd /var/lib cp -a ldap ldap.bak cd ldap db4.7_checkpoint -1 db4.7_recover After that, slapd started normally. -- won't start after Maverick upgrade; bdb "Program version 4.8 doesn't match environment version 4.7" https://bugs.launchpad.net/bugs/658227 You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to openldap in ubuntu. -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 658227] Re: won't start after Maverick upgrade; bdb "Program version 4.8 doesn't match environment version 4.7"
This appears to be the same as http://bugs.debian.org/cgi- bin/bugreport.cgi?bug=595672 . A fix appears to have been released to that, but again I don't understand the cause or solution, or what I should do to recover at this point. ** Bug watch added: Debian Bug tracker #595672 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=595672 -- won't start after Maverick upgrade; bdb "Program version 4.8 doesn't match environment version 4.7" https://bugs.launchpad.net/bugs/658227 You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to openldap in ubuntu. -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 658227] Re: won't start after Maverick upgrade; bdb "Program version 4.8 doesn't match environment version 4.7"
** Attachment added: "Dependencies.txt" https://bugs.launchpad.net/bugs/658227/+attachment/1684127/+files/Dependencies.txt -- won't start after Maverick upgrade; bdb "Program version 4.8 doesn't match environment version 4.7" https://bugs.launchpad.net/bugs/658227 You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to openldap in ubuntu. -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs