Project

General

Profile

Bug #14400

Upgrade to 5.0.7 fails because rudder-upgrade script returns 1

Added by Nicolas CHARLES 7 months ago. Updated 7 months ago.

Status:
Released
Priority:
N/A
Category:
Packaging
Target version:
Severity:
User visibility:
Effort required:
Priority:
0

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`)

Associated revisions

Revision 8b3dc030 (diff)
Added by Nicolas CHARLES 7 months ago

Fixes #14400: #14338 braks upgrade script

History

#1

Updated by Nicolas CHARLES 7 months ago

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

Updated by Nicolas CHARLES 7 months 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
#3

Updated by Alexis MOUSSET 7 months ago

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

Updated by Nicolas CHARLES 7 months ago

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

Updated by François ARMAND 7 months ago

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

Updated by François ARMAND 7 months ago

  • Description updated (diff)
#7

Updated by François ARMAND 7 months ago

  • Status changed from Pending release to Released

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

Also available in: Atom PDF