Windows 7 automatic updates fail with code 80073712

SnijtraM

Member
Joined
Feb 13, 2015
Posts
9
Hello everyone, I'd appreciate if somebody can help me out on this.

Problem:

The following updates keep failing:
1) Security Update for Windows 7 for x64-based Systems (KB2871997)
2) Security Update for Windows 7 for x64-based Systems (KB3004375)
3) Security Update for Windows 7 for x64-based Systems (KB3031432)

Symptoms are different for the packages:
1) appears to install correctly, but after re-checking for updates it comes back asif it had not been installed
2) and 3) fail with code 80073712
I'm not 100% sure if the symptoms are related but I think they are;

Until now, tried the following methods:
- Ran sfc /scannow
- Ran System Update Readiness Tool (v34)
- Purging C:\Windows\SoftwareDistribution\DataStore and Download, while temporarily stopping the Windows Update service
- Uninstalled all installed update packages since June 2014, then ran update again to reinstall them

As instructed, I ran SFCFix, generating the following output:

-------------------------------------------------
SFCFix version 2.4.2.1 by niemiro.
Start time: 2015-02-13 18:54:05.205
Microsoft Windows 7 Service Pack 1 - amd64
Not using a script file.




AutoAnalysis::
SUMMARY: Some corruptions could not be fixed automatically. Seek advice from helper or sysnative.com.
CBS & SFC total detected corruption count: 0
CBS & SFC total unimportant corruption count: 0
CBS & SFC total fixed corruption count: 0
SURT total detected corruption count: 3
SURT total unimportant corruption count: 0
SURT total fixed corruption count: 0
AutoAnalysis:: directive completed successfully.




Successfully processed all directives.
SFCFix version 2.4.2.1 by niemiro has completed.
Currently storing 1 datablocks.
Finish time: 2015-02-13 19:10:21.780
----------------------EOF-----------------------

I was unable to upload cbs.zip, it seems that that is way too big to attach here.
Does somebody know what I should do, or what information is needed?

Thanks in advance
Martijn
 

Attachments

Hello Martijn, welcome to Sysnative!

Your CheckSUR log has identified two issues here - missing files and a registry problem. This will deal with the missing files and then we'll deal with the registry afterwards:

SFCFix Script

Warning: this fix is specific to the user in this thread. No one else should follow these instructions as it may cause more harm than good. If you are after assistance, please start a thread of your own.

  1. Download SFCFix.exe (by niemiro) and save this to your Desktop.
  2. Download the file below, SFCFix.zip, and save this to your Desktop. Ensure that this file is named SFCFix.zip - do not rename it.
  3. Save any open documents and close all open windows.
  4. On your Desktop, you should see two files: SFCFix.exe and SFCFix.zip.
  5. Drag the file SFCFix.zip onto the file SFCFix.exe and release it.
  6. SFCFix will now process the script.
  7. Upon completion, a file should be created on your Desktop: SFCFix.txt.
  8. Copy (Ctrl+C) and Paste (Ctrl+V) the contents of this file into your next post for me to analyse please - put [CODE][/CODE] tags around the log to break up the text.

https://dl.dropboxusercontent.com/u/16537616/Fixes/SFCFix/Scripts/SnijtraM/SFCFix.zip

SFC Scan

  1. Click on the Start
    Start%20Orb.jpg
    button and in the search box, type Command Prompt
  2. When you see Command Prompt on the list, right-click on it and select Run as administrator
  3. When command prompt opens, copy and paste the following commands into it, press enter after each

    sfc /scannow

    Wait for this to finish before you continue

    copy %windir%\logs\cbs\cbs.log "%userprofile%\Desktop\cbs.txt"

  4. This will create a file, cbs.txt on your Desktop. Please attach this to your next post.

Also, please re-run the System Update Readiness Tool and post the log:

C:\Windows\Logs\CBS\CheckSUR.persist.log

Tom
 
Hi Tom,

Thank you for replying so quickly.

Here's the scifix log:
Code:
SFCFix version 2.4.2.1 by niemiro.
Start time: 2015-02-14 12:05:15.328
Microsoft Windows 7 Service Pack 1 - amd64
Using .zip script file at C:\Users\Martijn\Downloads\SFCFix.zip [0]




PowerCopy::
Successfully took permissions for file or folder C:\Windows\winsxs\amd64_microsoft-windows-n..ider-infrastructure_31bf3856ad364e35_6.1.7600.16385_none_0812326fa8e1ed67
Successfully took permissions for file or folder C:\Windows\winsxs\amd64_microsoft-windows-n..g-napclientconfigui_31bf3856ad364e35_6.1.7600.16385_none_d1970936599a941a

Successfully copied file C:\Users\Martijn\AppData\Local\niemiro\Archive\winsxs\amd64_microsoft-windows-n..ider-infrastructure_31bf3856ad364e35_6.1.7600.16385_none_0812326fa8e1ed67\NapiNSP.dll to C:\Windows\winsxs\amd64_microsoft-windows-n..ider-infrastructure_31bf3856ad364e35_6.1.7600.16385_none_0812326fa8e1ed67\NapiNSP.dll.
Successfully copied file C:\Users\Martijn\AppData\Local\niemiro\Archive\winsxs\amd64_microsoft-windows-n..g-napclientconfigui_31bf3856ad364e35_6.1.7600.16385_none_d1970936599a941a\napdsnap.dll to C:\Windows\winsxs\amd64_microsoft-windows-n..g-napclientconfigui_31bf3856ad364e35_6.1.7600.16385_none_d1970936599a941a\napdsnap.dll.

Successfully restored ownership for C:\Windows\winsxs\amd64_microsoft-windows-n..ider-infrastructure_31bf3856ad364e35_6.1.7600.16385_none_0812326fa8e1ed67
Successfully restored permissions on C:\Windows\winsxs\amd64_microsoft-windows-n..ider-infrastructure_31bf3856ad364e35_6.1.7600.16385_none_0812326fa8e1ed67
Successfully restored ownership for C:\Windows\winsxs\amd64_microsoft-windows-n..g-napclientconfigui_31bf3856ad364e35_6.1.7600.16385_none_d1970936599a941a
Successfully restored permissions on C:\Windows\winsxs\amd64_microsoft-windows-n..g-napclientconfigui_31bf3856ad364e35_6.1.7600.16385_none_d1970936599a941a
PowerCopy:: directive completed successfully.




Successfully processed all directives.
SFCFix version 2.4.2.1 by niemiro has completed.
Currently storing 3 datablocks.
Finish time: 2015-02-14 12:05:15.724
Script hash: PK/SK9+URPkzrc5p3YfHYjnYsfhybPUx4zmU2LUQVfo=
----------------------EOF-----------------------

Then, ran sfc /scannow in an elevated prompt.
CBS.TXT is attached.

Then, re-ran system update readiness tool.
This ran without messages, I attached CheckSUR.persist.log.

I've disabled automatic updates for now, is there a problem if I retry it (is it worth trying)?

Martijn
 

Attachments

Hi Martijn,

Looks good!

Code:
=================================
Checking System Update Readiness.
Binary Version 6.1.7601.22471
Package Version 26.0
2015-02-14 12:16

Checking Windows Servicing Packages

Checking Package Manifests and Catalogs

Checking Package Watchlist

Checking Component Watchlist

Checking Packages

Checking Component Store
(f)	CSI C Mark Deployment Missing	0x00000000	c!windowsfoundation_31bf3856ad64e35_6.1.7600.16385_5f2ecc1aaa4ac3b2	amd64_microsoft-windows-ntdll_31bf3856ad364e35_6.1.7600.16385_none_b4cbcfe915deb2bd	

Summary:
Seconds executed: 255
 Found 1 errors
  CSI C Mark Deployment Missing Total count: 1

For this error, would you mind uploading your components hive for me please?

C:\Windows\system32\config\COMPONENTS

Zip it up and upload it to Dropbox, OneDrive or wherever you want - it will be too big to attach here.

Tom

P.S. As for automatic updates, updates may be able to install now, but it's best to play it safe and keep it disabled until we fix this last little error.
 
Hi Martijn,

Perfect! This is a nice simple fix. Open your start menu and search for regedit, click on HKEY_LOCAL_MACHINE to select it then click File > Load Hive... then load the file C:\Windows\system32\config\COMPONENTS and load it under the name: COMPONENTS . Press Ctrl+F to bring up the find window, then search for b4cbcfe915deb2bd. This should bring you to the key amd64_microsoft-windows-ntdll_31bf3856ad364e35_6.1.7600.16385_none_b4cbcfe915deb2bd. There should be 5 values under this, delete the one named:

c!windowsfoundation_31bf3856ad!!64e35_6.1.7600.16385_5f2ecc1aaa4ac3b2

Note the !! in the filename and make sure you delete that one! If you're unsure at any point, please ask :)

When you've done that, run the SURT again and post the log: C:\Windows\Logs\CBS\CheckSUR.persist.log

You can also try updating now - it should work!

Tom
 
Hi Tom,

The registry fix was simple, I could find the entry with the double exclamation mark, ChcekSUR.log looks fine:
Code:
=================================
Checking System Update Readiness.
Binary Version 6.1.7601.22471
Package Version 26.0
2015-02-15 09:28

Checking Windows Servicing Packages

Checking Package Manifests and Catalogs

Checking Package Watchlist

Checking Component Watchlist

Checking Packages

Checking Component Store

Summary:
Seconds executed: 265
 No errors detected

Unfortunately the exact same failures come back :huh:.
Some details:
- I found and removed the specific value that has a double exclamation mark in its name. Did this while having loaded C:\Windows\System32\config\COMPONENTS as COMPONENTS under HKEY_LOCAL_MACHINE.
Checked this again just now, now the key has 4 values, one of which is named "c!windowsfoundation_31bf3856ad364e35_6.1.7600.16385_5f2ecc1aaa4ac3b2" which I had left alone.
- I made sure to unload the hive before closing regedit
- Then rebooted
- Then manually ran Windows update, problems appeared again
- Stopped the Windows update service and cleaned out C:\Windows\SoftwareDistribution\DataStore and C:\Windows\SoftwareDistribution\Download again, started it back up
- Ran Windows update again, still no luck

I have uploaded the latest CBS.log to Dropbox:
https://www.dropbox.com/s/bd0wjx0fuz5lbro/CBS.zip?dl=0

Any clues?

Martijn
 
Hmm I can no longer edit the previous post. I was going to say:

Meanwhile, tried 2 other things:
- Memory test: completed with no problems
- Uninstalled EMET 5.0, suspended Avast free antivirus shields (2015.10.0.2208), restarted Windows Update service, retried install -> no success
 
Hi Martijn,

Yeah it looks like we've still got a problem:

Code:
2015-02-15 09:48:38, Error                 CSI    00000015@2015/2/15:08:48:38.091 (F) d:\win7sp1_gdr\base\wcp\componentstore\storelayout.cpp(3976): Error STATUS_SXS_COMPONENT_STORE_CORRUPT originated in function ComponentStore::CRawStoreLayout::QueryMarksOnTopLevelComponent expression: (null)
[gle=0x80004005]
2015-02-15 09:48:38, Error                 CSI    00000016 (F) HRESULT_FROM_WIN32(14098) #49522# from Windows::ServicingAPI::CCSITransactionAnalysis_ICSIInventory::EnumDeploymentReferences(flags = 00000003, tlcid = @0xe30890, pszSubscription = (null), pszCodebase = (null))
[gle=0x80073712]
2015-02-15 09:48:38, Info                  CBS    Failed to call EnumDeploymentReferences on deployment: amd64_c4861d635189a7cabac3e380ad0cc01f_31bf3856ad364e35_6.1.7601.18015_none_9a2b3fda321216ec [HRESULT = 0x80073712 - ERROR_SXS_COMPONENT_STORE_CORRUPT]
2015-02-15 09:48:38, Info                  CBS    Failed to load deployment owners for deployment: amd64_c4861d635189a7cabac3e380ad0cc01f_31bf3856ad364e35_6.1.7601.18015_none_9a2b3fda321216ec. [HRESULT = 0x80073712 - ERROR_SXS_COMPONENT_STORE_CORRUPT]
2015-02-15 09:48:38, Info                  CBS    Failed to load component owners on component: wow64_microsoft-windows-kernel32_31bf3856ad364e35_0.0.0.0_none_1e0b20c48b33f815, version: 6.1.7601.18015 [HRESULT = 0x80073712 - ERROR_SXS_COMPONENT_STORE_CORRUPT]
2015-02-15 09:48:38, Info                  CBS    Failed to load current component state [HRESULT = 0x80073712 - ERROR_SXS_COMPONENT_STORE_CORRUPT]
2015-02-15 09:48:38, Info                  CBS    Failed to find or add the component family [HRESULT = 0x80073712 - ERROR_SXS_COMPONENT_STORE_CORRUPT]
2015-02-15 09:48:38, Info                  CBS    ComponentAnalyzerEvaluateSelfUpdate call failed. [HRESULT = 0x80073712 - ERROR_SXS_COMPONENT_STORE_CORRUPT]
2015-02-15 09:48:38, Info                  CBS    Failed to evaluate self update [HRESULT = 0x80073712 - ERROR_SXS_COMPONENT_STORE_CORRUPT]
2015-02-15 09:48:38, Info                  CBS    Failed to evaluate non detect parent update [HRESULT = 0x80073712 - ERROR_SXS_COMPONENT_STORE_CORRUPT]
2015-02-15 09:48:38, Info                  CBS    Failed to evaluate non parent [HRESULT = 0x80073712 - ERROR_SXS_COMPONENT_STORE_CORRUPT]
2015-02-15 09:48:38, Info                  CBS    failed to evaluate single applicability [HRESULT = 0x80073712 - ERROR_SXS_COMPONENT_STORE_CORRUPT]
2015-02-15 09:48:38, Info                  CBS    Failed to evaluate applicability [HRESULT = 0x80073712 - ERROR_SXS_COMPONENT_STORE_CORRUPT]
2015-02-15 09:48:38, Info                  CBS    Failed to get applicability on updates [HRESULT = 0x80073712 - ERROR_SXS_COMPONENT_STORE_CORRUPT]
2015-02-15 09:48:38, Error                 CBS    Failed to call external evaluate applicability on package: Package_2_for_KB2872339~31bf3856ad364e35~amd64~~6.1.1.1, Update: Trigger_1 [HRESULT = 0x80073712 - ERROR_SXS_COMPONENT_STORE_CORRUPT]
2015-02-15 09:48:38, Info                  CBS    Failed to evaluate external applicability for package update: 2872339-45_neutral_PACKAGE [HRESULT = 0x80073712 - ERROR_SXS_COMPONENT_STORE_CORRUPT]
2015-02-15 09:48:38, Error                 CBS    Failed to call external evaluate applicability on package: Package_for_KB2872339_SP1~31bf3856ad364e35~amd64~~6.1.1.1, Update: 2872339-45_neutral_PACKAGE [HRESULT = 0x80073712 - ERROR_SXS_COMPONENT_STORE_CORRUPT]
2015-02-15 09:48:38, Info                  CBS    Failed to evaluate external applicability for package update: 2872339-53_neutral_PACKAGE [HRESULT = 0x80073712 - ERROR_SXS_COMPONENT_STORE_CORRUPT]
2015-02-15 09:48:38, Error                 CBS    Failed to call external evaluate applicability on package: Package_for_KB2872339~31bf3856ad364e35~amd64~~6.1.1.1, Update: 2872339-53_neutral_PACKAGE [HRESULT = 0x80073712 - ERROR_SXS_COMPONENT_STORE_CORRUPT]

I've got to head to lectures now but I'll reply to this later on.

Tom
 
Hi Martijn,

I've had a look around and can't find anything significant so I'd like some more pieces of information please:

Export registry as hive

  1. Click on the Start
    Start%20Orb.jpg
    button and in the search box, type regedit
  2. When you see regedit on the list, right-click on it and select Run as administrator
  3. When regedit opens, using the left pane, navigate to the following registry key and select it by clicking on it once.

    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\SideBySide

  4. Once selected, click File > Export....
  5. Change the Save as type: to Registry Hive Files (*.*)
  6. Name this file SBS (with no file extension) and save it to your Desktop.

Export registry as hive

  1. Click on the Start
    Start%20Orb.jpg
    button and in the search box, type regedit
  2. When you see regedit on the list, right-click on it and select Run as administrator
  3. When regedit opens, using the left pane, navigate to the following registry key and select it by clicking on it once.

    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Component Based Servicing

  4. Once selected, click File > Export....
  5. Change the Save as type: to Registry Hive Files (*.*)
  6. Name this file CBS (with no file extension) and save it to your Desktop.

Zip up these two files and upload them for me please :)

Tom
 
Hi Martijn,

I've been looking at your files over and over and can't see anything out of the ordinary. It's in a place of the registry that we don't know much about so this could be a difficult fix. Before I ask the others for help on this one, would you mind reuploading your COMPONENTS hive please? There's a reference in your CBS log to a key in your COMPONENTS hive and I'm just hoping that's the root of this problem - it's a long shot but worth trying.

Tom
 
Hi Martijn,

Sorry for the further delay, I've been swamped with exams and coursework over the past few weeks and haven't had much spare time.

I've looked at this over and over again and just can't see what's wrong - the CBS log is renowned for being poor at documenting the exact location of a problem. This is an error I've never seen before and have had to look everywhere I can think of and nothing seems out of the ordinary.

I'm afraid there's nothing left we can try but to go ahead with a repair install:

https://www.sysnative.com/forums/wi...-install-windows-windows-7-windows-vista.html

Sorry I couldn't have been of more help, I know this isn't the outcome you were hoping for.

Tom
 
Back
Top