Project

General

Profile

Actions

Bug #10517

closed

slapd migration for 4.1 is not done on Ubuntu 16.04

Added by Nicolas CHARLES over 7 years ago. Updated over 7 years ago.

Status:
Released
Priority:
N/A
Category:
Packaging
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
Fix check:
Regression:

Description

When upgrading on Ubuntu16, I get the following error

INFO: The migration has completed successfully.
INFO: End of migration script
INFO: Restarting Rudder webapp and inventory-endpoint... Done
Setting up rudder-inventory-ldap (4.1.0~rc2~git201703280907-xenial0) ...

Configuration file '/opt/rudder/etc/openldap/slapd.conf'
 ==> Modified (by you or by a script) since installation.
 ==> Package distributor has shipped an updated version.
   What would you like to do about it ?  Your options are:
    Y or I  : install the package maintainer's version
    N or O  : keep your currently-installed version
      D     : show the differences between the versions
      Z     : start a shell to examine the situation
 The default action is to keep your current version.
*** slapd.conf (Y/I/N/O/D/Z) [default=N] ? 
Installing new version of config file /etc/default/rudder-slapd ...
Installing new version of config file /etc/init.d/rudder-slapd ...
INFO: Restarting syslogd... Done
INFO: Restarting rudder-slapd...Job for rudder-slapd.service failed because the control process exited with error code. See "systemctl status rudder-slapd.service" and "journalctl -xe" for details.
dpkg: error processing package rudder-inventory-ldap (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of rudder-inventory-endpoint:
 rudder-inventory-endpoint depends on rudder-inventory-ldap (= 4.1.0~rc2~git201703280907-xenial0); however:
  Package rudder-inventory-ldap is not configured yet.

dpkg: error processing package rudder-inventory-endpoint (--configure):
 dependency problems - leaving unconfigured
Setting up rudder-reports (4.1.0~rc2~git201703280907-xenial0) ...
No apport report written because the error message indicates its a followup error from a previous failure.
                                                                                                          INFO: Waiting for PostgreSQL to be up... Done
dpkg: dependency problems prevent configuration of rudder-server-root:
 rudder-server-root depends on rudder-inventory-endpoint (= 4.1.0~rc2~git201703280907-xenial0); however:
  Package rudder-inventory-endpoint is not configured yet.
 rudder-server-root depends on rudder-inventory-ldap (= 4.1.0~rc2~git201703280907-xenial0); however:
  Package rudder-inventory-ldap is not configured yet.

dpkg: error processing package rudder-server-root (--configure):
 dependency problems - leaving unconfigured
Processing triggers for systemd (229-4ubuntu12) ...No apport report written because the error message indicates its a followup error from a previous failure.

Processing triggers for ureadahead (0.100.0-19) ...
Processing triggers for libc-bin (2.23-0ubuntu4) ...
Errors were encountered while processing:
 rudder-inventory-ldap
 rudder-inventory-endpoint
 rudder-server-root
E: Sub-process /usr/bin/dpkg returned an error code (1)

journalctl says

Mar 28 10:06:35 server systemd[1]: Starting LSB: OpenLDAP...
Mar 28 10:06:35 server rudder-slapd[14636]: [INFO] Using /etc/default/rudder-slapd for configuration
Mar 28 10:06:35 server rudder-slapd[14621]: <166>Mar 28 10:06:35 rudder-slapd[14636]: [INFO] Using /etc/default/rudder-slapd for configuration
Mar 28 10:06:35 server rudder-slapd[14641]: [OK] virtual memory limit set to unlimited
Mar 28 10:06:35 server rudder-slapd[14621]: <166>Mar 28 10:06:35 rudder-slapd[14641]: [OK] virtual memory limit set to unlimited
Mar 28 10:06:35 server rudder-slapd[14642]: [INFO] Launching OpenLDAP configuration test...
Mar 28 10:06:35 server rudder-slapd[14621]: <166>Mar 28 10:06:35 rudder-slapd[14642]: [INFO] Launching OpenLDAP configuration test...
Mar 28 10:06:35 server rudder-slapd[14644]: [OK] OpenLDAP configuration test successful
Mar 28 10:06:35 server rudder-slapd[14621]: <166>Mar 28 10:06:35 rudder-slapd[14644]: [OK] OpenLDAP configuration test successful
Mar 28 10:06:35 server rudder-slapd[14645]: [INFO] Launching OpenLDAP replication...
Mar 28 10:06:35 server rudder-slapd[14621]: <166>Mar 28 10:06:35 rudder-slapd[14645]: [INFO] Launching OpenLDAP replication...
Mar 28 10:06:35 server rudder-slapd[14646]: [INFO] no replica found in configuration, aborting lauching slurpd
Mar 28 10:06:35 server rudder-slapd[14621]: <166>Mar 28 10:06:35 rudder-slapd[14646]: [INFO] no replica found in configuration, aborting lauching slurp
Mar 28 10:06:35 server rudder-slapd[14647]: [INFO] no db_recover done
Mar 28 10:06:35 server rudder-slapd[14621]: <166>Mar 28 10:06:35 rudder-slapd[14647]: [INFO] no db_recover done
Mar 28 10:06:35 server rudder-slapd[14648]: [INFO] Launching OpenLDAP...
Mar 28 10:06:35 server rudder-slapd[14621]: <166>Mar 28 10:06:35 rudder-slapd[14648]: [INFO] Launching OpenLDAP...
Mar 28 10:06:35 server rudder-slapd[14649]: [OK] file descriptor limit set to 1024
Mar 28 10:06:35 server rudder-slapd[14621]: <166>Mar 28 10:06:35 rudder-slapd[14649]: [OK] file descriptor limit set to 1024
Mar 28 10:06:35 server rudder-slapd[14654]: [INFO] Using /etc/default/rudder-slapd for configuration
Mar 28 10:06:35 server rudder-slapd[14621]: <166>Mar 28 10:06:35 rudder-slapd[14654]: [INFO] Using /etc/default/rudder-slapd for configuration
Mar 28 10:06:36 server rudder-slapd[14659]: @(#) $OpenLDAP: slapd 2.4.44 (Mar 28 2017 07:32:50) $
                                                    root@ubuntu-builder-16-04-64:/usr/src/rudder-packages/package/SOURCES/openldap-source/servers/slapd
Mar 28 10:06:36 server rudder-slapd[14659]: /opt/rudder/etc/openldap/slapd.conf: line 50: unknown directive <maxsize> inside backend database definitio
Mar 28 10:06:36 server rudder-slapd[14659]: slapd stopped.
Mar 28 10:06:36 server slapd[14659]: connections_destroy: nothing to destroy.
Mar 28 10:06:37 server rudder-slapd[14661]: [ALERT] no PID file for rudder-slapd


Related issues 1 (0 open1 closed)

Has duplicate Rudder - Bug #10505: During a migration from 4.0 to 4.1, ldap base was emptiedRejectedActions
Actions

Also available in: Atom PDF