FIX:-Container is already locked

By: Published: Jan 15th, 2013 Category: Windows Virtuozzo

Sometime when automated OR Manual Virtuozzo backup process gets stuck OR sometime a VPS stuck while starting up OR stopping during this stage its impossible to make any changes on that VPS. You can stop the VPS or kill the process which is running. Making any updates or trying to restart the VPS shows message “Container CTID is already locked”.

Solution:

In case of Linux this error can be fixed by deleting the lock file located at /vz/lock/CTID.lck but in Windows there is no such file.

Following are the steps to unlock the locked Container

1) vzctl stop CTID –skiplock (try this command twice till it doesn’t show that the container is not running)
This command might throw some ERROR but no need to worry.

2) vzctl start CTID –skiplock
This Command will throw an error if the VPS is stuck while starting or stopping.

3) After the both the above command the status of the VPS will be locked, so you will have to allow sometime to unlock the stuck processes.

4) If the above command doesn’t start the VPS, stop the VPS using –skiplock option again and kill “vzlpl” process from the Task Manager. After that you will able to start the VPS normally.

I have personally tested these steps on few Windows Servers and 90% of time this tweak worked. If it still doesn’t work its better to contact Parallels Support.

</span>
 FIX: Container is already locked

About

Milind Koyande is the Senior Research Engineer and his job is to work with new technologies, specially Cloud Computing / Virtualization Technology. His past projects include Government Sector initiatives, Backup and Disaster Recovery Solutions.

Tags: , , ,

3 Responses to “FIX:-Container is already locked”


  1. Unable to stop or start VPS even after Host reboot |
    on Mar 9th, 2010
    @ 4:56 pm

    [...] timeout and VPS gets locked. After that it’s impossible to stop the VPS even if the method here gets failed OR even after rebooting the Host server problem doesn’t get fixed. Following are [...]


  2. Remote Desktop Protocol (RDP) not working for a VPS « .:][ Gr8 Admin Team ][:.
    on Aug 4th, 2011
    @ 3:21 pm

    [...] Read more at eitwebguru.com   See this Amp at http://amplify.com/u/a1a9bw [...]


  3. IX Webhosting Coupons
    on Aug 14th, 2012
    @ 4:33 am

    very nice post, i certainly love http://eitwebguru.com, keep on it !!!!!

Leave a Reply

Subscribe to eITWebguru

© 2012 eITWebguru. All Rights Reserved.