Actions
Bug #2730
closedrudder-jetty init script requires slapd to be running but package dependencies do not reflect this causing errors at install
Pull Request:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
Name check:
Fix check:
Regression:
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.
Actions