How to forcibly stop jobs that are stuck in ‘stopping’ status

KB ID: 1727
Products: Veeam Backup & Replication
Version: All
Published:
Last Modified: 2016-11-30
KB Languages: DE | FR

Challenge

This KB documents the process for forcibly terminating all jobs for a given Veeam Backup & Replication installation. The steps outlined in this KB will terminate all jobs.
 
Note: Some jobs may take some time to stop, please allow up to 60 minutes for a jobs to stop on their own before forcibly terminating them.

Solution

The problem may occur because a process or task that the job is waiting for has not been completed. Such a task can be snapshot removal. Therefore, as the first step it is recommended to check the vSphere Client to see if there is a snapshot removal process pending/working on the vSphere side.
 
The following steps will forcibly terminate ALL jobs/restores.
 

  1. Close the Veeam Backup & Replication console.
  2. Stop all services that begin with Veeam.
  3. Open the Task Manager on the Veeam Server and kill all VeeamAgent.exe processes.
    Note: Some VeeamAgent.exe process will be located on Source Proxies and Windows Repositories that are not the Veeam Server.
  4. Wait 5-10 minutes for the tasks to timeout and fail. 
  5. Remove snapshots from VM(s) that are part of the stuck jobs. (If they have not been already removed).
  6. Start the services that were stopped in step 2.
***Repeat Steps 2 –4 on each Proxy and Repository used by the Job.

Note. If you use the Virtual Appliance (HOTADD) mode, before removing the snapshots make sure there are no stuck disks on the Veeam Backup server or one of the backup proxies. Otherwise, the snapshots can be orphaned. https://www.veeam.com/kb1775
 
 
─────────────────────────
 
If the jobs are still listed as “Stopping” after performing the steps outlined above please proceed through the following steps.

For information on how to apply SQL scripts please review https://www.veeam.com/kb1443.
  1. Back up the Veeam database. (http://www.veeam.com/kb1471)
  2. Run the following query against the VeeamBackup database:
UPDATE [Backup.Model.JobSessions]
SET [state] = '-1'
WHERE [state] != '-1'

 

4 / 5 (102 votes cast)

Report a typo on this page:

Please select a spelling error or a typo on this page with your mouse and press CTRL + Enter to report this mistake to us. Thank you!

Orphus system