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

After updating from sourcetree 2.4 to 2.5.5 I can no longer authenticate to my bitbucket server

I am using Windows 10 and have been using sourcetree for a while. After updating from a 2.4.x version to the 2.5.5 version I can no longer authenticate to our internal bitbucket server.

Hosting Service is Bitbucket Server.

Preferred Protocol is HTTPS.

Authentication is Basic.

I get this error:
Authentication Failed
Failed to check login for user [my login]
Insufficient authentication credentials
Sourcetree was unable to find a password for user 'my login' at 'my host url'.

What changed between 2.4 and 2.5 that would break authentication?

2 answers

THIS IS CRITICAL PRODUCTION BUG. HOW IS IT EVEN POSSIBLE THAT THIS VERSION IS UP FOR SO LONG TIME WITHOUT FIX?! WHERE IS YOUR QA, ATLASSIAN? IS IT BECAUSE ITS A FREE TOOL?

0 votes
minnsey Atlassian Team May 14, 2018

Hi

Looking at the log it looks like the issue is when using git commands, pull/push etc,  rather then REST commands, e.g. listing projects?

If that is the case are you being prompted to enter username/password when you run pull/push/fetch commands?

The Git Credential Manager for Windows which manages those credentials stores them in the Windows Credential Manager or Vault with the prefix 'git:'. Are their credentials in there matching your Bitbucket Server?

Also can you push/pull/fetch from the command line? 

I'm not sure which logs that you are looking at, but git is working fine in the command line (using local git on command line, not sourcetree git). I attempted to uninstall and reinstall sourcetree and I am getting the same issues.

I can duplicate this by going to Tools > Options > Authentication > Add - then entering the information as listed above. I cannot connect. I am assuming it is REST calls, not git calls. I can't list the projects or even authenticate to get view anything at all.

This is from the sourcetree.log file, though I replace my username with "username":

ERROR [2018-05-11 17:29:31,893] [1] [SourceTree.Notifications.NotificationsManager] [ShowNotificationDialog] - Unable to set owner as parent is not visible or non-existent
ERROR [2018-05-11 17:30:24,084] [1] [SourceTree.Exceptions.RemoteHostException] [.ctor] - Insufficient authentication credentials
ERROR [2018-05-11 17:30:24,095] [1] [SourceTree.Exceptions.RemoteHostException] [.ctor] - Failed to check login for user [username]
ERROR [2018-05-11 17:32:40,101] [1] [SourceTree.Exceptions.RemoteHostException] [.ctor] - Insufficient authentication credentials
ERROR [2018-05-11 17:32:40,102] [1] [SourceTree.Exceptions.RemoteHostException] [.ctor] - Failed to check login for user [username]

minnsey Atlassian Team May 14, 2018

Sorry I meant the error message, rather than log.

Can you tell me what versions of git you are running locally and in Sourcetree? If you switch Sourcetree to use your local version does it then work for git commands?

We have the very same issue here. Sourcetree 2.5.5, Bitbucket Server 5.10. If you enter the correct credentials, you get this error:

ERROR [2018-05-18 23:11:30,549] [1] [SourceTree.Exceptions.RemoteHostException] [.ctor] - Insufficient authentication credentials
ERROR [2018-05-18 23:11:30,550] [1] [SourceTree.Exceptions.RemoteHostException] [.ctor] - Failed to check login for user [xxxxxxx]

If you enter the wrong credentials, the error is different:

ERROR [2018-05-18 22:43:47,475] [1] [SourceTree.Exceptions.RemoteHostException] [.ctor] - Failed to check login for user [xxxxyy] : You do not have permission to access URL 'https://[FQDN]/rest/api/1.0/users/xxxxyy' please check the user credentials associated with this account. The request returned with status code 'Unauthorized'.

Same here. Sourcetree 2.5.5, Bitbucket Server 5.10. Same errors as above.

Same here after updating from 2.4.8 to 2.5.5 unable to authenticate! Bitbucket server version 5.10.0

Same error message here, unable to complete the installation and start the tool...

FYI, I raised a bug here: https://jira.atlassian.com/browse/SRCTREEWIN-8743

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,262 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