Source tree not starting in windows 10
Asked by Moses Mano Raj J:

Hi Attlasian,

My source tree did not start in my windows 10 local and so I troubleshooted by deleting the attlasian folder in the ......./Local/AppData directory,uninstalled sourcetree and then I tried installing the Sourcetree again but while installing the source tree icons visible for 10 seconds and the application does not start,I have tried multiple versions but could not start my sourcetree application

In my Source tree folder(Local\\Atlassian\\SourceTree) I am only having

analytics_gas_upload Folder and

sourctree.log file which is empty

Solutions are appreciated.


Answers:
author: Simon Hughes
body: For me, the fix was to

1. Navigate to C:\\Users\\***UserName***\\AppData\\Local\\Atlassian
2. Under there, you will see SourceTree.exe_Url_***RandomGuid***
3. Delete all of those style folders so you are only left with one folder called SourceTree
4. Start SourceTree, and it will rebuild that settings file.

comments: author: Simon Kendrew
body: This worked for me, just now.


author: Stuart Clode
body: Thanks this worked for me as well.


author: Karel Handlir
body: Thanks, this one worked for me as well. The problem appeard after win-update and reboot.


author: Mauriney Costa
body: Thanks, this worked for me


author: Martha Castrill?n
body: This worked for me. Thanks!


author: Kris Mayeda
body: This just worked for me. Thanks!


author: Emil Vahitov
body: Worked for me, thanks Simon!


author: teodora_zhelyazkova
body: Worked for me


author: Keith Melkild
body: Thank you very much. Worked for me as well. BTW, after doing this, my credentials were wrong - don't understand why. In Windows 10, had to go into AppData/LocalAttlassian/SourceTree to delete the passwd file; and restart sourcetree so it would re-prompt. After doing that I could pull successfully.


author: Gabriel Ruiz
body: This worked for me too, thank you


author: Colin Pape
body: non destructive (hopefully for all) and simple, worked like a charm for me


author: Roger Perez
body: Worked for me, Thanks a lot, Simon!


author: Telmo Viana
body: this one right here worked for me. Ty


author: Lee Hong Wei
body: it work perfectly, thank you!


author: Scott Anderson
body: Worked for me too, thanks Simon!


author: Martin Schneider
body: Thanks!

You can copy\&paste this path to get there:  
**%LocalAppData%\\Atlassian**


author: Cristhian Mayuri
body: Worked for me, thanks a lot.


author: Jakub _ Collective of Crab
body: Worked for me as well. Thanks!


author: Gabriel Dina
body: Thank you for solving this feature!


author: Jonathan Vigh
body: Worked for me as well. Thanks a bunch!


author: Jacob Koep
body: Worked for me too! Thanks!!!


author: bblcl
body: Initially this seemed to only partially work for me: after the initial registration it crashed again before showing the actual UI. It turned out that I was running a slightly older version and updating to the latest version fixed the issue.


author: Evan Anderson
body: thank you? {#toc-hId--464041223}
---------------------------------


author: Alexander Oss
body: Also worked for me. Looks like today's Windows 10 update confused Sourcetree, based on all this activity here today; any chance this is a Sourcetree bug that can be fixed so that it doesn't happen again after the next Windows update? (How would anyone with less genius insight than Simon Hughes know that this folder deletion is the way to work around this bug?) Note that I am one version behind, running 3.4.12 (current is 3.4.13, apparently).


author: Leandro Chaves
body: Also worked for me. Thank you, OP!


author: Tr?n V? H?o
body: Thank you [Simon Hughes](https://community.atlassian.com/t5/user/viewprofilepage/user-id/721654)


author: Nianhu Gui
body: It works for me. Thank you


author: Leyla Mousavi
body: This worked for me, Thanks you


author: ???
body: thank you {#toc-hId--464039333}
-------------------------------


author: markstam201
body: Thanks, it worked for me.

Note: copy user.config and replace into new folder --\> don't need resetting ssh.


author: KAI XIAN LIAU
body: This worked for me, Thanks you


author: William Coyne
body: Thank you. Commenting for visibility.


author: Tonny Medina
body: Funiono para mi, gracias.


author: Timm Haase
body: Very good tip. Problem occurs after windows update und reboot.


author: regard yvan
body: Thank you, this worked for me !


author: Kevin Ooi
body: WORKED FOR ME!


author: v_palucaj
body: Thank you, this worked for me


author: tamhh
body: thank you, this worked for me


author: HFeldmann
body: Thanks a lot, got the same problem after Windows update and reboot...


author: Inma-zumbanet
body: Muchas gracias Simon, ahora ya funciona Sourcetree ?


author: low en gamer
body: Is working like a charm!


author: Aliya Aziz
body: worked for me too. thankyou


author: John Ferguson
body: That's a big me too - thanks Simon


author: Yanning Frank
body: It works. Thanks a lot.


author: Christian Maximiliano Vera
body: Worked for me too,  
Thx Simon!


author: martinholtkamp
body: Thank you Simon!!


author: Riccardo B
body: It works!! Thanks Simon!!


author: Lester Bloom
body: I am also here to send you my thanks. Cheers!


author: David Shower
body: That worked for me too, thanks so much!


author: Ahmed BEN HASSINE
body: worked for me thanks a lot !


author: Carolina Castro
body: It Worked for me too, Thanks!!


author: Stefan W
body: golly this sure is getting a lot of replies in the past couple days. worked for me too.


author: STARasGAMES
body: Hey everyone!

What a meme XD


author: amoreno-kiterocket
body: +1

worked for me


author: Scott Douglas Serage
body: This was the solution for me. Thank you.


author: Kengpong
body: Thank you. so much


author: kabir-ibi
body: This worked for me. Thank you


author: Muhammad Nurfajri Rahman
body: great, thats worked for me  
thanks sir


author: John
body: Awesome! How much time did this save for me? Thank you very much!


author: Robert Frenzel
body: It works. Thank you very much!


author: Dinora Qereshniku
body: Thanks, worked for me too!


author: Manjunath Lande
body: Thanks, this worked for me


author: Nabeel Awais
body: Thanks, this worked for me.


author: emiliano mercado
body: This worked for me too!! Thanks!!


author: faizanromail
body: Thanks worked for me as well


author: adeleon71
body: Thank you very much. It worked to solve the same problem after windows update on June 15th 2023.


author: Paul Wallace
body: Thank you, that worked!!


author: Cosmin Cojocea
body: For the record, this helped me as well, I deleted the 4 _Url_ folders, then started sourcetree and was prompted for installation, closed that, restored the 4 deleted folders and now it started fine without anything being lost.


author: John Bird
body: Worked for me, thanks.


author: Le Hong Son
body: This solution worked for me. Tkanks yoiu.


author: cpn_developer
body: Thanks


author: jessada-dissopa
body: thanks this works for me too


author: Jagannadham Konduru
body: Thanks a lot, it works for me


author: Patrick Pirtle
body: Worked for me. Thanks.


author: Liam Drew
body: Thanks Simon, this worked for me - looks like Windows updates commonly break something here (I was getting 'Unable to load MEF components' error, and had 4 directories under AppData\\Local\\Atlassian\\ ).

Cheers


author: Nilupa Rupasinghe
body: Worked for me too


author: rchaw2
body: worked. Thank You!!


author: Efraim John Estoperez
body: worked for me as well. thank you!


author: Durvesh Parmar
body: It really worked for me. Thanks a lot.. Saved my day !


author: Ozan Meray
body: Worked for me as well. Big thanks!


author: Sandeep Yadav
body: It worked for me thanks a lot !


author: Jorge CR
body: legend type answer, it worked, thanks


author: Jochen
body: Worked, saved me tons of time and headache, thanks!


author: ????? ????????
body: Thank you, it helped me


author: Ivo Reis
body: Yep, that worked for me too


author: Maksim Osipenko
body: That worked for me. Thank you!


author: Wohlgemuth Joerg
body: Did anyone mention before, that it helped? B-)

Well, so it was in my case, too.

Thanks!


author: Almas Maris
body: thank youu. lol what happen to source tree?


author: Alessandro Bragagnolo
body: Thanks, this solve the problem!


author: Gary Kohls
body: After 30 minutes of futility I found your article and the issue was resolved. Thanks.


author: Carlos Amiel
body: This worked for me


author: anji_nir0
body: This worked for me. Thanks for the tip :)


author: Saket Bhala
body: This worked for me, Thanks you


author: Shailesh Joshi
body: **It worked for me thanks, but When i am trying to checkout branch from bitbucket to sourcetree i am getting error. "This is not a valid Source path/Url"**

**What should i do?**


author: Saket Bhala
body: [@Shailesh Joshi](/t5/user/viewprofilepage/user-id/5255366) there are multiple reasons for this error. Check below points

Double-check the repository URL: Ensure that you have entered the correct repository URL in Sourcetree. Make sure there are no typos, missing characters, or extra spaces in the URL. It should be in the format <https://bitbucket.org/username/repository-name.git>

Verify your authentication: If the repository requires authentication, ensure that you have provided the correct credentials (username and password, or SSH key) in Sourcetree. Double-check that your credentials are accurate and up-to-date.

Check your network connection: Ensure that you have a stable internet connection. Sometimes, connectivity issues can cause problems when trying to access remote repositories. Try accessing other websites or services to verify your network connectivity.

Review your firewall or proxy settings: If you are behind a firewall or using a proxy server, there might be restrictions or configuration issues that prevent Sourcetree from connecting to Bitbucket. Check your firewall settings or proxy configurations and ensure that they allow the necessary network traffic


author: Sanket Patil
body: This worked for me too, Thanks!


author: juancayuso JC
body: Great. Working after follow your steps. thanks!


author: Mark Haverkort
body: Worked for me as well, thank you.


author: Phakkhapon
body: Worked for me too.... Wow thank you.


author: Diana Mahovli?
body: Worked like a charm. Thanks!


author: JoaoEsquecido
body: Worked for me **BUT** I lost all repository configurations (had to add the repos again).


author: Cristian Guerrero
body: Totally worked for me. Thanks!


author: akhila ciriga
body: Worked me too , Thanks!


author: boris-gichev-BFlow
body: Thank you, it worked!


author: denovi
body: Yup worked for me too.


author: anjanadri reddy
body: Thanks, the above worked for me too!!


author: Sanjay Singh
body: it work perfectly, thank you!


author: Moreno Possamai
body: This worked. Thank you!


author: StephenAndri
body: clean simple solution thanks


author: retoreana
body: Thank you! This solution worked immediately!


author: emp_xpay
body: Thank you. It's work for me


author: Shreyas Sapre
body: worked.. thanks..


author: Thomas Cebulla
body: worked also in 2024, great...


author: Kamicazer
body: Guess what? I happened again...


author: JackdawAviary
body: Thank you, that worked for me! (23 May 2024)


author: trngvth
body: This worked for me too, thank you


author: emp_xpay
body: Thank you, It is help for me


author: Tushar Mahajan
body: It worked for me. Thanks for the great help.


author: Hana Hasanah
body: +1  

You saved my day. Thanks! (July 8, 2024)


author: Peter Palmadesso
body: Thank you!


author: Jasper Wijnhoven
body: For me SourceTree didn't start after an update. I looked into the *%AppData/Local/SourceTree* folder and tried running *SourceTree.exe* and *Update.exe*, and then again as admin. Every time it didn't work.

I saw I had two folders, *app-3.4.9* and *app-3.4.10*. The second folder was empty. I deleted it, and suddenly SourceTree worked again. I think it was a faulty update, but I'm not sure.

comments: author: jwingard88
body: Yeah, I did the same thing and then it worked. This isn't the first time I've had trouble on an update with this.


author: GMitzel
body: Exact same scenario and solution.


author: Christopher Belakhoua
body: Ran into same problem, proposed solution saved the day.


author: Fabio Widmer
body: Same for me, but with 3.4.11 folder .. Seems to be a bug ..?


author: Dale Jones
body: Wow Worked for me also. Thanks everyone.


author: Joel Fieber
body: Yep, my app-3.4.11 folder was empty. Removing the directory fixed it.


author: Cesar Sagrado Lorente
body: Solved my issue! Removing the folder "app-3.4.11" fixed it.


author: Rebecca.BenChimol
body: Solved my issue as well, thanks!


author: Sharon Hinde
body: This fix worked for me, thanks!


author: Jovana Dosenovic
body: Thank you so much for sharing - your tip helped me as well!


author: Paul Turner
body: This fix worked for me too.

I believe the problem is caused by a failed update. Running the update 3.4.11 from the yellow flag top left in window fails with:

Method not found: 'Void SharpCompress.Readers.IReaderExtensions.WriteEntryToFile(SharpCompress.Readers.IReader, System.String, SharpCompress.Readers.ExtractionOptions)'.

Then Sourcetree fails to launch.


author: Rik Marshall
body: FIXED!!!! Thank you!!!


author: Paul Gertzen
body: Thanks, worked perfectly


author: Mahesh.Kanojiya
body: Thank you so much!!! It worked for me


author: Paula Guadalupe Robles Sosa
body: Thanks, it works!


author: Richard Dickerson
body: You da man all week Simon!


author: Danilo Gabriel Nunes Sanches
body: It works for me, thanks!


author: Carlos Paredes
body: It works for me too ! Thanks


author: Zackary Smith
body: That worked like a charm. Thanks!!!


author: setrov
body: It's only been 3 years, silly problem like this is still there.  
I wonder how much longer will it take for Atlassian to fix its mess. ???

comments: author: Arseni Huliankou
body: Hey, at least they made this page so we could do their work for them


author: titobf
body: In my case, downloading and running the latest installer fixed it. It didn't even show the installation steps. It just made it work again

comments: author: JoaoEsquecido
body: This worked for me and I did not loose configurations from previously installed version


author: minnsey
body: Hi  

Sourcetree, the application, installs in the to %localappdata%/Sourcetree folder, its configuration files go in %localappdata%/Atlassian/Sourcetree.  

inside %localappdata%/Sourcetree there should be a Sourcetree.exe and a versioned folder like app-3.0.17.  

The Sourcetree.exe is actually a wrapper to the *real* .exe which is app-3.0.17/Sourcetree.exe.  

Can you try running each of the two Sourcetree.exe files?  

If neither work can you provide any Event Viewer errors or probably more useful is anything in the %locaappdata%/Atlassian/Sourcetree/Sourcetree.log ?

comments: author: Moses Mano Raj J
body: [@minnsey](/t5/user/viewprofilepage/user-id/502201)

None of this works and also my sourcetree.log file is empty

Actually what I did was before uninstalling, I deleted the atlassian folder in my %localappdata% and tried installing again.

Now while installing the source tree icon is visible for 10 seconds and does not start after that.


author: minnsey
body: Does the %localappdata%/Sourcetree folder exist?  

<br />


author: Moses Mano Raj J
body: Yes [@minnsey](/t5/user/viewprofilepage/user-id/502201)


author: minnsey
body: So there are Sourcetree.exe files, but double clicking them appears to do nothing and there is nothing in the Event Viewer or in the %locaappdata%/Atlassian/Sourcetree/Sourcetree.log ?  

<br />


author: Moses Mano Raj J
body: That's right [@minnsey](/t5/user/viewprofilepage/user-id/502201) ,Can you help me out I'm facing a lot of difficulties without Sourcetree.


author: minnsey
body: To be honest I'm not sure what to suggest.  

When you do try starting Sourcetree.exe can you confirm that it is not running in the Task Viewer? Just in case it is running but is off screen etc.  

<br />


author: Moses Mano Raj J
body: [@minnsey](/t5/user/viewprofilepage/user-id/502201) I got these logs while installing the sourcetree .

CheckForUpdateImpl: Reading RELEASES file from .......\\AppData\\Local\\SquirrelTemp  
CheckForUpdateImpl: First run or local directory is corrupt, starting from scratch  
ApplyReleasesImpl: Writing files to app directory: ..........\\AppData\\Local\\SourceTree\\app-2.3.1  
LogHost: Rigging execution stub for SourceTree_ExecutionStub.exe to ........\\AppData\\Local\\SourceTree\\SourceTree.exe  
ApplyReleasesImpl: Squirrel Enabled Apps: \[........\\AppData\\Local\\SourceTree\\app-2.3.1\\SourceTree.exe\]  
ApplyReleasesImpl: Starting fixPinnedExecutables  
ApplyReleasesImpl: Examining Pin: Command Prompt.lnk  
ApplyReleasesImpl: Examining Pin: File Explorer.lnk  
ApplyReleasesImpl: Examining Pin: Google Chrome.lnk  
ApplyReleasesImpl: Fixing up tray icons  
ApplyReleasesImpl: cleanDeadVersions: for version 2.3.1  
ApplyReleasesImpl: cleanDeadVersions: exclude folder app-2.3.1


author: minnsey
body: That all looks fine.  

Can you check permissions on the folder, we have seen odd behavior occasionally because of that, but because it installs into your user folder it is unlikely.  

Can you also try the latest 3.0.17 installer?


author: Moses Mano Raj J
body: These are the logs while I tried installing sourcetree

3.0.17.

Program: Starting Squirrel Updater: --install .  
Program: Starting install, writing to .....\\AppData\\Local\\SquirrelTemp  
Program: About to install to: .....\\AppData\\Local\\SourceTree  
CheckForUpdateImpl: Couldn't write out staging user ID, this user probably shouldn't get beta anything: System.IO.DirectoryNotFoundException: Could not find a part of the path '.......\\AppData\\Local\\SourceTree\\packages\\.betaId'.  
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)  
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)  
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)  
at System.IO.StreamWriter.CreateFile(String path, Boolean append, Boolean checkHost)  
at System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize, Boolean checkHost)  
at System.IO.File.InternalWriteAllText(String path, String contents, Encoding encoding, Boolean checkHost)  
at System.IO.File.WriteAllText(String path, String contents, Encoding encoding)  
at Squirrel.UpdateManager.CheckForUpdateImpl.getOrCreateStagedUserId()  
CheckForUpdateImpl: Failed to load local releases, starting from scratch: System.IO.DirectoryNotFoundException: Could not find a part of the path '.......\\AppData\\Local\\SourceTree\\packages\\RELEASES'.  
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)  
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)  
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)  
at Squirrel.Utility.LoadLocalReleases(String localReleaseFile)  
at Squirrel.UpdateManager.CheckForUpdateImpl.\<CheckForUpdate\>d__2.MoveNext()


author: minnsey
body: Hi  

Unfortunately they aren't really errors, just over enthusiastic logging by Squirrel.Windows that essentially must indicates it hasn't found a previous install.


author: Moses Mano Raj J
body: [@minnsey](/t5/user/viewprofilepage/user-id/502201) I found few logs in my event viewer,is there anything you could do with this.

Log 1:

Faulting application name: SourceTree.exe, version: 2.3.5.0, time stamp: 0x59d5304e  
Faulting module name: KERNELBASE.dll, version: 10.0.17134.753, time stamp: 0xcdfe5b92  
Exception code: 0xe0434352  
Fault offset: 0x000000000003a388  
Faulting process id: 0x1f00  
Faulting application start time: 0x01d519e80c94162c  
Faulting application path: ........\\AppData\\Local\\SourceTree\\app-2.3.5\\SourceTree.exe  
Faulting module path: ...\\Windows\\System32\\KERNELBASE.dll  
Report Id: 333104cd-04f9-4673-ae49-768fba6a954a  
Faulting package full name:  
Faulting package-relative application ID:

Log 2:

Application: SourceTree.exe  
Framework Version: v4.0.30319  
Description: The process was terminated due to an unhandled exception.  
Exception Info: System.Management.ManagementException  
at System.Management.ManagementException.ThrowWithExtendedInfo(System.Management.ManagementStatus)  
at System.Management.ManagementObjectCollection+ManagementObjectEnumerator.MoveNext()  
at SourceTree.Utils.WindowsOSHelper.GetWindowsVersion()  
at SourceTree.App..ctor()  
at SourceTree.App.Main()


author: minnsey
body: Hi, my starting assumption would be there is an issue with the .NET installation.  

Can you try re-installing .NET 4.7.2 and updating Sourcetree to 3.1.3 or higher?


author: Javier Dominguez
body: [@minnsey](/t5/user/viewprofilepage/user-id/502201) Hello, I know it's a bit too late but just wanted to let you know that I had an identical problem and neither reinstalling Sourcetree or .NET fixed it.

Finally it turns out the problem was I had the Windows Management Instrumentation service stopped and disabled. Restarting that service solved it.

Maybe you could change something so at least it gives a little more of info when this happens, because currently to find the cause is quite hard.

Regards


author: Markus Boremski
body: \> Finally it turns out the problem was I had the ++**Windows Management Instrumentation service**++ stopped and disabled. Restarting that service solved it.

can confim that!  
[@Javier Dominguez](/t5/user/viewprofilepage/user-id/2806937)thanks alot for sharing your knowledge.

\> Maybe you could change something so at least it gives a little more of info when this happens, because currently to find the cause is quite hard.

This is really needed!


author: Alex Oliveira
body: I was having exactly the same problem.

[@Javier Dominguez](/t5/user/viewprofilepage/user-id/2806937) pointed the way to solution.

**For me, it was not enough to just restart the windows service!**

I was forced to remove the files from the "C:\\Windows\\System32\\wbem\\Repository" folder and restart the computer for the OS to recreate the files.

I followed this tutorial: <https://support.captureone.com/hc/en-us/articles/360002430638-How-can-I-repair-WMI-Windows-Management-Instrumentation-service->

**SourceTree needs an urgent indication for this issue, because it was pretty boring to find out what was going on.**


author: Bao Luu Kim
body: It worked to me. Thank you very much.


author: Ruqqq
body: thanks bro works for me too


author: kamarajanis
body: Thanks a lot , it worked for me as well


author: Marek Repka
body: Thank you, it saved the day for me.


author: ruchitam
body: Worked for me, thanks!


author: Eyal Gerber
body: .


author: Tony Samperi
body: Why we still need this after 4 years? ?

comments: author: Antonino Samperi
body: So I was ok for less than a year. And now it's not opening again. WTF.


author: Maur?cio Moita
body: Worked for me just now! Amazing!


author: berrettam
body: Thank you Simon It works!


author: Sandeep Yadav
body: worked for me thanks a lot !


author: Chris Pascual
body: Accepted answer still works for 3.4.13 , June 2023


author: John Rix
body: In my case when encountering this error, I checked and realised I was a few patch releases behind current, even though I had not been prompted about any updates for a good while. Just download and installing the latest patch release got me back in action.

comments: author: Vanya Huaman
body: Same story here.   
OS Windows 11 Pro - It wouldn't open for me either. I just redownloaded the program and ran it to install. Opened up after that.


author: Roxana
body: Thanks this worked for me as well!


author: Anis Mumtaz
body: Thanks It worked for me


author: anjanadri reddy
body: Thanks. This worked like a charm.


author: Muhammad Junaid
body: i am very interesting in your articls your article is very good and on reality base.

<https://worldrankers.us>