sourcetree 2.5.5 won't start on windows
Asked by Mark Schafer:

Tried looking for this tag but does not exist in my user.config

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

As suggested here: <https://community.atlassian.com/t5/Sourcetree-questions/Sourcetree-won-t-start/qaq-p/655953>

Added it anyway but no luck.

Tried reinstalling and rebooting (thanks Windows) but still nothing happens.

No response when trying to run from a cygwin shell so no error messages print. the log indicates each attempt to start but nothing more.

Last version I had was 1.6. I uninstalled it before installing 2.5.5

The subdirectories with url and uuids in the name remain under Local/Atlassian.

Any ideas on how to proceed ?


Answers:
author: Mark Schafer
body: solved. my previous version was maybe too old. So i deleted everything in all Atlasian folders and installed from scratch. Who cares about that old code anyway.

comments: author: Ana Retamal
body: Hi Mark, glad you got it working! I just wanted to point out that even if you uninstalled and re-installed Sourcetree, your code is not gone as it was not stored into Sourcetree in the first place. It should be in some location in your computer, or accessible remotely if you have it hosted in some service like Bitbucket or Github.

Hope that clarifies!

Kind regards :)

Ana


author: Mark Schafer
body: I found oldest file in Sourcetree is license file from 2013.

- sourcetree.license

Looking inside it - it uses a different email account. Should I delete this old license file ?


author: Mark Schafer
body: Found new error log location under Local.

Just trying to start from cygwin I get:
> ERROR \[2018-06-11 12:53:47,551\] \[1\] \[SourceTree.App+\<OnStartup\>d__6\] \[MoveNext\] - Failed to start  
> System.NullReferenceException: Object reference not set to an instance of an object.  
> at SourceTree.Host.Bitbucket.BitbucketHost.GetCanonicalUri(IConfigurationManager configurationManager)  
> at SourceTree.Host.Bitbucket.BitbucketHost.get_CanonicalUrl()  
> at SourceTree.Accounts.LegacyAccountPersistenceService.ConvertFromHostedAccounts(IEnumerable\`1 hostedAccounts)  
> at SourceTree.Accounts.LegacyAccountPersistenceService.LoadAccounts()  
> at SourceTree.Accounts.AccountManager.LoadHostedAccounts()  
> at SourceTree.Accounts.AccountManager.HasAccountForHost\[T\]()  
> at SourceTree.UI.OnboardingManager.HasValidHostAccount()  
> at SourceTree.UI.OnboardingManager.get_Completed()  
> at SourceTree.AppRoot.OnboardIfRequired()  
> at SourceTree.AppRoot.\<OnStartup\>d__33.MoveNext()  
> --- End of stack trace from previous location where exception was thrown ---  
> at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()  
> at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)  
> at SourceTree.App.\<OnStartup\>d__6.MoveNext()


author: Mark Schafer
body: Found a different errorlog under Local. gives me two errros:

> ERROR \[2018-06-11 11:50:31,783\] \[1\] \[SourceTree.App+\<OnStartup\>d__6\] \[MoveNext\] - Failed to start  
> System.NullReferenceException: Object reference not set to an instance of an object.  
> at SourceTree.Host.Bitbucket.BitbucketHost.GetCanonicalUri(IConfigurationManager configurationManager)  
> at SourceTree.Host.Bitbucket.BitbucketHost.get_CanonicalUrl()  
> at SourceTree.Accounts.LegacyAccountPersistenceService.ConvertFromHostedAccounts(IEnumerable\`1 hostedAccounts)  
> at SourceTree.Accounts.LegacyAccountPersistenceService.LoadAccounts()  
> at SourceTree.Accounts.AccountManager.LoadHostedAccounts()  
> at SourceTree.Accounts.AccountManager.HasAccountForHost\[T\]()  
> at SourceTree.UI.OnboardingManager.HasValidHostAccount()  
> at SourceTree.UI.OnboardingManager.get_Completed()  
> at SourceTree.AppRoot.OnboardIfRequired()  
> at SourceTree.AppRoot.\<OnStartup\>d__33.MoveNext()  
> --- End of stack trace from previous location where exception was thrown ---  
> at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()  
> at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)  
> at SourceTree.App.\<OnStartup\>d__6.MoveNext()
>
> <br />
>
> ERROR \[2018-06-11 11:53:23,357\] \[1\] \[SourceTree.App+\<OnStartup\>d__6\] \[MoveNext\] - Failed to start  
> System.ArgumentException: Item has already been added. Key in dictionary: 'TMP' Key being added: 'tmp'  
> at System.Collections.Hashtable.Insert(Object key, Object nvalue, Boolean add)  
> at System.Diagnostics.ProcessStartInfo.get_EnvironmentVariables()  
> at SourceTree.Utils.RepoProcess.InternalLaunch(Boolean registerTerminateHandler)  
> at SourceTree.Utils.RepoProcess.Run()  
> at SourceTree.Dvcss.Extensions.CustomGcmExtension.GetGcmVersion(IDvcs dvcs, String exePath)  
> at SourceTree.Dvcss.Extensions.CustomGcmExtension.IsInstalled(IDvcs dvcs)  
> at SourceTree.Dvcss.Extensions.CustomGcmPreflightCheck.Run()  
> at SourceTree.AppRoot.RunPreFlightChecks()  
> at SourceTree.AppRoot.\<OnStartup\>d__33.MoveNext()  
> --- End of stack trace from previous location where exception was thrown ---  
> at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()  
> at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)  
> at SourceTree.App.\<OnStartup\>d__6.MoveNext()