N-central Troubleshooting
Windows 10 Feature Update Fails to Install - Error "Failed to read encryption data from ESD"
Last Modified
Tue Dec 01 22:43 GMT 2020
Description
- ERROR Failed to read encryption data from ESD, ESD is possibly already decrypted, continuing. Exception: com.nable.agent.framework.PatchManagement.Installers.InstallerPhase.AnniversaryUpdate.EsdDecryptor.EsdReadException: Exception when reading ESD file: ---> System.SystemException: Failed to find ESD node in esd file body
[76] 2018-03-31 23:01:53,553 <<*>> ************************ Start Installing Anniversary Updates ************************[76] 2018-03-31 23:01:53,553 <<*>> ===>>> Initiated Windows upgrade: (a816cbaa-ac2b-4f64-821e-135fdc59022d) Feature update to Windows 10, version 1709[76] 2018-03-31 23:01:53,553 WARN AnniversaryUpdatesInstaller => Detected existing directory [C:\$WINDOWS.~BT\]. Installation may fail.[76] 2018-03-31 23:01:53,553 WARN Check registry: [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WIMMount\Mounted Images] - existing mount to [C:\$WINDOWS.~BT\] can cause failing upgrade with exit code 50.[76] 2018-03-31 23:01:53,600 ERROR Failed to read encryption data from ESD, ESD is possibly already decrypted, continuing. Exception: com.nable.agent.framework.PatchManagement.Installers.InstallerPhase.AnniversaryUpdate.EsdDecryptor.EsdReadException: Exception when reading ESD file: ---> System.SystemException: Failed to find ESD node in esd file body. at com.nable.agent.framework.PatchManagement.Installers.InstallerPhase.AnniversaryUpdate.EsdDecryptor.EsdDecryptor.GetEsdNode(XDocument body) at com.nable.agent.framework.PatchManagement.Installers.InstallerPhase.AnniversaryUpdate.EsdDecryptor.EsdDecryptor.DecryptEsd(String filename) --- End of inner exception stack trace --- at com.nable.agent.framework.PatchManagement.Installers.InstallerPhase.AnniversaryUpdate.EsdDecryptor.EsdDecryptor.DecryptEsd(String filename) at com.nable.agent.framework.PatchManagement.Installers.InstallerPhase.InstallerPhaseFunctionProvider.DecryptEsd(String esdFilePath)[76] 2018-03-31 23:24:12,735 <<*>> Anniversary Update Successful[76] 2018-03-31 23:24:12,735 <<*>> ************************ End Installing Anniversary Updates **************************
Environment
- N-able N-central
Solution
- There are 2 different errors here.
ERROR: ERROR Failed to read encryption data from ESD, ESD is possibly already decrypted, continuing. Exception: com.nable.agent.framework.PatchManagement.Installers.InstallerPhase.AnniversaryUpdate.EsdDecryptor.EsdReadException: Exception when reading ESD file: ---> System.SystemException: Failed to find ESD node in esd file body.
- This is just a around reading the ESD file, which is not encrypted for 1709.
- This can be ignored, related to bug NCPM-3108.
- The main problem here is:
Detected existing directory [C:\$WINDOWS.~BT\]. Installation may fail.
- Based on the logs it shows that the upgrade was successful.
- Installation failed with Error code 50 or 87.
- The reason is probably existing mounting to reserved location (C:\$WINDOWS.~BT\).
- Confirm the device did successfully upgrade, despite the errors.
- If the version was not upgraded, try to run installation later.
- If problems persists, check "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WIMMount\Mounted Images". Existing mounting can be unmounted by DISM command. Or just delete this key in registry if unmounting doesn't work.
- You can try and clean this up with the steps in the guide below
https://www.howtogeek.com/268667/what-is-the-windows.bt-folder-and-can-you-delete-it/
- For more information, see windows logging of feature updates:
- If the version was not upgraded, try to run installation later.