ENOENT no such file or directory error during upgrade

Given that you did a standard install, it is in /var/discourse/shared/standalone/postgres_data. So you’re safe to rebuild.