Failed to release the mutex using Vault command line client
Moderator: SourceGear
-
- Posts: 6
- Joined: Wed Jun 16, 2004 8:07 am
Failed to release the mutex using Vault command line client
I often get the following error using the command line vault.exe client (v 2.0.1.2137 client):
Unhandled Exception: System.Exception: Failed to release the mutex. GetLastError returned 288.
at VaultLib.SystemMutexWin32.Release()
at VaultLib.SystemMutexWin32.Dispose()
at VaultClientOperationsLib.WorkingFolder.Finalize()
I have got this error:
- setting working folders
- moving files within the repository
The operation right before it always returns "success".
Any thoughts on what this could be?
Unhandled Exception: System.Exception: Failed to release the mutex. GetLastError returned 288.
at VaultLib.SystemMutexWin32.Release()
at VaultLib.SystemMutexWin32.Dispose()
at VaultClientOperationsLib.WorkingFolder.Finalize()
I have got this error:
- setting working folders
- moving files within the repository
The operation right before it always returns "success".
Any thoughts on what this could be?
Does this happen with every operation? Vault uses Windows system-wide mutexes to lock its disk data. It looks like this exception is being raised during garbage collection at the end of the process (when working folders are finalized), and may be harmless at this point (all the "real" work is done).
If this does happen all the time, are there other Vault clients running at the same time (Windows Forms, or Visual Studio IDE)?
If this does happen all the time, are there other Vault clients running at the same time (Windows Forms, or Visual Studio IDE)?
Shaw Terwilliger
SourceGear LLC
`echo sterwill5sourcegear6com | tr 56 @.`
SourceGear LLC
`echo sterwill5sourcegear6com | tr 56 @.`
-
- Posts: 6
- Joined: Wed Jun 16, 2004 8:07 am
My (somewhat limited) knowledge of the garbage collection process tells me it's happening after everything else (including the logout) has completed. You could turn on debug logging in the server to make sure the logout is completing, if you wanted to know.
Which version of the .NET framework are you using? You may want to try upgrading to Vault 2.0.3.
Which version of the .NET framework are you using? You may want to try upgrading to Vault 2.0.3.
Shaw Terwilliger
SourceGear LLC
`echo sterwill5sourcegear6com | tr 56 @.`
SourceGear LLC
`echo sterwill5sourcegear6com | tr 56 @.`
-
- Posts: 6
- Joined: Wed Jun 16, 2004 8:07 am
I was mistaken about debug logging being required to see logouts (you can set it back to quiet logging if you wish). The purpose was to see if a logout entry was logged when you saw the exception in the CLC. If the entry had been made, the client had most likely completed its task before the exception happened.
Shaw Terwilliger
SourceGear LLC
`echo sterwill5sourcegear6com | tr 56 @.`
SourceGear LLC
`echo sterwill5sourcegear6com | tr 56 @.`
Any news on this issue? I have got the same problem with vault 2.0.3
Unhandled Exception: System.Exception: Failed to release the mutex. GetLastError returned 288.
at VaultLib.SystemMutexWin32.Release()
at VaultLib.SystemMutexWin32.Dispose()
at VaultClientOperationsLib.WorkingFolder.Finalize()
It mainly seems to happen with Setworkingfolder....
Unhandled Exception: System.Exception: Failed to release the mutex. GetLastError returned 288.
at VaultLib.SystemMutexWin32.Release()
at VaultLib.SystemMutexWin32.Dispose()
at VaultClientOperationsLib.WorkingFolder.Finalize()
It mainly seems to happen with Setworkingfolder....
I think I've tracked this down to a problem with our dispose pattern and mutex objects. I can provide you an updated DLL with the fixes if you're willing to test it out. Let me know through e-mail or in this thread if you're interested.
Shaw Terwilliger
SourceGear LLC
`echo sterwill5sourcegear6com | tr 56 @.`
SourceGear LLC
`echo sterwill5sourcegear6com | tr 56 @.`
I have same issue
I am having the same issue. I am getting this very often when I run my build scripts that use the Vault command line utility and it causes my builds to crash. Any news on a fix for this?
-
- Posts: 3
- Joined: Mon Jul 26, 2004 3:09 pm
Same problem here...
I am having the same unhandled exception.
Can I get that link to the 2.0.5 preview bits?
thx
Kevin
Can I get that link to the 2.0.5 preview bits?
thx
Kevin
You can get the 2.0.5 client preview 2198 (includes mutex fixes and client-side logging) here. This link may disappear as new builds are made.
[edited by sterwill: added build number to differentiate from other 2.0.5 previews]
[edited by sterwill: added build number to differentiate from other 2.0.5 previews]
Shaw Terwilliger
SourceGear LLC
`echo sterwill5sourcegear6com | tr 56 @.`
SourceGear LLC
`echo sterwill5sourcegear6com | tr 56 @.`
I see this all the time too when doing product builds:
<vault>
<!-- Label $/Services/IndexService.sln "IndexService.1.0.5" -->
<result success="yes" />
</vault>
Unhandled Exception: System.Exception: Failed to release the mutex. GetLastError returned 288.
at VaultLib.SystemMutexWin32.Release()
at VaultLib.SystemMutexWin32.Dispose()
at VaultClientOperationsLib.WorkingFolder.Finalize()
What's the latest status on this?
<vault>
<!-- Label $/Services/IndexService.sln "IndexService.1.0.5" -->
<result success="yes" />
</vault>
Unhandled Exception: System.Exception: Failed to release the mutex. GetLastError returned 288.
at VaultLib.SystemMutexWin32.Release()
at VaultLib.SystemMutexWin32.Dispose()
at VaultClientOperationsLib.WorkingFolder.Finalize()
What's the latest status on this?
Jeff Marken