Bug#379728: [Pkg-openldap-devel] Bug#379728: slapd: upgrade to 2.3.24-2 hangs
Christoph Kaminski wrote: Stephen Gran schrieb: On Tue, Jul 25, 2006 at 12:07:25PM +0200, Christoph Kaminski said: + create_new_user ++ getent group openldap it hangs here! Does that command hang for you when run normally? Do you use libnss-ldap? P.S., please keep the bug log in the cc: list. getent group openldap doesnt hang here but it hasnt any output yes I use libnss-ldap. Ok, the problem is the following: (I would get the same trouble on my production systems if I upgrade them, but they're running Sarge) upgrade procedure: - stop slapd - check if user exists (including group) getent - adduser if it doesn't exist - standard procedure to upgrade a database. At the moment it checks for the user the LDAP database is down (I assume that libnss-ldap is using the database at localhost) which causes getent group openldap to hang. Solution: Move the checking code to the preinst before stopping slapd, add a flag to /var/lib/slapd that the user exist or not. And create the user according to that in the postinst. (Or add the user in the preinst too) Until someone comes up with a better solution, I'll implement that tonight and hopefully my sponsor is available to upload. Regards, Matthijs Mohlmann -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Bug#379728: slapd: upgrade to 2.3.24-2 hangs
Stephen Gran schrieb: On Tue, Jul 25, 2006 at 12:07:25PM +0200, Christoph Kaminski said: + create_new_user ++ getent group openldap it hangs here! Does that command hang for you when run normally? Do you use libnss-ldap? P.S., please keep the bug log in the cc: list. getent group openldap doesnt hang here but it hasnt any output yes I use libnss-ldap. -- MfG Christoph Kaminski -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Bug#379728: slapd: upgrade to 2.3.24-2 hangs
On Tue, Jul 25, 2006 at 12:07:25PM +0200, Christoph Kaminski said: > + create_new_user > ++ getent group openldap > > it hangs here! Does that command hang for you when run normally? Do you use libnss-ldap? P.S., please keep the bug log in the cc: list. -- -- | Stephen Gran | "The C Programming Language -- A| | [EMAIL PROTECTED] | language which combines the flexibility | | http://www.lobefin.net/~steve | of assembly language with the power of | || assembly language." | -- signature.asc Description: Digital signature
Bug#379728: slapd: upgrade to 2.3.24-2 hangs
Stephen Gran schrieb: This one time, at band camp, Christoph Kaminski said: I cant upgrade to 2.3.24-2... Installing new version of config file /etc/default/slapd ... Installing new version of config file /etc/init.d/slapd ... It hangs here, and after 10mins I have aborted it dpkg: error processing slapd (--configure): subprocess post-installation script killed by signal (Interrupt) Errors were encountered while processing: slapd * slapd/dump_database_destdir: /var/backups/slapd-VERSION * slapd/dump_database: always Can you add set -x as the second line in /var/lib/dpkg/info/slapd.postinst, and run dpkg --configure -a I assume what's happening is that it's running slapcat and that's taking a long time for some reason (out of disk space? something else? not sure yet). Take care, dpkg --configure -a Setting up slapd (2.3.24-2) ... + set -e + . /usr/share/debconf/confmodule ++ '[' '!' '' ']' ++ PERL_DL_NONLAZY=1 ++ export PERL_DL_NONLAZY ++ '[' '' ']' ++ exec /usr/share/debconf/frontend /var/lib/dpkg/info/slapd.postinst configure 2.3.24-1 + set -e + . /usr/share/debconf/confmodule ++ '[' '!' 1 ']' ++ '[' -z '' ']' ++ exec ++ '[' '' ']' ++ exec ++ DEBCONF_REDIR=1 ++ export DEBCONF_REDIR + MODE=configure + OLD_VERSION=2.3.24-1 + '[' -f /etc/default/slapd ']' + . /etc/default/slapd ++ SLAPD_CONF= ++ SLAPD_USER=openldap ++ SLAPD_GROUP=openldap ++ SLAPD_PIDFILE= ++ SLURPD_START=auto ++ SLAPD_OPTIONS= ++ SLURPD_OPTIONS= + '[' -z '' ']' + SLAPD_CONF=/etc/ldap/slapd.conf + '[' configure = configure ']' + create_new_user ++ getent group openldap it hangs here! dpkg: error processing slapd (--configure): subprocess post-installation script killed by signal (Interrupt) Errors were encountered while processing: slapd -- MfG Christoph Kaminski -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Bug#379728: slapd: upgrade to 2.3.24-2 hangs
This one time, at band camp, Christoph Kaminski said: > I cant upgrade to 2.3.24-2... > > Installing new version of config file /etc/default/slapd ... > Installing new version of config file /etc/init.d/slapd ... > > It hangs here, and after 10mins I have aborted it > > dpkg: error processing slapd (--configure): > subprocess post-installation script killed by signal (Interrupt) > Errors were encountered while processing: > slapd > > * slapd/dump_database_destdir: /var/backups/slapd-VERSION > * slapd/dump_database: always Can you add set -x as the second line in /var/lib/dpkg/info/slapd.postinst, and run dpkg --configure -a I assume what's happening is that it's running slapcat and that's taking a long time for some reason (out of disk space? something else? not sure yet). Take care, -- - | ,''`.Stephen Gran | | : :' :[EMAIL PROTECTED] | | `. `'Debian user, admin, and developer | |`- http://www.debian.org | - signature.asc Description: Digital signature
Bug#379728: slapd: upgrade to 2.3.24-2 hangs
Package: slapd Version: 2.3.24-1 Severity: grave Justification: renders package unusable I cant upgrade to 2.3.24-2... Installing new version of config file /etc/default/slapd ... Installing new version of config file /etc/init.d/slapd ... It hangs here, and after 10mins I have aborted it dpkg: error processing slapd (--configure): subprocess post-installation script killed by signal (Interrupt) Errors were encountered while processing: slapd -- System Information: Debian Release: testing/unstable APT prefers unstable APT policy: (990, 'unstable'), (1, 'experimental') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.17-1-k7 Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to de_DE.UTF-8) Versions of packages slapd depends on: ii coreutils [fileutils] 5.96-5 The GNU core utilities ii debconf [debconf-2.0] 1.5.2Debian configuration management sy ii libc6 2.3.6-15 GNU C Library: Shared libraries ii libdb4.24.2.52+dfsg-0.1 Berkeley v4.2 Database Libraries [ ii libiodbc2 3.52.4-3 iODBC Driver Manager ii libldap-2.3-0 2.3.24-1 OpenLDAP libraries ii libltdl31.6-0+1.5a-4 A system independent dlopen wrappe ii libperl5.8 5.8.8-6 Shared Perl library ii libsasl22.1.19.dfsg1-0.2 Authentication abstraction library ii libslp1 1.2.1-5 OpenSLP libraries ii libssl0.9.8 0.9.8b-2 SSL shared libraries ii libwrap07.6.dbs-9Wietse Venema's TCP wrappers libra ii perl [libmime-base64-pe 5.8.8-6 Larry Wall's Practical Extraction ii psmisc 22.2-1 Utilities that use the proc filesy Versions of packages slapd recommends: ii db4.2-util 4.2.52+dfsg-0.1 Berkeley v4.2 Database Utilities ii libsasl2-modules2.1.19.dfsg1-0.2 Pluggable Authentication Modules f -- debconf information: * slapd/password2: (password omitted) slapd/internal/adminpw: (password omitted) * slapd/password1: (password omitted) slapd/fix_directory: true * shared/organization: chaos slapd/upgrade_slapcat_failure: * slapd/backend: BDB * slapd/allow_ldap_v2: true * slapd/no_configuration: false * slapd/move_old_database: true slapd/suffix_change: false slapd/slave_databases_require_updateref: * slapd/dump_database_destdir: /var/backups/slapd-VERSION slapd/autoconf_modules: true * slapd/domain: chaos slapd/password_mismatch: slapd/invalid_config: true slapd/upgrade_slapadd_failure: * slapd/dump_database: always slapd/migrate_ldbm_to_bdb: false * slapd/purge_database: true -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]