Skip to content

Instantly share code, notes, and snippets.

@drsnyder
Last active December 26, 2015 19:29
Show Gist options
  • Save drsnyder/7202220 to your computer and use it in GitHub Desktop.
Save drsnyder/7202220 to your computer and use it in GitHub Desktop.
Barman xlog corruption issue
2013-10-28 17:45:38,991 barman.server INFO: WAL retention policy for server db022: main
2013-10-28 17:45:39,219 barman.server INFO: Retention policy for server db018: RECOVERY WINDOW OF 3 DAYS
2013-10-28 17:45:39,219 barman.server INFO: WAL retention policy for server db018: main
2013-10-28 17:45:39,583 root ERROR: ERROR: Unhandled exception. See log file for more details.
Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/barman-1.2.0-py2.6.egg/barman/cli.py", line 453, in main
p.dispatch(pre_call=global_config, output_file=_output_stream)
File "/usr/lib/python2.6/site-packages/argh-0.23.1-py2.6.egg/argh/helpers.py", line 47, in dispatch
return dispatch(self, *args, **kwargs)
File "/usr/lib/python2.6/site-packages/argh-0.23.1-py2.6.egg/argh/dispatching.py", line 121, in dispatch
for line in lines:
File "/usr/lib/python2.6/site-packages/argh-0.23.1-py2.6.egg/argh/dispatching.py", line 197, in _execute_command
for line in result:
File "/usr/lib/python2.6/site-packages/argh-0.23.1-py2.6.egg/argh/dispatching.py", line 185, in _call
for line in result:
File "/usr/lib/python2.6/site-packages/barman-1.2.0-py2.6.egg/barman/cli.py", line 128, in list_backup
for line in server.list_backups():
File "/usr/lib/python2.6/site-packages/barman-1.2.0-py2.6.egg/barman/server.py", line 398, in list_backups
_, backup_wal_size, _, wal_until_next_size, _ = self.get_wal_info(backup)
File "/usr/lib/python2.6/site-packages/barman-1.2.0-py2.6.egg/barman/server.py", line 508, in get_wal_info
for name, size in self.get_wal_until_next_backup(backup):
File "/usr/lib/python2.6/site-packages/barman-1.2.0-py2.6.egg/barman/server.py", line 484, in get_wal_until_next_backup
name, size, _, _ = self.xlogdb_parse_line(line)
File "/usr/lib/python2.6/site-packages/barman-1.2.0-py2.6.egg/barman/server.py", line 559, in xlogdb_parse_line
raise ValueError("cannot parse line: %r" % (line,))
ValueError: cannot parse line: '00000001000025790000005'
2013-10-28 17:45:39,759 barman.server INFO: Retention policy for server db018: RECOVERY WINDOW OF 3 DAYS
2013-10-28 17:45:39,759 barman.server INFO: WAL retention policy for server db018: main
2013-10-28 17:45:39,868 barman.backup INFO: Processed file /huddler/backups/barman/db018/incoming/000000010000257900000064
2013-10-28 17:45:39,992 root ERROR: ERROR: Unhandled exception. See log file for more details.
Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/barman-1.2.0-py2.6.egg/barman/cli.py", line 453, in main
p.dispatch(pre_call=global_config, output_file=_output_stream)
File "/usr/lib/python2.6/site-packages/argh-0.23.1-py2.6.egg/argh/helpers.py", line 47, in dispatch
return dispatch(self, *args, **kwargs)
File "/usr/lib/python2.6/site-packages/argh-0.23.1-py2.6.egg/argh/dispatching.py", line 121, in dispatch
for line in lines:
File "/usr/lib/python2.6/site-packages/argh-0.23.1-py2.6.egg/argh/dispatching.py", line 197, in _execute_command
for line in result:
File "/usr/lib/python2.6/site-packages/argh-0.23.1-py2.6.egg/argh/dispatching.py", line 185, in _call
for line in result:
File "/usr/lib/python2.6/site-packages/barman-1.2.0-py2.6.egg/barman/cli.py", line 128, in list_backup
for line in server.list_backups():
File "/usr/lib/python2.6/site-packages/barman-1.2.0-py2.6.egg/barman/server.py", line 398, in list_backups
_, backup_wal_size, _, wal_until_next_size, _ = self.get_wal_info(backup)
File "/usr/lib/python2.6/site-packages/barman-1.2.0-py2.6.egg/barman/server.py", line 508, in get_wal_info
for name, size in self.get_wal_until_next_backup(backup):
File "/usr/lib/python2.6/site-packages/barman-1.2.0-py2.6.egg/barman/server.py", line 484, in get_wal_until_next_backup
name, size, _, _ = self.xlogdb_parse_line(line)
File "/usr/lib/python2.6/site-packages/barman-1.2.0-py2.6.egg/barman/server.py", line 559, in xlogdb_parse_line
raise ValueError("cannot parse line: %r" % (line,))
ValueError: cannot parse line: '00000001000025790000005'
2013-10-28 17:45:40,125 barman.server INFO: Retention policy for server db016: RECOVERY WINDOW OF 3 DAYS
2013-10-28 17:45:40,125 barman.server INFO: WAL retention policy for server db016: main
2013-10-28 17:45:40,800 barman.server INFO: Retention policy for server db016: RECOVERY WINDOW OF 3 DAYS
2013-10-28 17:45:40,800 barman.server INFO: WAL retention policy for server db016: main
2013-10-28 17:45:41,176 barman.backup INFO: Processed file /huddler/backups/barman/db018/incoming/000000010000257900000065
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment