Installed SourceTree but it doesn't start
Asked by Massimo:

I installed SourceTree 2.4.8.0 on a Windows 10 system.

However when I try to start the application nothing happen.

I open the sourcetree log file (present in folder C:\\Users\\massi\\AppData\\Local\\Atlassian\\SourceTree) and this is its content:

ERROR \[2018-03-20 20:15:16,892\] \[1\] \[SourceTree.App\] \[.ctor\] - finish EnsureSquirrelExecutionStubIsCopied  
ERROR \[2018-03-20 20:15:17,090\] \[1\] \[SourceTree.Notifications.NotificationsManager\] \[ShowNotificationDialog\] - Unable to set owner as parent is not visible or non-existent

Any help is appreciated.

Thank you

-Massimo


Answers:
author: Massimo
body: Hi Ana,

In my case the user.config contains only the following:

\<?xml version="1.0" encoding="utf-8"?\>  
\<configuration\>  
\<userSettings\>  
\<SourceTree.Properties.Settings\>  
\<setting name="NPSAnonUId" serializeAs="String"\>  
\<value\>4ce518d3-f4a5-49e3-9bfd-fc554a1341a3\</value\>  
\</setting\>  
\</SourceTree.Properties.Settings\>  
\</userSettings\>  
\</configuration\>

When I installed the application I got a warning saying that a Microsoft file(I do not recall the exact name, however it was something related with dictionary) may case issues. It asked me to keep/delete it, but it didn't give me time to select my choice(it closes before I can select me choice).

I uninstalled/installed the application multiple time but I get the same result.

I installed the application in a different system with no issue. The user.config in this case contains a lot of configuration items.

Thank you,

-Massimo

comments: author: Massimo
body: Quick update.

I uninstall again the app, removed by hand all directories related. Rebooted system.

When system up and running I tried to install again the app.

The installation fails when selecting the option to insert my account information.

This is the content of user.config(I added by hand the settings for AutomaticallyCleanUpDictionaryFiles since it was not there)

\<?xml version="1.0" encoding="utf-8"?\>  
\<configuration\>  
\<userSettings\>  
\<SourceTree.Properties.Settings\>  
\<setting name="AllowModifyConfigFiles" serializeAs="String"\>  
\<value\>True\</value\>  
\</setting\>  
\<setting name="AnonymousID" serializeAs="String"\>  
\<value\>dea88bb3-b558-49e7-8ea1-a847a379147e\</value\>  
\</setting\>  
\<setting name="AgreedToEULA" serializeAs="String"\>  
\<value\>True\</value\>  
\</setting\>  
\<setting name="SSHClientType" serializeAs="String"\>  
\<value\>PuTTY\</value\>  
\</setting\>  
\<setting name="ProxyServerMode" serializeAs="String"\>  
\<value\>OperatingSystem\</value\>  
\</setting\>  
\<setting name="AnalyticsHasAgreed" serializeAs="String"\>  
\<value\>False\</value\>  
\</setting\>  
\<setting name="AnalyticsDisplayOptIn" serializeAs="String"\>  
\<value\>False\</value\>  
\</setting\>  
\<setting name="NPSAnonUId" serializeAs="String"\>  
\<value\>ed4913e9-8487-4a78-bb4c-b654fa718485\</value\>  
\</setting\>  
\<setting name="NPSCancelCount" serializeAs="String"\>  
\<value\>0\</value\>  
\</setting\>  
\<setting name="NextNPSPrompt" serializeAs="String"\>  
\<value\>04/01/2018 11:35:09\</value\>  
\</setting\>  
\<setting name="LastInteractionTime" serializeAs="String"\>  
\<value\>03/24/2018 11:35:36\</value\>  
\</setting\>  
\<setting name="AgreedToEULAVersion" serializeAs="String"\>  
\<value\>20160201\</value\>  
\</setting\>  
\<setting name="AutomaticallyCleanUpDictionaryFiles" serializeAs="String"\>  
\<value\>True\</value\>  
\</setting\>  
\</SourceTree.Properties.Settings\>  
\</userSettings\>  
\</configuration\>

Do you have solutions/suggestions for this issue?

Anything from Atlassian Team???????


author: Ana Retamal
body: Hi Massimo! You can find the solution in this other [Community thread](https://community.atlassian.com/t5/Sourcetree-questions/SourceTree-failed-to-start/qaq-p/642445), it's the answer proposed by Mike Corsaro:
> 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 it worked for you!

Best regards,

Ana


Tags: windows