Project

General

Profile

Actions

Bug #10506

closed

Rudder 4.1 fails to install Ubuntu/Debian because of rudder-slapd service restart

Added by Nicolas CHARLES about 7 years ago. Updated almost 7 years ago.

Status:
Released
Priority:
N/A
Category:
Packaging
Target version:
Severity:
Critical - prevents main use of Rudder | no workaround | data loss | security
UX impact:
User visibility:
First impressions of Rudder
Effort required:
Priority:
0
Name check:
Fix check:
Regression:

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

service (9.82 KB) service Nicolas CHARLES, 2017-03-27 10:40

Subtasks 1 (0 open1 closed)

Bug #10514: Rudder 4.1 fails to install Ubuntu/Debian because of rudder-slapd service restartReleasedBenoît PECCATTEActions

Related issues 2 (0 open2 closed)

Related to Rudder - Bug #10483: slapd is not started after installation of rudder-inventory-ldap on unbutu 16.04ReleasedFrançois ARMANDActions
Related to Rudder - Bug #10475: service rudder restart does not work the first time on Debian 8RejectedActions
Actions #1

Updated by François ARMAND about 7 years ago

  • Related to Bug #10483: slapd is not started after installation of rudder-inventory-ldap on unbutu 16.04 added
Actions #2

Updated by François ARMAND about 7 years ago

Wasn't it introduced (or badly corrected) by #10483? The symptoms seems quite alike, no?

Actions #3

Updated by Vincent MEMBRÉ about 7 years ago

This happens too on Debian8

Actions #4

Updated by François ARMAND about 7 years ago

  • 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:
Actions #5

Updated by François ARMAND about 7 years ago

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.

Actions #6

Updated by François ARMAND about 7 years ago

  • Related to Bug #10475: service rudder restart does not work the first time on Debian 8 added
Actions #7

Updated by Benoît PECCATTE about 7 years ago

  • Status changed from New to In progress
  • Assignee changed from Alexis Mousset to Benoît PECCATTE
Actions #8

Updated by Benoît PECCATTE about 7 years ago

  • 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
Actions #9

Updated by Benoît PECCATTE about 7 years ago

  • Status changed from Pending technical review to Pending release
Actions #10

Updated by Nicolas CHARLES about 7 years ago

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

Actions #11

Updated by Benoît PECCATTE almost 7 years ago

  • 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.

Actions

Also available in: Atom PDF