{"action":"created","issue":{"url":"https://api.github.com/repos/2ndquadrant-it/barman/issues/88","repository_url":"https://api.github.com/repos/2ndquadrant-it/barman","labels_url":"https://api.github.com/repos/2ndquadrant-it/barman/issues/88/labels{/name}","comments_url":"https://api.github.com/repos/2ndquadrant-it/barman/issues/88/comments","events_url":"https://api.github.com/repos/2ndquadrant-it/barman/issues/88/events","html_url":"https://github.com/2ndquadrant-it/barman/issues/88","id":212266372,"number":88,"title":"Streaming-only backups/WAL archiving?","user":{"login":"danbst","id":743057,"avatar_url":"https://avatars2.githubusercontent.com/u/743057?v=4","gravatar_id":"","url":"https://api.github.com/users/danbst","html_url":"https://github.com/danbst","followers_url":"https://api.github.com/users/danbst/followers","following_url":"https://api.github.com/users/danbst/following{/other_user}","gists_url":"https://api.github.com/users/danbst/gists{/gist_id}","starred_url":"https://api.github.com/users/danbst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danbst/subscriptions","organizations_url":"https://api.github.com/users/danbst/orgs","repos_url":"https://api.github.com/users/danbst/repos","events_url":"https://api.github.com/users/danbst/events{/privacy}","received_events_url":"https://api.github.com/users/danbst/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2017-03-06T22:12:34Z","updated_at":"2017-09-14T19:13:41Z","closed_at":null,"author_association":"NONE","body":"I try to do streaming-only Barman backup scenario. My `barman.conf` is\r\n```\r\n      [barman]\r\n      barman_user = barman\r\n      configuration_files_directory = /etc/barman.d\r\n      barman_home = ${barmanHome}\r\n      log_level = INFO\r\n      compression = gzip\r\n\r\n      [live]\r\n      description =  \"Streaming copy of live\"\r\n      conninfo = host=${liveHostname} user=barman dbname=postgres\r\n      streaming_conninfo = host=${liveHostname} user=streaming_barman\r\n      backup_method = postgres\r\n      archiver = off\r\n      streaming_archiver = on\r\n      slot_name = barman\r\n```\r\nMy `postgresql.conf` is\r\n```\r\nsynchronous_standby_names = 'barman_receive_wal'\r\nmax_wal_senders = 10\r\nmax_replication_slots = 10\r\nwal_level = 'hot_standby'\r\n```\r\n\r\nI do start wal receive process:\r\n```\r\n# barman receive-wal live\r\nStarting receive-wal for server live\r\n2017-03-06 15:45:59,311 [4456] barman.server INFO: Starting receive-wal for server live\r\n2017-03-06 15:45:59,324 [4456] barman.wal_archiver INFO: Synchronous WAL streaming for barman_receive_wal: True\r\n2017-03-06 15:45:59,325 [4456] barman.wal_archiver INFO: Activating WAL archiving through streaming protocol\r\nlive: pg_receivexlog: starting log streaming at 0/2000000 (timeline 1)\r\n2017-03-06 15:45:59,330 [4456] barman.command_wrappers INFO: live: pg_receivexlog: starting log streaming at 0/2000000 (timeline 1)\r\n```\r\n\r\nBut `barman check live` complains:\r\n```\r\n# barman check live\r\nServer live:\r\n2017-03-06 21:41:54,942 [6044] barman.server ERROR: Check 'WAL archive' failed for server 'live'\r\n        WAL archive: FAILED (please make sure WAL shipping is setup)\r\n2017-03-06 21:41:54,957 [6044] barman.wal_archiver INFO: Synchronous WAL streaming for barman_receive_wal: True\r\n        PostgreSQL: OK\r\n        superuser: OK\r\n        PostgreSQL streaming: OK\r\n        wal_level: OK\r\n        replication slot: OK\r\n        directories: OK\r\n        retention policy settings: OK\r\n        backup maximum age: OK (no last_backup_maximum_age provided)\r\n        compression settings: OK\r\n        failed backups: OK (there are 0 failed backups)\r\n        minimum redundancy requirements: OK (have 0 backups, expected at least 0)\r\n        pg_basebackup: OK\r\n        pg_basebackup compatible: OK\r\n        pg_basebackup supports tablespaces mapping: OK\r\n        pg_receivexlog: OK\r\n        pg_receivexlog compatible: OK\r\n        receive-wal running: OK\r\n        archiver errors: OK\r\n```\r\n\r\nIs it mandatory to `rsync` WAL files from DB server for Barman to be able to do streaming backups?\r\n\r\n(barman 2.1)"},"comment":{"url":"https://api.github.com/repos/2ndquadrant-it/barman/issues/comments/329581358","html_url":"https://github.com/2ndquadrant-it/barman/issues/88#issuecomment-329581358","issue_url":"https://api.github.com/repos/2ndquadrant-it/barman/issues/88","id":329581358,"user":{"login":"MarZab","id":1311249,"avatar_url":"https://avatars3.githubusercontent.com/u/1311249?v=4","gravatar_id":"","url":"https://api.github.com/users/MarZab","html_url":"https://github.com/MarZab","followers_url":"https://api.github.com/users/MarZab/followers","following_url":"https://api.github.com/users/MarZab/following{/other_user}","gists_url":"https://api.github.com/users/MarZab/gists{/gist_id}","starred_url":"https://api.github.com/users/MarZab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MarZab/subscriptions","organizations_url":"https://api.github.com/users/MarZab/orgs","repos_url":"https://api.github.com/users/MarZab/repos","events_url":"https://api.github.com/users/MarZab/events{/privacy}","received_events_url":"https://api.github.com/users/MarZab/received_events","type":"User","site_admin":false},"created_at":"2017-09-14T19:13:41Z","updated_at":"2017-09-14T19:13:41Z","author_association":"NONE","body":"I found the answer on https://groups.google.com/forum/#!msg/pgbarman/-mfaAQJvYyk/-RpF3l7DDgAJ\r\n\r\nMake a non-empty `xlog.db` within `~barman/pghost/wals`, run `barman backup` then remove your content from the begining of the file.\r\n"}}
{"actor":{"display_login":"MarZab"}}