command 'qm shutdown 105 --skiplock && qm wait 105 600' failed: exit code 2

Church23

New Member
Nov 5, 2011
22
0
1
Hi
So the Backups working with the setting Suspend and Snapshot very well :D
But when i use "STOP" the backups failed by the vservers they running.
Error message:

Code:
[FONT=&quot]command 'qm shutdown 105 --skiplock && qm wait 105 600' failed: exit code 2[/FONT]

Code:
102: Nov 20 02:01:40 INFO: Starting Backup of VM 102 (qemu)
102: Nov 20 02:01:40 INFO: status = running
102: Nov 20 02:01:41 INFO: backup mode: stop
102: Nov 20 02:01:41 INFO: ionice priority: 7
102: Nov 20 02:01:41 INFO: stopping vm
102: Nov 20 02:01:42 INFO: 400 too many arguments
102: Nov 20 02:01:42 INFO: qm wait <vmid> [OPTIONS]
102: [COLOR=red]Nov 20 02:01:42 ERROR: Backup of VM 102 failed - command 'qm shutdown 102 --skiplock && qm wait 102 600' failed: exit code 2[/COLOR]
 
what is running on 102?

does this KVM guest accepts acpi shutdown? just run 'qm shutdown 102' to test the shutdown.
 
On one Runs Centos 6 64Bit and the other Runs Pfsense 2.

#Pfsense 2 from Comandline : qm shutdown 107 works without any problem
#Centos 6 64Bit from Comandline : qm shutdown 102 not working , server not shuting down

I try now all other Servers they are all Centos machines.

qm stop works on all machines but qm shutdown only on my Pfsense , not on Ubuntu 10.04LTS or Centos 6 64Bit.
Before i has made the Update to get the Backup Feature the Shutdown Buttons in Interface working without any problem.
 
Last edited:
are you sure that you installed acpid inside your guests?
 
No all machines are minimal installation:

Code:
yum -y install acpid
Code:
chkconfig acpid on
Code:
service acpid start

Now it works perfectly :cool::cool::cool:
Thank You Tom that you has helped me on an Sunday :cool:
 
thanks for feedback. so its pretty clear that it also not worked before the upgrade, without acpid it cannot work.
 
Yes you right , my misstake sorry But the Backups with Stop Setting not working:( Here the Error message:
Code:
 102: Nov 20 19:16:42 INFO: Starting Backup of VM 102 (qemu) 102: Nov 20 19:16:42 INFO: status = running 102: Nov 20 19:16:42 INFO: backup mode: stop 102: Nov 20 19:16:42 INFO: ionice priority: 7 102: Nov 20 19:16:42 INFO: stopping vm 102: Nov 20 19:16:43 INFO: 400 too many arguments 102: Nov 20 19:16:43 INFO: qm wait  [OPTIONS] 102: [COLOR=red]Nov 20 19:16:43 ERROR: Backup of VM 102 failed - command 'qm shutdown 102 --skiplock && qm wait 102 600' failed: exit code 2[/COLOR]
Code:
Nov 20 19:30:02 proxmox qm[6207]: shutdown VM 102: UPIDroxmox:0000183F:0003BC02:4EC9472A:qmshutdown:102:root@pam: Nov  20 19:30:02 proxmox qm[6206]:  starting task  UPIDroxmox:0000183F:0003BC02:4EC9472A:qmshutdown:102:root@pam: Nov 20 19:30:02 proxmox qm[6207]: VM 102 sending 'shutdown' Nov 20 19:30:02 proxmox qm[6206]:  end task UPIDroxmox:0000183F:0003BC02:4EC9472A:qmshutdown:102:root@pam: OK Nov  20 19:30:03 proxmox vzdump[6196]: ERROR: Backup of VM 102 failed -  command 'qm shutdown 102 --skiplock && qm wait 102 600' failed:  exit code 2 Nov 20 19:30:03 proxmox vzdump[6196]: INFO: Starting Backup of VM 105 (qemu) Nov 20 19:30:03 proxmox qm[6215]:  update VM 105: -lock backup Nov  20 19:30:03 proxmox qm[6219]:  starting task  UPIDroxmox:0000184C:0003BC6E:4EC9472B:qmshutdown:105:root@pam: Nov 20 19:30:03 proxmox qm[6220]: shutdown VM 105: UPIDroxmox:0000184C:0003BC6E:4EC9472B:qmshutdown:105:root@pam: Nov 20 19:30:03 proxmox qm[6220]: VM 105 sending 'shutdown' Nov 20 19:30:03 proxmox qm[6219]:  end task UPIDroxmox:0000184C:0003BC6E:4EC9472B:qmshutdown:105:root@pam: OK Nov  20 19:30:04 proxmox vzdump[6196]: ERROR: Backup of VM 105 failed -  command 'qm shutdown 105 --skiplock && qm wait 105 600' failed:  exit code 2 Nov 20 19:30:04 proxmox vzdump[6196]: INFO: Starting Backup of VM 107 (qemu) Nov 20 19:30:04 proxmox qm[6227]:  update VM 107: -lock backup
Selinux is Disabeled, and from Webinterface and terminal i can shutdown all machines without any problem.
 
Code:
qm wait 102 600
400 too many arguments
qm wait <vmid> [OPTIONS]

So it looks something is wrong with qm wait comand.
In webinterface and Terminal the shutdown working well.
But the command
Code:
qm shutdown 102 --skiplock && qm wait 102 600
dont works.
So the problem is qm wait 102 600 maybe an bug?
Works this command by anybody?
Code:
qm wait 102 600
 
I has update and test it.
Now it works without any error :)
Thank You for Fixing this so fast , good work.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!