Windows Update fails because of CBS corruption

sojkovec

Member
Joined
Mar 11, 2016
Posts
13
Long story short, WU doesn't work because of this:

Code:
2016-03-11 15:25:06, Info                  CBS    Failed to find package from aggreated XML string, package: Package_for_KB976933~31bf3856ad364e35~amd64~fr-FR~6.1.7601.17514 [HRESULT = 0x80070490 - ERROR_NOT_FOUND]
2016-03-11 15:25:06, Info                  CBS    Failed to find package from deployment update [HRESULT = 0x80070490 - ERROR_NOT_FOUND]
2016-03-11 15:25:06, Error                 CBS    Failed to check whether package is partially installed, package: Windows7SP1-KB976933~31bf3856ad364e35~amd64~~6.1.1.17514 [HRESULT = 0x80070490 - ERROR_NOT_FOUND]
2016-03-11 15:25:06, Info                  CBS    Failed to evaluate external applicability for package update: 976933-0_neutral_PACKAGE [HRESULT = 0x80070490 - ERROR_NOT_FOUND]
2016-03-11 15:25:06, Error                 CBS    Failed to call external evaluate applicability on package: Package_for_KB976932~31bf3856ad364e35~amd64~~6.1.1.17514, Update: 976933-0_neutral_PACKAGE [HRESULT = 0x80070490 - ERROR_NOT_FOUND]

Both packages are related to W7 SP1 Installation.

My conclusion so far is that this is unfixable. I wonder if anyone has managed to fix this, any help is appreciated.

P.S.: I know clean install will fix it, that's what I try to avoid. "Repair" install will not work for my configuration.
P.S.S.: Please do not bother with generic "CheckSUR (clean), CHKDSK (clean, my filesystem and HDD are OK), SCF (clean), MS FIXIT (failed because of above), ..., etc.", everything tried. Did not worked.
Thanks.

W7 Ult 64bit SP1 Czech
 
Hello,

In order to troubleshoot this issue correctly we need some more information.

Run Windows Update, once it fails upload the following:

Export CBS folder

  1. Click the Start button
    StartButton_16x16.gif
    then click Computer.
  2. Double-click on the C: drive, under the Hard Disk Drives category, and then scroll down to, and double click on the Windows folder.
  3. Find and double click on the Logs folder.
  4. Right-click on the CBS folder, and select Copy.
  5. Go back to your Desktop, right-click on it, and select Paste. You should now see a copy of the CBS folder appear on your Desktop called CBS.
  6. Right-click on this new folder, and navigate through Send to, and select Compressed (zipped) folder.
  7. A new file, also called CBS (CBS.zip), but this time with a different icon, will be created.
  8. Please rename this file to CBS_{Insert forum username here}_{insert todays Date here}.zip For example "CBS_Go The Power_1803.Zip"
  9. Attach this to your next post please.
Please Note:: if the file is too big to upload to you next post please upload via Dropbox or One Drive

Windows Update Log

  1. Click on the Start button -> Inside the search box copy and paste the following command
    cmd /c copy %windir%\WindowsUpdate.log "%userprofile%\Desktop\WindowsUpdate.txt"
  2. Please go to your desktop and attach WindowsUpdate.txt to your next post

 
The latest errors in the WU log is about a service being disabled:

Code:
2016-03-12	12:44:36:334	2072	ac8	COMAPI	-------------
2016-03-12	12:44:36:356	2072	ac8	COMAPI	-- START --  COMAPI: Search [ClientId = <NULL>]
2016-03-12	12:44:36:356	2072	ac8	COMAPI	---------
2016-03-12	12:44:36:359	2072	ac8	COMAPI	FATAL: Unable to connect to the service (hr=80070422)
2016-03-12	12:44:36:359	2072	ac8	COMAPI	[COLOR="#FF0000"]WARNING: Unable to establish connection to the service. (hr=80070422)[/COLOR]
2016-03-12	12:44:36:359	2072	ac8	COMAPI	 [COLOR="#FF0000"] - WARNING: Exit code = 0x80070422[/COLOR]
2016-03-12	12:44:36:359	2072	ac8	COMAPI	---------
2016-03-12	12:44:36:359	2072	ac8	COMAPI	--  END  --  COMAPI: Search [ClientId = <NULL>]
2016-03-12	12:44:36:359	2072	ac8	COMAPI	-------------
2016-03-12	12:44:36:359	2072	ac8	COMAPI	FATAL: Unable to perform synchronous search. (hr=80070422)
2016-03-13	19:03:16:081	 988	ee0	Misc	===========  Logging initialized (build: 7.6.7601.19116, tz: +0100)  ===========
2016-03-13	19:03:16:082	 988	ee0	Misc	  = Process: C:\Windows\SysWOW64\DllHost.exe
2016-03-13	19:03:16:082	 988	ee0	Misc	  = Module: C:\Windows\SysWOW64\wuapi.dll
2016-03-13	19:03:16:070	 988	ee0	COMAPI	-------------
2016-03-13	19:03:16:082	 988	ee0	COMAPI	-- START --  COMAPI: Search [ClientId = <NULL>]
2016-03-13	19:03:16:082	 988	ee0	COMAPI	---------
2016-03-13	19:03:16:133	 988	ee0	COMAPI	FATAL: Unable to connect to the service (hr=80070422)
2016-03-13	19:03:16:133	 988	ee0	COMAPI	WARNING: Unable to establish connection to the service. (hr=80070422)
2016-03-13	19:03:16:136	 988	ee0	COMAPI	  - WARNING: Exit code = 0x80070422
2016-03-13	19:03:16:136	 988	ee0	COMAPI	---------
2016-03-13	19:03:16:136	 988	ee0	COMAPI	--  END  --  COMAPI: Search [ClientId = <NULL>]
2016-03-13	19:03:16:136	 988	ee0	COMAPI	-------------
2016-03-13	19:03:16:136	 988	ee0	COMAPI	FATAL: Unable to perform synchronous search. (hr=80070422)
2016-03-14	19:36:37:428	5060	b90	Misc	===========  Logging initialized (build: 7.6.7601.19116, tz: +0100)  ===========
2016-03-14	19:36:37:428	5060	b90	Misc	  = Process: C:\Windows\SysWOW64\DllHost.exe
2016-03-14	19:36:37:428	5060	b90	Misc	  = Module: C:\Windows\SysWOW64\wuapi.dll
2016-03-14	19:36:37:419	5060	b90	COMAPI	-------------
2016-03-14	19:36:37:428	5060	b90	COMAPI	-- START --  COMAPI: Search [ClientId = <NULL>]
2016-03-14	19:36:37:429	5060	b90	COMAPI	---------
2016-03-14	19:36:37:443	5060	b90	COMAPI	FATAL: Unable to connect to the service (hr=80070422)
2016-03-14	19:36:37:444	5060	b90	COMAPI	WARNING: Unable to establish connection to the service. (hr=80070422)
2016-03-14	19:36:37:444	5060	b90	COMAPI	  - WARNING: Exit code = 0x80070422
2016-03-14	19:36:37:444	5060	b90	COMAPI	---------
2016-03-14	19:36:37:444	5060	b90	COMAPI	--  END  --  COMAPI: Search [ClientId = <NULL>]
2016-03-14	19:36:37:444	5060	b90	COMAPI	-------------
2016-03-14	19:36:37:444	5060	b90	COMAPI	[COLOR="#FF0000"]FATAL: Unable to perform synchronous search. (hr=80070422)[/COLOR]

Meaning of: 80070422

Code:
W:\Applications\Tools\Err>err 0x80070422
# as an HRESULT: Severity: FAILURE (1), Facility: 0x7, Code 0x422
# for hex 0x422 / decimal 1058 :
  RMON_CANT_LOAD_RESTYPE                                        clusvmsg.h
  JET_wrnNoIdleActivity                                         esent98.h
# /* No idle activity occured */
  SQL_1058_severity_15                                          sql_err
# Cannot specify both READ_ONLY and FOR READ ONLY on a cursor
# declaration.
[COLOR="#FF0000"]  ERROR_SERVICE_DISABLED                                        winerror.h
# The service cannot be started, either because it is
# disabled or because it has no enabled devices associated
# with it.[/COLOR]
# 4 matches found for "0x80070422"

Lets check the services first to see if we can find that one that needs to be enabled:

Please download OTL (by OldTimer) from the link below and save it to your Desktop.


  1. Disable all anti-virus and anti-malware software to prevent them inhibiting OTL in any way. If you are unsure how to do this, see THIS.
  2. Double-click OTL.exe to run it.
  3. Set every option to None -> Except for Services please set Services to All
  4. Click Run Scan to start OTL.
  5. When OTL finishes scanning, OTL.txt will open.
  6. Copy (Ctrl+C) and Paste (Ctrl+V) the contents of this logs into your next post please.
 
ERROR_SERVICE_DISABLED winerror.h
# The service cannot be started, either because it is
# disabled or because it has no enabled devices associated
# with it.

That's when I deliberately stopped and disabled wuaserv temporarily, otherwise it runs in endless loops of unsuccessful searches. I know which services need to be enabled.
 
Ok. I will attach all CBS log archive as soon as I arrive home. It's about 70 MB. There will be many fake errors due to me trying restoring WU catalog. I do not simply wish to waste your time checking something I have already checked. I narrowed down the problem to Windows Update not being able to determine, if SP was installed or not. SP1 comes with two updates, one contains prerequisites (if necessary), the other is actual SP1. Log reports that its catalogs and/or manifests are missing in component store. My guess is that SP1 uninstall backup removal feature recently added by MS to Cleanmgr did this. There is nothing wrong with WU itself.
 
Please disregard "cannot connect to service" errors. Until fix, I had to disable Wuauserv service.
 
Sorry for the delay.

I was hoping to find some more information out from the logs. Error message 80070490 can be a pain to track down, it is either an issue with the associated MUM file or associated .manifest file if its an easy solution. If not then it can refer to a missing registry key in the COMPONENTS hive.

When you ran SURT was there any errors in the CheckSUR/CheckSurPersitent logs? Normally on Win7 machine it is easier (than win 10 and win8) to find any of the above issues, as SURT is really good at identifying them.

We can manually check the hashes of the MUM file, it will take a bit longer to troubleshoot though. As for the manifest file, I can not see which component it refers to in the longs, this will have to be traced as well.

Can you please go into C:\Windows\servicing\Packages look for anything that starts with Package_for_KB976933* and upload them to your next post?

Also I cant see any recent SFC scans in these results? Could you please run SFC again and upload a new CBS log.
 
Thank you for still trying :-)

Both SFC and SURT came out empty (no errors to fix). I ran both of them at least thrice.

Can you please go into C:\Windows\servicing\Packages look for anything that starts with Package_for_KB976933*

Added them to Dropbox share.
 
The reason why I want the new SFC scan was just to see if it mentioned the potential corrupt manifest, either by it pointing to a certain component at some point or just a random reference to it :)
 
Hello sojkovec,

is there a particular update that will not install or are you unable to check for updates?
 
Hello,

the latter. Search for updates never ends, looping with fatal errors (logs posted already).
 
Ok, let's try resetting the Windows Update components.

Note that this will clear the update history, but the updates are still installed.

Run Windows Repairs
  1. Download Windows Repair (All-in-One) Portable to your desktop.
  2. Once the file is downloaded, right-click on the file on your desktop and choose Extract All...
    Extract.JPG
  3. Keep the defaults and click the Extract button.
  4. A folder named tweaking.com_windows_repair_aio will be extracted to the desktop. Once the extraction is complete the folder will open.
  5. Inside this folder, there is a folder named Tweaking.com - Windows Repair. Open this folder as well.
    Capture.JPG

  6. Double-click on Repair_Windows.exe to open. Note: Please make sure all of your programs are closed and anything you were working on is saved as we will be rebooting.
  7. When the program opens, click the Reboot to Safe Mode button at the bottom of the screen. Answer Yes to allow.
  8. Once rebooted into Safe Mode, open the program again. When the program opens, click the Repairs tab and click the Open Repairs button.
  9. A backup of your registry will be made. After a few moments you will have many options from which you can choose.
  10. Please click the Unselect All button and then click to enable only the following ones:

    17 - Repair Windows Updates

  11. Ensure the Restart check box is selected and click the Start Repairs button in the lower right of the screen. This may take some time to run so be patient.
    StartRepairsWithReboot.JPG
  12. Once the fixes are complete you will be prompted to restart your machine. Answer Yes.

After your machine has started into normal mode, wait about 10 minutes and then open Windows Update and click 'Check for Updates'.
This initial check will take a very long time, let it run to completion.
 

Has Sysnative Forums helped you? Please consider donating to help us support the site!

Back
Top