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

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

Infinite redirect loop only when logging into BitBucket

I've tried clearing cookies, logging out of all sessions on all machines, logging in using my email address instead of Google, and setting up two-factor auth. Problem still keeps happening.

34 answers

I had the same problem and found a solution:
Go to https://id.atlassian.com and log out - then you will be able to login again.

Ana Retamal Atlassian Team Aug 27, 2018

Thanks for sharing this with us, @Martin K.!

Doesn't fix it for me. I continue to have the same issue. This is really embarrassing :(

Like # people like this

This issue persists since multiple months. 

Is doesn't look like somebody cares, or evens analysis this issue properly. 
I've migrated all of my repositories from bitbucket to github. 

So Long, and Thanks for All the Fish.

Hi,

 

Same issue here. The main problem seems to be how pages are redirected or POSTed. The way certain things are handled.

If you go to Bitbucket login you'll end up at https://bitbucket.org/socialauth/login/atlassianid/?next=%2F in Firefox and the page will stop here ("OpenID transaction in progress") since the event on the page/body does not fire in the correct order. There's an "onload" event to POST this page and that does not work.

...
<body onload="document.forms[0].submit();">
...

 

If you open the debugger console/developer tools (F12 on Windows) and execute the above submit() action you will be transferred to the correct login page.

>> document.forms[0].submit()

There are several pages that works in a similar way and they do not work either so you'll have to manually POST or click() things to happen in Firefox...

@Electra Administrator thanks a lot. it seems this is the only solution that really works now

Indeed, this works. Of course it's far from ideal!

Please fix this, Atlassian.

Like Gabriel_Belmonte likes this

This did not work for me. I have been locked out of my account for almost 8 months now.

Ana Retamal Atlassian Team Mar 14, 2019

Hi @Jeff Lyne  and welcome to the Community!

To which account are you trying to log in? I can see that you have both and individual and a team account. As you have read above, team accounts can not be accessed with their email address anymore (as team accounts don't have their own email addresses going forward), instead you can access the team using your individual account's credentials.

Please let us know where are you having trouble, in which browser, and send us a screenshot of the error you get. 

Best regards,

Ana

Like Jeff Lyne likes this

Thanks Ana. I should have done more research. This solved my problem.

Like Ana Retamal likes this
Ana Retamal Atlassian Team Mar 15, 2019

Glad to hear that, @Jeff Lyne , have a good day!

Ana

document.forms[0].submit()

👆this did the trick!

 

Atlassian, FIX THIS! I WASTED 2 HOURS OF BILLABLE WORK BECAUSE OF THIS!

Like nw-ervinne likes this

The worst thing about this bug is that it's been more than a year and it f8cking crashed my browser and lose all my tabs. SH*T

This is so fking stupid. Been unresolved for more than 2 years and for service as critical as login!!!!

Same issue @Ana Retamal I can't work like this. Please let us know what to do. I've tried both entering with my gmail account with a password and using google account to login. I deleted all my cookies Atlassin and bitbucket, ive tried to log out, and nothing. 

I had the same issue with  Bitbucket server. The problem was because the users in bitbucket were marked as "Unlicensed". 
See here https://community.atlassian.com/t5/Bitbucket-articles/What-does-UNLICENSED-user-mean-in-Bitbucket-Server/ba-p/788968

So check the groups permissions for the users that is not able to log in. 

The behaviour may be different with bitbucket cloud. i don't know. 

I think this might be relevant here as well, this is also posted on

https://community.atlassian.com/t5/Bitbucket-questions/BitBucket-login-loop-quot-OpenID-transaction-in-progress-quot/qaq-p/872426#U1156402

ok this may not be nothing but a flunk but I followed the link https://bitbucket.org/account/signup/ in a private window then gave my email like if i was entering the email for the first time, it said welcome back and nothing happened then i tried to log in and it went to my dashboard. then i closed the window and tried again on my browser(firefox, non private mode) and it went back to the same behavior(login loop).

but i can enter in private mode no problem.

but no, i cant enter in a non private browser.

addendum, I logged back out and nope. nothing.

addendum, nope, doesnt matter what i do i can not login in a non private mode browser.

addendum, now i cant do that anymore with a private window, seems it was a fluke or something.

addendum now i can log in back with those accounts on a private window of course.

Solved it for me! Thanks :)

My account seemed to randomly start working after several months, but it's gone again now.  I'm unable to log in from any browser, on any computer.  

As before, I've done the usual attempts to alleviate the issue - log out via id.atlassian.com, etc.  No joy.  The actual requests are: 

GET https://bitbucket.org/account/signin/
Returns a 302 to https://bitbucket.org/socialauth/login/atlassianid/?next=%2F

GET https://bitbucket.org/socialauth/login/atlassianid/?next=%2F 
Returns a 200 and a HTML page that contains a form with `body onload="document.forms[0].submit();"` to automatically submit the form.

POST https://id.atlassian.com/openid/v2/op 
Returns a 303 to the following location

GET https://bitbucket.org/socialauth/complete/atlassianid/?janrain_nonce=[lots of open auth query string params here]

Returns a 302 to /account/signin/

And we're back at the start. 

Ah, one thing I've just noticed is that the last request in the above list sets a cookie:

```
messages="[someguidl]$[[\"__json_message\"\0540\05440\054\"Team accounts can only be accessed via a team member account.\"]\054[\"__json_message\"\0540\05440\054\"Team accounts can only be accessed via a team member account.\"]\054[\"__json_message\"\0540\05440\054\"Team accounts can only be accessed via a team member account.\"]\054[\"__json_message\"\0540\05440\054\"Team accounts can only be accessed via a team member account.\"]\054[\"__json_message\"\0540\05440\054\"Team accounts can only be accessed via a team member account.\"]\054[\"__json_message\"\0540\05440\054\"Team accounts can only be accessed via a team member account.\"]\054[\"__json_message\"\0540\05440\054\"Team accounts can only be accessed via a team member account.\"]\054[\"__json_message\"\0540\05440\054\"Team accounts can only be accessed via a team member account.\"]\054[\"__json_message\"\0540\05440\054\"Team accounts can only be accessed via a team member account.\"]\054[\"__json_message\"\0540\05440\054\"Team accounts can only be accessed via a team member account.\"]\054[\"__json_message\"\0540\05440\054\"Team accounts can only be accessed via a team member account.\"]\054[\"__json_message\"\0540\05440\054\"Team accounts can only be accessed via a team member account.\"]\054[\"__json_message\"\0540\05440\054\"Team accounts can only be accessed via a team member account.\"]\054[\"__json_message\"\0540\05440\054\"Team accounts can only be accessed via a team member account.\"]\054[\"__json_message\"\0540\05440\054\"Team accounts can only be accessed via a team member account.\"]\054[\"__json_message\"\0540\05440\054\"Team accounts can only be accessed via a team member account.\"]\054[\"__json_message\"\0540\05440\054\"Team accounts can only be accessed via a team member account.\"]\054[\"__json_message\"\0540\05440\054\"Team accounts can only be accessed via a team member account.\"]\054[\"__json_message\"\0540\05440\054\"Team accounts can only be accessed via a team member account.\"]\054\"__messagesnotfinished__\"]"; httponly; Path=/; secure
```

That is interesting - I did have a team account, about 6 years ago.  And bingo!  I've just realised I'm trying to log in using the email address of that team account, not the email address of the original account that's a member of the team and which has a different email address.  It's all a little confusing since Bitbucket originally used usernames, not emails, for logging in.  

So for people who are still having the infinite loop with the "OpenID transaction in progress" message, I'd recommend looking at the cookies returned from the GET to `https://bitbucket.org/socialauth/complete/atlassianid`.  It seems they may return error messages there, which could explain why the authentication failed.

Sick to death having to deal with this issue every couple of weeks!  I'm out! Get me off this platform.

+1 suffering the same issue here too, regardless of computer, browser, incognito or cleared site data - can't do anything!

same issue...

Could you please fix this?

I have to work with this

Hello,

I had this problem and support did not help much.

I understood that I did not have to log in with the old team  account. But I could not reach a login window to change login, because of this infinite loop.

I managed to get out of this trap by removing the cache and cookies, not just those from bitbucket.org, but the entire browser cache and all the cookies.

I was then able to access a login window again, to change login.

I suspect that the login process uses other URLs, such as id.atlassian.com. These URLs have their own caches and cookies, which participate in this infinite loop, and they are not affected by the deletion of the cache and cookies on the url bitbucket.org

Hi @Ana Retamal

I'm facing the same problem. It happened after i logged out. What are the instructions to correct it ? (I already opened a support ticket)

Thks

1 vote
Ana Retamal Atlassian Team Aug 06, 2018

Hi @irwinbilling

I just checked your email address and I could see it's linked to a Team account. It's been some time already since it's not possible to access Team accounts that way; now every member needs to use their own credentials to access the team they belong to. 

If your individual Bitbucket account is not part of the team, you'll need to ask one of the admins to add you. If you don't have an individual team account, you can create it at Bitbucket Sign up. Alternatively, if you want to use the same email address that is currently associated to the team, please let us know as we'll need to do some work on the background first.

Let us know if you need any further assistance!

Kind regards :) 

Ana

Hi Ana,

Thanks for getting back to me. Unfortunately, there is no-one else on the team account. It would be great if we could make the same email address work.

Ana Retamal Atlassian Team Aug 07, 2018

Hi @irwinbilling, I can see there are other users in the team, however, to make things easier, I've created a Support ticket for you so we can help you with this change internally. You should receive an email notification about the Support ticket soon.

Cheers!

Ana

Hi,

I am facing same issue. So please can you check by my email address.
miteshkhat@gmail.com

Hi Anna, im facing the same issue, is it possible to check if im on the same circumstances?

This won't help everyone, however I found that when I had a Chrome extension for a VPN insalled, in my case PIA, it caused the redirect loop, I removed the extension and all was well!

I am having the same problem as you, the infinite loop does not let you enter and everything goes through the teams account that was created long ago. Is it possible that we have an answer?

Have you tried to access like this "bitbucket.org/username" after the authentication? 

I'm having the same issue, but I can access my account by adding my username at the end of the home URL, like "bitbucket.org/username" an then I can see all my repos and the ones that are shared with me

Facing same issue from last 4 months... please solve it.

same issue :( 

I haven't tried just leaving it in the loop for more than a minute @HB, maybe I'll try that tonight.  

It's not much help for most people, but since I was still authenticated on one computer, I was able to do a bulk import of my projects into GitLab (https://docs.gitlab.com/ee/user/project/import/bitbucket.html) which means I'm at least able to access my code again on other devices.  In all fairness to Atlassian, it's my personal free account that is broken, so I guess if they want to cut off access, I have no right to complain - I'm not paying for the service.  

I can't login with Firefox as well. When pressing the 'Log in' button on https://bitbucket.org/product I'm greeted with a blank page with the title 'OpenID transaction in progress', but the page is done loading.

When opening a page on https://community.atlassian.com/ I'm seeing it at first, then there's some kind of reload and I'm being routed to an empty page with title 'POST data'.

This sucks.

I'm not sure what it is that makes this work, but when I login through a link similar to the last one (#3) mentioned here, I get through. I can't share the link because I'm scared of the possibility that my account gets hacked or something.

Struggling with this as well. 

Same problem. It takes me 10 minutes trying to log in to actualy log in.

Worse, if I try to go to one of my public repositories, I get a blank page.

Press the log in in the bitbucket site a blank page.

This is ridiculous.

I have the same problem, cannot log into my account. Tried 2 browsers, tried clearing cookies.. Would like to be able to clone me repos again.

Suggest an answer

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

New improvements to user management in Bitbucket Cloud 👥

Hey Community! We’re willing to wager that quite a few of you not only use Bitbucket, but administer it too. Our team is excited to share that we’ll be releasing improvements throughout this month of...

3,717 views 10 16
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