Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,360,193
Community Members
 
Community Events
168
Community Groups

Source tree not starting in windows 10

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.

1 answer

0 votes
minnsey Atlassian Team Mar 04, 2019

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 ?

@minnsey 

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.

minnsey Atlassian Team Mar 05, 2019

Does the %localappdata%/Sourcetree folder exist?


minnsey Atlassian Team Mar 05, 2019

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 ?


That's right @minnsey ,Can you help me out I'm facing a lot of difficulties without Sourcetree.

minnsey Atlassian Team Mar 06, 2019

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.


@minnsey 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

minnsey Atlassian Team Mar 07, 2019

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?

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()

minnsey Atlassian Team Mar 07, 2019

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.

@minnsey  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()

minnsey Atlassian Team Jun 03, 2019

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?

@minnsey 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

Like # people like this

> 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 Dominguezthanks 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!

I was having exactly the same problem.

@Javier Dominguez 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.

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Sourcetree

Bug Fix: Sourcetree for Windows authentication error when updating to app password

Hello Sourcetree users!!! With the recent removal of Bitbucket Cloud account passwords for app passwords (please see our Bitbucket Cloud community post for details on why we made this change for se...

78,815 views 134 29
Read article

Atlassian Community Events