Bug #14400
Updated by François ARMAND over 5 years ago
#14338 breaks upgrade script
Workaound:
Edit /opt/rudder/bin/rudder-upgrade
Search for the line:
<pre>
RES=$(${PSQL} -t -d ${SQL_DATABASE} -c "select reloptions from pg_class where relname='ruddersysevents'" | grep -c "autovacuum")
</pre>
Add `|| true` at the end like that:
<pre>
RES=$(${PSQL} -t -d ${SQL_DATABASE} -c "select reloptions from pg_class where relname='ruddersysevents'" | grep -c "autovacuum" || true)
</pre>
Restart the upgrade process (for example, in debian: `apt install -f`)