This Knowledge Base (KB) article lists some errors that might be encountered when executing the barman check command and the corresponding workarounds.
1. To solve the below error, please check the ownership of /var/lib/barman.
2020-06-25 08:59:06,173 [55043] barman.server ERROR: Check 'directories' failed for server 'postgresql' directories: FAILED (/var/lib/barman/postgresql: Permission denied)
2020-06-24 16:25:33,250 [29420] barman.utils WARNING: Failed opening the requested log file. Using standard error instead.
3. The failure below is caused when barman check tries to confirm that archiving is set up correctly by assuming there is actually something in the archive. To workaround this issue, Barman provides a command to force a segment switch.
Wait for the completed WAL to show up and then archive it immediately using the following command: barman switch-xlog --force --archive postgresql
WAL archive: FAILED (please make sure WAL shipping is setup)
archiver errors: FAILED (unknown: 2)
backup maximum age: FAILED (interval provided: 3 days, latest backup age: No available backups)