Continuing the discussion from Welcome to nginx! page before rebuild, site won't rebuild now:
It’s fairly rare, but when upgrading from a very old container, permissions for postgres are wrong (the postgres UID and GID changed. To fix it this is required:
chmod -r 101.104 /var/discourse/shared/standalone/postgres_data
I’ve done this several times. I recognized the problem in my first reply to the linked topic, but figuring out what UID/GID are required isn’t particularly easy for most people. (Find a working server and do an ls -ld /var/discourse/shared/standalone/postgres_data
.