Hello,
I have set up a Barman server on a macOS Ventura (13.5) with MacPorts.
The primary PostgreSQL server is running on a different machine with macOS Monterey (12.6).
On the Barman machine, I see WAL files being added to the "streaming" directory, but the PostgreSQL server keeps logging the following error:
2023-08-03 10:20:42.049 CEST [36006] FATAL: archive command failed with exit code 127
2023-08-03 10:20:42.049 CEST [36006] DETAIL: The failed archive command was: barman-wal-archive 192.163.1.38 192.163.1.31 pg_wal/0000000100000017000000DD.00000028.backup
The PostgreSQL server (ip .31) has these settings in the PG config:
wal_level = replica
max_wal_senders = 10
max_replication_slots = 10
archive_mode = on
archive_command = 'barman-wal-archive 192.163.1.38 192.163.1.31 %p'
And on the Barman server (ip .38), the barman.d config is:
[pg]
description = "Postgres 31 Server"
conninfo = host=192.163.1.31 user=barman dbname=postgres port=49165 password=xxxx
streaming_conninfo = host=192.163.1.31 user=streaming_barman dbname=postgres port=49165 password=xxxx
backup_method = postgres
streaming_archiver = on
slot_name = barman
archiver = on
Any idea what is causing the error in the Postgres log?
This is my first time setting up WAL archiving, so Barman is all new to me.