Hello everyone,
Would be most grateful if someone could help with the following problems I’m having.
I recently attempted to upgrade from 2026.6 to the latest version
However I hadn’t seen the announcement about PostGres being updated to version 18, so as a result the update failed due to a lack of disk space (needed 8GB more than the 25GB we have available)
Our site is currently using v15, so we decided to postpone the update by changing the line in app.yml to 'templates/postgres.15.template.yml` and saving it
Then upon attempting to rebuild it failed with the error
Errno::ENOENT: No such file or directory @ rb_sysopen - /etc/postgresql/15/main/postgresql.conf
Location of failure: /usr/local/lib/ruby/gems/3.4.0/gems/pups-1.4.0/lib/pups/replace_command.rb:11:in 'IO.read'
replace failed with the params {"filename" => "/etc/postgresql/15/main/postgresql.conf", "from" => "data_directory = '/var/lib/postgresql/15/main'", "to" => "data_directory = '/shared/postgres_data'"}
bootstrap failed with exit code 1
After some failed troubleshooting, and Discourse-Doctor also failing to get the site up and running again. I decided it would just be easier to restore the full backup of our Linode that was taken a couple of days prior to attempting the update.
Once that was done, silly me thought the site would be up and running again but
we now have the problem of getting a 502 Bad Gateway error when attempting to access our site. I saw some advice suggesting that rebuilding can fix the problem, so I tried that but the rebuild failed and once again got the bootstrap error.
Thank you for any help or suggestions you might have.