Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

SourceTree & keychain fail

Sophie Prince
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 8, 2018

SourceTree keeps asking for me password

Here are steps I keep repeating

- reboot my mac

- launch sourcetree

- click on remote I get error

"Error calling askpass for password.

Something went wrong. one or more parameters required to renew token is nil."

- it asks me to sign in on a web view

- i log in no problem (yes my password is valid)

- the list of my remote branches appears

- i click on clone of any of my branches

- apple keychain then pops up asking me for my password, but the very same password that works everywhere else does not work in the keychain

 

- subsequent calls to clone will give me, "This is not a valid source path" and then again 

"Error calling askpass for password.

Something went wrong. one or more parameters required to renew token is nil."

 

Here is a list of things I have tried so far, all in vain

- upgraded from MacOs 10.12.6 to 10.13.3

- upgraded SourceTree to 2.7, then downgraded to 2.6.3.

- deleted my account then added back my account in SourceTree app.

- deleted sourcetree logins from my Keychain Access

- deleted files from ~/Library/Preferences/

- deleted files from ~/Library/Application Support/SourceTree

- added 2 factor authentication then disabled it

- tried basic then tried OAuth

- tried SSH then tried HTTPS

- rebooted a bunch of times. 

 

I have 2 macbooks...  works fine on my other macbook.

 

I am the 4th person in my office to get this problem.  The others have given up and are now using the command line...

 

Screen Shot 2018-03-08 at 11.42.49 AM.pngScreen Shot 2018-03-08 at 11.42.38 AM.pngScreen Shot 2018-03-08 at 11.49.20 AM.pngScreen Shot 2018-03-07 at 11.13.27 AM.pngScreen Shot 2018-03-07 at 11.09.23 AM.png

4 answers

4 votes
Mike Flanigan
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 7, 2018

Although I'm a Windows user, my recent experience may be relevant to yours, because it was very similar. The short answer is this: You have *two* installations of Git on your machine. One is the system Git (you can see this version in your command prompt), and the other is the *embedded* Git, which is inside of your Sourcetree application. **When Sourcetree updates, it does not seem to update it's embedded version of Git.**

I was able to solve my very similar authentication issue by - in Sourcetree - going to Tools/Options/Git, and selecting "Use System Git". (My system Git is updated to the latest version.)

Alternatively, there is a button in Sourcetree to "Update Embedded Git" - this should also solve your problem.

Going forward, I'm going to just "Use System Git", so that I only have to maintain Git in one place.

Ultimately, it's two issues:
1. Your password issue needs to be solved by using the latest Git version.
2. Sourcetree is making this difficult by calling it's own version of Git, and then not updating that version of Git when you update Sourcetree

I hope this helps.

Front Man
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 7, 2018

After reading through dozens of pages trying to figure out how to fix this issue on Mac (messing with Keychain, reinstalling, rebooting)... A guy using Windows finally gives a real solution with just checking the "Use System Git" option in the SourceTree prefreneces!!! Thanks mate a lot!!! :)

Mike Flanigan
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 8, 2018

You bet! I should mention (for other people reading this) that it is possible that you only have the embedded Git version, and do not have a system Git version, in which case you would, of course, need to either update the embedded version, or install the system version.

I think it is bad form on the part of the Sourcetree software architects to not at least prompt the user to update the embedded Git when updating Sourcetree. The vast majority of us would choose to do so.

Orhan
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 16, 2021

This is still an issue and your solution works perfectly. Thanks!

Deleted user June 6, 2022

Still an issue but this resolved it for me too. Thanks!

sforcebewithyou
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 15, 2023

🤦‍♂️ So simple. Thank you!!!
Mac Sourcetree click path:
Sourcetree > Settings > Git tab > Git Version section > Use System Git button

it should default in /usr/bin with git selected, which worked for me

Click open to select /usr/bin/git

0 votes
Daniel Klein September 18, 2018

The Git password (Github /Bitbucket) is (should be!) different from your keychain password. Sourcetree will prompt you for both at different times. The only way I've got Sourcetree to work is to delete the Sourcetree entry from the keychain and read the password prompts in Sourcetree very carefully each time.

If it asks you for your Git password, just type it in. Do not leave "Save in keychain" ticked or you will repeat the problem! When it asks for the keychain password, click "Deny". Unfortunately, you will have to do this every time until a new version of Sourcetree is released that fixes this bug.

0 votes
Sophie Prince
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 12, 2018

Hi Ana, thanks for the reply!

My mac is now seriously misbehaving.  Many apps are no longer working.

The same behaviour I get from SourceTree I am now getting from iCloud: that is my password works on the web site but the same password when prompted from the keychain gives an error.

I think this may be from Apple's new File System.

Upgrading MacOs did not work, I am pretty sure only reformatting will work :(

0 votes
Ana Retamal
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 12, 2018

Hi Sophie! You mentioned that you already tried deleting Sourcetree logins from your Keychain, but after that, how did you add your credentials again? Can you confirm if you followed the steps at Connect your Bitbucket or Github account? Or did you do something different? 

Let us know!

Ana

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events