Sorry, I didn't read your reply before removing barman from ubuntu packages and reinstall it from source
now /usr/bin/barman -v show right version number
1.3.3
and manual backup start properly without any error
Starting backup for server main in /media/db/slow/01/pgbackup/main/base/20141127T111752
Backup start at xlog location: 1D1/30033110 (00000001000001D100000030, 00033110)
Copying files.
I will update you after backup finished.
Seems that ubuntu package was unable to correctly update barman.
I also remove barman package apt-get remove barman and manually to install deb packages with command sudo dpkg -i barman_1.3.3-1.pgdg12.4+1_all.deb
it didn't fix the issue,
only deleting ubuntu package with apt-get remove barman
and installation from source
Correctly fix the issue.
server is
cat /etc/issue
Ubuntu 12.04.5 LTS \n \l
with this packages
barman_1.3.3-1.pgdg12.4+1_all.deb
After fix installation i ran barman diagnose, here an extract:
{
"global": {
"config": {
"bandwidth_limit": "0",
"barman_home": "/media/db/slow/01/pgbackup",
"barman_user": "barman",
"compression": "None",
"immediate_checkpoint": "true",
"log_file": "/var/log/barman/barman.log",
"network_compression": "false"
},
"system_info": {
"barman_ver": "1.3.3",
"kernel_ver": "Linux tgs-srv-02 3.8.0-33-generic #48~precise1-Ubuntu SMP Thu Oct 24 16:28:06 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux",
"python_ver": "Python 2.7.3",
"release": "Distributor ID:\tUbuntu\nDescription:\tUbuntu 12.04.5 LTS\nRelease:\t12.04\nCodename:\tprecise",
"rsync_ver": "rsync version 3.0.9 protocol version 30",
"ssh_ver": "OpenSSH_5.9p1 Debian-5ubuntu1.4, OpenSSL 1.0.1 14 Mar 2012"
}
},
"servers": {
"main": {
"backups": {
"20141030T040001": {
"backup_id": "20141030T040001",
"backup_label": "None",
"begin_offset": "1008",
"begin_time": "Thu Oct 30 04:00:01 2014",
"begin_wal": "000000010000011C00000033",
"begin_xlog": "11C/330003F0",
"config_file": "/etc/postgresql/9.3/main/postgresql.conf",
"end_offset": "5761640",
"end_time": "Thu Oct 30 05:18:19 2014",
"end_wal": "000000010000011C00000043",
"end_xlog": "11C/4357EA68",
"error": null,
"hba_file": "/etc/postgresql/9.3/main/pg_hba.conf",
"ident_file": "/etc/postgresql/9.3/main/pg_ident.conf",
"mode": "default",
"pgdata": "/media/db/fast/01/postgresql/9.3/main",
"server_name": "main",
"size": 157213799631,
"status": "DONE",
"tablespaces": null,
"timeline": 1,
"version": 90304
},
[omissis...]
"20141125T040001": {
"backup_id": "20141125T040001",
"backup_label": "None",
"begin_offset": "104",
"begin_time": "Tue Nov 25 04:00:01 2014",
"begin_wal": "0000000100000198000000AA",
"begin_xlog": "198/AA000068",
"config_file": "/etc/postgresql/9.3/main/postgresql.conf",
"end_offset": "15525032",
"end_time": "Tue Nov 25 05:10:04 2014",
"end_wal": "0000000100000198000000D5",
"end_xlog": "198/D5ECE4A8",
"error": null,
"hba_file": "/etc/postgresql/9.3/main/pg_hba.conf",
"ident_file": "/etc/postgresql/9.3/main/pg_ident.conf",
"mode": "default",
"pgdata": "/media/db/fast/01/postgresql/9.3/main",
"server_name": "main",
"size": 189657484173,
"status": "DONE",
"tablespaces": null,
"timeline": 1,
"version": 90305
},
"20141126T040001": {
"backup_id": "20141126T040001",
"backup_label": "None",
"begin_offset": null,
"begin_time": null,
"begin_wal": null,
"begin_xlog": null,
"config_file": "/etc/postgresql/9.3/main/postgresql.conf",
"end_offset": null,
"end_time": null,
"end_wal": null,
"end_xlog": null,
"error": "failure starting the backup: PostgreSQL server is already in exclusive backup mode",
"hba_file": "/etc/postgresql/9.3/main/pg_hba.conf",
"ident_file": "/etc/postgresql/9.3/main/pg_ident.conf",
"mode": "default",
"pgdata": "/media/db/fast/01/postgresql/9.3/main",
"server_name": "main",
"size": null,
"status": "FAILED",
"tablespaces": null,
"timeline": null,
"version": 90305
},
"config": {
"active": true,
"backup_directory": "/media/db/slow/01/pgbackup/main",
"backup_options": "exclusive_backup",
"bandwidth_limit": 0,
"barman_home": "/media/db/slow/01/pgbackup",
"basebackup_retry_sleep": 30,
"basebackup_retry_times": 0,
"basebackups_directory": "/media/db/slow/01/pgbackup/main/base",
"compression": null,
"conninfo": "host=localhost user=postgres",
"custom_compression_filter": null,
"custom_decompression_filter": null,
"description": "TGS C3 PostgreSQL Database",
"immediate_checkpoint": true,
"incoming_wals_directory": "/media/db/slow/01/pgbackup/main/incoming",
"last_backup_maximum_age": null,
"lock_file": "/media/db/slow/01/pgbackup/main/main.lock",
"minimum_redundancy": 1,
"name": "main",
"network_compression": false,
"post_archive_script": null,
"post_backup_script": null,
"pre_archive_script": null,
"pre_backup_script": null,
"retention_policy": "window 4",
"retention_policy_mode": "auto",
"ssh_command": "ssh postgres@localhost",
"tablespace_bandwidth_limit": null,
"wal_retention_policy": "simple-wal 4",
"wals_directory": "/media/db/slow/01/pgbackup/main/wals"
},
"status": {
"archive_command": "rsync -a %p barman@localhost:/media/db/slow/01/pgbackup/main/incoming/%f",
"archive_mode": "on",
"config_file": "/etc/postgresql/9.3/main/postgresql.conf",
"current_xlog": "00000001000001D10000002F",
"data_directory": "/media/db/fast/01/postgresql/9.3/main",
"hba_file": "/etc/postgresql/9.3/main/pg_hba.conf",
"ident_file": "/etc/postgresql/9.3/main/pg_ident.conf",
"last_shipped_wal": "00000001000001D10000002E",
"pgespresso_installed": false,
"server_txt_version": "9.3.5"
},
"system_info": {
"kernel_ver": "Linux tgs-srv-02 3.8.0-33-generic #48~precise1-Ubuntu SMP Thu Oct 24 16:28:06 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux",
"python_ver": "Python 2.7.3",
"release": "Distributor ID:\tUbuntu\nDescription:\tUbuntu 12.04.5 LTS\nRelease:\t12.04\nCodename:\tprecise",
"rsync_ver": "rsync version 3.0.9 protocol version 30",
"ssh_ver": "OpenSSH_5.9p1 Debian-5ubuntu1.4, OpenSSL 1.0.1 14 Mar 2012"
}
}
}
}