Source Tree failing to install and run
Asked by Rich Agren:

I cannot login to SourceTree. I've tried everything from deleting Atlassian sub-folders to finding older versions and re-installing them first. I've tried logging in with Google and logging in with Atlassian password. The one thing I haven't been able to try is to install SourceTree to a different directory since the installer doesn't give me an option to change it that I can see. I don't need to revert back to .net framework 4.6.1 because I never went to 4.7 so that can't be the issue. I've also tried downloading and running it from IE.

I am currently working with setup version number 2.1.2.5 and each time I get to the login screen, it says "Sourcetree has stopped working". I check the log file and it is completely empty. Clicking "Having trouble logging in?" also crashes the program. I have not been able to get past this point. I have read and tried countless threads on this issue to no avail. I am just a single user at home so there are no funky admin/firewall things, and I turned off my virus checker.

Any other ideas that I'm missing? Any help would be GREATLY appreciated.


Answers:
author: Ana Retamal
body: Hi Rich, have you tried [w](https://confluence.atlassian.com/sourcetreekb/how-to-wipe-sourcetree-preferences-412484640.html)[iping SourceTree preferences](https://confluence.atlassian.com/sourcetreekb/how-to-wipe-sourcetree-preferences-412484640.html) already? If that doesn't help, you can try a clean install:

1. Uninstall SourceTree (if it shows on the App\&Features list)
2. Backup then delete the directory below before proceeding with next step
   * Navigate to C:\\Users\\\<UserName\>\\AppData\\Local and delete *SourceTree* \& *SourceTree-Settings* folder
   * Navigate to C:\\Users\\\<UserName\>\\AppData\\Local\\Atlassian and delete all SourceTree Files/Folder.Download SourceTree and install it.
3. [Download SourceTree](https://www.sourcetreeapp.com/) and install it.

Let us know if this worked for you!

Cheers,

Ana

comments: author: Samirullah
body: Hi,

I have the same problem, none of the versions work for me, i am using windows 7 professional. please guide.

Regards,

Samir


author: Ana Retamal
body: Hi [@Samirullah](/t5/user/viewprofilepage/user-id/1198892), can you check your logs and tell us if you find any errors?

On Windows, the SourceTree log file is located at `C:\Users\<username>\AppData\Local\Atlassian\SourceTree\sourcetree.log`

`Let us know! `

`Ana`


author: Samirullah
body: Hi Ana,

this is the error

ERROR \[2018-03-19 16:04:22,126\] \[1\] \[SourceTree.App\] \[.ctor\] - finish EnsureSquirrelExecutionStubIsCopied.

while i am trying to login to my account, it just stacks and does not login.

thanks

Samir


author: Kapil Chandera
body: Thank You, Ana Retamal


author: Aina Aji Dian
body: Hi, i've some error..

I can't log in with use an existing account Atlassian Account, when i click the button always show error

" JavaScript load error. We tried to load scripts but something went wrong. Please make sure that your network settings allow you to download scripts from the following domain: <https://common-admin-cdn.atlassian.com/atlassian-id/front-end/2.5.24> "


author: Thomas_Hinze
body: i downloaded the latest sourcetreeapp for macos and can't finish installation. Third step "Log in to your account" does not work. i put my email in, press continue and a tooltip say "Please enter an email address" wtf ... no way to finish installation.

comments: author: Ana Retamal
body: Hi [@Thomas_Hinze](/t5/user/viewprofilepage/user-id/1158479),that has been reported as a bug at [https://jira.atlassian.com/browse/SRCTREE-5034.](https://jira.atlassian.com/browse/SRCTREE-5034) The developers are looking into it, but we don't have a resolution yet. In the meantime, as a workaround, you can download the version 2.1, this is available from <https://www.sourcetreeapp.com/download-archives>.

I also recommend you to watch the ticket for further updates.

Let us know if you have any questions!

Regards,

Ana


author: Brad King
body: I downloaded the 2.1 version same stupidity. This just doesn't make sense. Looking elsewhere


author: Chris Pittillo
body: I'm encountering the same issues. Why not remove the login from the install process completely, or build a better login solution? Seems like this issue should have been solved by now.


author: Adam
body: I'm experincing the same issue. I have tried the most recent version and a few others with the same result. I have also tried installing with admin rights. I get as far as here and it just keeps spinning.

![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/13561i01638189A003B3D9/image-size/large?v=v2&px=999 "image.png")

I have noticed with Fiddler that it makes a call to POST [https://id.atlassian.com/rest/saml/sso?application=sourcetree\&continue=https%3A%2F%2Fid.atlassian.com%2Fprofile%2Fprofile.action](https://id.atlassian.com/rest/saml/sso?application=sourcetree&continue=https%3A%2F%2Fid.atlassian.com%2Fprofile%2Fprofile.action) with crsfToken and usersname in the body

Then there are 3 requests to OPTIONS <https://auth.atlassian.com/usernamepassword/login> each return with just the word "OK" in the body

Then nothing else happens.

Versions I've tried

SourceTreeSetup-2.1.2.5.exe, SourceTreeSetup-2.3.5.0.exe, SourceTreeSetup-2.4.7.0.exe


author: Tom Knipphals
body: Hi.

Got the same problems as above. Found SourceTree Log with the following content:

<br />

ERROR \[2018-03-12 16:54:36,640\] \[1\] \[SourceTree.App\] \[.ctor\] - finish EnsureSquirrelExecutionStubIsCopied  

Maybe it helps.

Bye  
Tom


author: Ana Retamal
body: Hi [@Tom Knipphals](/t5/user/viewprofilepage/user-id/613439), this seems to be a different issue. In your case you could try the solution proposed by Mike Corsaro in this [Community post](https://community.atlassian.com/t5/Sourcetree-questions/SourceTree-failed-to-start/qaq-p/642445).

Let us know if that helped!

Ana


author: Adam
body: [@Ana Retamal](/t5/user/viewprofilepage/user-id/1067288) any news as to my comment? I am still unable to install, is mine a different issue as your previous suggestion of using an archived version does not work?


author: Ana Retamal
body: Hi [@Adam](/t5/user/viewprofilepage/user-id/1182421), in previous cases the issue you described was caused by the settings in your browser. Sourcetree relies on Internet Explorer for authentication, please try the following:

* Turn off compatibility mode in IE. To do that, open Internet Explorer, go to the *Advanced options* tab and click on *Reset your Internet Explorer Settings*
* Check *Delete personal settings*
* Change your Internet Explorer Security Zone Settings:

1. Open IE, click on the gear
2. Select "Internet Options"
3. Select the "Security" tab
4. Select "Custom Level" for Internet
5. Find "Access data sources across domains" and select "Enable" (make note of what the setting currently is)
6. Try logging into Sourcetree again

After logging in, follow steps 1-5, but ***reset the setting back to the previous option***.

Kind regards,

Ana


author: Samirullah
body: Hi Ana,

Thanks , it works for me now

Regards,

Samir


author: waltjohnson
body: I am having the same problem. The installer only shows the splash screen at start and puts an icon on the desktop, but doesn't appear to run completely. It doesn't give me any options either. And the shortcut it installed doesn't run. Help!

comments: author: waltjohnson
body: Btw. I did try what you've recommended. Uninstalling, removing the AppData SourceTree folders, and reinstalling. It doesn't help.


author: Suhas Bhosale
body: Hi Walt,

I had same issue then I removed Sourcetree and first installed .net framework then again installed Sourcetree and it works as expected.

regards,

Suhas Bhosale.


Tags: login