Uploaded image for project: 'Sourcetree for Windows'
  1. Sourcetree for Windows
  2. SRCTREEWIN-10965

Installation - Registration, takes me to localhost: site, so can never install.

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Highest Highest
    • None
    • None
    • None
    • Windows 10 Pro.

    • Severity 1 - Critical

      Try to install SourceTree, get to the Registration page, where you have to choose Bitbucket Server or Bitbucket, so Choose BitBucket, then opens web browser, which seems to have a valid url, then redirects to a localhost address and port, so can never enter registration information, thus cannot install SourceTree.

        1. h12-322-Exam-Dumps-2019.pdf
          186 kB
        2. 70-333-dumps.pdf
          407 kB

            [SRCTREEWIN-10965] Installation - Registration, takes me to localhost: site, so can never install.

            Still a problem.

            Chrome may be blocking http to localhost, or maybe Sourcetree isn't really listening on 34106.  Tried all of the things on the internets...no luck yet.  

            JimOliverOnMars added a comment - Still a problem. Chrome may be blocking http to localhost, or maybe Sourcetree isn't really listening on 34106.  Tried all of the things on the internets...no luck yet.  

            youngwolf0 added a comment -

            I am getting this issue now.

            youngwolf0 added a comment - I am getting this issue now.

            Omar Sood added a comment -

            Hello, I'm experiencing the reported issue at version 3.3.8 on windows 10 since a week ago. I had issues with my Bitbucket oauth in sourcetree, then I tried a clean reinstall and now I can't finish the installation process due to this issue.

            Omar Sood added a comment - Hello, I'm experiencing the reported issue at version 3.3.8 on windows 10 since a week ago. I had issues with my Bitbucket oauth in sourcetree, then I tried a clean reinstall and now I can't finish the installation process due to this issue.

            SapioiT added a comment - - edited

            Not fixed. I tried using the latest version available, and it says I have to use a Bitbucket cloud account, but the Oauth redirects me to a localhost page which does not load (says "connection refused".

            SapioiT added a comment - - edited Not fixed. I tried using the latest version available, and it says I have to use a Bitbucket cloud account, but the Oauth redirects me to a localhost page which does not load (says "connection refused".

            Users who try to connect their Bitbucket account via OAuth see an “Invalid redirect_uri” error. For now incident tracked as resolved. Link with a report: https://bitbucket.status.atlassian.com/incidents/l50d1j43zdj9

            Yevhenii Moroz (Inactive) added a comment - Users who try to connect their Bitbucket account via OAuth see an “Invalid redirect_uri” error. For now incident tracked as resolved. Link with a report: https://bitbucket.status.atlassian.com/incidents/l50d1j43zdj9

            Works now - just tried as it should work and it worked

            richardbergeron added a comment - Works now - just tried as it should work and it worked

            oatmaca added a comment -

            I agree!  

            oatmaca added a comment - I agree!  

            I just tried this again and it now works for me too

            Jason Cabot added a comment - I just tried this again and it now works for me too

            i tried it today at it just worked, i think they have fixed it

            Belka Shehaj added a comment - i tried it today at it just worked, i think they have fixed it

            This the first time I am installing sourcetree so step 2 doesn't apply to me. I am still unable to install it. 

            Prakash Rai added a comment - This the first time I am installing sourcetree so step 2 doesn't apply to me. I am still unable to install it. 

            Unfortunately I can only confirm that my solution works if both computers are running Windows 10. Perhaps there is a similar workaround if you have 2 Mac computers. However, I'm quite sure it will not work if you try to copy the folders from a Mac to a windows PC.

            Seadna Smallwood added a comment - Unfortunately I can only confirm that my solution works if both computers are running Windows 10. Perhaps there is a similar workaround if you have 2 Mac computers. However, I'm quite sure it will not work if you try to copy the folders from a Mac to a windows PC.

            oatmaca added a comment -

            Thanks for your help. I would like to try your instruction, but the problem is I don't have a Windows PC where SourceTree is already installed. Only on Mac. I also did import my ssh public key into Bitbucket, but it doesn't affect.

            oatmaca added a comment - Thanks for your help. I would like to try your instruction, but the problem is I don't have a Windows PC where SourceTree is already installed. Only on Mac. I also did import my ssh public key into Bitbucket, but it doesn't affect.

            Try:

            1. Uninstall SourceTree and delete the Atlassian and Sourcetree folders from AppData\Local.
            2. Copy the Atlassian and Sourcetree folders from AppData\Local on a PC where SourceTree is installed and working fine to your PC.
            3. Run the SourceTree installer, it should just open up SourceTree.
            4. Click Tools -> Create or Import SSH Keys
            5. Click generate and follow the instructions to move mouse around.
            6. Enter a passphrase and save the public and private keys. Copy the text from the public key in the PuTTY key generator window.
            7. Open Bitbucket and open your account settings, go to SSH and paste in the public key that you copied from the PuTTY key generator window.
            8. Restart sourcetree and try fetch, first try might give error but second try worked fine for me.

            Seadna Smallwood added a comment - Try: Uninstall SourceTree and delete the Atlassian and Sourcetree folders from AppData\Local. Copy the Atlassian and Sourcetree folders from AppData\Local on a PC where SourceTree is installed and working fine to your PC. Run the SourceTree installer, it should just open up SourceTree. Click Tools -> Create or Import SSH Keys Click generate and follow the instructions to move mouse around. Enter a passphrase and save the public and private keys. Copy the text from the public key in the PuTTY key generator window. Open Bitbucket and open your account settings, go to SSH and paste in the public key that you copied from the PuTTY key generator window. Restart sourcetree and try fetch, first try might give error but second try worked fine for me.

            has anyone solved this, i have the same issue

            Belka Shehaj added a comment - has anyone solved this, i have the same issue

            Seadna Smallwood added a comment - This may help:  https://community.atlassian.com/t5/Sourcetree-questions/Cannot-setup-SourceTree-stuck-at-OAuth-authorization/qaq-p/1100327?utm_source=atlcomm&utm_medium=email&utm_campaign=kudos_comment&utm_content=topic

            oatmaca added a comment - - edited

            I have the same issue here. After I have registrated myself, the installation process redirects to Bitbucket and I can't proceed. This is shame, because I love to use sourcetree as a git client. 

            oatmaca added a comment - - edited I have the same issue here. After I have registrated myself, the installation process redirects to Bitbucket and I can't proceed. This is shame, because I love to use sourcetree as a git client. 

            I think this could be the same issue.

            Seadna Smallwood added a comment - I think this could be the same issue.

            This is a massive issue for us. I hope there is a solution soon as we'd prefer to use sourcetree over other tools.

            Seadna Smallwood added a comment - This is a massive issue for us. I hope there is a solution soon as we'd prefer to use sourcetree over other tools.

            Ruben Vilhena added a comment - - edited

            Is there any update on this? Currently I may need to rule out Sourcetree as an option for my team since we can't install it.

            Ruben Vilhena added a comment - - edited Is there any update on this? Currently I may need to rule out Sourcetree as an option for my team since we can't install it.

            minnsey added a comment -

            Hi

            The URL above is just an example including a made up clientid=11122233344. Sourcetree uses a different clientid.

            minnsey added a comment - Hi The URL above is just an example including a made up clientid= 11122233344. Sourcetree uses a different clientid.

            Todd Benko added a comment -

            I took the URL from the screen that showed teh grant access option and then pasted it in a web browser.  It then produced the same grant access page and I selected grant.  Once completed the sourcetree install then showed a rosette with registration complete.   So it looks like something is failing with the URL call to the web browser in the installation.

            Todd Benko added a comment - I took the URL from the screen that showed teh grant access option and then pasted it in a web browser.  It then produced the same grant access page and I selected grant.  Once completed the sourcetree install then showed a rosette with registration complete.   So it looks like something is failing with the URL call to the web browser in the installation.

            Todd Benko added a comment -

            Todd Benko added a comment -

            Todd Benko added a comment -

            Version 3.0.15 fails.  The address specified earlier to which Source tree install uses,  fails!

            results in Confirm access toyour account

            Invalid clientID  and halts there 

            Todd Benko added a comment - Version 3.0.15 fails.  The address specified earlier to which Source tree install uses,  fails! https://bitbucket.org/site/oauth2/authorize ?response_type=code&client_id=11122233344&redirect_uri= http://localhost:34106/ results in Confirm access toyour account Invalid clientID  and halts there 

            minnsey added a comment -

            Hi

            Apologies if this sounds like a simplistic question, but after the redirect to the localhost address do you see a message?

            Be aware if you already have an open browser session to Bitbucket you won't be asked to login to Bitbucket's website.

            If Sourcetree has received the callback you should see a confirmation message. That should mean Sourcetree has received the OAuth token. It will then attempt to use it to get your user profile to validate the credentials work. This can take a few  seconds. Sourcetree's window can get pushed to the back during this process but if you return to view it then it should show a rosette and tell you registration has completed.

            minnsey added a comment - Hi Apologies if this sounds like a simplistic question, but after the redirect to the localhost address do you see a message? Be aware if you already have an open browser session to Bitbucket you won't be asked to login to Bitbucket's website. If Sourcetree has received the callback you should see a confirmation message. That should mean Sourcetree has received the OAuth token. It will then attempt to use it to get your user profile to validate the credentials work. This can take a few  seconds. Sourcetree's window can get pushed to the back during this process but if you return to view it then it should show a rosette and tell you registration has completed.

            Brett Stevenson added a comment - - edited

            I'm also seeing this problem. Unable to install Sourcetree on a brand new machine due to the redirect to localhost after granting access...

            Workaround was to just install an older version from https://www.sourcetreeapp.com/download-archives

            Brett Stevenson added a comment - - edited I'm also seeing this problem. Unable to install Sourcetree on a brand new machine due to the redirect to localhost after granting access... Workaround was to just install an older version from  https://www.sourcetreeapp.com/download-archives

            Any update on this issues? I'm facing the same problem. I was trying to consider using this for my team but with this issue may need look for other tools.

            Ruben Vilhena added a comment - Any update on this issues? I'm facing the same problem. I was trying to consider using this for my team but with this issue may need look for other tools.

            minnsey added a comment -

            Honestly, I'm not sure. Sourcetree effectively asks the browser to go to

            So the browser should only try and open http://localhost:34106/ after being told to redirect there by bitbucket.

            minnsey added a comment - Honestly, I'm not sure. Sourcetree effectively asks the browser to go to https://bitbucket.org/site/oauth2/authorize ?response_type=code&client_id=11122233344&redirect_uri= http://localhost:34106/ So the browser should only try and open  http://localhost:34106/  after being told to redirect there by bitbucket.

            But this happens on  a clean installation on a brand new machine, so how can I have and active web session, when all I did was download and click install, then when trying to log in for the second step of the installation, I can never get passed this.

            simon_arnold added a comment - But this happens on  a clean installation on a brand new machine, so how can I have and active web session, when all I did was download and click install, then when trying to log in for the second step of the installation, I can never get passed this.

            minnsey added a comment -

            Hi

            The localhost URL is and OAuth callback, if you are not seeing Bitbucket login or OAuth scope grant page it implies you already have an active web session and you have previously granted to Sourcetree. In that case it is correct that all you really see is the redirect to localhost.

            Registration should then continue. There might be a pause as Sourcetree re-uses the OAuth credentials to request further information.

            minnsey added a comment - Hi The localhost URL is and OAuth callback, if you are not seeing Bitbucket login or OAuth scope grant page it implies you already have an active web session and you have previously granted to Sourcetree. In that case it is correct that all you really see is the redirect to localhost. Registration should then continue. There might be a pause as Sourcetree re-uses the OAuth credentials to request further information.

              Unassigned Unassigned
              simon.arnold simon_arnold
              Affected customers:
              20 This affects my team
              Watchers:
              22 Start watching this issue

                Created:
                Updated:
                Resolved: