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

Authentication Failed, cant access own bitbucket repo due to "invalid credentials"

Ottokard
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 23, 2023

Hello,

Im unable to push any commits to my own bitbucket repository. Unsure why.

I can add remotes, make commits, etc. but not push.

At first I though it was due to something wrong with my account, so I made a completely new one, only to face the same error.

Im unsure what Im doing wrong.

Is it something to do with the fact I use Gitkraken for anything involving Git?

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

2 votes
Answer accepted
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 25, 2023

Hi @Ottokard and welcome to the community!

Adding remotes and making commits are operations performed locally and they do not require authentication, while a push does.

Are you using HTTPS or SSH to push to the repo? Based on the output, it looks like you may be using HTTPS, but please correct me if I am wrong.

A common issue causing this error is that users often use their account's password and we have deprecated the use of account passwords for Git over HTTPS and API:

Your account's password can be used only for logging in to https://bitbucket.org/ from browser. If you want to clone, pull, or push to a repo with HTTPS, you can generate an app password for your account and use that instead of a password (in combination with your Bitbucket username):

Are you able to push this way?

If Git or GitKraken specifically are configured to use a credential manager, you may need to delete any stored credentials for bitbucket.org first.

Kind regards,
Theodora

Ottokard
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 25, 2023

Hello,

I made an app password, and added it to sourcetree.

Using sourcetree, I tried pushing to my repo.

It didn't work, it just kept loading forever.

Is there some error happening here?

Nevermind, closing and opening sourcetree and waiting 10 minutes before clicking push, it worked now.

Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 26, 2023

That's good to hear, thank you for the update. Please feel free to reach out if you ever need anything else!

DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events