It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

SourceTree "abort: could not lock working directory of" error when PULLing changes

Hello,

It's been a few months since I've used SourceTree, but this time it's throwing an error when I try to PULL changes for existing local repos:

hg pull -u C:\Users\me\AppData\Local\Temp\l5rpcxmz.xkc
pulling from C:\Users\me\AppData\Local\Temp\l5rpcxmz.xkc
abort: could not lock working directory of C:\Users\me\Documents\Source Code\MyProject: Permission denied
pulling from C:\Users\me\AppData\Local\Temp\l5rpcxmz.xkc
abort: could not lock working directory of C:\Users\me\Documents\Source Code\MyProject: Permission denied
pulling from C:\Users\me\AppData\Local\Temp\l5rpcxmz.xkc
abort: could not lock working directory of C:\Users\me\Documents\Source Code\MyProject: Permission denied
pulling from C:\Users\me\AppData\Local\Temp\l5rpcxmz.xkc
abort: could not lock working directory of C:\Users\me\Documents\Source Code\MyProject: Permission denied
Completed with errors, see above.

There have been no user changes on my local machine. Both the working directory and the .hg file have "full control" permissions for my user, the administrator's group (of which I am a member) and "SYSTEM". Also, I'm able to login to Bitbucket and access repos just fine. In fact, I'm able to clone successfully with TortoiseHg.  Additionally, I've attempted to run SourceTree as admin with the same result.

When I open a new tab in SourceTree (btw, I'm using the latest version - v2.6.3.0), click the "remote" option, right-click my username and "Edit Account", the window shows "Authentication OK" immediately. However, I'm unable to clone repos and get the following error:

hg clone https://my_username@bitbucket.org/MyOrg/myOtherProj "C:\Users\me\Documents\Source Code\TEST3"
abort: C:\Users\me\Documents\Source Code\TEST3\.hg\00changelog.i: Access is denied
Completed with errors, see above.

"Access is denied" and "Permission denied" seem to point to a permissions issue, but I'm not sure where to look at this point. I'd appreciate any point in the right direction.

Thanks!

1 answer

0 votes
Mike Corsaro Atlassian Team Jun 14, 2018

Hello! This sounds like it could be an anti-virus issue. Can you try just running that same clone command, but from the command-line in the destination directory?

Thanks for your reply, Mike!

I was able to clone the repo via the command line.  I was also able to clone it using TortoiseHg.

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Sourcetree

Sourcetree for Windows - CVE-2019-11582 - Remote Code Execution vulnerability

A vulnerability has been published today in regards to Sourcetree for Windows.  The goal of this article is to give you a summary of information we have gathered from Atlassian Community as a st...

4,999 views 0 12
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you