You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi.
Sometimes I need to restore Postgres bases from prod to dev environment. The database is managed by Patroni/Consul and run in Nomad.
So after restore I have 2 errors on Barman server - barman check all:
replication slot: FAILED (slot 'barman' not initialised: is 'receive-wal' running?)
archiver errors: FAILED (duplicates: 11)
I'm using migration scheme - run migration job in Nomad which create new service in Consul and restore backup to this host. Then I change connection service from my old base to this service. When data migration to the "old" base hosts was ended I turn off migration job and one of the hosts becomes the leader.
So I need to change the leader value in conninfo and streaming_conninfo. Error 1 disappears.
To solve error 2 I delete all files in errors directory. Sometimes it helps but sometimes it doesn't.
As I understood (I'm newbee in Barman) SELECT timeline_id FROM pg_control_checkpoint(); control_checkpoint doesn't match with Barman checkpoint.
So the question are - how quickly fix archiver error or do restore base another correct way?
I saw similar question in issue #897 but there are no answer.
The text was updated successfully, but these errors were encountered:
Hi.
Sometimes I need to restore Postgres bases from prod to dev environment. The database is managed by Patroni/Consul and run in Nomad.
So after restore I have 2 errors on Barman server -
barman check all
:replication slot: FAILED (slot 'barman' not initialised: is 'receive-wal' running?)
archiver errors: FAILED (duplicates: 11)
I'm using migration scheme - run migration job in Nomad which create new service in Consul and restore backup to this host. Then I change connection service from my old base to this service. When data migration to the "old" base hosts was ended I turn off migration job and one of the hosts becomes the leader.
So I need to change the leader value in conninfo and streaming_conninfo. Error 1 disappears.
To solve error 2 I delete all files in errors directory. Sometimes it helps but sometimes it doesn't.
As I understood (I'm newbee in Barman)
SELECT timeline_id FROM pg_control_checkpoint();
control_checkpoint doesn't match with Barman checkpoint.So the question are - how quickly fix archiver error or do restore base another correct way?
I saw similar question in issue #897 but there are no answer.
The text was updated successfully, but these errors were encountered: