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

Unable to commit using App Password in SourceTree

Mrunmayee Prakash Shirodkar
Contributor
March 1, 2022

I have created app password with all permissions. In SourceTree, Tools -> Options -> Authentication tab shows Authentication: OK. When I try to push it shows me an authentication error.

remote: Bitbucket Cloud recently stopped supporting account passwords for Git authentication.
remote: See our community post for more details: https://atlassian.community/t5/x/x/ba-p/1948231
remote: App passwords are recommended for most use cases and can be created in your Personal settings:
remote: https://bitbucket.org/account/settings/app-passwords/
fatal: Authentication failed for 'https://bitbucket.org/mrunmayeeshirodkar/typs.git/'

 

What am I missing?

 

9 answers

1 accepted

25 votes
Answer accepted
Devon Chan
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 2, 2022

I got the same issue from now and then, mostly Source Tree password cache problem.

This fixed my issue:

(1) Clean Window Credentials

  1. First close any open instances of SourceTree
  2. Go to Control Panel > User Accounts > Manage Credentials > Windows Credentials
  3. Find SourceTree related passwords and remove them

(2) Clean Source Tree "passwd" file

  1. Open Windows Explorer (⊞ Win+E)
  2. In the address bar, go to "%LocalAppData%/Atlassian/SourceTree"
  3. Delete "passwd" file
  4. Open Source Tree and Perform a Fetch before doing anything else.


Ref: stackoverflow.com/questions/45690641/

Darshana Vimukthi Wanigasekara
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 7, 2022

Worked!!! Thanks.... Life saver... :)

Sam Smith
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 9, 2022

This worked - many thanks!

Smirelesz
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 9, 2022

Thank you so much. This worked like a charm.

jorge.lozano
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 11, 2022

I had a similar problem trying to clone a repository. These steps helped me to solve it. Thank you very much!

Chester Macklin
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 22, 2022

This fixed it when nothing else would, thank you!  For others/SEO, my original issue was not seeing remote repositories, then when Atlassian updated the credential system I was no longer able to commit existing repos with the old OAuth system or the new app passwords.  At all times the settings screen showed a green check for authentication.  The above fixed all the issues.

Ike Kim
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 25, 2022

Wonderful!

It worked magically without knowing all the details behind.

Thank you very much for saving my time.

Adam Courtney
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 27, 2022

You are a wonderful person! :) Thank you for saving a battle, and maybe losing a bunch of my project! :)

SilvanaKU
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 9, 2022

Awesome, worked. For me, it was sufficient to delete the passwd-file and perform a fetch.

8 votes
Razvan Grigore
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 2, 2022

Was having the same issue, my friend was able to find a solution after lots of tries and now it's working. 

 

First, download and install Git in your system, if you don't have it. https://git-scm.com/

 

Then, go to Tools > Options > Git and select System, as seen here:

Captură_ecran_030222_121156_PM.jpg

Login again with the new App password when prompted and everything should work well. You can also try Update Embedded option too, maybe it will fix it without the need of System use.

Andreas Dahmm
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 9, 2022

Many thanks for this, this solved my issue.

Like Razvan Grigore likes this
MarioRangel
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 10, 2022

thats my first comment at this forum only to say, thanks man, you saved me.

Like Razvan Grigore likes this
krithika_babu
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 11, 2022

thank you !! worked like charm

Like Razvan Grigore likes this
Michael Haggerty
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 22, 2022

Thank you.  What an annoying issue...  This installation of git solution worked for me.

Like Razvan Grigore likes this
1 vote
Erune
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 1, 2022

I've spent much of the day fighting with this problem, there is still no solution?

0 votes
Hondaman900 March 15, 2022

For me this wasn't resolved until I edited my Windows/System32/drivers/etc/hosts file to add

18.205.93.0 bitbucket.org

to the end of the file and save. 

 

Then it worked. Thanks to: https://www.youtube.com/watch?v=N2_EzkDZmBw

0 votes
Vlad Cimpianu
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 4, 2022

Bitbucket fucked up badly changin things that were actually working.

0 votes
IIT Common User
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 2, 2022

i have the same issues .it still in error. how can i solve this?

0 votes
Ivy Marie
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 2, 2022

Mine is working properly now! I just deleted the existing credentials on my mac from by following this:

How to wipe Sourcetree preferences 

After deleting those files. Open your sourcetree again and for Mac a pop up box appeared and you have to enter your username and your app password and you should be good!

0 votes
yeisson72 March 1, 2022

I have the same problem, today I tried to pull and push new commits but the system all the time said me:

Command: git -c diff.mnemonicprefix=false -c core.quotepath=false --no-optional-locks ls-remote https://yeissonh@bitbucket.org/**************
Output:
Error: remote: Bitbucket Cloud recently stopped supporting account passwords for Git authentication.
remote: See our community post for more details: https://atlassian.community/t5/x/x/ba-p/1948231
remote: App passwords are recommended for most use cases and can be created in your Personal settings:
remote: https://bitbucket.org/account/settings/app-passwords/
fatal: Authentication failed for 'https://bitbucket.org/*********

I try to delete the files and recreate the repository but nothing worked. 

yeisson72 March 2, 2022

Hi!

I resolved in this form:

I created SSH Key, I used this article:

Set up an SSH key | Bitbucket Cloud | Atlassian Support

And clone one more time

regards,

Like Dave Hughes likes this
0 votes
Ivy Marie
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 1, 2022

I have the same issue. I have set it up and followed the instructions and still authentication error!! 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events