I'm trying to recover a database from s3 bucket, and it fails
I followed the steps of the configuration indicated in the blog, executed the previous command correctly, and finally the command; barman-cloud-restore finished successfully.
I setup restore_command in recovery.conf and then got the following error when starting PostgreSQL 11 ( the wals are on the s3)
My recovery.conf file contains:
restore_command = ‘barman-cloud-wal-restore -P barman-cloud
s3://barman/ pg11 %f %p’
recovery_target_timeline = ‘latest’
Error (database log)
< 2022-04-05 22:25:49.208 -03 1 > LOG: the database system was interrupted; last time in operation on 2022-03-23 20:18:01 -03
< 2022-04-05 22:25:49.209 -03 2 > LOG: creating missing WAL directory "pg_wal/archive_status"
< 2022-04-05 22:25:49.362 -03 3 > LOG: checkpoint log is invalid
< 2022-04-05 22:25:49.362 -03 4 > FATAL: Could not locate required checkpoint record
< 2022-04-05 22:25:49.362 -03 5 > HINT: If you are not restoring a backup, try removing "/data/data5432/backup_label".
< 2022-04-05 22:25:49.363 -03 7 > LOG: startup process (PID 3511) terminated with exit code 1
< 2022-04-05 22:25:49.363 -03 8 > LOG: aborting boot due to boot processing failure
< 2022-04-05 22:25:49.365 -03 9 > LOG: Database system is down
Can anyone help me?