Windows Server 2016 Issue - Upgrade to 2019 Fails - DISM Error: Array Out of Bounds

llbcjosh

Member
Joined
Feb 19, 2025
Posts
9
I tried to run an in-place upgrade on my 2016 server to 2019 and it failed with the error "Failed in SAFE_OS phase with an error during REPLICATE_OS operation"

I have run this in-place upgrade on several of my other servers and this is the only one giving me any issues.

My first thought was to run DISM which gave me the "array out of bounds" error.

SFC found corrupted files but said it could not repair some of them.
 

Attachments

Hi @llbcjosh,

Welcome to Sysnative Forums!

If you haven't already, please review the posting instructions here, and attach the requested log files. Without log files, our helpers will not be able to assist, and this will slow down fixing your machine.

If logs have been already been provided, our team of volunteers will analyse the provided log files to build a fix for your system. Please be aware that this may take several days from your initial post, due to the high volume of threads that we receive.


- Sysnative Windows Update Team
 
Hello and welcome,

Follow the instructions below please.

Step 1:
WARNING! The following fix is specific to the user's system in this thread only. No one else should follow these instructions, as it could damage your system.
  • Download
    myjIXnC.png
    SFCFix and move the executable to your desktop.
  • Download the attachment SFCFix.zip and save it on your desktop.
  • Save any work you have open, and close all programs.
  • Drag the SFCFix.zip file over the SFCFix.exe executable and release it.
    1p8eDnI.gif
  • SFCFix will launch, let it complete.
  • Once done, a file will appear on your desktop, called SFCFix.txt.
  • Open the file, then copy and paste its content in your next reply.

Step 2:
Restart the machine.
Try the upgrade again and report the result.
If it fails, copy the file C:\Windows\Logs\CBS\cbs.log to your desktop.
Zip the copied file and attach the zipped cbs.log to your next reply.
 

Attachments

SFCFix version 3.0.2.1 by niemiro.
Start time: 2025-02-19 11:47:40.701
Microsoft Windows Server 10 Build 14393 - amd64
Using .zip script file at C:\Users\Administrator\Desktop\SFCFix.zip [0]




PowerCopy::
Successfully took permissions for file or folder C:\WINDOWS\winsxs\amd64_microsoft-windows-servicessnapin_31bf3856ad364e35_10.0.14393.0_none_fcd84e1f5c6d894a\services.lnk

Successfully copied file C:\Users\Administrator\AppData\Local\niemiro\Archive\amd64_microsoft-windows-servicessnapin_31bf3856ad364e35_10.0.14393.0_none_fcd84e1f5c6d894a\services.lnk to C:\WINDOWS\winsxs\amd64_microsoft-windows-servicessnapin_31bf3856ad364e35_10.0.14393.0_none_fcd84e1f5c6d894a\services.lnk.

Successfully restored ownership for C:\WINDOWS\winsxs\amd64_microsoft-windows-servicessnapin_31bf3856ad364e35_10.0.14393.0_none_fcd84e1f5c6d894a\services.lnk
Successfully restored permissions on C:\WINDOWS\winsxs\amd64_microsoft-windows-servicessnapin_31bf3856ad364e35_10.0.14393.0_none_fcd84e1f5c6d894a\services.lnk
PowerCopy:: directive completed successfully.




Successfully processed all directives.



Failed to generate a complete zip file. Upload aborted.


SFCFix version 3.0.2.1 by niemiro has completed.
Currently storing 1 datablocks.
Finish time: 2025-02-19 11:54:51.294
Script hash: ghFKz06YfWtP/KgMGVG2WWuSuzh1qBtcMz7rkyPgWJE=
----------------------EOF-----------------------
 
Provide the 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. Note: If you find that you need to reboot and are unable to because this is a server then try Option#2 below.
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 Gofile or WeTransfer and just provide the link here.


Option#2 (only if you are unable to follow the previous instructions)

  • Please download the Freeware RegBak from here: Acelogix Software - Download products
    You will find it at the bottom of the page that the link brings you to.
  • Go ahead and install this program and accept all the defaults. After the last install screen the program should open.
  • Click the New Backup button. Accept the defaults and simply click Start.
  • When it says Finished successfully, click the Close button.
  • This will bring you back to the main screen of the program. You will see one entry in this list with the date that you did it. Right-click on this line-item and select Explore Backup...
  • This will bring you into the folder where the backup was made. You should see a Users folder and a Windows folder along with a couple other files. Double-click on the Windows folder to open it. Then open the System32 folder and then config folder. You should see around 6 files in here, one of which is named COMPONENTS.
  • Copy the COMPONENTS file to your Desktop. If the COMPONENTS file does not exist, please fetch it instead from C:\Windows\System32\config\COMPONENTS.
  • Now right-click on the COMPONENTS file that is on your desktop and select Send to > Compressed (zipped) folder.
  • Then please upload the zip file (COMPONENTS.zip) to your favourite file sharing website (it will be too big to upload here). Examples of services to upload to are Gofile or WeTransfer and then just provide the link in your reply.
  • You can close any open windows you have as well as the RegBak program now.
 
WARNING! The following fix is specific to the user's system in this thread only. No one else should follow these instructions, as it could damage your system.
  • Download the attachment SFCFixScript.txt and save it on your desktop.
  • Save any work you have open, and close all programs.
  • Drag the SFCFixScript.txt file over the SFCFix.exe executable and release it.
    1p8eDnI.gif
  • SFCFix will launch, let it complete.
  • Once done, 2 files will appear on your desktop, called SFCFix.txt and Files.zip.
  • Attach both files to your next reply.
 

Attachments

Export registry as hive
  • Click on the Start button and in the search box, type regedit
  • When you see regedit on the list, right-click on it and select Run as administrator.
  • 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

  • Once selected, click File > Export....
  • Change the Save as type: to Registry Hive Files (*.*).
  • Name this file ComponentBasedServicing (with no file extension) and save it to your Desktop.
  • Right-click on the saved file and choose Send To -> Compressed (zipped) Folder.
  • Attach the .ZIP file to your next post.
  • If the file is too large to upload here, please upload to Gofile or WeTransfer and just provide the downloadlink here.
 
The hive is corrupted beyond repair. Do you have a system backup available ?
 
That's what I was afraid of. It's running on a VM and the VM replicates to another host, but it won't do much good, since the replication is just a 1:1 copy. I guess I will build a new VM and migrate all the roles over. I was hoping to avoid doing that, but I guess I have no other choice at this point. Thank you so much for all the help!
 
The only thing we can try is to use a copy of the CBS hive from one of your other servers but the outcome is unknown.
You do prefer to quit fixing this machine or continue ?
 
I have already upgraded my other servers to Server 2025. Would we be able to use the hive from it, since I have already updated it? If not the host is still running in Server 2016, could we use that one?
 
I have already upgraded my other servers to Server 2025. Would we be able to use the hive from it, since I have already updated it?
Absolutely not.

If not the host is still running in Server 2016, could we use that one?
Please provide that hive as you did in message #10 so I can have a look at it.
 

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

Back
Top