Project

General

Profile

Actions

Bug #14400

closed

Upgrade to 5.0.7 fails because rudder-upgrade script returns 1

Added by Nicolas CHARLES about 5 years ago. Updated about 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

Also available in: Atom PDF