Standalone backup agent for Microsoft Windows servers and workstations (formerly Veeam Endpoint Backup FREE)
Post Reply
SlothCroissant
Lurker
Posts: 1
Liked: never
Joined: Jun 23, 2019 3:27 pm
Full Name: Ryan Borstelmann

"Item is locked by running session"

Post by SlothCroissant » Jun 23, 2019 3:33 pm

Hi there,

I opened a support case for this but was unfortunately automatically closed due to high support volume (which is a disappointment in itself but not what I'm here for today).

I'm getting the following error when backing up to an SMB share via Veeam Agent for Windows:

Code: Select all

6/23/2019 8:57:03 AM :: Full backup file merge failed Error: Item [svr01-backup2019-06-10T003010.vib] is locked by running session svr01-backup [Agent Backup] 
This has been failing since June 10th. There are certainly no backups being performed to that VIB - I've rebooted the Veeam Agent service as well as rebooted the machine with no change.

There are docs for what to do if Veeam Backup & Replication has this issue, but not for the Windows Agent > SMB. Can someone point me in the right direction for how to resolve this, aside from nuking the backup history and starting fresh?

Thanks!

HannesK
Veeam Software
Posts: 5138
Liked: 681 times
Joined: Sep 01, 2014 11:46 am
Location: Austria
Contact:

Re: "Item is locked by running session"

Post by HannesK » Jun 24, 2019 5:34 am

Hello,
and welcome to the forums.

Usually I would say "ask support", but as you already mentioned, you use the free version which has only "best effort" support.

Did you already try to to run a new active full backup? If that does not work, then you could try to remove VAW and re-install it. Keep in mind that uninstall / install always requires a new full backup. You do not need to delete the old backups in any case.

Probably there is a better way to solve that, but that brings us back to point 1...

Best regards,
Hannes

mdxyz
Service Provider
Posts: 17
Liked: 1 time
Joined: Jan 05, 2018 3:19 am
Contact:

Re: "Item is locked by running session"

Post by mdxyz » Jan 23, 2020 1:07 pm

I realize this is an old thread, but I had this same issue on my home PC and found the fix. Thought I'd post it here for others as this thread is one of the top hits on google.
  1. Install SQL management studio
  2. Stop the VeeamEndpointBackupSvc service
  3. Open SQL management studio as SYSTEM and connect to (LocalDb)\VeeamEndPoint
  4. Run the following query on the Veeam db (back it up first if you wish):

    Code: Select all

    delete from [Backup.TrackedActions.Leases]
    delete from [Backup.TrackedActions.LockItems]
    delete from [Backup.TrackedActions.Locks]
  5. Start the VeeamEndpointBackupSvc
I did a more detailed write up here

mdxyz
Service Provider
Posts: 17
Liked: 1 time
Joined: Jan 05, 2018 3:19 am
Contact:

Re: "Item is locked by running session"

Post by mdxyz » Jan 23, 2020 1:43 pm

Since I can't edit my post, a much quicker option is to use sqlcmd. open cmd.exe as system and paste

Code: Select all

sqlcmd -S (LocalDb)\VeeamEndPoint -d "VeeamBackup" -Q "delete from [Backup.TrackedActions.Leases]"
sqlcmd -S (LocalDb)\VeeamEndPoint -d "VeeamBackup" -Q "delete from [Backup.TrackedActions.LockItems]"
sqlcmd -S (LocalDb)\VeeamEndPoint -d "VeeamBackup" -Q "delete from [Backup.TrackedActions.Locks]" 

Antoine F
Novice
Posts: 3
Liked: never
Joined: Nov 13, 2019 2:33 pm
Full Name: Antoine Forget
Contact:

Re: "Item is locked by running session"

Post by Antoine F » Apr 08, 2020 4:45 pm

I know this is a pretty old post but did any of you attempted stopping the session via the interface instead of applying the kb 1487(https://www.veeam.com/kb1487)? (right click stop in the running section).

Would like to know if three is a more recent resolution for this...

Post Reply

Who is online

Users browsing this forum: No registered users and 14 guests