Sorry for the long email but I guess its needed.
I have some issues with barman configured for a rsync backup.
I used a configuration very similar to the template available with the installation of Barman
I tested the backup before adding data and I was working fine.
I tested also switch-wal and it was able to copy the wal on barman.
But ..I have the error below at the end of the backup ( and by the way is copying everything as it should do)
Copy step 5 of 5: [global] finished (duration: less than one second) copy remote pg_control file: /DBData/ptest141/global/pg_control
2023-11-29 11:31:36,270 [243318] barman.copy_controller INFO: Copy finished (safe before None)
2023-11-29 11:31:36,276 [243318] barman.backup_executor INFO: Copy done (time: 2 minutes, 15 seconds)
2023-11-29 11:31:36,278 [243318] barman.backup_executor INFO: This is the first backup for server ptest141v2
2023-11-29 11:31:36,297 [243318] barman.backup_executor INFO: 00000013000000030000009A from server ptest141v2 has been removed
2023-11-29 11:31:36,297 [243318] barman.backup_executor INFO: Asking PostgreSQL server to finalize the backup.
2023-11-29 11:31:36,299 [243318] barman.backup ERROR: Backup failed issuing stop backup command (native concurrent).
DETAILS: Connection lost, reconnection not allowed
{
"global": {
"config": {
"barman_home": "/var/lib/barman",
"barman_user": "barman",
"configuration_files_directory": "/etc/barman.d",
"errors_list": [],
"log_file": "/var/log/barman/barman.log",
"log_level": "DEBUG"
},
"system_info": {
"barman_ver": "3.4.0",
"kernel_ver": "xxx 5.15.0-88-generic #98-Ubuntu SMP Mon Oct 2 15:18:56 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux",
"python_ver": "",
"release": "Distributor ID:\tUbuntu\nDescription:\tUbuntu 22.04.3 LTS\nRelease:\t22.04\nCodename:\tjammy",
"rsync_ver": "rsync version 3.2.7 protocol version 31",
"ssh_ver": "",
"timestamp": "2023-11-29T12:05:52.939249+01:00"
}
},
"servers": {
"ptest141v2": {
"backups": {
"20231129T111950": {
"backup_id": "20231129T111950",
"backup_label": null,
"begin_offset": 40,
"begin_time": "2023-11-29T11:19:50.829148+01:00",
"begin_wal": "000000130000000300000099",
"begin_xlog": "3/99000028",
"compression": null,
"config_file": "/DBData/ptest141/postgresql.conf",
"copy_stats": {
"analysis_time": 1.135665,
"analysis_time_per_item": {
"pgdata": 1.135665
},
"copy_time": 182.070253,
"copy_time_per_item": {
"pg_control": 0.393027,
"pgdata": 181.672892
},
"number_of_workers": 1,
"serialized_copy_time": 182.030243,
"serialized_copy_time_per_item": {
"pg_control": 0.393027,
"pgdata": 181.637216
},
"total_time": 183.258903
},
"deduplicated_size": null,
"end_offset": null,
"end_time": null,
"end_wal": null,
"end_xlog": null,
"error": "failure issuing stop backup command (native concurrent) (Connection lost, reconnection not allowed)",
"hba_file": "/DBData/ptest141/pg_hba.conf",
"ident_file": "/DBData/ptest141/pg_ident.conf",
"included_files": [
"/DBData/ptest141/postgresql.base.conf"
],
"mode": "rsync-concurrent",
"pgdata": "/DBData/ptest141",
"server_name": "ptest141v2",
"size": null,
"status": "FAILED",
"systemid": "7297665707889587131",
"tablespaces": null,
"timeline": 19,
"version": 140009,
"xlog_segment_size": 16777216
},
"20231129T112918": {
"backup_id": "20231129T112918",
"backup_label": null,
"begin_offset": 40,
"begin_time": "2023-11-29T11:29:18.705449+01:00",
"begin_wal": "00000013000000030000009B",
"begin_xlog": "3/9B000028",
"compression": null,
"config_file": "/DBData/ptest141/postgresql.conf",
"copy_stats": {
"analysis_time": 1.686852,
"analysis_time_per_item": {
"pgdata": 1.686852
},
"copy_time": 135.502667,
"copy_time_per_item": {
"pg_control": 0.319637,
"pgdata": 135.178352
},
"number_of_workers": 1,
"serialized_copy_time": 135.469481,
"serialized_copy_time_per_item": {
"pg_control": 0.319637,
"pgdata": 135.149844
},
"total_time": 137.250439
},
"deduplicated_size": null,
"end_offset": null,
"end_time": null,
"end_wal": null,
"end_xlog": null,
"error": "failure issuing stop backup command (native concurrent) (Connection lost, reconnection not allowed)",
"hba_file": "/DBData/ptest141/pg_hba.conf",
"ident_file": "/DBData/ptest141/pg_ident.conf",
"included_files": [
"/DBData/ptest141/postgresql.base.conf"
],
"mode": "rsync-concurrent",
"pgdata": "/DBData/ptest141",
"server_name": "ptest141v2",
"size": null,
"status": "FAILED",
"systemid": "7297665707889587131",
"tablespaces": null,
"timeline": 19,
"version": 140009,
"xlog_segment_size": 16777216
}
},
"config": {
"active": true,
"archiver": true,
"archiver_batch_size": 0,
"backup_compression": null,
"backup_compression_format": null,
"backup_compression_level": null,
"backup_compression_location": null,
"backup_compression_workers": null,
"backup_directory": "/var/lib/barman/ptest141v2",
"backup_method": "rsync",
"backup_options": "concurrent_backup",
"bandwidth_limit": null,
"barman_home": "/var/lib/barman",
"barman_lock_directory": "/var/lib/barman",
"basebackup_retry_sleep": 30,
"basebackup_retry_times": 0,
"basebackups_directory": "/var/lib/barman/ptest141v2/base",
"check_timeout": 30,
"compression": null,
"conninfo": "host=10.101.9.66 port=5000 user=barman dbname=postgres",
"create_slot": "manual",
"custom_compression_filter": null,
"custom_compression_magic": null,
"custom_decompression_filter": null,
"description": "Example of PostgreSQL Database (via SSH)",
"disabled": false,
"errors_directory": "/var/lib/barman/ptest141v2/errors",
"forward_config_path": false,
"immediate_checkpoint": false,
"incoming_wals_directory": "/var/lib/barman/ptest141v2/incoming",
"last_backup_maximum_age": null,
"last_backup_minimum_size": null,
"last_wal_maximum_age": null,
"max_incoming_wals_queue": null,
"minimum_redundancy": 0,
"msg_list": [],
"name": "ptest141v2",
"network_compression": false,
"parallel_jobs": 1,
"path_prefix": "/usr/lib/postgresql/14/bin",
"post_archive_retry_script": null,
"post_archive_script": null,
"post_backup_retry_script": null,
"post_backup_script": null,
"post_delete_retry_script": null,
"post_delete_script": null,
"post_recovery_retry_script": null,
"post_recovery_script": null,
"post_wal_delete_retry_script": null,
"post_wal_delete_script": null,
"pre_archive_retry_script": null,
"pre_archive_script": null,
"pre_backup_retry_script": null,
"pre_backup_script": null,
"pre_delete_retry_script": null,
"pre_delete_script": null,
"pre_recovery_retry_script": null,
"pre_recovery_script": null,
"pre_wal_delete_retry_script": null,
"pre_wal_delete_script": null,
"primary_conninfo": null,
"primary_ssh_command": null,
"recovery_options": "",
"recovery_staging_path": null,
"retention_policy": null,
"retention_policy_mode": "auto",
"reuse_backup": null,
"slot_name": null,
"snapshot_disks": null,
"snapshot_gcp_project": null,
"snapshot_instance": null,
"snapshot_provider": null,
"snapshot_zone": null,
"ssh_command": "ssh -p 5021 -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no
post...@10.101.9.66 -q",
"streaming_archiver": false,
"streaming_archiver_batch_size": 0,
"streaming_archiver_name": "barman_receive_wal",
"streaming_backup_name": "barman_streaming_backup",
"streaming_conninfo": "host=10.101.9.66 port=5000 user=barman dbname=postgres",
"streaming_wals_directory": "/var/lib/barman/ptest141v2/streaming",
"tablespace_bandwidth_limit": null,
"wal_retention_policy": "main",
"wals_directory": "/var/lib/barman/ptest141v2/wals"
},
"status": {
"archive_command": " barman-wal-archive 10.101.9.66 ptest141v2 %p ",
"archive_mode": "on",
"archive_timeout": 0,
"archived_count": 42,
"checkpoint_timeout": 300,
"config_file": "/DBData/ptest141/postgresql.conf",
"current_archived_wals_per_second": 9.483588293059674e-05,
"current_lsn": "3/9D000148",
"current_size":
8383936097.0,
"current_xlog": "00000013000000030000009D",
"data_checksums": "on",
"data_directory": "/DBData/ptest141",
"failed_count": 339,
"has_backup_privileges": true,
"hba_file": "/DBData/ptest141/pg_hba.conf",
"hot_standby": "on",
"ident_file": "/DBData/ptest141/pg_ident.conf",
"included_files": [
"/DBData/ptest141/postgresql.base.conf"
],
"is_archiving": true,
"is_in_recovery": false,
"is_superuser": true,
"last_archived_time": "2023-11-29T10:55:05.309974+00:00",
"last_archived_wal": "00000013000000030000009C",
"last_failed_time": "2023-11-28T22:51:00.668595+00:00",
"last_failed_wal": "00000013000000030000008F",
"max_replication_slots": "10",
"max_wal_senders": "10",
"postgres_systemid": "7297665707889587131",
"replication_slot": null,
"replication_slot_support": true,
"server_txt_version": "14.9",
"stats_reset": "2023-11-24T08:04:45.866678+00:00",
"synchronous_standby_names": [
"patronitest-n2"
],
"version_supported": true,
"wal_compression": "off",
"wal_keep_size": "128MB",
"wal_level": "replica",
"xlog_segment_size": 16777216
},
"system_info": {
"kernel_ver": "xxx 5.15.0-88-generic #98-Ubuntu SMP Mon Oct 2 15:18:56 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux",
"python_ver": "",
"release": "Distributor ID:\tUbuntu\nDescription:\tUbuntu 22.04.3 LTS\nRelease:\t22.04\nCodename:\tjammy",
"rsync_ver": "rsync version 3.2.7 protocol version 31",
"ssh_ver": ""
},
"wals": {
"last_archived_wal_per_timeline": {
"00000013": {
"compression": null,
"name": "00000013000000030000009C",
"size": 16777216,
"time": 1701255303.3355255
}
}
}
}
}
}