For my case, it’s db:migrate not running properly.
tried with different backend servers, but all with the same error msg.
I intiailly thought it’s due to postgres not supporting 16 or 17, so i tried to run with below hooks.
still nothing worked.
hooks:
after_code:
- exec:
cd: /var/www/discourse
cmd:
- export HOME=/var/www/discourse
- export BUNDLE_USER_HOME=/var/www/discourse/.bundle
- apt-get update
- apt-get remove -y postgresql-client-15
- apt-get install -y postgresql-client-16