Microsoft Edge taking too long to clean?

I tried uninstalling and reinstalling CCleaner, but it still takes too long to clean Microsoft Edge.

Windows 10 Home

Alienware 15R4

What build of CCleaner, the latest one ? (5.710

https://community.ccleaner.com/topic/59246-ccleaner-v5717971/?tab=comments#comment-323561

Are you using Health Check or Custom Clean?

Does the same time issue happen if you clean Edge from within the Edge browser itself?

(Open Edge, 3 dots top right, select History )

I'm running version 5.71.7971

I use Custom Clean.

No, it only takes a long time if CCleaner is doing it.

is this new edge or legacy edge?

Microsoft Edge 85.0.564.51

It's been like this since the previous versions (Edge and CCleaner).

To help us investigate further, can you please post the log file that is created when running CCleaner in debug mode, using the following steps?

  1. Open the "Run" dialog in Windows (On the keyboard, hold/release the Windows (?name=Windows+Logo.png) and "R" keys simultaneously)
  2. Type: CCleaner.exe /debug > click OK
  3. When CCleaner opens, use Custom Clean to replicate the problem
  4. Close out of CCleaner

Afterwards, a log file will be generated in the C:\Program Files\CCleaner folder and it will be named in the format of "CCleaner_[version]_[date]_[time].log". Please attach this file.

I also have the same problem when I run a clean. Edge take a long time while the other browsers are ok.

When I run Ccleaner on my virtual machines its no problem.

The only difference I can see in the main system is that I do run RamCache. Could that be a problem in this case.

I have attached a log as per above.

CCleaner64_v5.72.7994_2020-09-24_07-49-21.log

Here's my log file. I noticed that it's clearing a lot from Edge even though all i did was open and close it. I also just noticed that it didn't seem to clear out Firefox, i mean, I was still logged into this website when I opened Firefox again, even though CCleaner is set to clear it. I do have the Firefox options set so they don't clear cookies and history when closing, but i would think CCleaner should over-ride that?

CCleaner64_v5.72.7994_2020-09-23_20-35-49.log

Would be interesting if you answered Nergal's question: is this new edge or legacy edge?

Legacy version = Originally installed with Win10.

New version (a Chrome/Chromium build) = Downloaded manually, or through the offer in the Start Menu/Tiles, or through Windows Updates.

The legacy version that originally installed with Win10 needed a workaround in CCleaner in order to be properly cleaned. Supposedly newer versions of CCleaner will prompt to allow it to enable the workaround. Even with the workaround enabled sometimes the legacy version causes CCleaner to take a long time to clean it and it doesn't matter how much performance your system has it's a bit of a wait. But wait there's more since Internet Explorer is also installed on the system sometimes it takes a long time to also clean it. Edit: Should also state it doesn't matter if you use those browsers or not, even if you never open them the system is using them in the background.

Both of these log files show that it is taking an extended amount of time to clean the Legacy version of Edge, whereas the timestamps indicate that the Chromium version of Edge is being cleaned much more quickly. Specifically, I believe this is attributed to the following:

Quote
<div class="ipsQuote_contents ipsClearfix" data-gramm="false">
	<p>
		[20:36:16::792][INFO ] CreateJetEdgeManager: DllHost Cache running but not locking database - Counts=101


		[20:36:16::792][INFO ] CreateJetEdgeManager: too many attempts (101) trying to unlock
	</p>
</div>

This means that there was 101 failed attempts to unlock the ESE/JET Blue database (i.e. the spartan.edb file) -

Quote
<div class="ipsQuote_contents ipsClearfix" data-gramm="false">
	<p>
		CreateJetEdgeManager: Trying to unlock(C:\Users\[USERNAME]\AppData\Local\Packages\Microsoft.MicrosoftEdge_8wekyb3d8bbwe\AC\MicrosoftEdge\User\Default\DataStore\Data\nouser1\120712-0049\DBStore\spartan.edb)
	</p>
</div>

Furthermore, I saw the following error in both of the logs:

Quote
<div class="ipsQuote_contents ipsClearfix" data-gramm="false">
	<p>
		[07:49:51::297][DEBUG] <strong>Open database - Error: -1032</strong>C:\Users\[USERNAME]AppData\Local\Packages\Microsoft.MicrosoftEdge_8wekyb3d8bbwe\AC\MicrosoftEdge\User\Default\DataStore\Data\nouser1\120712-0049\DBStore\spartan.edb for REV
	</p>
</div>

I'll be investigating this but meanwhile, can you please see if the problem persists when running CCleaner with administrative privileges?

Simply right-click CCleaner > click "Run as Administrator".

Not sure if it's relevant but there is a known issue with legacy Edge causing a general slowdown of Windows on some systems following a recent KB update.

It's supposed to have been fixed by a further KB update, but ...

Microsoft's suggested solution is to download/install/use Edge Chromium.

6 hours ago, MeganCCleaner said:
<div class="ipsQuote_contents">
	<p>
		Both of these log files show that it is taking an extended amount of time to clean the Legacy version of Edge, whereas the timestamps indicate that the Chromium version of Edge is being cleaned much more quickly. Specifically, I believe this is attributed to the following:
	</p>

	<p>
		This means that there was 101 failed attempts to unlock the ESE/JET Blue database (i.e. the spartan.edb file) -
	</p>

	<p>
		Furthermore, I saw the following error in both of the logs:
	</p>

	<p>
		I'll be investigating this but meanwhile, can you please see if the problem persists when running CCleaner with administrative privileges?
	</p>

	<p>
		Simply right-click CCleaner &gt; click "Run as Administrator".
	</p>

	<p>
		 
	</p>
</div>

After "Run as Administrator" it made no difference at all.

yes, After "Run as Administrator" it made no difference at all.

Would you be willing to disable the legacy version of Edge, using the following steps, to see if this would be a viable workaround?

  1. Open the "Run" dialog in Windows (On the keyboard, hold/release the Windows (?name=Windows+Logo.png) and "R" keys simultaneously)
  2. Type: C:\Windows\SystemApps\ > click OK

  3. Right-click on the folder named as "Microsoft.MicrosoftEdge_8wekyb3d8bbwe"

  4. Click "Rename"

  5. Type "LEGACY" at the end of the folder name (i.e. Microsoft.MicrosoftEdge_8wekyb3d8bbweLEGACY) > click Enter

9 hours ago, MeganCCleaner said:
<div class="ipsQuote_contents">
	<p>
		<span style="background-color:#ffffff;color:#2f3941;font-size:14px;">Would you be willing to disable the legacy version of Edge, using the following steps, to see if this would be a viable workaround?</span>
	</p>

	<ol style="border:0px;color:#2f3941;font-size:14px;padding:0px 15px;vertical-align:baseline;"><li style="border:0px;font-size:14px;padding:0px;vertical-align:baseline;">
			Open the "Run" dialog in Windows<span> </span><i style="border:0px;padding:0px;vertical-align:baseline;">(On the keyboard, hold/release the Windows (<a href="https://piriform.zendesk.com/attachments/token/hGcqxk9tmGlCITpOWxCMDuXzl/?name=Windows+Logo.png" rel="external nofollow" style="background-color:transparent;" title="Enlarge image"><img alt="?name=Windows+Logo.png" class="ipsImage_thumbnailed" data-ratio="85.71" style="border:0px;padding:0px;vertical-align:baseline;" width="21" src="https://piriform.zendesk.com/attachments/token/hGcqxk9tmGlCITpOWxCMDuXzl/?name=Windows+Logo.png" /></a>) and "R" keys simultaneously)</i>
		</li>
		<li style="border:0px;font-size:14px;padding:0px;vertical-align:baseline;">
			<p style="border:0px;font-size:14px;padding:0px;vertical-align:baseline;">
				Type: <strong>C:\Windows\SystemApps\</strong> &gt; click OK
			</p>
		</li>
		<li style="border:0px;font-size:14px;padding:0px;vertical-align:baseline;">
			<p style="border:0px;font-size:14px;padding:0px;vertical-align:baseline;">
				Right-click on the folder named as "Microsoft.MicrosoftEdge_8wekyb3d8bbwe"
			</p>
		</li>
		<li style="border:0px;font-size:14px;padding:0px;vertical-align:baseline;">
			<p style="border:0px;font-size:14px;padding:0px;vertical-align:baseline;">
				Click "Rename"
			</p>
		</li>
		<li style="border:0px;font-size:14px;padding:0px;vertical-align:baseline;">
			<p style="border:0px;font-size:14px;padding:0px;vertical-align:baseline;">
				Type "LEGACY" at the end of the folder name (i.e.<i style="border:0px;padding:0px;vertical-align:baseline;"><span> </span>Microsoft.MicrosoftEdge_8wekyb3d8bbweLEGACY) &gt;<span> </span></i>click Enter
			</p>
		</li>
	</ol></div>

I tried disabling the "legacy version of Edge" as above.

I rebooted and tried again but still the same issue present.

Attached are new logs.

CCleaner64_v5.72.7994_2020-09-30_08-27-27.log

Can you please follow the instructions below to see if this generates the same -1032 error we see in your logs and/or can you please attach a screenshot of the results?

  • Right-click the Windows Start button > click Windows PowerShell (Admin)
  • Type and enter:
    Quote
    		<div class="ipsQuote_contents ipsClearfix" data-gramm="false">
    			<p>
    				esentutl /mh "C:\Users\REV\AppData\Local\Packages\Microsoft.MicrosoftEdge_8wekyb3d8bbwe\AC\MicrosoftEdge\User\Default\DataStore\Data\nouser1\120712-0049\DBStore\spartan.edb"
    			</p>
    		</div>
    	</blockquote>
    
    	<p>
    		 
    	</p>
    </li>
    

Additionally, can you please see if the CCleaner issue exists when using Windows in Safe Mode with Networking?

Instructions on how to boot into Safe Mode with Networking can be found here.

Error -1032 means "JET_errFileAccessDenied - The file cannot be accessed because the file is locked or in use" as described at https://docs.microsoft.com/en-us/windows/win32/extensible-storage-engine/extensible-storage-engine-error-codes

6 hours ago, MeganCCleaner said:
<div class="ipsQuote_contents">
	<p>
		Can you please follow the instructions below to see if this generates the same <strong>-1032</strong> error we see in your logs and/or can you please attach a screenshot of the results?
	</p>

	<ul><li>
			Right-click the Windows Start button &gt; click Windows PowerShell (Admin)
		</li>
		<li>
			Type and enter: 
			<p>
				 
			</p>
		</li>
	</ul><p>
		Additionally, can you please see if the CCleaner issue exists when using Windows in Safe Mode with Networking?
	</p>

	<p>
		<u><a href="https://www.ccleaner.com/knowledge/how-to-boot-windows-in-safe-mode" rel="external">Instructions on how to boot into Safe Mode with Networking can be found here.</a></u>
	</p>

	<p>
		<em>Error -1032 means "JET_errFileAccessDenied - The file cannot be accessed because the file is locked or in use" as described at <a href="https://docs.microsoft.com/en-us/windows/win32/extensible-storage-engine/extensible-storage-engine-error-codes" rel="external nofollow">https://docs.microsoft.com/en-us/windows/win32/extensible-storage-engine/extensible-storage-engine-error-codes</a></em>
	</p>
</div>

1. In relation to running the command line in PowerShell (Admin) I get the following output.

Extensible Storage Engine Utilities for Microsoft(R) Windows(R)

Version 10.0


Copyright (C) Microsoft Corporation. All Rights Reserved.

Initiating FILE DUMP mode...

Error: Access to source database 'C:\Users\REV\AppData\Local\Packages\Microsoft.MicrosoftEdge_8wekyb3d8bbwe\AC\MicrosoftEdge\User\Default\DataStore\Data\nouser1\120712-0049\DBStore\spartan.edb' failed with Jet error -1811.

Operation terminated with error -1811 (JET_errFileNotFound, File not found) after 0.0 seconds.

2. I also tried CCleaner when using Windows in Safe Mode with Networking to see if the problem still exists and it worked fine.

I have attached the log file from "Safe Mode"

CCleaner64_v5.72.7994_2020-10-01_07-55-57.log

Hi,

Thanks for providing us with the information your testing revealed.

So, what you found in PowerShell is that the spartan.edb file is not accessible even to other software (as the esentutl program is part of Windows, not a part of CCleaner or other products you may have installed).

This suggests one of a couple of things;

  • Something could be blocking access to this file (security software, perhaps? an app using legacy Edge's components and not releasing them?)
  • The file could be damaged and not able to be read

I see we're still getting the -1032 error when you ran CCleaner in Safe Mode, based on the log you sent along.

That seems to imply the latter possibility as being, at the least, much more likely - since the point of Safe Mode is to have as few processes (programs, apps, etc) running as possible, which would, among other things, reduce the chances of anything trying to use Microsoft Edge's database or components.

It's possible that running

Quote
<div class="ipsQuote_contents ipsClearfix" data-gramm="false">
	<p>
		<span style="background-color:#f7fafc; color:#382e23; font-size:14px; text-align:left">esentutl</span><span style="background-color:#f7fafc; color:#382e23; font-size:14px; text-align:left"><span> </span>/R "C:\Users\REV\AppData\Local\Packages\Microsoft.MicrosoftEdge_8wekyb3d8bbwe\AC\MicrosoftEdge\User\Default\DataStore\Data\nouser1\120712-0049\DBStore\spartan.edb"</span>
	</p>
</div>

may unlock the database so that it can be accessed by other software, such as

If that still does not take care of the issue, you might want to use Windows' SFC and DISM tools, as listed in this article: https://www.windowscentral.com/how-use-dism-command-line-utility-repair-windows-10-image

After that, it may be necessary to get in contact with Microsoft directly on this matter, as this may be getting beyond options available to the user (short of reformatting and reinstalling Windows, anyway).

Hi,

I went and tried both process you mentioned:

1. Running the command the below command which failed -

esentutl /R "C:\Users\REV\AppData\Local\Packages\Microsoft.MicrosoftEdge_8wekyb3d8bbwe\AC\MicrosoftEdge\User\Default\DataStore\Data\nouser1\120712-0049\DBStore\spartan.edb"

2. I also went down the path for - Windows' SFC and DISM tools, as listed in this article: https://www.windowscentral.com/how-use-dism-command-line-utility-repair-windows-10-image

I did have some repair that did occur but still the same problem presented after completing the full procedure.

That being said I reviewed the CCleaner logs and made a couple of notes.

I do have Edge Chromium and Edge Chromium Beta but no longer have an active version of the core Legacy Edge 44 except for the C:\Windows\SystemApps\Microsoft.MicrosoftEdge_8wekyb3d8bbwe which has been renamed.

In CCleaner I still have "Microsoft Edge" and "Edge Chromium" able to be selected.

However, when I go to the logs, I see CCleaner looking for the path:

CreateJetEdgeManager: Trying to unlock(C:\Users\REV\AppData\Local\Packages\Microsoft.MicrosoftEdge_8wekyb3d8bbwe\AC\MicrosoftEdge\User\Default\DataStore\Data\nouser1\120712-0049\DBStore\spartan.edb)

However, that doesn’t full exist.

C:\Users\REV\AppData\Local\Packages\Microsoft.MicrosoftEdge_8wekyb3d8bbwe\AC\MicrosoftEdge\User\Default\ (exists)

- \nouser1\120712-0049\DBStore\spartan.edb (does not exist)

If it is looking for this path and it doesn’t fully exist should it be looking for something different.

The only folders available within default are:

- BrowserImport

- Favorites


- ImageStore


- RACShare


- Recovery


- TemporaryFiles

Hoping that might make a difference.

When I exclude the check boxes for Microsoft Edge Legacy - CCleaner is super-fast, but wondering what Cleaner looks for to determine there is an active browser?

That's very curious. I've got the Chromium build of the software as well, however, I still have the \nouser1\120712-0049\DBStore\spartan.edb file and structure - it's not even a hidden file or anything like that (as I had thought might have been the case).

Went and checked on all the other computers that I've got and they also all have the spartan.edb file, right where it's looking. Also checked with some of my coworkers and they're seeing it right where it belongs as well, so I'm inclined to believe that it is supposed to be at that location, anyway.

It also seems odd that it would be giving the sorts of errors that you're describing if the file wasn't there at all - you'd think it would list a 'file not found' error instead saying it can't unlock the file.

In regards to looking for Microsoft Edge (non-Chromium) specifically, I believe the Rule is simply to look for if the computer is Windows 10, as these files are supposed to be present on all Windows 10 computers.

If the spartan.edb file is legitimately not present on your computer, though, I can't think of much harm in unchecking the Microsoft Edge Legacy Cleaning Rules, since that's the main file that they work with. I'm just curious if not having that file would cause problems with other apps (mostly Microsoft Store ones) that would be expecting to use components of Edge Legacy, or if Microsoft was slick enough to 'redirect' those to Edge Chromium.