Bug #2730
closedrudder-jetty init script requires slapd to be running but package dependencies do not reflect this causing errors at install
Description
root@srv00015:/var# aptitude install rudder-server-root The following NEW packages will be installed: apache2{a} apache2-mpm-worker{a} apache2.2-bin{a} apache2.2-common{a} postgresql{a} postgresql-8.4{a} postgresql-client-8.4{a} postgresql-client-common{a} postgresql-common{a} rudder-cfengine-community{a} rudder-inventory-endpoint{a} rudder-inventory-ldap{a} rudder-jetty{a} rudder-policy-templates{a} rudder-reports{a} rudder-server-root rudder-webapp{a} 0 packages upgraded, 17 newly installed, 0 to remove and 4 not upgraded. Need to get 0 B/114 MB of archives. After unpacking 186 MB will be used. Do you want to continue? [Y/n/?] WARNING: untrusted versions of the following packages will be installed! Untrusted packages could compromise your system's security. You should only proceed with the installation if you are certain that this is what you want to do. rudder-server-root rudder-policy-templates rudder-jetty rudder-inventory-endpoint rudder-cfengine-community rudder-inventory-ldap rudder-webapp rudder-reports Do you want to ignore this warning and proceed anyway? To continue, enter "Yes"; to abort, enter "No": Yes Preconfiguring packages ... Selecting previously deselected package apache2.2-bin. (Reading database ... 23283 files and directories currently installed.) Unpacking apache2.2-bin (from .../apache2.2-bin_2.2.16-6+squeeze7_amd64.deb) ... Selecting previously deselected package apache2.2-common. Unpacking apache2.2-common (from .../apache2.2-common_2.2.16-6+squeeze7_amd64.deb) ... Selecting previously deselected package apache2-mpm-worker. Unpacking apache2-mpm-worker (from .../apache2-mpm-worker_2.2.16-6+squeeze7_amd64.deb) ... Selecting previously deselected package apache2. Unpacking apache2 (from .../apache2_2.2.16-6+squeeze7_amd64.deb) ... Selecting previously deselected package postgresql-client-common. Unpacking postgresql-client-common (from .../postgresql-client-common_113_all.deb) ... Selecting previously deselected package postgresql-client-8.4. Unpacking postgresql-client-8.4 (from .../postgresql-client-8.4_8.4.12-0squeeze1_amd64.deb) ... Selecting previously deselected package postgresql-common. Unpacking postgresql-common (from .../postgresql-common_113_all.deb) ... Selecting previously deselected package postgresql-8.4. Unpacking postgresql-8.4 (from .../postgresql-8.4_8.4.12-0squeeze1_amd64.deb) ... Selecting previously deselected package postgresql. Unpacking postgresql (from .../postgresql_8.4.12-0squeeze1_all.deb) ... Selecting previously deselected package rudder-cfengine-community. Unpacking rudder-cfengine-community (from .../rudder-cfengine-community_2.3.8-squeeze0_amd64.deb) ... Selecting previously deselected package rudder-jetty. Unpacking rudder-jetty (from .../rudder-jetty_2.3.8-squeeze0_all.deb) ... Selecting previously deselected package rudder-inventory-ldap. Unpacking rudder-inventory-ldap (from .../rudder-inventory-ldap_2.3.8-squeeze0_amd64.deb) ... Selecting previously deselected package rudder-inventory-endpoint. Unpacking rudder-inventory-endpoint (from .../rudder-inventory-endpoint_2.3.8-squeeze0_all.deb) ... Selecting previously deselected package rudder-policy-templates. Unpacking rudder-policy-templates (from .../rudder-policy-templates_2.3.8-squeeze0_all.deb) ... Selecting previously deselected package rudder-reports. Unpacking rudder-reports (from .../rudder-reports_2.3.8-squeeze0_all.deb) ... Selecting previously deselected package rudder-webapp. Unpacking rudder-webapp (from .../rudder-webapp_2.3.8-squeeze0_all.deb) ... Selecting previously deselected package rudder-server-root. Unpacking rudder-server-root (from .../rudder-server-root_2.3.8-squeeze0_all.deb) ... Processing triggers for man-db ... Setting up apache2.2-bin (2.2.16-6+squeeze7) ... Setting up apache2.2-common (2.2.16-6+squeeze7) ... Enabling site default. Enabling module alias. Enabling module autoindex. Enabling module dir. Enabling module env. Enabling module mime. Enabling module negotiation. Enabling module setenvif. Enabling module status. Enabling module auth_basic. Enabling module deflate. Enabling module authz_default. Enabling module authz_user. Enabling module authz_groupfile. Enabling module authn_file. Enabling module authz_host. Enabling module reqtimeout. Setting up apache2-mpm-worker (2.2.16-6+squeeze7) ... Starting web server: apache2. Setting up apache2 (2.2.16-6+squeeze7) ... Setting up postgresql-client-common (113) ... Setting up postgresql-client-8.4 (8.4.12-0squeeze1) ... update-alternatives: using /usr/share/postgresql/8.4/man/man1/psql.1.gz to provide /usr/share/man/man1/psql.1.gz (psql.1.gz) in auto mode. Setting up postgresql-common (113) ... Building PostgreSQL dictionaries from installed myspell/hunspell packages... Setting up postgresql-8.4 (8.4.12-0squeeze1) ... Creating new cluster (configuration: /etc/postgresql/8.4/main, data: /var/lib/postgresql/8.4/main)... Moving configuration file /var/lib/postgresql/8.4/main/postgresql.conf to /etc/postgresql/8.4/main... Moving configuration file /var/lib/postgresql/8.4/main/pg_hba.conf to /etc/postgresql/8.4/main... Moving configuration file /var/lib/postgresql/8.4/main/pg_ident.conf to /etc/postgresql/8.4/main... Configuring postgresql.conf to use port 5432... update-alternatives: using /usr/share/postgresql/8.4/man/man1/postmaster.1.gz to provide /usr/share/man/man1/postmaster.1.gz (postmaster.1.gz) in auto mode. Starting PostgreSQL 8.4 database server: main. Setting up postgresql (8.4.12-0squeeze1) ... Setting up rudder-cfengine-community (2.3.8-squeeze0) ... rudder-cfengine-community has been installed, but not started Making a key pair for cfengine, please wait, this could take a minute... Setting up rudder-jetty (2.3.8-squeeze0) ... insserv: Service slapd has to be enabled to start service jetty insserv: exiting now! update-rc.d: error: insserv rejected the script header dpkg: error processing rudder-jetty (--configure): subprocess installed post-installation script returned error exit status 1 configured to not write apport reports Setting up rudder-inventory-ldap (2.3.8-squeeze0) ... Stopping enhanced syslogd: rsyslogd. Starting enhanced syslogd: rsyslogd. slapd[21989]: [INFO] Using /etc/default/slapd for configuration slapd[21994]: [INFO] Launching OpenLDAP configuration test... slapd[21996]: [OK] OpenLDAP configuration test successful slapd[21997]: [INFO] Launching OpenLDAP replication... slapd[21998]: [INFO] no replica found in configuration, aborting lauching slurpd slapd[21999]: [INFO] no db_recover done slapd[22000]: [INFO] Launching OpenLDAP... slapd[22001]: [OK] file descriptor limit set to 1024 slapd[22008]: [OK] OpenLDAP started on port 389 and 636 dpkg: dependency problems prevent configuration of rudder-inventory-endpoint: rudder-inventory-endpoint depends on rudder-jetty; however: Package rudder-jetty is not configured yet. dpkg: error processing rudder-inventory-endpoint (--configure): dependency problems - leaving unconfigured Setting up rudder-policy-templates (2.3.8-squeeze0) ... configured to not write apport reports Setting up rudder-reports (2.3.8-squeeze0) ... Reloading enhanced syslogd: rsyslogd. dpkg: dependency problems prevent configuration of rudder-webapp: rudder-webapp depends on rudder-jetty; however: Package rudder-jetty is not configured yet. rudder-webapp depends on rudder-inventory-endpoint; however: Package rudder-inventory-endpoint is not configured yet. dpkg: error processing rudder-webapp (--configure): dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of rudder-server-root: rudder-server-root depends on rudder-webapp; however: Package rudder-webapp is not configured yet. dpkg: error processing rudder-server-root (--configure): dependency problems - leaving unconfigured configured to not write apport reports configured to not write apport reports Errors were encountered while processing: rudder-jetty rudder-inventory-endpoint rudder-webapp rudder-server-root E: Sub-process /usr/bin/dpkg returned an error code (1) A package failed to install. Trying to recover: Setting up rudder-jetty (2.3.8-squeeze0) ... Setting up rudder-inventory-endpoint (2.3.8-squeeze0) ... Reloading enhanced syslogd: rsyslogd. Setting up rudder-webapp (2.3.8-squeeze0) ... Reloading enhanced syslogd: rsyslogd. Stopping web server: apache2 ... waiting .. Site default disabled. Run '/etc/init.d/apache2 reload' to activate new configuration! Considering dependency dav for dav_fs: Enabling module dav. Enabling module dav_fs. Run '/etc/init.d/apache2 restart' to activate new configuration! Enabling module rewrite. Run '/etc/init.d/apache2 restart' to activate new configuration! Considering dependency proxy for proxy_http: Enabling module proxy. Enabling module proxy_http. Run '/etc/init.d/apache2 restart' to activate new configuration! Enabling site rudder-default. Run '/etc/init.d/apache2 reload' to activate new configuration! Adding password for user rudder Starting web server: apache2. rudder.dir.shared.files.folder attribute already set in rudder-web.properties Restarting Rudder webapp and inventory-endpoint Stopping Jetty: No process in pidfile '/var/rudder/run/jetty.pid' found running; none killed. OK Setting umask to 0027 Starting Jetty: OK Setting up rudder-server-root (2.3.8-squeeze0) ... ************************************************************ Rudder is now installed but not configured. Please run /opt/rudder/bin/rudder-init.sh ************************************************************
I've to install rudder-inventory-ldap first to avoid the problem.
Updated by Francois BAYART over 12 years ago
- Status changed from New to Discussion
- Target version set to 2.3.9
I have make a debian6 fresh install (ISO : debian-6.0.4-amd64-netinst.iso ) , repository are internal
-----snip here-----
apt-get update
apt-get dist-upgrade
cd /etc/apt/
vi sources.list
apt-get update
apt-get dist-upgrade
apt-get install debian-archive-keyring
apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 474A19E8
echo "deb http://www.rudder-project.org/apt-2.3/ $(lsb_release cs) main contrib non-free" > /etc/apt/sources.list.d/rudder.list
apt-get update
apt-get install rudder-server-root
more /etc/hosts
/opt/rudder/bin/rudder-init.sh
for i in `dpkg -l|grep rudder|awk '{print $2}'`; do dpkg-reconfigure $i ; done
-----snip here----
no problem during installation, no problem during dpkg-reconfigure
-----snip here-----
root@rudder-test:/etc/apt# cat /etc/debian_version
6.0.5
-----snip here-----
Updated by Gonéri Le Bouder over 12 years ago
I believe this is related to insserv.
Updated by Jonathan CLARKE about 12 years ago
I think I see what's going on here: rudder-jetty does not depend on rudder-inventory-ldap, but the jetty init script requires slapd to be running... So in some weird case, your aptitude installs rudder-jetty before rudder-inventory-ldap, which does not happen on my test systems. Maybe a different version of aptitude, but anyway...
This init script dependency is necessary because of #2883. Until that is fixed, this may happen, so I guess we shuold introduce a packaging dependency too, seeing as these are Rudder specific packages.
Updated by Nicolas PERRON about 12 years ago
Jonathan CLARKE wrote:
I think I see what's going on here: rudder-jetty does not depend on rudder-inventory-ldap, but the jetty init script requires slapd to be running... So in some weird case, your aptitude installs rudder-jetty before rudder-inventory-ldap, which does not happen on my test systems. Maybe a different version of aptitude, but anyway...
This init script dependency is necessary because of #2883. Until that is fixed, this may happen, so I guess we shuold introduce a packaging dependency too, seeing as these are Rudder specific packages.
Ok, then a temporary solution could be to change dependencies in order to make rudder-jetty depends on rudder-inventory-ldap . For now, I don't think the impact is too important (theses packages are not really modular and #2883 is not yet fixed)
Updated by Jonathan CLARKE about 12 years ago
- Subject changed from packages installation failure on Debian 6 to rudder-jetty init script requires slapd to be running but package dependencies do not reflect this causing errors at install
- Status changed from Discussion to In progress
- Priority changed from N/A to 2
This also occurs with RPM packages, see #2754. I will fix by implementing this dependency in packaging.
Updated by Jonathan CLARKE about 12 years ago
- Status changed from In progress to Pending technical review
- % Done changed from 0 to 100
Applied in changeset commit:7b4894d0c2eb1aba450344c422d0c2c18dbf2239.
Updated by Nicolas PERRON about 12 years ago
I'm not sure to understand why insserv is remplaced by chkconfig but it's technically OK.
Updated by Jonathan CLARKE about 12 years ago
- Status changed from Pending technical review to Released
Nicolas PERRON wrote:
I'm not sure to understand why insserv is remplaced by chkconfig but it's technically OK.
It's not. chkconfig was replaced by insserv in a fix committed for #2754 (same problem but for RPM packages). Since that fix was not appropriate, I reverted the commit, which is why you're seeing the diff here.
Updated by Nicolas PERRON almost 12 years ago
- Project changed from Rudder to 34
- Category deleted (
11)
Updated by Benoît PECCATTE over 9 years ago
- Project changed from 34 to Rudder
- Category set to Packaging