Project

General

Profile

Actions

Bug #14400

closed

Upgrade to 5.0.7 fails because rudder-upgrade script returns 1

Added by Nicolas CHARLES over 5 years ago. Updated over 5 years ago.

Status:
Released
Priority:
N/A
Category:
Packaging
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
Fix check:
Regression:

Description

#14338 breaks upgrade script

Workaound:

Edit /opt/rudder/bin/rudder-upgrade
Search for the line:

RES=$(${PSQL} -t -d ${SQL_DATABASE} -c "select reloptions from pg_class where relname='ruddersysevents'" | grep -c "autovacuum")

Add `|| true` at the end like that:

RES=$(${PSQL} -t -d ${SQL_DATABASE} -c "select reloptions from pg_class where relname='ruddersysevents'" | grep -c "autovacuum" || true)

Restart the upgrade process (for example, in debian: `apt install -f`)

Actions #1

Updated by Nicolas CHARLES over 5 years ago

  • Status changed from New to In progress
  • Assignee set to Nicolas CHARLES
Actions #2

Updated by Nicolas CHARLES over 5 years ago

  • Status changed from In progress to Pending technical review
  • Assignee changed from Nicolas CHARLES to Alexis Mousset
  • Pull Request set to https://github.com/Normation/rudder-packages/pull/1806
Actions #3

Updated by Alexis Mousset over 5 years ago

  • Subject changed from #14338 braks upgrade script to #14338 breaks upgrade script
Actions #4

Updated by Nicolas CHARLES over 5 years ago

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

Updated by François ARMAND over 5 years ago

  • Subject changed from #14338 breaks upgrade script to Upgrade to 5.0.7 fails because rudder-upgrade script returns 1
  • Description updated (diff)
Actions #6

Updated by François ARMAND over 5 years ago

  • Description updated (diff)
Actions #7

Updated by François ARMAND over 5 years ago

  • Status changed from Pending release to Released

This bug has been fixed in Rudder 5.0.8 which was released today.

Actions

Also available in: Atom PDF