Project

General

Profile

Actions

Bug #16388

closed

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

Added by Romain Brucker about 5 years ago. Updated about 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 #1

Updated by Romain Brucker about 5 years ago

  • Description updated (diff)
Actions #2

Updated by Benoît PECCATTE about 5 years ago

  • Status changed from New to In progress
  • Assignee set to Benoît PECCATTE
Actions #3

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
Actions #4

Updated by Benoît PECCATTE about 5 years ago

  • Status changed from Pending technical review to Pending release
Actions #5

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
Actions #6

Updated by François ARMAND about 5 years ago

  • Fix check changed from To do to Checked
Actions #7

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.

Actions

Also available in: Atom PDF