Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

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,558,955
Community Members
 
Community Events
184
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.

2 answers

1 accepted

For me SourceTree didn't start after an update. I looked into the %AppData/Local/SourceTree folder and tried running SourceTree.exe and Update.exe, and then again as admin. Every time it didn't work.

I saw I had two folders, app-3.4.9 and app-3.4.10. The second folder was empty. I deleted it, and suddenly SourceTree worked again. I think it was a faulty update, but I'm not sure.

Yeah, I did the same thing and then it worked. This isn't the first time I've had trouble on an update with this.

GMitzel
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
Dec 08, 2022

Exact same scenario and solution. 

Christopher Belakhoua
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
Dec 19, 2022

Ran into same problem, proposed solution saved the day.

Fabio Widmer
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
Jan 04, 2023

Same for me, but with 3.4.11 folder .. Seems to be a bug ..?

Wow Worked for me also.  Thanks everyone.

Yep, my app-3.4.11 folder was empty. Removing the directory fixed it.

Cesar Sagrado Lorente
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
Jan 22, 2023

Solved my issue! Removing the folder "app-3.4.11" fixed it.

Rebecca.BenChimol
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
Jan 25, 2023

Solved my issue as well, thanks!

Sharon Hinde
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
Jan 26, 2023

This fix worked for me, thanks!

Thank you so much for sharing - your tip helped me as well! 

This fix worked for me too.

I believe the problem is caused by a failed update. Running the update 3.4.11 from the yellow flag top left in window fails with:

Method not found: 'Void SharpCompress.Readers.IReaderExtensions.WriteEntryToFile(SharpCompress.Readers.IReader, System.String, SharpCompress.Readers.ExtractionOptions)'.

Then Sourcetree fails to launch.

FIXED!!!! Thank you!!!

1 vote
minnsey
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
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
Atlassian Team members are employees working across the company in a wide variety of roles.
Mar 05, 2019

Does the %localappdata%/Sourcetree folder exist?


minnsey
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
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
Atlassian Team members are employees working across the company in a wide variety of roles.
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
Atlassian Team members are employees working across the company in a wide variety of roles.
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
Atlassian Team members are employees working across the company in a wide variety of roles.
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
Atlassian Team members are employees working across the company in a wide variety of roles.
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.

Like # people like this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events