I tried to update via admin, not sure what happened but admin pages went blank while front was ok. Decided to do update again via command line and got this error
Errno::ENOENT: No such file or directory @ rb_sysopen - /etc/postgresql/15/main/postgresql.conf
cd /var/discourse; ./launcher rebuild app
x86_64 arch detected.
Ensuring launcher is up to date
Fetching origin
Launcher is up-to-date
2.0.20240708-0023: Pulling from discourse/base
Digest: sha256:025e9c1f68
Status: Image is up to date for discourse/base:2.0.20240708-0023
docker.io/discourse/base:2.0.20240708-0023
/usr/local/lib/ruby/gems/3.3.0/gems/pups-1.2.1/lib/pups.rb
/usr/local/bin/pups --stdin
I, [2025-02-06T20:57:43.044950 #1] INFO -- : Reading from stdin
I, [2025-02-06T20:57:43.066724 #1] INFO -- : File > /etc/service/postgres/run chmod: +x chown:
I, [2025-02-06T20:57:43.072432 #1] INFO -- : File > /etc/service/postgres/log/run chmod: +x chown:
I, [2025-02-06T20:57:43.077790 #1] INFO -- : File > /etc/runit/3.d/99-postgres chmod: +x chown:
I, [2025-02-06T20:57:43.083299 #1] INFO -- : File > /root/install_postgres chmod: +x chown:
I, [2025-02-06T20:57:43.087962 #1] INFO -- : File > /root/upgrade_postgres chmod: +x chown:
FAILED
--------------------
Errno::ENOENT: No such file or directory @ rb_sysopen - /etc/postgresql/15/main/postgresql.conf
Location of failure: /usr/local/lib/ruby/gems/3.3.0/gems/pups-1.2.1/lib/pups/replace_command.rb:11:in `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
** FAILED TO BOOTSTRAP ** please scroll up and look for earlier error messages, there may be more than one.
./discourse-doctor may help diagnose the problem.
That’s a much older Docker image which does not have PostgreSQL 15 packages installed, hence the error:
Your launcher file has probably been modified and locked into using that older Docker image above. You can change it to the latest image highlighted below then try rebuilding again. (Take necessary backups beforehand.)