-
Notifications
You must be signed in to change notification settings - Fork 9
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
problem in ubuntu 14.04 #7
Comments
Seems like there are some changes in barman 1.4.x.. I'll have to take a look at that |
Have you upgraded the plugin ? |
I'm on it, but I can't reproduce it
That looks like barman itself produces that error Could you check if the following command is successful? $ /usr/bin/barman list-files --target wal postgresdb 20150610T150001 |
The command executed successfully but no output. /usr/bin/barman list-files --target wal postgresdb 20150610T150001 |
Interesting, that should list at least a few wals from the base backup Please paste the output of $ barman show-backup postgresdb 20150610T150001 |
Backup 20150603T213001: Base backup information: WAL information: Catalog information: |
ok, seems that there are no wal files associated to that backup ./check-barman.rb -a last_wal_received -s postgresdb -w 300 -c 600 again, please? |
/opt/check-barman/check-barman.rb -a last_wal_received -s postgresdb -w 300 -c 600 /opt/check-barman/check-barman.rb:93:in |
k, that's a different error, probably due to a newer backup. $ barman show-backup postgresdb latest |
barman show-backup postgresdb latest Base backup information: WAL information: Catalog information: |
Thanks, I'll have a look WAL information:
No of files : 0
Disk usage : 0 B
Last available : None Is this intended? If yes (hopefully not!), that check isn't necessary |
I have configured a cron job to take a backup in every 4 hours. |
That means you'd lose 4 hours of data in case of a crash! I highly recommend to have a look at section "Continous Wal archiving" in http://docs.pgbarman.org/#getting_started, and take a base backup once a day or once a week if it's working, but it's your decision |
We are going to configure postgresql cluster environment with pgpool and repmgr. here is the configuration in postgres.conf listen_addresses='*' My primary intention with pgbarman is to take full backup in every 4 hours and archive wal files continuously. I have question on archive_command. which one is correct archive_command, is it "cd ." (according to repmgr documentation) or "rsync -a %p barman@pmapgbar01:/var/lib/barman/postgresdb/incoming/%f" (according to barman documentation). By the way, repmgr auto failover is working properly. with "cd ." |
I don't think that repmgr is interested in wal archives, so adding a command for wal shipping to barman should be ok. But there could be issues when a failover is happening, because than the new master should ship the wals and you should take care about that (btw, that's another reason why we don't do automatic postgres failover ;) Instead of adding that |
when i am going to execute
./check-barman.rb -a last_wal_received -s postgresdb -w 300 -c 600
i am getting error
/var/lib/gems/2.1.0/gems/mixlib-shellout-1.3.0/lib/mixlib/shellout.rb:253:in
'invalid!': Expected process to exit with [0], but received '1' (Mixlib::ShellOut::ShellCommandFailed) ---- Begin output of /usr/bin/barman list-files --target wal postgresdb 20150610T150001 ---- STDOUT: STDERR: EXCEPTION: 'NoneType' object has no attribute 'rfind' See log file for more details. ---- End output of /usr/bin/barman list-files --target wal postgresdb 20150610T150001 ---- Ran /usr/bin/barman list-files --target wal postgresdb 20150610T150001 returned 1 from /var/lib/gems/2.1.0/gems/mixlib-shellout-1.3.0/lib/mixlib/shellout.rb:239:in
error!'from /var/lib/gems/2.1.0/gems/rbarman-0.0.14/lib/rbarman/cli_command.rb:352:in
run_barman_command' from /var/lib/gems/2.1.0/gems/rbarman-0.0.14/lib/rbarman/cli_command.rb:118:in
wal_files'from /var/lib/gems/2.1.0/gems/rbarman-0.0.14/lib/rbarman/cli_command.rb:71:in
block in backups' from /var/lib/gems/2.1.0/gems/rbarman-0.0.14/lib/rbarman/cli_command.rb:68:in
each'from /var/lib/gems/2.1.0/gems/rbarman-0.0.14/lib/rbarman/cli_command.rb:68:in
backups' from /var/lib/gems/2.1.0/gems/rbarman-0.0.14/lib/rbarman/cli_command.rb:54:in
backup'from /var/lib/gems/2.1.0/gems/rbarman-0.0.14/lib/rbarman/backup.rb:298:in
by_id' from ./check-barman.rb:82:in
check_last_wal_received'from ./check-barman.rb:235:in `
I am using pgbarman version 1.4.1 in ubuntu 14.04.
The text was updated successfully, but these errors were encountered: