Article ID: 10018, created on Mar 3, 2011, last review on May 11, 2014

  • Applies to:
  • Operations Automation
  • Panels
  • Virtuozzo containers for Linux

Symptoms

VPS related task in POA fails with the following diagnostics:

3802 : Error invoking external utility: vzctl set failed: Cannot lock Container

Cause

The VPS (container) in question is locked on the corresponding PVC server due to other (e.g. manual) operation started either from other host (like manual backup from other node) or Power Panel (restart/repair operation, application template installation).

Resolution

Use the instructions below to check if the container is really locked by some operation on the PVC server, wait until operation is completed and resubmit the failed task in POA.

PVC for Linux

  1. Find the PVC server where the problem container is running in the POA Provider Control Panel at Service Director > Virtuozzo Manager > VPSs > 'Node' field.

  2. Log into the found PVC server by SSH.

  3. Check if the file /vz/lock/VPS_ID.lck exists, where VPS_ID is the ID of the container.

    If the file /vz/lock/VPS_ID.lck exists look at its content, it will have PID of process which locked VPS and name of operation, e.g.:

    # cat /vz/lock/1101.lck
    17195
    updating
    

    In the example above it is seen that the process #17195 locked the container #1101 with some update operation, it may be e.g. installation of application template.

    Using the ps utility on the PVC server you may find what exactly process locked the container:

    # ps axwww | grep PROCESS_ID
    

    replace PROCESS_ID with the actual PID found in the .lck file, in the example above it will be 17195.

PVC for Windows

  1. Find the PVC server where the problem container is running in the POA Provider Control Panel at Service Director > Virtuozzo Manager > VPSs > 'Node' field.

  2. Log into the found PVC server by RDP.

  3. Start the 'cmd' application and run the following command:

    C:> test_vzsrvapi query VPS_ID
    

    where VPS_ID is the ID of the problem VPS.

  4. Check the transitionStatus reported by the command above, if it has any value other than none it means container is locked by some operation. E.g. in the example below it is seen that container 105 is being backed up:

    C:\Documents and Settings\Administrator>test_vzsrvapi query 105
    Query result=0 count=1
    VpsId=105
    status=running
    transitionStatus=backing up
    .....
    

Search Words

Cannot lock container

VPS task fails

backup blocked

/vz/lock/

start blocked

stop blocked

Container hangs

e8e50b42231236b82df27684e7ec0beb 2897d76d56d2010f4e3a28f864d69223 d02f9caf3e11b191a38179103495106f 5356b422f65bdad1c3e9edca5d74a1ae caea8340e2d186a540518d08602aa065 614fd0b754f34d5efe9627f2057b8642 56797cefb1efc9130f7c48a7d1db0f0c

Email subscription for changes to this article
Save as PDF