Intallation Failure (SourceTree) Edited

Hi,

I want to install install SourceTree have have downloaded the EXE for SourceTree 2.3.1.0 the website https://www.sourcetreeapp.com/.

I am running Windows 8 Version 6.3, Build 9600.

However, when I attempt to install the application using this EXE, the installation wizard is not displayed as expected and the application is not installed.

A short cut is, however, created on the desktop, folders are created in the AppData/Local folder, and SourceTree is displayed in the list of installed programs.

The relevant section of SquirrelSetup.log file is:

2017-10-04 09:04:26> Program: Starting Squirrel Updater: --install .
2017-10-04 09:04:26> Program: Starting install, writing to C:\Users\***me***\AppData\Local\SquirrelTemp
2017-10-04 09:04:26> Program: About to install to: C:\Users\***me***\AppData\Local\SourceTree
2017-10-04 09:04:26> 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\***me***\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-04 09:04:26> CheckForUpdateImpl: Failed to load local releases, starting from scratch: System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Users\***me***\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-04 09:04:26> CheckForUpdateImpl: Reading RELEASES file from C:\Users\***me***\AppData\Local\SquirrelTemp
2017-10-04 09:04:26> CheckForUpdateImpl: First run or local directory is corrupt, starting from scratch
2017-10-04 09:04:26> ApplyReleasesImpl: Writing files to app directory: C:\Users\***me***\AppData\Local\SourceTree\app-2.3.1
2017-10-04 09:04:27> LogHost: Rigging execution stub for SourceTree_ExecutionStub.exe to C:\Users\***me***\AppData\Local\SourceTree\SourceTree.exe
2017-10-04 09:04:27> ApplyReleasesImpl: Squirrel Enabled Apps: [C:\Users\***me***\AppData\Local\SourceTree\app-2.3.1\SourceTree.exe]
2017-10-04 09:04:31> ApplyReleasesImpl: Starting fixPinnedExecutables
2017-10-04 09:04:31> ApplyReleasesImpl: Examining Pin: File Explorer (2).lnk
2017-10-04 09:04:31> ApplyReleasesImpl: Examining Pin: File Explorer (3).lnk
2017-10-04 09:04:31> ApplyReleasesImpl: Examining Pin: File Explorer.lnk
2017-10-04 09:04:31> ApplyReleasesImpl: Examining Pin: FileZilla.lnk
2017-10-04 09:04:31> ApplyReleasesImpl: Examining Pin: Google Chrome.lnk
2017-10-04 09:04:31> ApplyReleasesImpl: Examining Pin: Internet Explorer (2).lnk
2017-10-04 09:04:31> ApplyReleasesImpl: Examining Pin: Internet Explorer (3).lnk
2017-10-04 09:04:31> ApplyReleasesImpl: Examining Pin: Internet Explorer.lnk
2017-10-04 09:04:31> ApplyReleasesImpl: Examining Pin: Mozilla Firefox (2).lnk
2017-10-04 09:04:31> ApplyReleasesImpl: Examining Pin: Notepad++.lnk
2017-10-04 09:04:31> ApplyReleasesImpl: Examining Pin: Outlook 2013.lnk
2017-10-04 09:04:31> ApplyReleasesImpl: Examining Pin: Oxygen XML Author 18.1.lnk
2017-10-04 09:04:31> ApplyReleasesImpl: Examining Pin: paint.net.lnk
2017-10-04 09:04:31> ApplyReleasesImpl: Examining Pin: PuTTY.lnk
2017-10-04 09:04:31> ApplyReleasesImpl: Examining Pin: Windows Media Player.lnk
2017-10-04 09:04:31> ApplyReleasesImpl: Examining Pin: Word 2013.lnk
2017-10-04 09:04:31> ApplyReleasesImpl: Fixing up tray icons
2017-10-04 09:04:31> ApplyReleasesImpl: Couldn't rewrite shim RegKey, most likely no apps are shimmed: System.NullReferenceException: Object reference not set to an instance of an object.
   at Squirrel.UpdateManager.ApplyReleasesImpl.<unshimOurselves>b__13_0(RegistryView view)
2017-10-04 09:04:31> ApplyReleasesImpl: Couldn't rewrite shim RegKey, most likely no apps are shimmed: System.NullReferenceException: Object reference not set to an instance of an object.
   at Squirrel.UpdateManager.ApplyReleasesImpl.<unshimOurselves>b__13_0(RegistryView view)
2017-10-04 09:04:31> ApplyReleasesImpl: cleanDeadVersions: for version 2.3.1
2017-10-04 09:04:31> ApplyReleasesImpl: cleanDeadVersions: exclude folder app-2.3.1

Any help you can provide is much appreciated!

Thanks!

John.

1 answer

0 vote

Hi John! That's a Squirrel installer error rather than a SourceTree error itself. Looking at the log it looks like it's been installed, can you check in %localappdata%\SourceTree\app-{version} ? 

We had a user with a similar issue and he said that uninstalling .Net framework 4.6.2, and then installing .Net framework 4.7 worked for him. Can you try that and let us know?

Cheers,

Ana

Hi Ana,

 

Many thanks for your prompt reply!

 

I do indeed see the following files and folders in %localappdata%\SourceTree:

--app-2.3.1

--packages

app.ico

SourceTree.exe

Update.exe

 

I was running .Net Framework 4.6.1, and I have upgraded to .Net Framework 4.7.

Alas I am seeing the same behavior, that is, when I click the EXE, I see the SourceTree splash icon, a desktop shortcut is displayed, and the files and folders described above are created in %localappdata%\SourceTree.  

I have appended the log entries from the SquirrelSetup.log file below. 

Any help and advice you can provide is very much appreciated!

Kind regrads,

John.

 

 

2017-10-04 14:42:44> Program: Starting Squirrel Updater: --install .
2017-10-04 14:42:44> Program: Starting install, writing to C:\Users\***me***\AppData\Local\SquirrelTemp
2017-10-04 14:42:44> Program: About to install to: C:\Users\***me***\AppData\Local\SourceTree
2017-10-04 14:42:44> Program: Install path C:\Users\***me***\AppData\Local\SourceTree already exists, burning it to the ground
2017-10-04 14:42:44> 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\***me***\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-04 14:42:44> CheckForUpdateImpl: Failed to load local releases, starting from scratch: System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Users\***me***\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-04 14:42:44> CheckForUpdateImpl: Reading RELEASES file from C:\Users\***me***\AppData\Local\SquirrelTemp
2017-10-04 14:42:45> CheckForUpdateImpl: First run or local directory is corrupt, starting from scratch
2017-10-04 14:42:45> ApplyReleasesImpl: Writing files to app directory: C:\Users\***me***\AppData\Local\SourceTree\app-2.3.1
2017-10-04 14:42:45> LogHost: Rigging execution stub for SourceTree_ExecutionStub.exe to C:\Users\***me***\AppData\Local\SourceTree\SourceTree.exe
2017-10-04 14:42:46> ApplyReleasesImpl: Squirrel Enabled Apps: [C:\Users\***me***\AppData\Local\SourceTree\app-2.3.1\SourceTree.exe]
2017-10-04 14:42:51> ApplyReleasesImpl: Starting fixPinnedExecutables
2017-10-04 14:42:51> ApplyReleasesImpl: Examining Pin: File Explorer (2).lnk
2017-10-04 14:42:51> ApplyReleasesImpl: Examining Pin: File Explorer (3).lnk
2017-10-04 14:42:51> ApplyReleasesImpl: Examining Pin: File Explorer.lnk
2017-10-04 14:42:51> ApplyReleasesImpl: Examining Pin: FileZilla.lnk
2017-10-04 14:42:51> ApplyReleasesImpl: Examining Pin: Google Chrome.lnk
2017-10-04 14:42:51> ApplyReleasesImpl: Examining Pin: Internet Explorer (2).lnk
2017-10-04 14:42:51> ApplyReleasesImpl: Examining Pin: Internet Explorer (3).lnk
2017-10-04 14:42:51> ApplyReleasesImpl: Examining Pin: Internet Explorer.lnk
2017-10-04 14:42:51> ApplyReleasesImpl: Examining Pin: Mozilla Firefox (2).lnk
2017-10-04 14:42:51> ApplyReleasesImpl: Examining Pin: Notepad++.lnk
2017-10-04 14:42:51> ApplyReleasesImpl: Examining Pin: Outlook 2013.lnk
2017-10-04 14:42:51> ApplyReleasesImpl: Examining Pin: Oxygen XML Author 18.1.lnk
2017-10-04 14:42:51> ApplyReleasesImpl: Examining Pin: paint.net.lnk
2017-10-04 14:42:51> ApplyReleasesImpl: Examining Pin: PuTTY.lnk
2017-10-04 14:42:51> ApplyReleasesImpl: Examining Pin: Windows Media Player.lnk
2017-10-04 14:42:51> ApplyReleasesImpl: Examining Pin: Word 2013.lnk
2017-10-04 14:42:51> ApplyReleasesImpl: Fixing up tray icons
2017-10-04 14:42:51> ApplyReleasesImpl: Couldn't rewrite shim RegKey, most likely no apps are shimmed: System.NullReferenceException: Object reference not set to an instance of an object.
at Squirrel.UpdateManager.ApplyReleasesImpl.<unshimOurselves>b__13_0(RegistryView view)
2017-10-04 14:42:51> ApplyReleasesImpl: Couldn't rewrite shim RegKey, most likely no apps are shimmed: System.NullReferenceException: Object reference not set to an instance of an object.
at Squirrel.UpdateManager.ApplyReleasesImpl.<unshimOurselves>b__13_0(RegistryView view)
2017-10-04 14:42:51> ApplyReleasesImpl: cleanDeadVersions: for version 2.3.1
2017-10-04 14:42:51> ApplyReleasesImpl: cleanDeadVersions: exclude folder app-2.3.1

Seems like the installer has worked, the files are installed. 
It looks like you're repeatedly running the installer, not the sourcetree.exe (the give away is that we don't have a splash screen in the app at the moment, just in the installer) BUT the app should start running after the installer finishes.

Can you run

C:\Users\***me***\AppData\Local\SourceTree\app-2.3.1\sourcetree.exe


If that doesn't start, can you look in

%localappdata%\Atlassian\Sourcetree\sourcetree.log 

for errors?

Regards!

Ana

Hi Ana,

Many thanks for your reply!

When I click %localappdata%\SourceTree\app-2.3.1\sourcetree.exe, nothing happens, as indicated by the entries in the %localappdata%\AppData\Local\Atlassian\SourceTree\sourcetree.log file, appended below.

Your continuted advice for this issue is greatly appreciated!

Kind regards,

John.

 

------sourcetree.log----------------

ERROR [2017-10-06 14:22:08,178] [1] [SourceTree.App] [.ctor] - finish EnsureSquirrelExecutionStubIsCopied
ERROR [2017-10-06 14:22:08,420] [1] [SourceTree.App] [OnStartup] - Failed to start
System.NullReferenceException: Object reference not set to an instance of an object.
at SourceTree.Notifications.NotificationsManager.SetOwner(NotificationDialogWindow notificationWindow)
at SourceTree.Notifications.NotificationsManager.ShowNotificationDialog[T](NotificationDialogWindow notificationWindow, Tuple`2 customAction, VistaTaskDialogIcon icon)
at SourceTree.Notifications.NotificationsManager.ShowNotificationDialog[T](String title, String message, Tuple`2 customAction, String cancelLabel, String suppressionSetting, Action`1 suppressionChangedAction, Object contentControl, String contentCommandLabel, Action contentAction)
at SourceTree.Notifications.NotificationsManager.ShowNotificationDialogWithYesConfirmation(String title, String message, String details)
at SourceTree.Configuration.WpfSpellCheckerPreFlightCheck.Run()
at SourceTree.AppRoot.RunPreFlightChecks()
at SourceTree.AppRoot.OnStartup(StartupEventArgs e)
at SourceTree.App.OnStartup(StartupEventArgs e)

Hi Ana,

An update!

As I am sure you would have discovered, a colleague of yours (Mike Corsaro) was able to resolve the same issue, see https://community.atlassian.com/t5/Sourcetree-questions/SourceTree-failed-to-start/qaq-p/642445.

When I added the entry 

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

to the user.config file and launched the EXE, I saw the first page in the wizard. 

Thank you somuch for your help with this issue, and for taking the time out from what I am sure is your very busy chedule to help out.

Do let me know if I can provide feedback for you on this one.

Kind regards,

John.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published May 30, 2018 in Sourcetree

Tip from the team: configuring Git or Mercurial in Sourcetree

Supported Platforms macOS Windows To make using Sourcetree as simple yet powerful as possible we embed (bundle) dependencies such as Git, Git LFS, and Mercurial. We strive to keep these...

406 views 0 1
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you