[Pkg-fedora-ds-maintainers] Bug#818578: 389-ds-base: 389 dirserver update fails in 389-ds-base.postinst script on upgradeschemafiles
Michal Kaspar
michal at kaspar.in
Fri Mar 18 08:10:34 UTC 2016
Package: 389-ds-base
Version: 1.3.4.8-2
Severity: normal
Dear Maintainer,
While updating 389-ds-base to version 1.3.4.8-2, configure fails with:
Setting up 389-ds-base (1.3.4.8-2) ...
dpkg: error processing package 389-ds-base (--configure):
subprocess installed post-installation script returned error exit status 1
The problem happens in /var/lib/dpkg/info/389-ds-base.postinst on line 27:
setup-ds -l $OUT -u -s General.UpdateMode=offline > $OUT 2>&1
Letting stdout and stderr to terminal showed error in /usr/share/dirsrv/updates/60upgradeschemafiles.pl:
String found where operator expected at /usr/share/dirsrv/updates/60upgradeschemafiles.pl line 181, near "move "$bakdir/99user.ldif""
(Do you need to predeclare move?)
turned out the problem (perl doesn't know move function) is probably caused by missing File::Copy include in the script. So adding:
use File::Copy;
to the beginning of /usr/share/dirsrv/updates/60upgradeschemafiles.pl helped and the configure step ran fine then.
-- System Information:
Debian Release: stretch/sid
APT prefers unstable
APT policy: (650, 'unstable')
Architecture: amd64 (x86_64)
Kernel: Linux 4.3.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=cs_CZ.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages 389-ds-base depends on:
ii 389-ds-base-libs 1.3.4.8-2
ii adduser 3.114
ii debconf [debconf-2.0] 1.5.59
ii init-system-helpers 1.29
ii ldap-utils 2.4.42+dfsg-2+b2
ii libc6 2.22-3
ii libdb5.3 5.3.28-11
ii libgcc1 1:5.3.1-12
ii libicu55 55.1-7
ii libldap-2.4-2 2.4.42+dfsg-2+b2
ii libmozilla-ldap-perl 1.5.3-2+b2
ii libnetaddr-ip-perl 4.078+dfsg-1+b1
ii libnspr4 2:4.12-1
ii libnss3 2:3.23-1
ii libpam0g 1.1.8-3.2
ii libpci3 1:3.3.1-1.1
ii libperl4-corelibs-perl 0.003-2
ii libsasl2-2 2.1.26.dfsg1-14+b1
ii libsasl2-modules-gssapi-mit 2.1.26.dfsg1-14+b1
ii libsensors4 1:3.4.0-2
ii libsnmp30 5.7.3+dfsg-1+b2
ii libsocket-getaddrinfo-perl 0.22-3
ii libssl1.0.2 1.0.2g-1
ii libstdc++6 5.3.1-12
ii libsvrcore0 1:4.0.4-15
ii libwrap0 7.6.q-25
ii perl 5.22.1-9
ii python 2.7.11-1
ii systemd 229-2
389-ds-base recommends no packages.
389-ds-base suggests no packages.
-- Configuration Files:
/etc/default/dirsrv changed:
KRB5CCNAME=/tmp/krb5cc_114
KRB5_KTNAME=/etc/dirsrv/ds.keytab
/etc/default/dirsrv.systemd changed:
[Service]
LimitNOFILE=8192
-- no debconf information
More information about the Pkg-fedora-ds-maintainers
mailing list