Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RBarman::InvalidWalFileNameError for "00000002.history" #5

Open
FroutSarain opened this issue Mar 21, 2023 · 0 comments
Open

RBarman::InvalidWalFileNameError for "00000002.history" #5

FroutSarain opened this issue Mar 21, 2023 · 0 comments

Comments

@FroutSarain
Copy link

Hi,

The following command:

sudo -u barman /usr/bin/ruby /var/lib/barman/prog/check_barman/check-barman.rb -a last_wal_received -s db -w 1 -c 2

raises this following error:

/var/lib/gems/2.1.0/gems/rbarman-0.0.16/lib/rbarman/wal_file.rb:109:in `parse': name '00000002.history' has to be exactly 24 chars (RBarman::InvalidWalFileNameError)
	from /var/lib/gems/2.1.0/gems/rbarman-0.0.16/lib/rbarman/cli_command.rb:195:in `block in parse_wal_files_list'
	from /var/lib/gems/2.1.0/gems/rbarman-0.0.16/lib/rbarman/cli_command.rb:194:in `each'
	from /var/lib/gems/2.1.0/gems/rbarman-0.0.16/lib/rbarman/cli_command.rb:194:in `parse_wal_files_list'
	from /var/lib/gems/2.1.0/gems/rbarman-0.0.16/lib/rbarman/cli_command.rb:119:in `wal_files'
	from /var/lib/gems/2.1.0/gems/rbarman-0.0.16/lib/rbarman/cli_command.rb:71:in `block in backups'
	from /var/lib/gems/2.1.0/gems/rbarman-0.0.16/lib/rbarman/cli_command.rb:68:in `each'
	from /var/lib/gems/2.1.0/gems/rbarman-0.0.16/lib/rbarman/cli_command.rb:68:in `backups'
	from /var/lib/gems/2.1.0/gems/rbarman-0.0.16/lib/rbarman/cli_command.rb:54:in `backup'
	from /var/lib/gems/2.1.0/gems/rbarman-0.0.16/lib/rbarman/backup.rb:298:in `by_id'
	from /var/lib/barman/prog/check_barman/check-barman.rb:84:in `check_last_wal_received'
	from /var/lib/barman/prog/check_barman/check-barman.rb:243:in `<main>'

This is following a PITR recovery of the DB, I suspect this 00000002.history is perfectly valid

barman@barman2:~$ barman -v
2.3

Barman by 2ndQuadrant (www.2ndQuadrant.com)
barman@barman2:~$ barman list-files --target wal db 20230319T042101 | head
/var/lib/barman/db/wals/00000002.history
/var/lib/barman/db/wals/0000000200002E80/0000000200002E8000000075
/var/lib/barman/db/wals/0000000200002E80/0000000200002E8000000076
/var/lib/barman/db/wals/0000000200002E80/0000000200002E8000000077
/var/lib/barman/db/wals/0000000200002E80/0000000200002E8000000078
/var/lib/barman/db/wals/0000000200002E80/0000000200002E8000000079

I'm not sure on what to do to fix this...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant