When upgrading foreman from 1.24.3 → 2.0.2 an attempt to upgrade postgres occurs but the hooks that check if postgres12 need to be installed/upgraded do not account for all scenarios.
In our case we have a puppet module installed managing postgres (I didn’t think it should have touched tfm but that’s in the past now) which only supports a global version number. At some point postgres was updated to the scl provided version that the installer tries to switch to but the data file was kept in the old location so it thinks it still needs to do the upgrade.
Will be working around this by editing the check locally to return false
Running Start Services
================================================================================
Check if command is run as root user: [OK]
--------------------------------------------------------------------------------
Start applicable services:
Starting the following service(s): [FAIL]
No service found matching your parameter 'postgresql'
--------------------------------------------------------------------------------
Scenario [Start Services] failed.
The following steps ended up in failing state:
[service-start]
Resolve the failed steps and rerun
the command. In case the failures are false positives,
use --whitelist="service-start"
This is here now more for others in case they hit the issue. We are aware these versions are old and are in the process of making our way to current versions.