File is locked by running session

KB ID:
1487
Product:
Veeam Backup & Replication
Version:
All
Published:
Last Modified:
2015-09-09

Challenge

Getting the message "File is locked by running session (Name of Current Job)"

Cause

If the job was stopped incorrectly or the Veeam Server was rebooted, SQL might not have had enough time to receive the queries to properly stop the job in the database.

Solution

Please make sure no jobs are running before doing the following:

Run the following SQL Query against the Veeam Database:

delete from [Backup.TrackedActions.Leases]
delete from [Backup.TrackedActions.LockItems]
delete from [Backup.TrackedActions.Locks]

Note: For more information regarding how to execute SQL queries please see https://www.veeam.com/kb1443

 

Rate the quality of this KB article: 
3.3 out of 5 based on 122 ratings

Couldn't find what you were looking for?

Below you can submit an idea for a new knowledge base article.

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!

Spelling error in text:

Submit