Bug #6447
closedCan't install rudder-server-root on ubuntu 14.04 server without postgresql started before
Added by Jérémy HOCDÉ over 9 years ago. Updated over 9 years ago.
Description
Ubuntu package for rudder-server-root does not install properly if postgresql is not installed et started before
tested on ubuntu 14.04.2 amd64 server with rudder-server-root 3.0.3
possible fix:
in preinst check if postgresql is started
in control add postgresql dep
Updated by Nicolas CHARLES over 9 years ago
- Category set to Packaging
- Assignee set to Matthieu CERDA
Thank you for this ticket Jeremy,
Matthieu will know how to fix that !
Updated by Matthieu CERDA over 9 years ago
- Status changed from New to 8
- Priority changed from N/A to 2
The rudder-server-root package depends on rudder-reports, which in turn depends on postgresql. Thus, the dependency chain should put postgresql first before installing rudder-reports (which actually depends on it).
A possible reason for this would be that we try to run rudder-upgrade before postgresql is up and ready, which would indeed be a problem.
Jeremy, was the error linked to a "migration script" ?
Thanks in advance :)
Updated by Matthieu CERDA over 9 years ago
- Status changed from New to Discussion
- Assignee changed from Matthieu CERDA to Jérémy HOCDÉ
Updated by Jérémy HOCDÉ over 9 years ago
try with new packages 3.0.4 (postgresql was install et started before launch rudder-server-root isntallation)
Setting up rudder-webapp (3.0.4-trusty0) ...INFO: Restarting syslog...Done
INFO: No usable SSL certificate detected for Rudder HTTP/S support, generating one automatically... Done
INFO: Restarting Apache HTTPd... Done
INFO: Launching script to check if a migration is needed
INFO: Checking if rudder-web.properties database access credentials are all right... LDAP OK, SQL Credentials updated
INFO: Checking if inventory-web.properties database access credentials are all right... LDAP OK, SQL skipped
INFO: Checking LDAP service status............ FAILED
LDAP service verification failed after 10 tries. Aborting the migration.
Please restart the LDAP service, and start the migration script again.
(on a single Rudder server, try service rudder-server-root restart)
Once it is working, run:
- /opt/rudder/bin/rudder-upgrade
dpkg: error processing package rudder-webapp (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of rudder-server-root:
rudder-server-root depends on rudder-webapp (= 3.0.4-trusty0); however:
Package rudder-webapp is not configured yet.
dependency problems - leaving unconfigured
Processing triggers for libc-bin (2.19-0ubuntu6.6) ...
No apport report written because the error message indicates its a followup error from a previous failure.
Processing triggers for ca-certificates (20141019ubuntu0.14.04.1) ...
Updating certificates in /etc/ssl/certs... 0 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d....
done.
done.
Errors were encountered while processing:
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-webapp (3.0.4-trusty0) ...
INFO: Restarting syslog...Done
INFO: Restarting Apache HTTPd... Done
INFO: Launching script to check if a migration is needed
INFO: Checking if rudder-web.properties database access credentials are all right... LDAP OK, SQL OK
INFO: Checking if inventory-web.properties database access credentials are all right... LDAP OK, SQL skipped
INFO: Checking LDAP service status............ FAILED
LDAP service verification failed after 10 tries. Aborting the migration.
Please restart the LDAP service, and start the migration script again.
(on a single Rudder server, try service rudder-server-root restart)
Once it is working, run:
- /opt/rudder/bin/rudder-upgrade
dpkg: error processing package rudder-webapp (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of rudder-server-root:
rudder-server-root depends on rudder-webapp (= 3.0.4-trusty0); however:
Package rudder-webapp is not configured yet.
dpkg: error processing package rudder-server-root (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
rudder-webapp
rudder-server-root
Updated by Matthieu CERDA over 9 years ago
- Status changed from Discussion to Rejected
I think this problem has been corrected by #6673, so I'm closing this ticket as a duplicate :)
Feel free to comment and reopen this ticket if this bug happens again.
Updated by Matthieu CERDA over 9 years ago
- Is duplicate of Bug #6673: No reporting on agents on ncf directives on SLES added