My question stated on meta.discourse (question details), as I was trying to backup the DB of an old Discourse installation.
After trying a few things, It seems the server had run out of memory. The problem is that when I tried to edit
/opt/bitnami/postgresql/bin/setenv.sh, nothing was saved. So when I try to run:
pg_dump -U postgres bitnami_discourse > backup.sql
I get this error:
/opt/bitnami/postgresql/bin/pg_dump.bin: error while loading shared libraries: libpq.so.5: cannot open shared object file: No such file or directory
I'm not sure if this is the root cause, but I think restoring
/opt/bitnami/postgresql/bin/setenv.sh could help me.
Can I find the default contents of that
setenv.sh file anywhere in the bitnami documentation?