Bug #16388
closedUpgrade script fails when some properties are missing from the inventory conf file
Description
After following the documentation here to upgrade Rudder to 6.0 from 5.0.8 (https://docs.rudder.io/reference/6.0/installation/upgrade/debian.html), we end up with an failling installation due to the rudder-webapp postscript exiting with 1.
This is due to the line 78 of the script '/opt/rudder/share/package-scripts/rudder-webapp-postinst' :
grep "^inventory" "${INVENTORY_PROP}" >> "${RUDDER_PROP}"
As no line starting with inventory exists in /opt/rudder/etc/inventory-web.properties , grep return an exit code of 1 and stop the postinstall script.
Appending '|| true' to the line allows to move forward and finish the installation, but might create other problems.
Updated by Benoît PECCATTE about 5 years ago
- Status changed from New to In progress
- Assignee set to Benoît PECCATTE
Updated by Benoît PECCATTE about 5 years ago
- Status changed from In progress to Pending technical review
- Assignee changed from Benoît PECCATTE to Alexis Mousset
- Pull Request set to https://github.com/Normation/rudder-packages/pull/2163
Updated by Benoît PECCATTE about 5 years ago
- Status changed from Pending technical review to Pending release
Applied in changeset rudder-packages|a13f5e8ed2d571181bdba5045b4b07cb77754095.
Updated by Alexis Mousset about 5 years ago
- Subject changed from Ubuntu 16.04 upgrade script not working to Upgrade script fails when some properties are missing from the inventory conf file
- Name check changed from To do to Reviewed
Updated by François ARMAND about 5 years ago
- Fix check changed from To do to Checked
Updated by Vincent MEMBRÉ about 5 years ago
- Status changed from Pending release to Released
This bug has been fixed in Rudder 6.0.1 which was released today.