Hello!
I'm having an issue with barman, as the barman server was down due to some network misconfigurations and then when the server was up again, I'm not able to activate the barman slot, or reset the receive-wal process as this is apparently still running.
When I run barman check <my_server> I get:
Server <my_server>:
PostgreSQL: OK
superuser: OK
PostgreSQL streaming: OK
wal_level: OK
replication slot: FAILED (slot 'barman' not active: is 'receive-wal' running?)
directories: OK
retention policy settings: OK
backup maximum age: OK (interval provided: 2 days, latest backup age: 20 hours, 31 minutes)
compression settings: OK
failed backups: OK (there are 0 failed backups)
minimum redundancy requirements: OK (have 5 backups, expected at least 0)
pg_basebackup: OK
pg_basebackup compatible: OK
pg_basebackup supports tablespaces mapping: OK
archive_mode: OK
archive_command: OK
continuous archiving: OK
pg_receivexlog: OK
pg_receivexlog compatible: OK
receive-wal running: OK
archiver errors: OK
But the slot is still created but inactive. I would like to re-enable this slot, as I don't want to lose the wal files in the xlog that I need.
Is there a workaround about how to kill the receive-wal process (which is not receiving anything) or reenable my barman slot without having to drop it and create it from scratch?
Thanks!!
Karen