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

Remote backup of offline VM with multiple disks fails: Error during remote command #82

Closed
abbbi opened this issue Nov 15, 2022 · 0 comments
Labels
bug Something isn't working fixed-in-dev fixed in dev branch
Milestone

Comments

@abbbi
Copy link
Owner

abbbi commented Nov 15, 2022

Version used
1.9.3

Describe the bug
Remote backup of offline virtual machine with multiple disks fails:
[2022-11-15 21:54:19] CRITICAL virtnbdbackup - main [MainThread]: Unknown Exception during backup: Error during remote command: [qemu-nbd -r --format=qcow2 -x sda /tmp/tmp.J57ASJL2Dq/vm3-sda.qcow2 -p 10810 --pid-file /tmp/tmp.J57ASJL2Dq/qemu-nbd-backuppojmh4o2.pid --fork > /tmp/tmp.J57ASJL2Dq/qemu-nbd-backuphrx0myyv.log 2>&1]: []
[2022-11-15 21:54:19] ERROR virtnbdbackup - main [MainThread]: Error during remote command: [qemu-nbd -r --format=qcow2 -x sda /tmp/tmp.J57ASJL2Dq/vm3-sda.qcow2 -p 10810 --pid-file /tmp/tmp.J57ASJL2Dq/qemu-nbd-backuppojmh4o2.pid --fork > /tmp/tmp.J57ASJL2Dq/qemu-nbd-backuphrx0myyv.log 2>&1]: []
Traceback (most recent call last):

Cause

If backup runs with multiple workers, the used remote port for the offline NBD service is not unique and defaults to the default
ndb port. Multiple processes attempt to share the same port.

Workaround:

Limit amount of workers

@abbbi abbbi added bug Something isn't working fixed-in-dev fixed in dev branch labels Nov 15, 2022
@abbbi abbbi added this to the v1.9.4 milestone Nov 15, 2022
@abbbi abbbi closed this as completed Nov 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working fixed-in-dev fixed in dev branch
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

1 participant