Project

General

Profile

Actions

Bug #16388

closed

Upgrade script fails when some properties are missing from the inventory conf file

Added by Romain Brucker almost 5 years ago. Updated almost 5 years ago.

Status:
Released
Priority:
N/A
Category:
Packaging
Target version:
Severity:
Major - prevents use of part of Rudder | no simple workaround
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
Reviewed
Fix check:
Checked
Regression:

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.

Actions

Also available in: Atom PDF