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

Improve error output #18

Closed
bhelm opened this issue Jun 29, 2015 · 0 comments
Closed

Improve error output #18

bhelm opened this issue Jun 29, 2015 · 0 comments
Assignees

Comments

@bhelm
Copy link
Contributor

bhelm commented Jun 29, 2015

Here is the error i had with btrfs-sxbackup. Can you tell the cause?

root@ns320047:~/btrfs-sxbackup# /usr/bin/flock -n /tmp/mariadb.lockfile /usr/bin/python3 /usr/local/bin/btrfs-sxbackup run /backup/mariadb/
INFO btrfs-sxbackup v0.5.8
INFO source :: url [ssh://root@172.16.0.63:/home/mysql/] container [.sxbackup/] retention [1] compress [True]
INFO destination :: url [/backup/mariadb/] retention [2w:4/d, 1m:daily, 3m:none] compress [True]
INFO preparing environment
INFO source :: retrieving snapshots
INFO destination :: retrieving snapshots
INFO source :: creating snapshot
INFO source :: transferring snapshot
INFO destination :: removing subvolume [/backup/mariadb/.temp.e1a73f6bf3104420bb36c353ca47572a]                                                                                                        <=>                                                                                                                  ]
INFO source :: removing subvolume [/home/mysql/.sxbackup/.temp.e1a73f6bf3104420bb36c353ca47572a]
ERROR Command '['ssh', '-o', 'ServerAliveInterval=5', '-o', 'ServerAliveCountMax=3', 'root@172.16.0.63', 'btrfs send "/home/mysql/.sxbackup/.temp.e1a73f6bf3104420bb36c353ca47572a" | lzop -1']' returned non-zero exit status -9
ERROR At subvol /home/mysql/.sxbackup/.temp.e1a73f6bf3104420bb36c353ca47572a
2,49GiB 0:01:14 [34,3MiB/s] [                                                                                                                                                               <=>                                                                                                                             ]
root@ns320047:~/btrfs-sxbackup# 

The backup failed because of no free disk space on the receiving volume. Looking into the source, btrfs-sxbackup checks the sending return code first and throws the error above. in the "no free disk space on the receiving partition" case, it seems to me that send and receive side fail at the same time. btrfs receive prints an error, but btrfs-sxbackup only shows stderr on the sender side.

btrfs-sxbackup should report errors on both sender and receiver side if possible.

@masc3d masc3d self-assigned this Jul 7, 2015
@masc3d masc3d closed this as completed in 154ed85 May 9, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants