Failed to grab lockfile during uninstallation and installation of source tree

I uninstalled the sourcetree and trying to install again but to no avail I get this error.

2017-04-27 14:31:04> Program: Starting Squirrel Updater: --install .
2017-04-27 14:31:04> Program: Starting install, writing to C:\Users\mining\AppData\Local\SquirrelTemp
2017-04-27 14:31:05> Program: About to install to: C:\Users\mining\AppData\Local\SourceTree
2017-04-27 14:31:05> Program: Install path C:\Users\mining\AppData\Local\SourceTree already exists, burning it to the ground
2017-04-27 14:31:12> SingleGlobalInstance: Failed to grab lockfile, will retry: C:\Users\mining\AppData\Local\Temp;C:\xampp\php\.squirrel-lock-97516FB7ECFF316B6DE41B3A475E26ED256F7D13: System.NotSupportedException: The given path's format is not supported.
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
at Squirrel.SingleGlobalInstance..ctor(String key, TimeSpan timeOut)
2017-04-27 14:31:13> SingleGlobalInstance: Failed to grab lockfile, will retry: C:\Users\mining\AppData\Local\Temp;C:\xampp\php\.squirrel-lock-97516FB7ECFF316B6DE41B3A475E26ED256F7D13: System.NotSupportedException: The given path's format is not supported.
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
at Squirrel.SingleGlobalInstance..ctor(String key, TimeSpan timeOut)
2017-04-27 14:31:13> SingleGlobalInstance: Failed to grab lockfile, will retry: C:\Users\mining\AppData\Local\Temp;C:\xampp\php\.squirrel-lock-97516FB7ECFF316B6DE41B3A475E26ED256F7D13: System.NotSupportedException: The given path's format is not supported.
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
at Squirrel.SingleGlobalInstance..ctor(String key, TimeSpan timeOut)
2017-04-27 14:31:13> SingleGlobalInstance: Failed to grab lockfile, will retry: C:\Users\mining\AppData\Local\Temp;C:\xampp\php\.squirrel-lock-97516FB7ECFF316B6DE41B3A475E26ED256F7D13: System.NotSupportedException: The given path's format is not supported.
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
at Squirrel.SingleGlobalInstance..ctor(String key, TimeSpan timeOut)
2017-04-27 14:31:13> SingleGlobalInstance: Failed to grab lockfile, will retry: C:\Users\mining\AppData\Local\Temp;C:\xampp\php\.squirrel-lock-97516FB7ECFF316B6DE41B3A475E26ED256F7D13: System.NotSupportedException: The given path's format is not supported.
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
at Squirrel.SingleGlobalInstance..ctor(String key, TimeSpan timeOut)
2017-04-27 14:31:14> SingleGlobalInstance: Failed to grab lockfile, will retry: C:\Users\mining\AppData\Local\Temp;C:\xampp\php\.squirrel-lock-97516FB7ECFF316B6DE41B3A475E26ED256F7D13: System.NotSupportedException: The given path's format is not supported.
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
at Squirrel.SingleGlobalInstance..ctor(String key, TimeSpan timeOut)
2017-04-27 14:31:16> Unhandled exception: System.AggregateException: One or more errors occurred. ---> System.Exception: Couldn't acquire lock, is another instance running
at Squirrel.SingleGlobalInstance..ctor(String key, TimeSpan timeOut)
at Squirrel.UpdateManager.<acquireUpdateLock>b__31_0()
at System.Threading.Tasks.Task`1.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Squirrel.UpdateManager.<CheckForUpdate>d__7.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Squirrel.UpdateManager.<FullInstall>d__10.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
at Squirrel.Update.Program.<Install>d__4.MoveNext()
--- End of inner exception stack trace ---
at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
at System.Threading.Tasks.Task.Wait()
at Squirrel.Update.Program.executeCommandLine(String[] args)
at Squirrel.Update.Program.main(String[] args)
---> (Inner Exception #0) System.Exception: Couldn't acquire lock, is another instance running
at Squirrel.SingleGlobalInstance..ctor(String key, TimeSpan timeOut)
at Squirrel.UpdateManager.<acquireUpdateLock>b__31_0()
at System.Threading.Tasks.Task`1.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Squirrel.UpdateManager.<CheckForUpdate>d__7.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Squirrel.UpdateManager.<FullInstall>d__10.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
at Squirrel.Update.Program.<Install>d__4.MoveNext()<---

1 comment

I've got the same error while installing SourceTree 2.5.4. Do you have any solution?

I have the same problem on Windows 10

Comment

Log in or Sign up to comment
Community showcase
Published Sunday in Feedback & Announcements

How do you analyze GC logs, thread dumps and head dumps?

Hi awesome community!  In this article, I would like to describe the one of the toolset (service) for the analyze some problems on different Java-based instances, of course, as Atlassian admini...

113 views 0 7
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you