I'm taking backup only to Azure Blob Storage and not using PV.
Backup works fine. Both Full and Incremental. But when I try to restore, I see the following exception in the "elephant-pgbackrest-restore" pod log. This is the pod that gets invoked when I try to run the PITR manifest.
WARN: --delta or --force specified but unable to find 'PG_VERSION' or 'backup.manifest' in '/pgdata/pg13' to confirm that this is a valid $PGDATA directory. --delta and --force have been disabled and if any files exist in the destination directories the restore will be aborted.
WARN: automatic backup set selection cannot be performed with provided time '2021-09-08 12:10:00 UTC', latest backup set will be used
HINT: time format must be YYYY-MM-DD HH:MM:SS with optional msec and optional timezone (+/- HH or HHMM or HH:MM) - if timezone is omitted, local time is assumed (for UTC use +00)
waiting for server to start....2021-09-08 12:26:52.247 GMT [15] LOG: starting PostgreSQL 13.4 on x86_64-pc-linux-gnu, compiled by gcc (GCC) 8.4.1 20200928 (Red Hat 8.4.1-1), 64-bit
2021-09-08 12:26:52.248 GMT [15] LOG: listening on IPv6 address "::1", port 5432
2021-09-08 12:26:52.248 GMT [15] LOG: listening on IPv4 address "127.0.0.1", port 5432
2021-09-08 12:26:52.271 GMT [15] LOG: listening on Unix socket "/tmp/.s.PGSQL.5432"
2021-09-08 12:26:52.276 GMT [15] LOG: hostssl record cannot match because SSL is disabled
2021-09-08 12:26:52.276 GMT [15] HINT: Set ssl = on in postgresql.conf.
2021-09-08 12:26:52.276 GMT [15] CONTEXT: line 4 of configuration file "/pgdata/pg13/pg_hba.conf"
2021-09-08 12:26:52.276 GMT [15] LOG: hostssl record cannot match because SSL is disabled
2021-09-08 12:26:52.276 GMT [15] HINT: Set ssl = on in postgresql.conf.
2021-09-08 12:26:52.276 GMT [15] CONTEXT: line 5 of configuration file "/pgdata/pg13/pg_hba.conf"
2021-09-08 12:26:52.276 GMT [15] LOG: hostssl record cannot match because SSL is disabled
2021-09-08 12:26:52.276 GMT [15] HINT: Set ssl = on in postgresql.conf.
2021-09-08 12:26:52.276 GMT [15] CONTEXT: line 7 of configuration file "/pgdata/pg13/pg_hba.conf"
2021-09-08 12:26:52.282 GMT [16] LOG: database system was interrupted; last known up at 2021-09-08 12:00:04 GMT
2021-09-08 12:26:52.623 GMT [16] LOG: starting point-in-time recovery to 2021-09-08 12:10:00+00
2021-09-08 12:26:53.046 GMT [16] LOG: restored log file "00000001000000000000002A" from archive
2021-09-08 12:26:53.150 GMT [16] LOG: redo starts at 0/2A000028
2021-09-08 12:26:53.155 GMT [16] LOG: consistent recovery state reached at 0/2A000100
2021-09-08 12:26:53.155 GMT [15] LOG: database system is ready to accept read only connections
done
server started
2021-09-08 12:26:53.601 GMT [16] LOG: redo done at 0/2A000100
2021-09-08 12:26:53.601 GMT [16] FATAL: recovery ended before configured recovery target was reached
2021-09-08 12:26:53.603 GMT [15] LOG: startup process (PID 16) exited with exit code 1
2021-09-08 12:26:53.603 GMT [15] LOG: terminating any other active server processes
2021-09-08 12:26:53.606 GMT [15] LOG: database system is shut down
psql: error: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/tmp/.s.PGSQL.5432"?
psql: error: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/tmp/.s.PGSQL.5432"?