Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

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

Tip from the team: configure your repos for hosting goodness!

Supported Platforms macOS Windows We recently introduced support for additional hosting services such as GitHub Enterprise, GitLab (Cloud, Community Edition, Enterprise Edition), and...

3,292 views 4 5
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