barman WARNING: No archiver enabled for server

1,737 views
Skip to first unread message

kotofetsy mahaka

unread,
Feb 23, 2017, 10:03:49 AM2/23/17
to Barman, Backup and Recovery Manager for PostgreSQL
Hi,

I installed Postgres 9.6 and last version of barman 2.1.

OS: centos
SElinux disabled
firewall disable

barman is on the same server as database

when I launch barman check server
I get these messages


bar...@hostX.si.francetv.fr:barman>  barman check hostX
WARNING: No archiver enabled for server 'hostX'. Please turn on 'archiver', 'streaming_archiver' or both
WARNING: Forcing 'archiver = on'
Server hostXX:
        WAL archive: FAILED (please make sure WAL shipping is setup)
        PostgreSQL: OK
        superuser: OK
        wal_level: OK
        directories: OK
        retention policy settings: OK
        backup maximum age: OK (no last_backup_maximum_age provided)
        compression settings: OK
        failed backups: OK (there are 0 failed backups)
        minimum redundancy requirements: OK (have 0 backups, expected at least 0)
        ssh: OK (PostgreSQL server)
        not in recovery: OK
        archive_mode: OK
        archive_command: OK
        continuous archiving: OK
        archiver errors: OK

With barman diagnose I get WARNING
       
I get WARNING: No archiver enabled for server 'main-db-xxxx'. Please turn on 'archiver', 'streaming_archiver' or both
WARNING: Forcing 'archiver = on'
{


  "global": {
        "config": {
            "barman_home": "/my_pass/barman",
            "barman_user": "barman",
            "configuration_files_directory": "/etc/barman.d",
            "errors_list": [],
            "log_file": "/var/log/barman/barman.log",
            "log_level": "INFO"
        },
        "system_info": {
            "barman_ver": "2.1",
            "kernel_ver": "Linux hostXX 3.10.0-327.el7.x86_64 #1 SMP Thu Nov 19 22:10:57 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux",
            "python_ver": "Python 2.7.5",
            "release": "RedHat Linux CentOS Linux release 7.3.1611 (Core)",
            "rsync_ver": "rsync  version 3.0.9  protocol version 30",
            "ssh_ver": "OpenSSH_6.6.1p1, OpenSSL 1.0.1e-fips 11 Feb 2013"
        }
    },
    "servers": {
        "hostXX: {
            "backups": {},
            "config": {
                "active": true,
                "archiver": true,
                "archiver_batch_size": 0,
                "backup_directory": "/my_path/barman/hostX",
                "backup_method": "rsync",
                "backup_options": "exclusive_backup",
                "bandwidth_limit": null,
                "barman_home": "/my_path/barman",
                "barman_lock_directory": "/my_path/barman",
                "basebackup_retry_sleep": 30,
                "basebackup_retry_times": 0,
                "basebackups_directory": "/my_path/barman/hostX/base",
                "check_timeout": 30,
                "compression": null,
                "conninfo": "host=10.250.102.157 user=postgres",
                "custom_compression_filter": null,
                "custom_decompression_filter": null,
                "description": "Main DB Server",
                "disabled": false,
                "errors_directory": "/my_path/barman/hostX/errors",
                "immediate_checkpoint": false,
                "incoming_wals_directory": "/my_path/barman/hostXX/incoming",
                "last_backup_maximum_age": null,
                "minimum_redundancy": 0,
                "msg_list": [],
                "name": "hostX",
                "network_compression": false,
                "path_prefix": null,
                "post_archive_retry_script": null,
                "post_archive_script": null,
                "post_backup_retry_script": null,
                "post_backup_script": null,
                "pre_archive_retry_script": null,
                "pre_archive_script": null,
                "pre_backup_retry_script": null,
                "pre_backup_script": null,
                "recovery_options": "",
                "retention_policy": "window 7 d",
                "retention_policy_mode": "auto",
                "reuse_backup": null,
                "slot_name": null,
                "ssh_command": "ssh postgres@hostXX",
                "streaming_archiver": false,
                "streaming_archiver_batch_size": 0,
                "streaming_archiver_name": "barman_receive_wal",
                "streaming_backup_name": "barman_streaming_backup",
                "streaming_conninfo": "host=hostX user=postgres",
                "streaming_wals_directory": "/my_path/barmanXXhoststreaming",
                "tablespace_bandwidth_limit": null,
                "wal_retention_policy": "simple-wal 7 d",
                "wals_directory": "/my_path/barman/Xxxxx/wals"
            },
            "status": {
                "archive_command": "rsync -a %p barman@host:/svg/bases/hostXX/barman/incoming/%f",
                "archive_mode": "on",
                "archived_count": 5,
                "config_file": "/u01/pgdata/host/data/postgresql.conf",
                "current_archived_wals_per_second": 2.00001831206766e-06,
                "current_size": 30374736.0,
                "current_xlog": "00000001000000000000000C",
                "data_directory": "/u01host/hostX/data",
                "failed_count": 36,
                "hba_file": "/u01/pgdata/host/data/pg_hba.conf",
                "ident_file": "/u01/pgdata/host/data/pg_ident.conf",
                "is_archiving": true,
                "is_superuser": true,
                "last_archived_time": "Thu Feb 23 15:25:39 2017",
                "last_archived_wal": "00000001000000000000000B",
                "last_failed_time": "Thu Feb 23 10:55:24 2017",
                "last_failed_wal": "000000010000000000000001",
                "pgespresso_installed": false,
                "replication_slot": null,
                "replication_slot_support": true,
                "server_txt_version": "9.6.1",
                "stats_reset": "Wed Jan 25 17:12:09 2017",
                "synchronous_standby_names": [
                    ""
                ],
                "wal_level": "replica"
            },
            "system_info": {
                "kernel_ver": "Linux host 3.10.0-327.el7.x86_64 #1 SMP Thu Nov 19 22:10:57 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux",
                "python_ver": "Python 2.7.5",
                "release": "RedHat Linux CentOS Linux release 7.3.1611 (Core)",
                "rsync_ver": "rsync  version 3.0.9  protocol version 30",
                "ssh_ver": "OpenSSH_6.6.1p1, OpenSSL 1.0.1e-fips 11 Feb 2013"
            },
            "wals": {
                "last_archived_wal_per_timeline": null
            }
        }
    }
}


What's wrong here ?

Thanks for you time.

Mark Burke

unread,
Jun 12, 2017, 11:21:53 AM6/12/17
to Barman, Backup and Recovery Manager for PostgreSQL
it's in the man pages 

Upgrading from Barman 1.X

Version 2.0 requires that users explicitly configure their archiving strategy. Before, the file based archiver, controlled by archiver, was enabled by default.

When you upgrade your Barman installation to 2.0, make sure you add the following line either globally or for any server that requires it:

archiver = on

Additionally, for a few releases, Barman will transparently set archiver = on with any server that has not explicitly set an archiving strategy and emit a warning.

Besides that, version 2.0 is fully compatible with older ones.

Reply all
Reply to author
Forward
0 new messages