Bug #10506
closed
Rudder 4.1 fails to install Ubuntu/Debian because of rudder-slapd service restart
Added by Nicolas CHARLES over 7 years ago.
Updated over 7 years ago.
Severity:
Critical - prevents main use of Rudder | no workaround | data loss | security
User visibility:
First impressions of Rudder
Description
==> ubuntu16_server: Setting up rudder-inventory-ldap (4.1.0~rc2~git201703270151-xenial0) ...
==> ubuntu16_server: INFO: Restarting syslogd...
==> ubuntu16_server: Done
==> ubuntu16_server: INFO: Restarting rudder-slapd...
==> ubuntu16_server: Failed to restart rudder-slapd.service: Unit rudder-slapd.service not found.
==> ubuntu16_server: dpkg: error processing package rudder-inventory-ldap (--configure):
==> ubuntu16_server: subprocess installed post-installation script returned error exit status 5
==> ubuntu16_server: dpkg: dependency problems prevent configuration of rudder-inventory-endpoint:
==> ubuntu16_server: rudder-inventory-endpoint depends on rudder-inventory-ldap (= 4.1.0~rc2~git201703270151-xenial0); however:
==> ubuntu16_server: Package rudder-inventory-ldap is not configured yet.
==> ubuntu16_server:
==> ubuntu16_server: dpkg: error processing package rudder-inventory-endpoint (--configure):
==> ubuntu16_server: dependency problems - leaving unconfigured
==> ubuntu16_server: Setting up rudder-reports (4.1.0~rc2~git201703270151-xenial0) ...
==> ubuntu16_server: No apport report written because the error message indicates its a followup error from a previous failure.
Attached is service script
Files
- Related to Bug #10483: slapd is not started after installation of rudder-inventory-ldap on unbutu 16.04 added
Wasn't it introduced (or badly corrected) by #10483? The symptoms seems quite alike, no?
This happens too on Debian8
- Subject changed from Rudder 4.1 fails to install on Ubuntu16 to Rudder 4.1 fails to install Ubuntu/Debian because of rudder-slapd service restart
I confirm it is reproducible and happens on Debian8, on a fresh install:
==> debian8lite_server: INFO: Restarting rudder-slapd...
==> debian8lite_server: Failed to restart rudder-slapd.service: Unit rudder-slapd.service failed to load: No such file or directory.
==> debian8lite_server: dpkg: error processing package rudder-inventory-ldap (--configure):
==> debian8lite_server: subprocess installed post-installation script returned error exit status 6
==> debian8lite_server: dpkg: dependency problems prevent configuration of rudder-inventory-endpoint:
==> debian8lite_server: rudder-inventory-endpoint depends on rudder-inventory-ldap (= 4.1.0~rc2~git201703270227-jessie0); however:
==> debian8lite_server: Package rudder-inventory-ldap is not configured yet.
==> debian8lite_server:
I can also confirm than starting the slapd service and running rudder-init correct the problem:
root@server:/home/vagrant# ps aux | grep slap
root 15780 0.0 0.1 15140 2204 pts/0 S+ 12:58 0:00 grep --color=auto slap
root@server:/home/vagrant# service rudder-slapd start
root@server:/home/vagrant# ps aux | grep slap
root 15923 0.0 0.3 105066752 5840 ? Ssl 12:59 0:00 /opt/rudder/libexec/slapd -h ldap://localhost:389 -n rudder-slapd -f /opt/rudder/
etc/openldap/slapd.conf
root 15939 0.0 0.1 15140 2136 pts/0 S+ 12:59 0:00 grep --color=auto slap
root@server:/home/vagrant# /opt/rudder/bin/rudder-init
Welcome to the Rudder initialization utility
This utility configures a Rudder root server, and may be
called again if reconfiguration is required.
Enter network allowed to access server (i.e 192.168.0.0/24): 192.168.0.0/24
192.168.0.0/24
Network(s) added:
192.168.0.0/24
Add more networks? (yes/no) no
no
SUMMARY OF OPTIONS:
Allowed networks: 192.168.0.0/24
Hit any key to continue....
Configuring and installing initial CFEngine promises... Done.
Initializing LDAP database... done.
Updating Rudder password file with random passwords... done.
Cleaning up temporary directories... done.
Restarting services... done.
Reinitialization complete, Rudder is currently reloading.
You can access it via https://<hostname>/rudder
( Example: https://server.rudder.local/rudder )
Thank you for using Rudder.
- Related to Bug #10475: service rudder restart does not work the first time on Debian 8 added
- Status changed from New to In progress
- Assignee changed from Alexis Mousset to Benoît PECCATTE
- Status changed from In progress to Pending technical review
- Assignee changed from Benoît PECCATTE to Vincent MEMBRÉ
- Pull Request set to https://github.com/Normation/rudder-packages/pull/1319
- Status changed from Pending technical review to Pending release
Tried with this night nightly, issue still exists
iF rudder-inventory-ldap 4.1.0~rc2~git201703280152-xenial0 amd64
==> ubuntu16_server: Setting up rudder-inventory-ldap (4.1.0~rc2~git201703280152-xenial0) ...
==> ubuntu16_server: INFO: Restarting syslogd...
==> ubuntu16_server: Done
==> ubuntu16_server: INFO: Restarting rudder-slapd...
==> ubuntu16_server: Failed to restart rudder-slapd.service: Unit rudder-slapd.service not found.
==> ubuntu16_server: dpkg: error processing package rudder-inventory-ldap (--configure):
==> ubuntu16_server: subprocess installed post-installation script returned error exit status 5
- Status changed from Pending release to Released
- Priority set to 0
This bug has been fixed in Rudder 4.1.0 which was released today.
Also available in: Atom
PDF