What's new

[SOLVED] "The configuration registry database is corrupt."

akinet

New member
Joined
Jan 9, 2019
Messages
4
Hi.

My problems started when I tried to update Windows 10 with KB4134660 y KB4033631 and I received error 0x800703f1 for both of them. I tried to execute "Windows10UpgraderApp.exe" and the download and upgrade (from 15063 to 16299) process seemed to work fine but after reboot it shows that and error was found and it was necessary to return to previous version. I have retry this process several times but with same result.

Then I started to investigate this situation and finally I found that the "component store" was damaged:
Code:
PS C:\WINDOWS\system32> Dism /Online /Cleanup-Image /CheckHealth /english

Deployment Image Servicing and Management tool
Version: 10.0.15063.0

Image Version: 10.0.15063.0

The component store is repairable.
The operation completed successfully.

But it was repairable.
But when I tried to repair:
Code:
PS C:\WINDOWS\system32> Dism /Online /Cleanup-Image /RestoreHealth /english
Deployment Image Servicing and Management tool
Version: 10.0.15063.0

Image Version: 10.0.15063.0

[==                         4.5%                           ]
Error: 1009

The configuration registry database is corrupt.

The DISM log file can be found at C:\WINDOWS\Logs\DISM\dism.log

Reviewing dism.log found this errors:
Code:
2019-01-09 18:42:53, Error                 DISM   DISM Package Manager: PID=13672 TID=10992 Failed finalizing changes. - CDISMPackageManager::Internal_Finalize(hr:0x800703f1)
2019-01-09 18:42:53, Error                 DISM   DISM Package Manager: PID=13672 TID=10992 Failed processing package changes with session option CbsSessionOptionRepairStoreCorruption - CDISMPackageManager::RestoreHealth(hr:0x800703f1)
2019-01-09 18:42:53, Error                 DISM   DISM Package Manager: PID=13672 TID=10992 Failed to restore the image health. - CPackageManagerCLIHandler::ProcessCmdLine_CleanupImage(hr:0x800703f1)
2019-01-09 18:42:53, Error                 DISM   DISM Package Manager: PID=13672 TID=10992 Failed while processing command cleanup-image. - CPackageManagerCLIHandler::ExecuteCmdLine(hr:0x800703f1)
2019-01-09 18:42:53, Info                  DISM   DISM Package Manager: PID=13672 TID=10992 Further logs for online package and feature related operations can be found at %WINDIR%\logs\CBS\cbs.log - CPackageManagerCLIHandler::ExecuteCmdLine
2019-01-09 18:42:53, Error                 DISM   DISM.EXE: DISM Package Manager processed the command line but failed. HRESULT=800703F1

And reviewing cbs.log I found:
Code:
2019-01-09 18:42:53, Error                 CBS    Session: 30713922_3116442048 failed to perform store corruption detect and repair operation. [HRESULT = 0x800703f1 - ERROR_BADDB]

After this I was totally missed but I found this forum. I started to follow the "Windows Update Forum Posting Instructions" and found that sfc /scannow is reporting "Windows Resource Protection could not perform the requested operation". Then I downloaded sfcfix and this is the log output:
Code:
SFCFix version 3.0.1.0 by niemiro.
Start time: 2019-01-09 12:42:59.621
Microsoft Windows 10 Build 15063 - amd64
Not using a script file.




AutoAnalysis::
WARNING: Failed to check store directories with return code 1 and error code ERROR_FILE_NOT_FOUND. COMPONENTS hive may be corrupt.


WARNING: Components hive failed load test and may be corrupt.


WARNING: Components hive failed final reload test with error code ERROR_BADDB and may be corrupt.





SUMMARY: No corruptions were detected.
AutoAnalysis:: directive completed successfully.




Successfully processed all directives.



Failed to process registry database in location 1.
Failed to load registry hive C:\WINDOWS\System32\config\COMPONENTS into key HKEY_LOCAL_MACHINE\COMPONENTS with error code ERROR_BADDB.

Failed to process registry database in location 2 with error code ERROR_FILE_NOT_FOUND.
WARNING: Failed to process registry database in location 3 with error code ERROR_INVALID_HANDLE.
Failed to process registry database in location 4 with error code ERROR_INVALID_HANDLE.
Failed to process registry database in location 4 with error code ERROR_FILE_NOT_FOUND.
Failed to process registry database in location 4 with error code ERROR_FILE_NOT_FOUND.
Failed to process registry database in location 4 with error code ERROR_FILE_NOT_FOUND.


SFCFix version 3.0.1.0 by niemiro has completed.
Currently storing 0 datablocks.
Finish time: 2019-01-09 12:57:39.911
----------------------EOF-----------------------

I have attached CBS.zip file

I hope you can guide me towards a solution to this problem.
Thanks in advance.
 

Attachments

softwaremaniac

Moderator, BSOD Kernel Dump Expert, Windows Update Instructor
Staff member
Joined
Oct 9, 2014
Messages
18,437
Location
Croatia
Hello and welcome!

Retrieve Components Hive
1. Navigate to C:\Windows\System32\Config and locate the COMPONENTS file.
2. Please copy this file to your desktop.
Note: If you receive an error that this file is in-use, simply reboot your computer and try again.
3. Right-click on this file on your desktop and select Send To...Compressed (zipped) folder. This will create a file named COMPONENTS.ZIP on your desktop.
4. The file will likely be too large to upload here so please upload to a file sharing service and just provide the link here.
 

softwaremaniac

Moderator, BSOD Kernel Dump Expert, Windows Update Instructor
Staff member
Joined
Oct 9, 2014
Messages
18,437
Location
Croatia
Step 1 - Replace Components Hive Manually

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 COMPONENTS.RAR and save to your desktop.
  2. Right-click on it and select Extract all.... Make sure the "Show extracted files when complete" is checked and click Extract.
  3. Now we have the COMPONENTS file that we will be using to replace your current one.
  4. Navigate to C:\Windows\System32\config
  5. Right-click on the current COMPONENTS file and select rename. Rename it to COMPONENTS.bad.
    Note: If you get an error that the file is in use, reboot your computer and then try again.
  6. Take the file from the Components folder on your desktop and paste it into C:\Windows\System32\config




Step#2 - DISM /RestoreHealth Scan
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. Right-click on the Start button and select Command Prompt (Admin)
  2. When command prompt opens, Copy (Ctrl+C) and Paste (Right-click > Paste) the following command into it, then press Enter
    Dism /Online /Cleanup-Image /RestoreHealth
  3. Once it finishes, copy and paste the following into the command-prompt window and press Enter. If prompted to overwrite the existing file go ahead.
    copy %windir%\logs\cbs\cbs.log "%userprofile%\Desktop\cbs.txt"
  4. Once this has completed please go to your Desktop and you will find CBS.txt => Please zip/upload to this thread.
    Please Note:: if the file is too big (over 7MB) to upload to your next post, please upload via a service such as Dropbox or One Drive or SendSpace and just provide the link.
 

softwaremaniac

Moderator, BSOD Kernel Dump Expert, Windows Update Instructor
Staff member
Joined
Oct 9, 2014
Messages
18,437
Location
Croatia
Great! Is there anything else you need my assistance with?
 

akinet

New member
Joined
Jan 9, 2019
Messages
4
I have update Windows to version 10.0.16299.904 without problems.
At this moment, I am installing last security patches and everything is working fine.

Thanks a lot for your help.

Regards.
 
Top