When I do a manual ssh connection it is working fine. But when I run barman check 192.168.0.41
it is giving me ssh : FAILED with return code 255
I have tried all methods that they explained in the pgbarman document like copying public keys and saving it in authorized_keys
.
barman@icms-liq:~$ barman check 192.168.0.41
Server 192.168.0.41:
empty incoming directory: FAILED ('/var/lib/barman/192.168.0.41/incoming' must be empty when archiver=off)
PostgreSQL: OK
is_superuser: OK
PostgreSQL streaming: OK
wal_level: OK
replication slot: OK
directories: OK
retention policy settings: OK
backup maximum age: FAILED (interval provided: 2 days, latest backup age: No available backups)
compression settings: OK
failed backups: OK (there are 0 failed backups)
minimum redundancy requirements: FAILED (have 0 backups, expected at least 1)
ssh: FAILED (Connection failed using 'ssh postgres@192.168.0.41 -o BatchMode=yes -o StrictHostKeyChecking=no' return code 255)
pg_receivexlog: OK
pg_receivexlog compatible: OK
receive-wal running: OK
archiver errors: OK