Public bug reported:

I'm upgrading my server from Intrepid to Jaunty. Straight upgrade,
nothing fancy. It should just work.

Note : etckeeper was misconfigured and I ctrl+c the first upgrade
attempt. It's the only bad thing I did (and I should be allowed to do
so).


Then, the whole upgrade failed on slapd because :

Setting up slapd (2.4.15-1ubuntu3) ...
  Backing up /etc/ldap/slapd.conf in /var/backups/slapd-2.4.11-0ubuntu6.1... 
done.
  Moving old database directories to /var/backups:

  Backup path /var/backups/dc=ploum,dc=net-2.4.11-0ubuntu6.1.ldapdb exists. 
Giving up...
dpkg: error processing slapd (--configure):


Ok, I removed the backup (and I have to remove it at each attempt ! This is an 
incridibly stupid upgrade script) 

Setting up slapd (2.4.15-1ubuntu3) ...
  Backing up /etc/ldap/slapd.conf in /var/backups/slapd-2.4.11-0ubuntu6.1... 
done.
  Moving old database directories to /var/backups:
  - directory dc=ploum,dc=net... done.
  Loading from /var/backups/slapd-2.4.11-0ubuntu6.1: 
  Directory /var/lib/ldap for dc=ploum,dc=net not empty, aborting.
dpkg: error processing slapd (--configure):


WTF ? I then emptied the folder by hand (I of course keep a backup)

Setting up slapd (2.4.15-1ubuntu3) ...
  Backing up /etc/ldap/slapd.conf in /var/backups/slapd-2.4.11-0ubuntu6.1... 
done.
  Moving old database directories to /var/backups:
  - directory dc=ploum,dc=net... done.
  Loading from /var/backups/slapd-2.4.11-0ubuntu6.1: 
  - directory dc=ploum,dc=net... failed.

Loading the database from the LDIF dump failed with the following
error while running slapadd:
    ldif_read_file: Not a directory for "/etc/ldap/slapd.conf/cn=config.ldif"
    slapadd: bad configuration directory!
dpkg: error processing slapd (--configure):


Ok, Now I'm there, stuck in the middle of the upgrade not understanding what to 
do and, more importantly, what that script want to do.

As I have a relatively simple ldap setup, I think the upgrade could be
crazy for more complex stuffs.

** Affects: openldap2.3 (Ubuntu)
     Importance: Undecided
         Status: New

-- 
Incredibly painful Jaunty upgrade
https://bugs.launchpad.net/bugs/364531
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to openldap2.3 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

Reply via email to