good evening to you all! Im working with PostgreSQL 12.2 over FreeBSD 12.0-RELEASE and currently having this issue: Error
Background:
- Im trying to set Streaming Replication according with the docs (https://www.postgresql.org/docs/current/warm-standby.html). I set up an NFS server to receive the WAL archives on this secondary machine.
- I followed the instructions to boot a standby server from a backup. Worked with pg_basebackup (https://www.postgresql.org/docs/current/continuous-archiving.html#BACKUP-BASE-BACKUP) and did all the necessary steps to boot from the backup (https://www.postgresql.org/docs/current/continuous-archiving.html#BACKUP-PITR-RECOVERY).
- The backup of my primary node was sent to the NFS server. When restarting from the backup, I copied the files from the NFS server to the PGDATA directory. Noticed that the user was postgre but the group was wheel (which postgre is not a member of) so changed that with chwon recursively.
- Also it gave me a permsissions error, since it allowed others to execute (o+x). Changed permissions to 700 as requested, and now I have this error without a description of what is causing it.
The user repl is created in pg_hba.conf of the main server and has the permissions, although that has nothing to do with this (I think). I suspect the issue has something to do with the original permissions the files had. I've researched this for quite some time but couldn't find and answer. Thank you for your time, and sorry If I missed some file you needed to see. I'll put it here if needed.
My recovery.conf file:
primary_conninfo='host=192.168.1.100 port=5432 user=repl pass=foo'
restore_command='cp /nfs/pg_wal_archive/%f %p'
restore_cleanup='' #I clean the NFS directory manually