SouceTree doesn't start
Asked by Markus Baars:

So I installed SourceTree on my Windows 10 PC and I wanted to start it, but for some reason it doesn't start. When I try to start it, it appears in the task manager for like 3 seconds then it just disappears. I tried to start it as admin and reinstalled it but it sill doesn't work. How can I fix this?


Answers:
author: Ana Retamal
body: Hi Markus! This is a known issue, they were talking about it on [this thread](https://community.atlassian.com/t5/Sourcetree-questions/SourceTree-will-no-longer-start/qaq-p/642054). To solve it, please navigate to the config file location (*C:\\Users\\{USERNAME}\\AppData\\Local\\Atlassian\\SourceTree.exe_{RANDOM_GUID}\\2.3.1.0\\user.config*) and find the following line:

```
<setting name="AutomaticallyCleanUpDictionaryFiles" serializeAs="String"> <value>True</value> </setting>
```

Make sure that value is set to ***True.***

Let us know if that worked for you! If it doesn't, please send us the log so we can have a look.

Cheers,

Ana

comments: author: Markus Baars
body: Thank you, that worked, it wasn't in the file, so I added it, now SourceTree is working


author: Alexander Shrago
body: Thank you, that worked, it wasn't in the file, so I added it, now SourceTree is working


author: Ana Retamal
body: Glad I could help you! :)


author: Wilson Salinas
body: Estimados buen dia intente instalar el SourceTree en mi estacion de trabajo y no me deja el log es el siguiente:

2019-05-28 10:05:08\> Program: Starting Squirrel Updater: --install .  
2019-05-28 10:05:08\> Program: Starting install, writing to C:\\Users\\wis1\\AppData\\Local\\SquirrelTemp  
2019-05-28 10:05:08\> Program: About to install to: C:\\Users\\wis1\\AppData\\Local\\SourceTree  
2019-05-28 10:05:09\> 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 'C:\\Users\\wis1\\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()  
2019-05-28 10:05:09\> CheckForUpdateImpl: Failed to load local releases, starting from scratch: System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\\Users\\wis1\\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()  
2019-05-28 10:05:09\> CheckForUpdateImpl: Reading RELEASES file from C:\\Users\\wis1\\AppData\\Local\\SquirrelTemp  
2019-05-28 10:05:09\> CheckForUpdateImpl: First run or local directory is corrupt, starting from scratch  
2019-05-28 10:05:09\> ApplyReleasesImpl: Writing files to app directory: C:\\Users\\wis1\\AppData\\Local\\SourceTree\\app-3.1.3  
2019-05-28 10:05:11\> LogHost: Rigging execution stub for SourceTree_ExecutionStub.exe to C:\\Users\\wis1\\AppData\\Local\\SourceTree\\SourceTree.exe  
2019-05-28 10:05:14\> ApplyReleasesImpl: Squirrel Enabled Apps: \[C:\\Users\\wis1\\AppData\\Local\\SourceTree\\app-3.1.3\\SourceTree.exe\]  
2019-05-28 10:05:22\> ApplyReleasesImpl: Starting fixPinnedExecutables  
2019-05-28 10:05:22\> ApplyReleasesImpl: Examining Pin: File Explorer.lnk  
2019-05-28 10:05:22\> ApplyReleasesImpl: Examining Pin: Microsoft Word 2010.lnk  
2019-05-28 10:05:22\> ApplyReleasesImpl: Fixing up tray icons  
2019-05-28 10:05:22\> ApplyReleasesImpl: Failed to delete key: C:\\Users\\wis1\\AppData\\Local\\SourceTree\\SourceTree.exe: System.UnauthorizedAccessException: Cannot write to the registry key.  
at System.ThrowHelper.ThrowUnauthorizedAccessException(ExceptionResource resource)  
at Microsoft.Win32.RegistryKey.EnsureWriteable()  
at Microsoft.Win32.RegistryKey.DeleteValue(String name)  
at Squirrel.UpdateManager.ApplyReleasesImpl.\<\>c__DisplayClass13_1.\<unshimOurselves\>b__3()  
at Squirrel.Utility.LogIfThrows(IFullLogger This, LogLevel level, String message, Action block)  
2019-05-28 10:05:22\> ApplyReleasesImpl: Couldn't rewrite shim RegKey, most likely no apps are shimmed: System.UnauthorizedAccessException: Cannot write to the registry key.  
at System.ThrowHelper.ThrowUnauthorizedAccessException(ExceptionResource resource)  
at Microsoft.Win32.RegistryKey.EnsureWriteable()  
at Microsoft.Win32.RegistryKey.DeleteValue(String name)  
at Squirrel.UpdateManager.ApplyReleasesImpl.\<\>c__DisplayClass13_1.\<unshimOurselves\>b__3()  
at Squirrel.Utility.LogIfThrows(IFullLogger This, LogLevel level, String message, Action block)  
at Squirrel.UpdateManager.ApplyReleasesImpl.\<\>c__DisplayClass13_0.\<unshimOurselves\>b__2(String x)  
at System.Collections.Generic.List\`1.ForEach(Action\`1 action)  
at Squirrel.UpdateManager.ApplyReleasesImpl.\<unshimOurselves\>b__13_0(RegistryView view)  
2019-05-28 10:05:22\> ApplyReleasesImpl: Failed to delete key: C:\\Users\\wis1\\AppData\\Local\\SourceTree\\SourceTree.exe: System.UnauthorizedAccessException: Cannot write to the registry key.  
at System.ThrowHelper.ThrowUnauthorizedAccessException(ExceptionResource resource)  
at Microsoft.Win32.RegistryKey.EnsureWriteable()  
at Microsoft.Win32.RegistryKey.DeleteValue(String name)  
at Squirrel.UpdateManager.ApplyReleasesImpl.\<\>c__DisplayClass13_1.\<unshimOurselves\>b__3()  
at Squirrel.Utility.LogIfThrows(IFullLogger This, LogLevel level, String message, Action block)  
2019-05-28 10:05:22\> ApplyReleasesImpl: Couldn't rewrite shim RegKey, most likely no apps are shimmed: System.UnauthorizedAccessException: Cannot write to the registry key.  
at System.ThrowHelper.ThrowUnauthorizedAccessException(ExceptionResource resource)  
at Microsoft.Win32.RegistryKey.EnsureWriteable()  
at Microsoft.Win32.RegistryKey.DeleteValue(String name)  
at Squirrel.UpdateManager.ApplyReleasesImpl.\<\>c__DisplayClass13_1.\<unshimOurselves\>b__3()  
at Squirrel.Utility.LogIfThrows(IFullLogger This, LogLevel level, String message, Action block)  
at Squirrel.UpdateManager.ApplyReleasesImpl.\<\>c__DisplayClass13_0.\<unshimOurselves\>b__2(String x)  
at System.Collections.Generic.List\`1.ForEach(Action\`1 action)  
at Squirrel.UpdateManager.ApplyReleasesImpl.\<unshimOurselves\>b__13_0(RegistryView view)  
2019-05-28 10:05:22\> ApplyReleasesImpl: cleanDeadVersions: for version 3.1.3  
2019-05-28 10:05:22\> ApplyReleasesImpl: cleanDeadVersions: exclude folder app-3.1.3

Se realiz? lo siguiente: Borrar Las carpetas en el LOCAL APPDATA, se reistal? c?mo Administrador su gent?l ayuda a solucinarme mi inconveniente.


author: nationaldme
body: Edite: this is not an answer.

Windows 10: I am having the same issue. I have added the AutomaticallyCleanUpDictionaryFiles setting to my existing installation without success. I uninstalled and deleted my Atlassian, SourceTree, and Squirrel folder from my AppData/Local folder, I even deleted all registry keys and values that are related to SourceTree.exe, and attempted to install, no success. The installer will display the little blue SourceTree window for a few seconds before disappearing, the AppData/Local folders get created, but still without success. Below are the latest entries in my SquirrelSetup.log file running the setup file as Administrator, any help would be greatly appreciated.

2017-10-02 10:35:43\> Program: Starting Squirrel Updater: --install . --rerunningWithoutUAC  
2017-10-02 10:35:43\> Program: Starting install, writing to C:\\Users\\john\\AppData\\Local\\SquirrelTemp  
2017-10-02 10:35:43\> Program: About to install to: C:\\Users\\john\\AppData\\Local\\SourceTree  
2017-10-02 10:35:43\> 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 'C:\\Users\\john\\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()  
2017-10-02 10:35:43\> CheckForUpdateImpl: Failed to load local releases, starting from scratch: System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\\Users\\john\\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()  
2017-10-02 10:35:43\> CheckForUpdateImpl: Reading RELEASES file from C:\\Users\\john\\AppData\\Local\\SquirrelTemp  
2017-10-02 10:35:43\> CheckForUpdateImpl: First run or local directory is corrupt, starting from scratch  
2017-10-02 10:35:43\> ApplyReleasesImpl: Writing files to app directory: C:\\Users\\john\\AppData\\Local\\SourceTree\\app-2.3.1  
2017-10-02 10:35:44\> LogHost: Rigging execution stub for SourceTree_ExecutionStub.exe to C:\\Users\\john\\AppData\\Local\\SourceTree\\SourceTree.exe  
2017-10-02 10:35:44\> ApplyReleasesImpl: Squirrel Enabled Apps: \[C:\\Users\\john\\AppData\\Local\\SourceTree\\app-2.3.1\\SourceTree.exe\]  
2017-10-02 10:35:50\> ApplyReleasesImpl: Starting fixPinnedExecutables  
2017-10-02 10:35:50\> ApplyReleasesImpl: Examining Pin: Chrome App Launcher.lnk  
2017-10-02 10:35:50\> ApplyReleasesImpl: Examining Pin: File Explorer.lnk  
2017-10-02 10:35:50\> ApplyReleasesImpl: Fixing up tray icons  
2017-10-02 10:35:50\> ApplyReleasesImpl: cleanDeadVersions: for version 2.3.1  
2017-10-02 10:35:50\> ApplyReleasesImpl: cleanDeadVersions: exclude folder app-2.3.1


author: Ana Retamal
body: .


Tags: startup

windows