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

Constantly getting login 403 error in sourcetree

I get the 'too many login attempts error' multiple times a day. I have to reset my password every time for it to work. It really slows my day down having to reset my password 5-10 times a day. Is there a fix for this issue? I see quite a few people have the same problem.

 

Thanks

1 answer

0 votes

Hi Melissa! Can you give us some more information so we can narrow down your issue and help you out?:

  1. Are you using Sourcetree for Windows or for Mac?
  2. To which service are you connecting it? Is it Bitbucket Cloud, Bitbucket Server, Github...? Can you confirm your account was set following the steps at Connect your Bitbucket or Github account
  3. Are you getting this error consistently? Does it happen every time you perform a certain operation, or does it happen randomly?
  4. Have you tried to perform the same operation from the command line? Do you also get this error?

Best regards!

Ana

1. Mac

2. Bitbucket Server, yes I have done the connecting of the account many times. Sometimes that's the only way it will work again. Its already connected but I have to enter all my info again and it works sometimes. Other times I have to go reset my password entirely and then it will work.

3. I would say it's somewhat random, whenever I want to push or pull for the first time that day it will give me the error, then I do one of the solutions I mentioned above and it works for a little while, then I started getting the error again after a couple pushes/pulls

4. I do not have the command line set up

Hi:

I have the same problem. I created a bitbucket issues for this problem BBS-77777

  • Sourcetree version: 2.7.3 on Mac
  • Bitbucket Cloud: to my company team
  • I'm login in to bitbucket and sourcetree using my company google apps account

 

git -c diff.mnemonicprefix=false -c core.quotepath=false -c credential.helper=sourcetree fetch origin
remote: Too many invalid password attempts. Log in at https://id.atlassian.com/ to restore access.
fatal: unable to access 'https://[my user name]@bitbucket.org/xxx/yyy.git/': The requested URL returned error: 403
Completed with errors, see above

 

After I Log in at https://id.atlassian.com/ this can be read at Sourcetree

git -c diff.mnemonicprefix=false -c core.quotepath=false -c credential.helper=sourcetree fetch origin 
remote: Invalid username or password. If you log in via a third party service you must ensure you have an account password set in your account profile.
fatal: Authentication failed for 'https://[my user name]@bitbucket.org/xxx/yyy.git/'
git -c diff.mnemonicprefix=false -c core.quotepath=false -c credential.helper=sourcetree pull --no-commit --log origin master 
From https://bitbucket.org/xxx/yyy.git/

branch master -> FETCH_HEAD
Updating 6476563..99a666c
Fast-forward
src/main/filters/DEMO_PTS/db.properties | 8 ++++----
1 file changed, 4 insertions, 4 deletions
Completed successfully
Like rejack89 likes this
Manju Atlassian Team Apr 30, 2018

Can you please enable debug logging in Sourcetree and send us some logs?

You can enable debug menu from Preference ->Advanced -> Show debug menu.

And from the new Debug menu, turn on Enable Auth logging and set log level to Verbose. 

All auth logs will be written to console. Sourcetree specific logs can be found by opening the logs folder (an option on debug menu). 

In the meanwhile, please check if this helps

In the repo browser, right click on the repo you have an issue and select convert to ssh and then convert back to https. This sets the right URL format in the remote settings. 

Also, please let us know if there is a particular pattern for this issue. May be like happens an hour after setting authentication, two hours after, etc. 

Additional question, have you added your bitbucket cloud account in Sourcetree accounts? What authentication type have you used?

 

Thanks,
Manjunath
Sourcetree Mac Developer

Manju Atlassian Team Apr 30, 2018

And like wise for Bitbucket server @MelissaB1517

Screen Shot 2018-04-30 at 1.38.57 PM.pngI've tried to push twice and am still getting the same error, I don't see a recent error log from today though

@MelissaB1517 Would you mind giving this custom build a try and let me know if this is any better? 

Thanks so much for the details provided and trying the new build. 

Seems to be working perfectly so far! Haven't had any issue today. Thank you so much!!

Manju Atlassian Team May 07, 2018

Glad to hear that. We will roll it out in the next beta this week. I'll post the link here and also when it gets released through regular channel. Please make sure you update to the regular build when its available to keep receiving the updates. 

Hello,

 

I am also facing the same issues and tried custom but no luck, getting below error. please help

Screenshot 2019-03-21 at 6.39.00 PM.png

I am also getting the same error. 

Everything works smoothly on terminal. it is Sourcetree specifically that fails. 

 

Please help!

Like Sriram Vaitheeswaran likes this

I am using v3.3.8.

I am facing the same error from April mid I guess.

Everything is perfect on running git from cmd.

But any command (fetch, pull, push) from sourcetree fails with 403 error.

I'm behind proxy and using gitlab repo for the past 2 years.

Btw, the sourcetree terminal is also not working. This might not be related to this issue. Just letting you know.

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Sourcetree

Sourcetree for Windows - CVE-2019-11582 - Remote Code Execution vulnerability

A vulnerability has been published today in regards to Sourcetree for Windows.  The goal of this article is to give you a summary of information we have gathered from Atlassian Community as a st...

4,895 views 0 12
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