aws / amazon-ssm-agent

An agent to enable remote management of your EC2 instances, on-premises servers, or virtual machines (VMs).
https://aws.amazon.com/systems-manager/
Apache License 2.0
1.06k stars 326 forks source link

e000: Error 0x80070643: Failed to install MSI package #446

Open devopsmash opened 2 years ago

devopsmash commented 2 years ago

We are getting the following error

image

image

env: windows server 2019

log:

[26D8:0948][2022-05-22T10:20:46]i001: Burn v3.11.0.1701, Windows v10.0 (Build 17763: Service Pack 0), path: C:\Users\ADMINI~1\AppData\Local\Temp\1\{bla-7D89-bla-8DBF-bla}\.cr\AmazonSSMAgentSetup.exe
[26D8:0948][2022-05-22T10:20:46]i000: Initializing hidden variable 'CODE'
[26D8:0948][2022-05-22T10:20:46]i000: Initializing string variable 'ID' to value 'null'
[26D8:0948][2022-05-22T10:20:46]i000: Initializing string variable 'REGION' to value 'null'
[26D8:0948][2022-05-22T10:20:46]i000: Initializing string variable 'ALLOWEC2INSTALL' to value 'null'
[26D8:0948][2022-05-22T10:20:46]i000: Initializing string variable 'DELETESYMLINKSFORSSMFOLDER' to value 'no'
[26D8:0948][2022-05-22T10:20:46]i000: Initializing string variable 'SKIPSYMLINKSCAN' to value 'no'
[26D8:0948][2022-05-22T10:20:46]i009: Command Line: '-burn.clean.room=C:\Users\Administrator\Downloads\AmazonSSMAgentSetup.exe -burn.filehandle.attached=660 -burn.filehandle.self=728'
[26D8:0948][2022-05-22T10:20:46]i000: Setting string variable 'WixBundleOriginalSource' to value 'C:\Users\Administrator\Downloads\AmazonSSMAgentSetup.exe'
[26D8:0948][2022-05-22T10:20:46]i000: Setting string variable 'WixBundleOriginalSourceFolder' to value 'C:\Users\Administrator\Downloads\'
[26D8:0948][2022-05-22T10:20:46]i000: Setting string variable 'WixBundleLog' to value 'C:\Users\ADMINI~1\AppData\Local\Temp\Amazon_SSM_Agent_20220522102046.log'
[26D8:0948][2022-05-22T10:20:46]i052: Condition '((VersionNT >= v5.2) AND (ServicePackLevel >= 1)) OR (VersionNT >= v6.0)' evaluates to true.
[26D8:0948][2022-05-22T10:20:46]i000: Setting string variable 'WixBundleName' to value 'Amazon SSM Agent'
[26D8:0948][2022-05-22T10:20:46]i000: Setting string variable 'WixBundleManufacturer' to value 'Amazon Web Services'
[26D8:142C][2022-05-22T10:20:46]i000: Setting numeric variable 'WixStdBALanguageId' to value 1033
[26D8:142C][2022-05-22T10:20:46]i000: Setting version variable 'WixBundleFileVersion' to value '3.1.1374.0'
[26D8:0948][2022-05-22T10:20:46]i100: Detect begin, 2 packages
[26D8:0948][2022-05-22T10:20:46]i102: Detected related bundle: {bla-0c41-bla-9685-bla}, type: Upgrade, scope: PerMachine, version: 3.1.282.0, operation: MajorUpgrade
[26D8:0948][2022-05-22T10:20:46]i101: Detected package: AmazonSSMAgentMSI, state: Absent, cached: None
[26D8:0948][2022-05-22T10:20:46]i101: Detected package: AmazonSSMAgentMSI_32, state: Absent, cached: None
[26D8:0948][2022-05-22T10:20:46]i199: Detect complete, result: 0x0
[26D8:142C][2022-05-22T10:20:49]i000: Setting numeric variable 'EulaAcceptCheckbox' to value 1
[26D8:0948][2022-05-22T10:20:49]i200: Plan begin, 2 packages, action: Install
[26D8:0948][2022-05-22T10:20:49]i052: Condition 'VersionNT64' evaluates to true.
[26D8:0948][2022-05-22T10:20:49]i000: Setting string variable 'WixBundleRollbackLog_AmazonSSMAgentMSI' to value 'C:\Users\ADMINI~1\AppData\Local\Temp\Amazon_SSM_Agent_20220522102046_000_AmazonSSMAgentMSI_rollback.log'
[26D8:0948][2022-05-22T10:20:49]i000: Setting string variable 'WixBundleLog_AmazonSSMAgentMSI' to value 'C:\Users\ADMINI~1\AppData\Local\Temp\Amazon_SSM_Agent_20220522102046_000_AmazonSSMAgentMSI.log'
[26D8:0948][2022-05-22T10:20:49]i052: Condition 'NOT VersionNT64' evaluates to false.
[26D8:0948][2022-05-22T10:20:49]i201: Planned package: AmazonSSMAgentMSI, state: Absent, default requested: Present, ba requested: Present, execute: Install, rollback: Uninstall, cache: Yes, uncache: No, dependency: Register
[26D8:0948][2022-05-22T10:20:49]i201: Planned package: AmazonSSMAgentMSI_32, state: Absent, default requested: Absent, ba requested: Absent, execute: None, rollback: None, cache: No, uncache: No, dependency: None
[26D8:0948][2022-05-22T10:20:49]i207: Planned related bundle: {bla-0c41-409e-bla-bla}, type: Upgrade, default requested: Absent, ba requested: Absent, execute: Uninstall, rollback: Install, dependency: None
[26D8:0948][2022-05-22T10:20:49]i299: Plan complete, result: 0x0
[26D8:0948][2022-05-22T10:20:49]i300: Apply begin
[26D8:0948][2022-05-22T10:20:49]i010: Launching elevated engine process.
[26D8:0948][2022-05-22T10:20:49]i011: Launched elevated engine process.
[26D8:0948][2022-05-22T10:20:49]i012: Connected to elevated engine.
[1DD4:1418][2022-05-22T10:20:49]i358: Pausing automatic updates.
[1DD4:1418][2022-05-22T10:20:49]i359: Paused automatic updates.
[1DD4:1418][2022-05-22T10:20:49]i360: Creating a system restore point.
[1DD4:1418][2022-05-22T10:20:49]i362: System restore disabled, system restore point not created.
[1DD4:1418][2022-05-22T10:20:49]i370: Session begin, registration key: SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{6239eba2-3288-45ad-9144-d0ccde1e4839}, options: 0x7, disable resume: No
[1DD4:1418][2022-05-22T10:20:49]i000: Caching bundle from: 'C:\Users\ADMINI~1\AppData\Local\Temp\1\{bla-A532-bla-A328-bla}\.be\AmazonSSMAgentSetup.exe' to: 'C:\ProgramData\Package Cache\{6239eba2-3288-45ad-9144-d0ccde1e4839}\AmazonSSMAgentSetup.exe'
[1DD4:1418][2022-05-22T10:20:49]i320: Registering bundle dependency provider: {bla-3288-bla-9144-bla}, version: 3.1.1374.0
[1DD4:1418][2022-05-22T10:20:49]i371: Updating session, registration key: SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{bla-3288-bla-9144-bla}, resume: Active, restart initiated: No, disable resume: No
[1DD4:1B4C][2022-05-22T10:20:49]i305: Verified acquired payload: AmazonSSMAgentMSI at path: C:\ProgramData\Package Cache\.unverified\AmazonSSMAgentMSI, moving to: C:\ProgramData\Package Cache\{bla-52E1-bla-AE8F-bla}v3.1.1374.0\AmazonSSMAgent.msi.
[1DD4:1418][2022-05-22T10:20:49]i323: Registering package dependency provider: {bla-52E1-bla-AE8F-bla}, version: 3.1.1374.0, package: AmazonSSMAgentMSI
[1DD4:1418][2022-05-22T10:20:49]i301: Applying execute package: AmazonSSMAgentMSI, action: Install, path: C:\ProgramData\Package Cache\{bla-52E1-bla-AE8F-bla}v3.1.1374.0\AmazonSSMAgent.msi, arguments: ' ARPSYSTEMCOMPONENT="1" MSIFASTINSTALL="7" CODE="*****" ID="null" REGION="null" ALLOWEC2INSTALL="null" DELETESYMLINKSFORSSMFOLDER="no" SKIPSYMLINKSCAN="no"'
[1DD4:1418][2022-05-22T10:20:51]e000: Error 0x80070643: Failed to install MSI package.
[1DD4:1418][2022-05-22T10:20:51]e000: Error 0x80070643: Failed to execute MSI package.
[26D8:0948][2022-05-22T10:20:51]e000: Error 0x80070643: Failed to configure per-machine MSI package.
[26D8:0948][2022-05-22T10:20:51]i319: Applied execute package: AmazonSSMAgentMSI, result: 0x80070643, restart: None
[26D8:0948][2022-05-22T10:20:51]e000: Error 0x80070643: Failed to execute MSI package.
[1DD4:1418][2022-05-22T10:20:51]i318: Skipped rollback of package: AmazonSSMAgentMSI, action: Uninstall, already: Absent
[26D8:0948][2022-05-22T10:20:51]i319: Applied rollback package: AmazonSSMAgentMSI, result: 0x0, restart: None
[1DD4:1418][2022-05-22T10:20:51]i329: Removed package dependency provider: {bla-52E1-bla-AE8F-bla}, package: AmazonSSMAgentMSI
[1DD4:1418][2022-05-22T10:20:51]i351: Removing cached package: AmazonSSMAgentMSI, from path: C:\ProgramData\Package Cache\{bla-52E1-bla-AE8F-bla}v3.1.1374.0\
[1DD4:1418][2022-05-22T10:20:51]i372: Session end, registration key: SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{6239eba2-3288-45ad-9144-d0ccde1e4839}, resume: None, restart: None, disable resume: No
[1DD4:1418][2022-05-22T10:20:51]i330: Removed bundle dependency provider: {bla-3288-bla-9144-bla}
[1DD4:1418][2022-05-22T10:20:51]i352: Removing cached bundle: {bla-3288-bla-9144-bla}, from path: C:\ProgramData\Package Cache\{bla-3288-bla-9144-bla}\
[1DD4:1418][2022-05-22T10:20:51]i371: Updating session, registration key: SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{bla-3288-bla-9144-bla}, resume: None, restart initiated: No, disable resume: No
[26D8:0948][2022-05-22T10:20:52]i399: Apply complete, result: 0x80070643, restart: None, ba requested restart:  No
Gyaneswari commented 2 years ago

Hi, I am getting the same error, any resolution.

Thanks in Advance

ShibbyRJ commented 2 years ago

This happened to me after a launched an new instance from my own AMI.

To get the installer to work, I had to delete the contents of the hidden folder C:\ProgramData\Amazon\SSM

Mohanvamc9 commented 1 year ago

Hi team, Did we get any resolution or still its an open question left?

multizone-uk commented 1 year ago

Same issue, 0x80070643, Server 2019, t3.small, can't reinstall, can't install latest following this documentation : https://docs.aws.amazon.com/systems-manager/latest/userguide/sysman-install-win.html

At a bit of a loss now how to try to get SSM agent working again enough that I can use it for fleet manager. Original version was 3.1.1732.0. LAtest would appear to be 3.2.532.0.

benjaminsucasaire commented 1 year ago

gracias @ShibbyRJ , funciono en mi caso

multizone-uk commented 1 year ago

I was able to deploy todays release, after deleting the hidden folder C:\ProgramData\Amazon\SSM as suggested above