Virtual Machine snapshot removal task is stuck with Error: 'Another task is already in progress' in vCenter server
search cancel

Virtual Machine snapshot removal task is stuck with Error: 'Another task is already in progress' in vCenter server

book

Article ID: 392609

calendar_today

Updated On:

Products

VMware vSphere ESXi VMware vSphere ESX 8.x VMware vSphere ESX 7.x

Issue/Introduction

Task 'Remove Snapshot' stuck with Error " Another task is already in progress" in vSphere Client:

Environment

VMware vSphere ESXi 7.x

VMware vSphere ESXi 8.x

VMware vCenter server 7.x

VMware vCenter server 8.x

Cause

3rd Party Backup software consistently initiates snapshot removal task every 5 minutes, while the initial task is still running.

 

Resolution

Wait for the consolidation task to either complete or fail, before triggering another job to remove the snapshot.

  1. Identify the VM IDs required for subsequent commands, and find the VMID for the corresponding VMs.
    vim-cmd vmsvc/getallvms
  2. Get the list of tasks associated with a particular VM.
    vim-cmd vmsvc/get.tasklist VMID
  3. Find out more about the task, including the process, completion time, etc.
    vim-cmd vimsvc/task_info task_identifier
  4. Try restarting ESXi management Agents to clear the task, Refer to below KB
    Restarting Management Agents in ESXi

Note: If the stale task can't killed / cancelled, it can be cleared by restarting ESXi host management agents. In case no success, reboot the respective ESXi host by placing Host in maintenance mode.