Hi all
However, it seems it's not working as expected, or at least not as documentation describes. Here are some details.
/etc/barman.conf (no more lines uncommented)
[barman]
barman_user = barman
configuration_files_directory = /etc/barman.d
barman_home = /var/lib/barman
log_file = /var/log/barman/barman.log
log_level = DEBUG
/etc/barman.d/pg.conf (wysiwyg)
[pg2023-05-31]
description = "Our main PostgreSQL server"
conninfo = host=192.168.121.28 user=barman dbname=postgres
backup_method = postgres
streaming_archiver = on
streaming_conninfo = host=192.168.121.28 user=streaming_barman dbname=postgres
slot_name=barman
create_slot = auto
archiver = off
barman check pg2023-05-31 (everything is ok!)
Server pg2023-05-31:
PostgreSQL: OK
superuser or standard user with backup privileges: OK
PostgreSQL streaming: OK
wal_level: OK
replication slot: OK
directories: OK
retention policy settings: OK
backup maximum age: OK (no last_backup_maximum_age provided)
backup minimum size: OK (0 B)
wal maximum age: OK (no last_wal_maximum_age provided)
wal size: OK (0 B)
compression settings: OK
failed backups: OK (there are 0 failed backups)
minimum redundancy requirements: OK (have 0 backups, expected at least 0)
pg_basebackup: OK
pg_basebackup compatible: OK
pg_basebackup supports tablespaces mapping: OK
systemid coherence: OK
pg_receivexlog: OK
pg_receivexlog compatible: OK
receive-wal running: OK
archiver errors: OK
barman backup pg2023-05-31
Starting backup using postgres method for server pg2023-05-31 in /var/lib/barman/pg2023-05-31/base/20230607T091012
Backup start at LSN: 0/25000060 (000000010000000000000025, 00000060)
Starting backup copy via pg_basebackup for 20230607T091012
HANGS HERE
/var/log/barman/barman.log
2023-06-07 09:10:12,706 [289894] barman.config DEBUG: Including configuration file: pg.conf
2023-06-07 09:10:12,708 [289894] barman.cli DEBUG: Initialised Barman version 2.18 (config: /etc/barman.conf, args: {'color': 'auto', 'quiet': False, 'debug': False, 'format': 'console', 'command': 'backup', 'server_name': ['pg2023-05-31'], 'reuse_backup': None, 'retry_times': None, 'retry_sleep': None, 'jobs': None, 'wait': False, 'wait_timeout': None, 'func': <function backup at 0x7f2683153370>})
2023-06-07 09:10:12,734 [289894] barman.backup_executor DEBUG: The default backup strategy for postgres backup_method is: concurrent_backup
2023-06-07 09:10:12,734 [289894] barman.server DEBUG: Starting check: 'WAL archive'
2023-06-07 09:10:12,735 [289894] barman.server DEBUG: Starting check: 'empty incoming directory'
2023-06-07 09:10:12,735 [289894] barman.server DEBUG: Starting check: 'empty streaming directory'
2023-06-07 09:10:12,735 [289894] barman.server DEBUG: Starting check: 'PostgreSQL'
2023-06-07 09:10:12,835 [289894] barman.command_wrappers DEBUG: Command: ['/usr/bin/pg_receivewal', '--version']
2023-06-07 09:10:12,896 [289894] barman.command_wrappers DEBUG: Command return code: 0
2023-06-07 09:10:12,897 [289894] barman.command_wrappers DEBUG: Command stdout: pg_receivewal (PostgreSQL) 14.8 (Ubuntu 14.8-0ubuntu0.22.04.1)
2023-06-07 09:10:12,897 [289894] barman.command_wrappers DEBUG: Command stderr:
2023-06-07 09:10:12,901 [289894] barman.wal_archiver DEBUG: Look for 'barman_receive_wal' in 'synchronous_standby_names': ['']
2023-06-07 09:10:12,901 [289894] barman.wal_archiver DEBUG: Synchronous WAL streaming for barman_receive_wal: False
2023-06-07 09:10:12,902 [289894] barman.command_wrappers DEBUG: Command: ['/usr/bin/pg_basebackup', '--version']
2023-06-07 09:10:12,958 [289894] barman.command_wrappers DEBUG: Command return code: 0
2023-06-07 09:10:12,959 [289894] barman.command_wrappers DEBUG: Command stdout: pg_basebackup (PostgreSQL) 14.8 (Ubuntu 14.8-0ubuntu0.22.04.1)
2023-06-07 09:10:12,959 [289894] barman.command_wrappers DEBUG: Command stderr:
2023-06-07 09:10:12,961 [289894] barman.server DEBUG: Check 'PostgreSQL' succeeded for server 'pg2023-05-31'
2023-06-07 09:10:12,962 [289894] barman.server DEBUG: Starting check: 'superuser or standard user with backup privileges'
2023-06-07 09:10:12,962 [289894] barman.server DEBUG: Check 'superuser or standard user with backup privileges' succeeded for server 'pg2023-05-31'
2023-06-07 09:10:12,962 [289894] barman.server DEBUG: Starting check: 'PostgreSQL streaming'
2023-06-07 09:10:12,962 [289894] barman.server DEBUG: Check 'PostgreSQL streaming' succeeded for server 'pg2023-05-31'
2023-06-07 09:10:12,962 [289894] barman.server DEBUG: Starting check: 'wal_level'
2023-06-07 09:10:12,963 [289894] barman.server DEBUG: Check 'wal_level' succeeded for server 'pg2023-05-31'
2023-06-07 09:10:12,963 [289894] barman.server DEBUG: Starting check: 'replication slot'
2023-06-07 09:10:12,963 [289894] barman.server DEBUG: Check 'replication slot' succeeded for server 'pg2023-05-31'
2023-06-07 09:10:12,963 [289894] barman.server DEBUG: Starting check: 'directories'
2023-06-07 09:10:12,963 [289894] barman.server DEBUG: Check 'directories' succeeded for server 'pg2023-05-31'
2023-06-07 09:10:12,964 [289894] barman.server DEBUG: Starting check: 'retention policy settings'
2023-06-07 09:10:12,964 [289894] barman.server DEBUG: Check 'retention policy settings' succeeded for server 'pg2023-05-31'
2023-06-07 09:10:12,964 [289894] barman.server DEBUG: Starting check: 'backup maximum age'
2023-06-07 09:10:12,964 [289894] barman.server DEBUG: Check 'backup maximum age' succeeded for server 'pg2023-05-31'
2023-06-07 09:10:12,964 [289894] barman.server DEBUG: Starting check: 'backup minimum size'
2023-06-07 09:10:12,965 [289894] barman.server DEBUG: Check 'backup minimum size' succeeded for server 'pg2023-05-31'
2023-06-07 09:10:12,965 [289894] barman.server DEBUG: Starting check: 'wal maximum age'
2023-06-07 09:10:12,965 [289894] barman.server DEBUG: Check 'wal maximum age' succeeded for server 'pg2023-05-31'
2023-06-07 09:10:12,965 [289894] barman.server DEBUG: Starting check: 'wal size'
2023-06-07 09:10:12,965 [289894] barman.server DEBUG: Check 'wal size' succeeded for server 'pg2023-05-31'
2023-06-07 09:10:12,966 [289894] barman.server DEBUG: Starting check: 'compression settings'
2023-06-07 09:10:12,966 [289894] barman.server DEBUG: Check 'compression settings' succeeded for server 'pg2023-05-31'
2023-06-07 09:10:12,966 [289894] barman.server DEBUG: Starting check: 'failed backups'
2023-06-07 09:10:12,966 [289894] barman.server DEBUG: Check 'failed backups' succeeded for server 'pg2023-05-31'
2023-06-07 09:10:12,966 [289894] barman.server DEBUG: Starting check: 'minimum redundancy requirements'
2023-06-07 09:10:12,967 [289894] barman.server DEBUG: Check 'minimum redundancy requirements' succeeded for server 'pg2023-05-31'
2023-06-07 09:10:12,967 [289894] barman.server DEBUG: Starting check: 'pg_basebackup'
2023-06-07 09:10:12,967 [289894] barman.server DEBUG: Check 'pg_basebackup' succeeded for server 'pg2023-05-31'
2023-06-07 09:10:12,967 [289894] barman.server DEBUG: Starting check: 'pg_basebackup compatible'
2023-06-07 09:10:12,968 [289894] barman.server DEBUG: Check 'pg_basebackup compatible' succeeded for server 'pg2023-05-31'
2023-06-07 09:10:12,969 [289894] barman.server DEBUG: Starting check: 'pg_basebackup supports tablespaces mapping'
2023-06-07 09:10:12,972 [289894] barman.server DEBUG: Check 'pg_basebackup supports tablespaces mapping' succeeded for server 'pg2023-05-31'
2023-06-07 09:10:12,973 [289894] barman.server DEBUG: Starting check: 'configuration'
2023-06-07 09:10:12,973 [289894] barman.server DEBUG: Starting check: 'systemid coherence'
2023-06-07 09:10:12,973 [289894] barman.server DEBUG: Check 'systemid coherence' succeeded for server 'pg2023-05-31'
2023-06-07 09:10:12,974 [289894] barman.server DEBUG: Starting check: 'pg_receivexlog'
2023-06-07 09:10:12,974 [289894] barman.server DEBUG: Check 'pg_receivexlog' succeeded for server 'pg2023-05-31'
2023-06-07 09:10:12,974 [289894] barman.server DEBUG: Starting check: 'pg_receivexlog compatible'
2023-06-07 09:10:12,974 [289894] barman.server DEBUG: Check 'pg_receivexlog compatible' succeeded for server 'pg2023-05-31'
2023-06-07 09:10:12,974 [289894] barman.server DEBUG: Starting check: 'receive-wal running'
2023-06-07 09:10:12,975 [289894] barman.server DEBUG: Check 'receive-wal running' succeeded for server 'pg2023-05-31'
2023-06-07 09:10:12,975 [289894] barman.server DEBUG: Starting check: 'archiver errors'
2023-06-07 09:10:12,975 [289894] barman.server DEBUG: Check 'archiver errors' succeeded for server 'pg2023-05-31'
2023-06-07 09:10:12,976 [289894] barman.backup DEBUG: initialising backup information
2023-06-07 09:10:12,990 [289894] barman.backup INFO: Starting backup using postgres method for server pg2023-05-31 in /var/lib/barman/pg2023-05-31/base/20230607T091012
2023-06-07 09:10:12,992 [289894] barman.backup_executor DEBUG: detecting data directory
2023-06-07 09:10:12,999 [289894] barman.backup_executor DEBUG: detecting tablespaces
2023-06-07 09:10:13,000 [289894] barman.backup_executor DEBUG: issuing start backup command
2023-06-07 09:10:13,015 [289894] barman.backup_executor INFO: Backup start at LSN: 0/25000060 (000000010000000000000025, 00000060)
2023-06-07 09:10:13,016 [289894] barman.backup_executor INFO: Starting backup copy via pg_basebackup for 20230607T091012
2023-06-07 09:10:13,018 [289894] barman.command_wrappers DEBUG: Command: ['/usr/bin/pg_basebackup', '--dbname=dbname=replication host=192.168.121.28 options=-cdatestyle=iso replication=true user=streaming_barman application_name=barman_streaming_backup', '-v', '--no-password', '--pgdata=/var/lib/barman/pg2023-05-31/base/20230607T091012/data', '--no-slot', '--wal-method=none']
2023-06-07 09:10:13,345 [261983] barman.command_wrappers INFO: pg2023-05-31: pg_receivewal: finished segment at 0/26000000 (timeline 1)
2023-06-07 09:10:13,980 [261983] barman.command_wrappers INFO: pg2023-05-31: pg_receivewal: finished segment at 0/27000000 (timeline 1)
What I'm doing wrong? It's backup supposed to be run on background in order to work?
Why logs seems to be OK but operation seems hung?
So many questions!
Thanks a lot for your time