barman.backup ERROR: Backup failed starting backup

1,163 views
Skip to first unread message

PirBoazo

unread,
Aug 29, 2012, 4:56:30 PM8/29/12
to pgba...@googlegroups.com
Hi all,

After several test with db, i started the replication of my db cluster .


barman@pgbkpsrv:~/log$ barman status dbi
Server dbi:
        description: dbi PostgreSQL Database
        PostgreSQL version: 9.1.4 
        PostgreSQL Data directory: /u01/pgdata/dbi 
        archive_command: rsync -a %p barman@pgbkpsrv:/u03/barman/dbi/incoming/%f 
        archive_status: last shipped WAL segment 0000000100000000000000D3
        current_xlog: 0000000100000000000000D4 
        No. of available backups: 5
        first available backup: 20120809T062828
        last available backup: 20120817T041650

barman@pgbkpsrv:~/log$ barman check dbi
Server dbi:
        ssh: OK
        PostgreSQL: OK
        archive_mode: OK
        archive_command: OK
        directories: OK
        compression settings: OK

barman@pgbkpsrv:~/log$ barman show-server dbi
Server dbi:
        active: true
        description: dbi PostgreSQL Database
        ssh_command: ssh postgres@srvdata1
        conninfo: host=srvdata1 user=postgres port=54321
        backup_directory: /u03/barman/dbi
        basebackups_directory: /u03/barman/dbi/base
        wals_directory: /u03/barman/dbi/wals
        incoming_wals_directory: /u03/barman/dbi/incoming
        lock_file: /u03/barman/dbi/dbi.lock
        compression: gzip
        custom_compression_filter: None
        custom_decompression_filter: None
        retention_policy: None
        wal_retention_policy: None
        current_xlog: 0000000100000000000000D4
        last_shipped_wal: 0000000100000000000000D3
        archive_command: rsync -a %p barman@pgbkpsrv:/u03/barman/dbi/incoming/%f
        server_txt_version: 9.1.4
        data_directory: /u01/pgdata/dbi
        archive_mode: on
        config_file: /u01/pgdata/dbi/postgresql.conf
        hba_file: /u01/pgdata/dbi/pg_hba.conf
        ident_file: /u01/pgdata/dbi/pg_ident.conf

now i try to backup the primary server .

i have this error :
2012-08-29 13:48:16,120 barman.backup ERROR: Backup failed starting backup
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/barman-1.0.0-py2.7.egg/barman/backup.py", line 384, in backup
    self.backup_start(backup_info)
  File "/usr/local/lib/python2.7/dist-packages/barman-1.0.0-py2.7.egg/barman/backup.py", line 711, in backup_start
    start_xlog, start_file_name, start_file_offset = self.server.pg_start_backup()
TypeError: 'NoneType' object is not iterable

Do you have an idea ?

best regards
Pierre

PirBoazo

unread,
Aug 29, 2012, 5:12:25 PM8/29/12
to pgba...@googlegroups.com

Hi

I find in log of the primary server :
2012-08-29 13:48:16 PDT ERROR:  a backup is already in progress

so i stop this backup
select pg_stop_backup() ;

and restart my barman command .
it's OK :-)

Pierre

Gabriele Bartolini

unread,
Aug 30, 2012, 4:18:56 AM8/30/12
to pgba...@googlegroups.com
Hi Pierre,

  thank you for your post. I am glad you figure it out by yourself. In any case, I have open this issue: https://sourceforge.net/p/pgbarman/tickets/8/

  We will try and solve it ASAP.

Thanks,
Gabriele

2012/8/29 PirBoazo <pierre...@gmail.com>

--
--
You received this message because you are subscribed to the "Barman for PostgreSQL" group.
To post to this group, send email to pgba...@googlegroups.com
To unsubscribe from this group, send email to
pgbarman+u...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/pgbarman?hl=en?hl=en-GB
 
 
 



--
 Gabriele Bartolini - 2ndQuadrant Italia
 PostgreSQL Training, Services and Support
 www.2ndQuadrant.it
Reply all
Reply to author
Forward
0 new messages