Actions
Bug #4310
closedUpgrade to 2.9.0 fails when upgrading from 2.8/2.7 due to a missing script
Pull Request:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
Name check:
Fix check:
Regression:
Description
upgrade from Rudder 2.8 / 2.7 to 2.9.0 fails:
Setting up rudder-webapp (2.9.0-squeeze0) ... Configuration file `/opt/rudder/etc/rudder-web.properties' ==> Modified (by you or by a script) since installation. ==> Package distributor has shipped an updated version. What would you like to do about it ? Your options are: Y or I : install the package maintainer's version N or O : keep your currently-installed version D : show the differences between the versions Z : start a shell to examine the situation The default action is to keep your current version. *** rudder-web.properties (Y/I/N/O/D/Z) [default=N] ? 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... OK INFO: Checking PostgreSQL service status... OK dpkg: error processing 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 (= 2.9.0-squeeze0); 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-webapp rudder-server-root E: Sub-process /usr/bin/dpkg returned an error code (1)
However rudder will work right after the upgrade, all features from RUdder 2.9 will work, main problem will be that all your previous events logs and change request will not be displayed.
To workaround this:
- cd /opt/rudder/share/upgrade-tools
- wget https://raw.github.com/Normation/rudder/branches/rudder/2.9/rudder-core/src/main/resources/Migration/dbMigration-2.8-2.9-set-migration-needed-flag-for-EventLog.sql
- Install the package again.
THis due of a not packaged file for rudder-webapp
Actions