https://login.veeam.com/en/oauth?client_id=nXojRrypJ8&redirect_uri=https%3A%2F%2Fwww.veeam.com%2Fservices%2Fauthentication%2Fredirect_url&response_type=code&scope=profile&state=eyJmaW5hbFJlZGlyZWN0TG9jYXRpb24iOiJodHRwczovL3d3dy52ZWVhbS5jb20va2IxNDg3IiwiaGFzaCI6Ijc0YmViZDNjLTE2NjQtNGNlYy05NGZlLTFjMDE0MWNlY2Q4OCJ9
1-800-691-1991 | 9am - 8pm ET
EN

File is locked by running session

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

 
KB ID:
1487
Product:
Veeam Backup & Replication
Version:
All
Published:
2012-01-19
Last Modified:
2020-08-13
Please rate how helpful this article was to you:
1.8 out of 5 based on 3 ratings
Thank you for helping us improve!
An error occurred during voting. Please try again later.

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

Knowledge base content request
By submitting, you agree that your personal data will be managed by Veeam in accordance with the Privacy Policy.
Your report was sent to the responsible team. Our representative will contact you by email you provided.
We're working on it please try again later