Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Sourcetree cannot push to Bitbucket: invalid username or password

MitsuhashiDa August 22, 2018

Hi!

Since about 4 weeks, I can't push anything to my Bitbucket repos.

I've tried to delete the credentials from Sourcetree options, tried delete the credentials from the Windows' control panel, tried to create an app password, tried to reset the password of my Atlassian ID, tried to upgrade GIT, tried to downgrade Sourcetree (from the actual 2.6.10 to the old 2.5.5 version).

 

Nothing changes: form within the option dialog of sourcetree, the program can validate my credentials...

Screenshot 2018-08-10 at 14.56.00.png

...but, when I try to commit or push to bitbucket, I always receive the Invalid username or password message:

fatal: HttpRequestException encountered

remote: Invalid username or password
fatal: Authentication failed for 'https://<myusername>@bitbucket.org/<myusername>/<myproject>.git/'

Pushing to https://<myusername>@bitbucket.org/<myusername>/<myproject>.git
Completed with errors, see above.

2 answers

0 votes
Rafael Caetano
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!
September 2, 2018

Hi Maurizio. Did you find a solution to your problem? I am having the exact same issue.

SATE-Maurizio December 3, 2018

No solution. I've re-installed the whole OS, then SourceTree started to work.

Yesterday, I encountered the same issue, I cannot authenticate into bitbucket server with SourceTree.

My credetial are working if I try to login into the bitbucket from a web browser, I can refresh authentication token even from the SourceTree options dialog box, but SourceTree cannot login into bitbucket if I try either to fetch, pull or commit.

Tried to delete and re-create the credential, tried to uninstall and re-install sourcetree, tried to update embedded git and mercurial, tried to use embedded and system git and mercurial (any combination).

When I try to fetch from server I get this:

Logon failed, use ctrl+c to cancel basic credential prompt.
remote: Invalid username or password
fatal: Authentication failed for 'https://SATE-Maurizio@bitbucket.org/SATE-Maurizio/<repository_name>/'

Rafael Caetano
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 4, 2018

Hello Maurizio. At the time I wrote the previous comment, the solution to my problem was to delete a file named passwd located in C:\Users\AppData\Local\Atlassian\SourceTree. However, the AppData is usually hidden by default, so you have to check the 'Hidden Items' box in the Views tab to actually access the folder (check here).

That password is cached in the SourceTree folder, hence why I could not reset or anything in any other way.

I do not know if you have tried this already or not. But maybe it can help you.

Cheers

0 votes
Yogesh Mude
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 22, 2018
SATE-Maurizio August 22, 2018

Already tried it. Not working.

Thanks anyway

MitsuhashiDa August 22, 2018

@Yogesh Mude, the previous reply was from my office account (I used the wrong browser to reply).

I confirm that I've already tried that solution but is not working for me.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events