package slapd 2.4.21-0ubuntu5 failed to install/upgrade:

Bug #573048 reported by deutsche Makar
14
This bug affects 1 person
Affects Status Importance Assigned to Milestone
openldap (Ubuntu)
Expired
Medium
Unassigned

Bug Description

Oh my god, this is FAIL

ProblemType: Package
DistroRelease: Ubuntu 10.04
Package: slapd 2.4.21-0ubuntu5
ProcVersionSignature: Ubuntu 2.6.24-27.69-server
Uname: Linux 2.6.24-27-server i686
Architecture: i386
Date: Sat May 1 17:41:04 2010
ErrorMessage:
 ErrorMessage: подпроцесс установлен сценарий post-installation возвратил код ошибки 1
SourcePackage: openldap
Title: package slapd 2.4.21-0ubuntu5 failed to install/upgrade:

Revision history for this message
deutsche Makar (deutsche888) wrote :
Revision history for this message
Nathan Stratton Treadway (nathanst) wrote :
Download full text (4.1 KiB)

Looking through VarLogDistupgradeApttermlog, I see that slapd is restarted successfully a few times (i.e. when packages such as libc6, libpam0g, and libssl are upgraded). Then later on these lines appear:

===================
Подготовка к замене пакета ldap-utils 2.4.9-0ubuntu0.8.04.3 (используется файл .../ldap-utils_2.4.21-0ubuntu5_i386.deb) ...
Распаковывается замена для пакета ldap-utils ...
Подготовка к замене пакета libldap2-dev 2.4.9-0ubuntu0.8.04.3 (используется файл .../libldap2-dev_2.4.21-0ubuntu5_i386.deb) ...
Распаковывается замена для пакета libldap2-dev ...
Подготовка к замене пакета libldap-2.4-2 2.4.9-0ubuntu0.8.04.3 (используется файл .../libldap-2.4-2_2.4.21-0ubuntu5_i386.deb) ...
Распаковывается замена для пакета libldap-2.4-2 ...
Выбор ранее не выбранного пакета libltdl7.
Распаковывается пакет libltdl7 (из файла .../libltdl7_2.2.6b-2ubuntu1_i386.deb)...
Подготовка к замене пакета slapd 2.4.9-0ubuntu0.8.04.3 (используется файл .../slapd_2.4.21-0ubuntu5_i386.deb) ...
Stopping OpenLDAP: slapd.
  Dumping to /var/backups/slapd-2.4.9-0ubuntu0.8.04.3:
  - directory dc=trct,dc=local... slapcat: Symbol `ldap_int_global_options' has different size in shared object, consider re-linking
/etc/ldap/slapd.conf: line 116: rootdn is always granted unlimited privileges.
/etc/ldap/slapd.conf: line 133: rootdn is always granted unlimited privileges.
done.
Распаковывается замена для пакета slapd ...
[ *** lines skipped **** ]
Настраивается пакет libldap-2.4-2 (2.4.21-0ubuntu5) ...

Настраивается пакет ldap-utils (2.4.21-0ubuntu5) ...

[ *** lines skipped **** ]

Настраивается пакет slapd (2.4.21-0ubuntu5) ...
Устанавливается новая версия файла настройки /etc/ldap/schema/README ...
Устанавливается новая версия файла настройки /etc/ldap/schema/cosine.ldif ...
Устанавливается новая версия файла настройки /etc/ldap/schema/inetorgperson.ldif ...
Устанавливается новая версия файла настройки /etc/ldap/schema/nis.ldif ...
Устанавливается новая версия файла настройки /etc/ldap/schema/openldap.ldif ...
Устанавливается новая версия файла настройки /etc/ldap/schema/duaconf.schema ...
Устанавливается новая версия файла настройки /etc/ldap/schema/dyngroup.schema ...
Устанавливается новая версия файла настройки /etc/ldap/schema/inetorgperson.schema ...
Устанавливается новая версия файла настройки /etc/ldap/schema/misc.schema ...
Устанавливается новая версия файла настройки /etc/ldap/schema/nis.schema ...
Устанавливается новая версия файла настройки /etc/ldap/schema/openldap.schema ...
Устанавливается новая версия файла настройки /etc/apparmor.d/usr.sbin.slapd ...

Файл настройки `/etc/default/slapd'
 ==> Изменён после установки (вами или сценарием).
 ==> Автор пакета предоставил обновлённую версию.
  Что вы будете с этим делать? У вас есть следующие варианты:
   Y или I : установить версию, предлагаемую сопровождающим пакета
   N или O : оставить установленную на данный момент версию
      D : показать различия между версиями
      Z : перевести этот процесс в фоновый режим для проверки ситуации
 По умолчанию сохраняется текущая версия файла настройки.
*** slapd (Y/I/N/O/D/Z) [по умолчанию N] ? o
Устанавливается новая версия файла настройки /etc/ini...

Read more...

Revision history for this message
Nathan Stratton Treadway (nathanst) wrote :

deutsche Makar,

I'm thinking something may have gone wrong setting the permissions on the BDB database files.

Can you post the output of the following commands?
  ls -ld /var/backups/dc*
  ls -l /var/backups/dc*
  uname -a
  grep ^directory /etc/ldap/slapd.conf*
  ls -la <path listed in output of preceding line>

Revision history for this message
Nathan Stratton Treadway (nathanst) wrote :

Looking more closely at the slapd.postinst script, I see that the word "failed." is actually associated with the "Migrating slapd.conf file" message below it, not with the "chowning database directory" message above it. So I don't think there's problem with the permissions after all.

What happens if you run
  "slaptest -f /etc/ldap/slapd.conf"
? (Do you get the same messages as those found in the VarLogDisupgradeApttermlog file?)

If so, what happens if you comment out lines 116 and 133 of the slapd.conf file and then try the test again?

Chuck Short (zulcss)
Changed in openldap (Ubuntu):
importance: Undecided → Medium
status: New → Invalid
Thierry Carrez (ttx)
Changed in openldap (Ubuntu):
status: Invalid → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for openldap (Ubuntu) because there has been no activity for 60 days.]

Changed in openldap (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.