Bug #4062
closed
Rudder upgrade fails if you accept to replace rudder-web.properties with new default one.
Added by Dennis Cabooter about 11 years ago.
Updated about 11 years ago.
Description
I get a post-installation error upgrading rudder-server-root 2.6 -> 2.7:
INFO: Checking LDAP service status............LDAP service verification failed after 10 tries. Aborting the migration.
Please restart the Rudder service, and start the migration script again:
# /etc/init.d/rudder-server-root restart
# /opt/rudder/bin/rudder-upgrade
dpkg: error processing rudder-webapp (--configure):
subprocess installed post-installation script returned error exit status 1
[master cddc1e6] committing changes in /etc after apt run
Author: decab <decab@winzsv015.wintershall.nl>
3 files changed, 139 insertions(+), 72 deletions(-)
rewrite apache2/sites-available/rudder-default (97%)
E: Sub-process /usr/bin/dpkg returned an error code (1)
I tried the provided suggestion, and it looks like that works:
* Stopping PostgreSQL 9.1 database server [ OK ]
slapd[19188]: [INFO] Using /etc/default/slapd for configuration
slapd[19193]: [INFO] Halting OpenLDAP...
slapd[19197]: [OK] OpenLDAP stopped after 1 seconds
slapd[19198]: [INFO] Launching OpenLDAP database backup...
slapd[19215]: [OK] data save in /var/rudder/ldap/backup/openldap-data-20131014131309.ldif
slapd[19217]: [INFO] Halting OpenLDAP replication...
slapd[19218]: [INFO] no replica found in configuration, aborting stopping slurpd
slapd[19230]: [INFO] Using /etc/default/slapd for configuration
slapd[19235]: [INFO] Launching OpenLDAP configuration test...
slapd[19237]: [OK] OpenLDAP configuration test successful
slapd[19238]: [INFO] Launching OpenLDAP replication...
slapd[19239]: [INFO] no replica found in configuration, aborting lauching slurpd
slapd[19240]: [INFO] no db_recover done
slapd[19241]: [INFO] Launching OpenLDAP...
slapd[19242]: [OK] file descriptor limit set to 1024
slapd[19249]: [OK] OpenLDAP started on port 389 and 636
* Starting PostgreSQL 9.1 database server
My mistake. Restarting worked. The rudder-upgrade script keeps failing on LDAP:
# /opt/rudder/bin/rudder-upgrade
INFO: Checking LDAP service status............LDAP service verification failed after 10 tries. Aborting the migration.
Please restart the Rudder service, and start the migration script again:
# /etc/init.d/rudder-server-root restart
# /opt/rudder/bin/rudder-upgrade
The problem was with /opt/rudder/etc/rudder-web.properties. The installation asked me if I would overwrite the file. Since I don't know if other changed are made, I choosed to overwrite it, after I made a backup in /root. Changed back the passwords and everything now works fine.
Ok, so the problem is that if the rudder-web.properties are replaced during upgrade of rudder-web package, the rudder-upgrade does not work ?
I suppose so, since the default rudder-web.properties does not contain the good the credentials.
The installer will give you 3 choices:
- Ignore the package maintainer's version and keep your old one
- Overwrite your old one with the package maintainer's version
- Compare the changes from your old one with the package maintainer's version
I always choose to overwrite after backing up the old one first.
- Status changed from New to 8
- Assignee set to Matthieu CERDA
- Priority changed from N/A to 2
I think we should fix our upgrade scripts to ensure that passwords from rudder-passwords.conf are updated in rudder-webapp.properties before attempting any other checks. This can be annoying for upgrades.
Matthieu, please implement.
I think we should also fetch the define syslog port, or else all reporting may fail ?
It would be awesome to have a clear warning before the question, that says that Rudder handle the upgrade of this file, and that one should only choose to overwrite if wanting to restore defaults values for all parameters
- Status changed from 8 to Pending technical review
- Assignee changed from Matthieu CERDA to Jonathan CLARKE
- % Done changed from 0 to 100
- Pull Request set to https://github.com/Normation/rudder-packages/pull/168
- Status changed from Pending technical review to Discussion
- Assignee changed from Jonathan CLARKE to Matthieu CERDA
- Target version changed from 2.7.6 to 2.8.0~rc2
This PR looks good, but I consider the change to be too intrusive for 2.7. Let's include it in 2.8.
- Status changed from Discussion to Pending technical review
- Assignee changed from Matthieu CERDA to Jonathan CLARKE
- Pull Request changed from https://github.com/Normation/rudder-packages/pull/168 to https://github.com/Normation/rudder-packages/pull/171
Retargetting complete, PR updated.
- Status changed from Pending technical review to Pending release
Applied in changeset packages:commit:124d7d85baad399b68e53d89101174057cf89bc2.
Applied in changeset packages:commit:330a2a145dd95e4b47a8d080d0b3bf0d8c61e372.
- Subject changed from Post-installation error upgrading rudder-server-root 2.6 -> 2.7 to Rudder upgrade fails if you accept to replace rudder-web.properties with new default one.
- Status changed from Pending release to Released
This bug has been fixed in Rudder 2.8.0~rc2, which was released today.
Check out:
Also available in: Atom
PDF