backup_job_create failed: Job ID 'drive-scsi0' already in use

ocroquette

New Member
Feb 20, 2024
22
1
3
Hi,

I started a cloning operation for a VM which I then cancelled. Now if I try to create a dump with "vmdump", I get the following error:

Code:
INFO: issuing guest-agent 'fs-freeze' command
INFO: issuing guest-agent 'fs-thaw' command
ERROR: backup_job_create failed: Job ID 'drive-scsi0' already in use
INFO: aborting backup job
INFO: resuming VM again

With qm mod, I can see this job, which is completed:

Code:
qm mon 106
Entering QEMU Monitor for VM 106 - type 'help' for help
qm> info block-jobs
Type mirror, device drive-scsi0: Completed 2097152000 of 10739449856 bytes, speed limit 0 bytes/s
qm> block_job_cancel drive-scsi0
Error: Job 'drive-scsi0' in state 'concluded' cannot accept command verb 'cancel'

So it looks like this complete job is in the way, but how can I remove it?
 
Last edited:
Hi,

try block_job_complete drive-scsi0 and if it doesn't help, try shutting down and then starting the vm.

Or using QMP interface:
from shell of the host runsocat -,raw,echo=0 UNIX-CONNECT:/run/qemu-server/106.qmp
and then
{"execute": "qmp_capabilities"}
{"execute": "job-dismiss", "arguments": {"id": "drive-scsi0"}}
{"execute": "quit"}
 
Last edited:
Thanks for the quick reply.

block_job_complete drive-scsi0
did not work:
Error: Job 'drive-scsi0' in state 'concluded' cannot accept command verb 'complete'

The QMP commands killed my VM :eek:

Code:
{"QMP": {"version": {"qemu": {"micro": 0, "minor": 2, "major": 9}, "package": "pve-qemu-kvm_9.2.0-7"}, "capabilities": []}}
{"return": {}}
{"timestamp": {"seconds": 1758826393, "microseconds": 38234}, "event": "JOB_STATUS_CHANGE", "data": {"status": "null", "id": "drive-scsi0"}}
{"return": {}}
{"timestamp": {"seconds": 1758826399, "microseconds": 269473}, "event": "SHUTDOWN", "data": {"guest": false, "reason": "host-qmp-quit"}}
{"return": {}}

After starting it again, vzdump worked.