CheckMK setup agent ended prematurely because of an error

Agent version 2.2 or 2.0:
OS version: Windows Server 2022

Stopped receiving CheckMK agent data from one of our servers (No change to network). I attempted the normal troubleshooting i.e restarting checkMK service, re-registering agent (successfully) but nothing fixed the problem. I then tried to uninstall the agent which wouldn’t allow me to do so and I ended up removing the app manually. I believe I have removed all files, directories and registry entries for the agent and service but I am still unable to reinstall the agent via MSI. Receive the “CheckMK setup agent ended prematurely because of an error.” message.

Has anybody come across this issue or have any idea’s what the fix may be?

Verbose msi installation log -

=== Verbose logging started: 19/12/2024  15:13:21  Build type: SHIP UNICODE 5.00.10011.00  Calling process: C:\Windows\System32\msiexec.exe ===
MSI (c) (84:2C) [15:13:21:433]: Font created.  Charset: Req=0, Ret=0, Font: Req=MS Shell Dlg, Ret=MS Shell Dlg

MSI (c) (84:2C) [15:13:21:433]: Font created.  Charset: Req=0, Ret=0, Font: Req=MS Shell Dlg, Ret=MS Shell Dlg

MSI (c) (84:F8) [15:13:21:449]: Resetting cached policy values
MSI (c) (84:F8) [15:13:21:449]: Machine policy value 'Debug' is 0
MSI (c) (84:F8) [15:13:21:449]: ******* RunEngine:
           ******* Product: C:\Users\jonroot\Desktop\Agent\check-mk-agent-2.2.0p36-8c6aa8c5a6bbec11.msi
           ******* Action: 
           ******* CommandLine: **********
MSI (c) (84:F8) [15:13:21:449]: Machine policy value 'DisableUserInstalls' is 0
MSI (c) (84:F8) [15:13:21:449]: SOFTWARE RESTRICTION POLICY: Verifying package --> 'C:\Users\jonroot\Desktop\Agent\check-mk-agent-2.2.0p36-8c6aa8c5a6bbec11.msi' against software restriction policy
MSI (c) (84:F8) [15:13:21:449]: Note: 1: 2262 2: DigitalSignature 3: -2147287038 
MSI (c) (84:F8) [15:13:21:449]: SOFTWARE RESTRICTION POLICY: C:\Users\jonroot\Desktop\Agent\check-mk-agent-2.2.0p36-8c6aa8c5a6bbec11.msi is not digitally signed
MSI (c) (84:F8) [15:13:21:449]: SOFTWARE RESTRICTION POLICY: C:\Users\jonroot\Desktop\Agent\check-mk-agent-2.2.0p36-8c6aa8c5a6bbec11.msi is permitted to run at the 'unrestricted' authorization level.
MSI (c) (84:F8) [15:13:21:449]: Cloaking enabled.
MSI (c) (84:F8) [15:13:21:449]: Attempting to enable all disabled privileges before calling Install on Server
MSI (c) (84:F8) [15:13:21:464]: End dialog not enabled
MSI (c) (84:F8) [15:13:21:464]: Original package ==> C:\Users\jonroot\Desktop\Agent\check-mk-agent-2.2.0p36-8c6aa8c5a6bbec11.msi
MSI (c) (84:F8) [15:13:21:464]: Package we're running from ==> C:\Users\jonroot\Desktop\Agent\check-mk-agent-2.2.0p36-8c6aa8c5a6bbec11.msi
MSI (c) (84:F8) [15:13:21:464]: APPCOMPAT: Compatibility mode property overrides found.
MSI (c) (84:F8) [15:13:21:464]: APPCOMPAT: looking for appcompat database entry with ProductCode '{9859AECC-B717-11EF-B7BB-005056BFAB37}'.
MSI (c) (84:F8) [15:13:21:464]: APPCOMPAT: no matching ProductCode found in database.
MSI (c) (84:F8) [15:13:21:464]: MSCOREE not loaded loading copy from system32
MSI (c) (84:F8) [15:13:21:464]: Machine policy value 'TransformsSecure' is 1
MSI (c) (84:F8) [15:13:21:464]: Machine policy value 'DisablePatch' is 0
MSI (c) (84:F8) [15:13:21:464]: Machine policy value 'AllowLockdownPatch' is 0
MSI (c) (84:F8) [15:13:21:464]: Machine policy value 'DisableLUAPatching' is 0
MSI (c) (84:F8) [15:13:21:464]: Machine policy value 'DisableFlyWeightPatching' is 0
MSI (c) (84:F8) [15:13:21:464]: APPCOMPAT: looking for appcompat database entry with ProductCode '{9859AECC-B717-11EF-B7BB-005056BFAB37}'.
MSI (c) (84:F8) [15:13:21:464]: APPCOMPAT: no matching ProductCode found in database.
MSI (c) (84:F8) [15:13:21:464]: Transforms are not secure.
MSI (c) (84:F8) [15:13:21:464]: PROPERTY CHANGE: Adding MsiLogFileLocation property. Its value is 'C:\Users\jonroot\Desktop\Agent\checkMK_installlog.txt'.
MSI (c) (84:F8) [15:13:21:464]: Command Line: CURRENTDIRECTORY=C:\Users\jonroot\Desktop\Agent CLIENTUILEVEL=0 CLIENTPROCESSID=1156 
MSI (c) (84:F8) [15:13:21:464]: PROPERTY CHANGE: Adding PackageCode property. Its value is '{6DE493E4-922F-58CD-A665-FE66079B8499}'.
MSI (c) (84:F8) [15:13:21:464]: Product Code passed to Engine.Initialize:           ''
MSI (c) (84:F8) [15:13:21:464]: Product Code from property table before transforms: '{9859AECC-B717-11EF-B7BB-005056BFAB37}'
MSI (c) (84:F8) [15:13:21:464]: Product Code from property table after transforms:  '{9859AECC-B717-11EF-B7BB-005056BFAB37}'
MSI (c) (84:F8) [15:13:21:464]: Product not registered: beginning first-time install
MSI (c) (84:F8) [15:13:21:464]: PROPERTY CHANGE: Adding ProductState property. Its value is '-1'.
MSI (c) (84:F8) [15:13:21:464]: Entering CMsiConfigurationManager::SetLastUsedSource.
MSI (c) (84:F8) [15:13:21:464]: User policy value 'SearchOrder' is 'nmu'
MSI (c) (84:F8) [15:13:21:464]: Adding new sources is allowed.
MSI (c) (84:F8) [15:13:21:464]: PROPERTY CHANGE: Adding PackagecodeChanging property. Its value is '1'.
MSI (c) (84:F8) [15:13:21:464]: Package name extracted from package path: 'check-mk-agent-2.2.0p36-8c6aa8c5a6bbec11.msi'
MSI (c) (84:F8) [15:13:21:464]: Package to be registered: 'check-mk-agent-2.2.0p36-8c6aa8c5a6bbec11.msi'
MSI (c) (84:F8) [15:13:21:464]: Note: 1: 2205 2:  3: Error 
MSI (c) (84:F8) [15:13:21:464]: Note: 1: 2262 2: AdminProperties 3: -2147287038 
MSI (c) (84:F8) [15:13:21:464]: Machine policy value 'DisableMsi' is 1
MSI (c) (84:F8) [15:13:21:464]: Machine policy value 'AlwaysInstallElevated' is 0
MSI (c) (84:F8) [15:13:21:464]: User policy value 'AlwaysInstallElevated' is 0
MSI (c) (84:F8) [15:13:21:464]: Product installation will be elevated because user is admin and product is being installed per-machine.
MSI (c) (84:F8) [15:13:21:464]: Running product '{9859AECC-B717-11EF-B7BB-005056BFAB37}' with elevated privileges: Product is assigned.
MSI (c) (84:F8) [15:13:21:464]: PROPERTY CHANGE: Adding CURRENTDIRECTORY property. Its value is 'C:\Users\jonroot\Desktop\Agent'.
MSI (c) (84:F8) [15:13:21:464]: PROPERTY CHANGE: Adding CLIENTUILEVEL property. Its value is '0'.
MSI (c) (84:F8) [15:13:21:464]: PROPERTY CHANGE: Adding CLIENTPROCESSID property. Its value is '1156'.
MSI (c) (84:F8) [15:13:21:464]: TRANSFORMS property is now: 
MSI (c) (84:F8) [15:13:21:464]: PROPERTY CHANGE: Adding VersionDatabase property. Its value is '200'.
MSI (c) (84:F8) [15:13:21:464]: SHELL32::SHGetFolderPath returned: C:\Users\jonroot\AppData\Roaming
MSI (c) (84:F8) [15:13:21:464]: SHELL32::SHGetFolderPath returned: C:\Users\jonroot\Favorites
MSI (c) (84:F8) [15:13:21:464]: SHELL32::SHGetFolderPath returned: C:\Users\jonroot\AppData\Roaming\Microsoft\Windows\Network Shortcuts
MSI (c) (84:F8) [15:13:21:464]: SHELL32::SHGetFolderPath returned: C:\Users\jonroot\Documents
MSI (c) (84:F8) [15:13:21:464]: SHELL32::SHGetFolderPath returned: C:\Users\jonroot\AppData\Roaming\Microsoft\Windows\Printer Shortcuts
MSI (c) (84:F8) [15:13:21:464]: SHELL32::SHGetFolderPath returned: C:\Users\jonroot\AppData\Roaming\Microsoft\Windows\Recent
MSI (c) (84:F8) [15:13:21:464]: SHELL32::SHGetFolderPath returned: C:\Users\jonroot\AppData\Roaming\Microsoft\Windows\SendTo
MSI (c) (84:F8) [15:13:21:464]: SHELL32::SHGetFolderPath returned: C:\Users\jonroot\AppData\Roaming\Microsoft\Windows\Templates
MSI (c) (84:F8) [15:13:21:464]: SHELL32::SHGetFolderPath returned: C:\ProgramData
MSI (c) (84:F8) [15:13:21:464]: SHELL32::SHGetFolderPath returned: C:\Users\jonroot\AppData\Local
MSI (c) (84:F8) [15:13:21:464]: SHELL32::SHGetFolderPath returned: C:\Users\jonroot\Pictures
MSI (c) (84:F8) [15:13:21:464]: SHELL32::SHGetFolderPath returned: C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Administrative Tools
MSI (c) (84:F8) [15:13:21:464]: SHELL32::SHGetFolderPath returned: C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup
MSI (c) (84:F8) [15:13:21:464]: SHELL32::SHGetFolderPath returned: C:\ProgramData\Microsoft\Windows\Start Menu\Programs
MSI (c) (84:F8) [15:13:21:464]: SHELL32::SHGetFolderPath returned: C:\ProgramData\Microsoft\Windows\Start Menu
MSI (c) (84:F8) [15:13:21:464]: SHELL32::SHGetFolderPath returned: C:\Users\Public\Desktop
MSI (c) (84:F8) [15:13:21:464]: SHELL32::SHGetFolderPath returned: C:\Users\jonroot\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Administrative Tools
MSI (c) (84:F8) [15:13:21:464]: SHELL32::SHGetFolderPath returned: C:\Users\jonroot\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup
MSI (c) (84:F8) [15:13:21:464]: SHELL32::SHGetFolderPath returned: C:\Users\jonroot\AppData\Roaming\Microsoft\Windows\Start Menu\Programs
MSI (c) (84:F8) [15:13:21:464]: SHELL32::SHGetFolderPath returned: C:\Users\jonroot\AppData\Roaming\Microsoft\Windows\Start Menu
MSI (c) (84:F8) [15:13:21:464]: SHELL32::SHGetFolderPath returned: C:\Users\jonroot\Desktop
MSI (c) (84:F8) [15:13:21:464]: SHELL32::SHGetFolderPath returned: C:\ProgramData\Microsoft\Windows\Templates
MSI (c) (84:F8) [15:13:21:464]: SHELL32::SHGetFolderPath returned: C:\Windows\Fonts
MSI (c) (84:F8) [15:13:21:464]: Note: 1: 2898 2: MS Sans Serif 3: MS Sans Serif 4: 0 5: 16 
MSI (c) (84:F8) [15:13:21:480]: MSI_LUA: Setting MsiRunningElevated property to 1 because the install is already running elevated.
MSI (c) (84:F8) [15:13:21:480]: PROPERTY CHANGE: Adding MsiRunningElevated property. Its value is '1'.
MSI (c) (84:F8) [15:13:21:480]: PROPERTY CHANGE: Adding Privileged property. Its value is '1'.
MSI (c) (84:F8) [15:13:21:480]: Note: 1: 1402 2: HKEY_CURRENT_USER\Software\Microsoft\MS Setup (ACME)\User Info 3: 2 
MSI (c) (84:F8) [15:13:21:480]: PROPERTY CHANGE: Adding USERNAME property. Its value is 'Windows User'.
MSI (c) (84:F8) [15:13:21:480]: Note: 1: 1402 2: HKEY_CURRENT_USER\Software\Microsoft\MS Setup (ACME)\User Info 3: 2 
MSI (c) (84:F8) [15:13:21:480]: PROPERTY CHANGE: Adding DATABASE property. Its value is 'C:\Users\jonroot\Desktop\Agent\check-mk-agent-2.2.0p36-8c6aa8c5a6bbec11.msi'.
MSI (c) (84:F8) [15:13:21:480]: PROPERTY CHANGE: Adding OriginalDatabase property. Its value is 'C:\Users\jonroot\Desktop\Agent\check-mk-agent-2.2.0p36-8c6aa8c5a6bbec11.msi'.
MSI (c) (84:F8) [15:13:21:480]: Machine policy value 'MsiDisableEmbeddedUI' is 0
MSI (c) (84:F8) [15:13:21:480]: PROPERTY CHANGE: Adding SourceDir property. Its value is 'C:\Users\jonroot\Desktop\Agent\'.
MSI (c) (84:F8) [15:13:21:480]: PROPERTY CHANGE: Adding SOURCEDIR property. Its value is 'C:\Users\jonroot\Desktop\Agent\'.
MSI (c) (84:2C) [15:13:21:480]: PROPERTY CHANGE: Adding VersionHandler property. Its value is '5.00'.
=== Logging started: 19/12/2024  15:13:21 ===
MSI (c) (84:F8) [15:13:21:480]: Note: 1: 2205 2:  3: PatchPackage 
MSI (c) (84:F8) [15:13:21:480]: Machine policy value 'DisableRollback' is 0
MSI (c) (84:F8) [15:13:21:480]: User policy value 'DisableRollback' is 0
MSI (c) (84:F8) [15:13:21:480]: PROPERTY CHANGE: Adding UILevel property. Its value is '5'.
MSI (c) (84:F8) [15:13:21:480]: Note: 1: 2203 2: C:\Windows\Installer\inprogressinstallinfo.ipi 3: -2147287038 
MSI (c) (84:F8) [15:13:21:480]: APPCOMPAT: [DetectVersionLaunchCondition] Launch condition already passes.
MSI (c) (84:F8) [15:13:21:480]: PROPERTY CHANGE: Adding ACTION property. Its value is 'INSTALL'.
MSI (c) (84:F8) [15:13:21:480]: Doing action: INSTALL
MSI (c) (84:F8) [15:13:21:480]: Note: 1: 2205 2:  3: ActionText 
Action start 15:13:21: INSTALL.
MSI (c) (84:F8) [15:13:21:480]: UI Sequence table 'InstallUISequence' is present and populated.
MSI (c) (84:F8) [15:13:21:480]: Running UISequence
MSI (c) (84:F8) [15:13:21:480]: PROPERTY CHANGE: Adding EXECUTEACTION property. Its value is 'INSTALL'.
MSI (c) (84:F8) [15:13:21:480]: Doing action: FindRelatedProducts
MSI (c) (84:F8) [15:13:21:480]: Note: 1: 2205 2:  3: ActionText 
Action start 15:13:21: FindRelatedProducts.
MSI (c) (84:F8) [15:13:21:480]: FindRelatedProducts: could not read ASSIGNMENTTYPE info for product '{E5C03DBA-A200-11EF-8560-005056BFAB37}'.  Skipping...
MSI (c) (84:F8) [15:13:21:480]: FindRelatedProducts: could not read ASSIGNMENTTYPE info for product '{E5C03DBA-A200-11EF-8560-005056BFAB37}'.  Skipping...
MSI (c) (84:F8) [15:13:21:480]: FindRelatedProducts: could not read ASSIGNMENTTYPE info for product '{E5C03DBA-A200-11EF-8560-005056BFAB37}'.  Skipping...
Action ended 15:13:21: FindRelatedProducts. Return value 1.
MSI (c) (84:F8) [15:13:21:480]: Doing action: PrepareDlg
MSI (c) (84:F8) [15:13:21:480]: Note: 1: 2205 2:  3: ActionText 
Action start 15:13:21: PrepareDlg.
MSI (c) (84:2C) [15:13:21:495]: Note: 1: 2205 2:  3: Error 
MSI (c) (84:2C) [15:13:21:495]: Note: 1: 2228 2:  3: Error 4: SELECT `Message` FROM `Error` WHERE `Error` = 2898 
Info 2898.For WixUI_Font_Normal textstyle, the system created a 'Tahoma' font, in 0 character set, of 13 pixels height.
MSI (c) (84:2C) [15:13:21:495]: Note: 1: 2205 2:  3: Error 
MSI (c) (84:2C) [15:13:21:495]: Note: 1: 2228 2:  3: Error 4: SELECT `Message` FROM `Error` WHERE `Error` = 2898 
Info 2898.For WixUI_Font_Bigger textstyle, the system created a 'Tahoma' font, in 0 character set, of 19 pixels height.
Action ended 15:13:21: PrepareDlg. Return value 1.
MSI (c) (84:F8) [15:13:21:511]: Doing action: AppSearch
MSI (c) (84:F8) [15:13:21:511]: Note: 1: 2205 2:  3: ActionText 
Action start 15:13:21: AppSearch.
MSI (c) (84:F8) [15:13:21:511]: Note: 1: 2262 2: Signature 3: -2147287038 
MSI (c) (84:F8) [15:13:21:511]: Note: 1: 1402 2: HKEY_LOCAL_MACHINE32\SYSTEM\CurrentControlSet\Services\CheckMkService 3: 2 
Action ended 15:13:21: AppSearch. Return value 1.
MSI (c) (84:F8) [15:13:21:511]: Doing action: LaunchConditions
MSI (c) (84:F8) [15:13:21:511]: Note: 1: 2205 2:  3: ActionText 
Action start 15:13:21: LaunchConditions.
Action ended 15:13:21: LaunchConditions. Return value 1.
MSI (c) (84:F8) [15:13:21:511]: Doing action: ValidateProductID
MSI (c) (84:F8) [15:13:21:511]: Note: 1: 2205 2:  3: ActionText 
Action start 15:13:21: ValidateProductID.
Action ended 15:13:21: ValidateProductID. Return value 1.
MSI (c) (84:F8) [15:13:21:511]: Doing action: CostInitialize
MSI (c) (84:F8) [15:13:21:511]: Note: 1: 2205 2:  3: ActionText 
Action start 15:13:21: CostInitialize.
MSI (c) (84:F8) [15:13:21:511]: Machine policy value 'MaxPatchCacheSize' is 10
MSI (c) (84:F8) [15:13:21:511]: PROPERTY CHANGE: Adding ROOTDRIVE property. Its value is 'B:\'.
MSI (c) (84:F8) [15:13:21:511]: PROPERTY CHANGE: Adding CostingComplete property. Its value is '0'.
Action ended 15:13:21: CostInitialize. Return value 1.
MSI (c) (84:F8) [15:13:21:511]: Doing action: FileCost
MSI (c) (84:F8) [15:13:21:511]: Note: 1: 2205 2:  3: ActionText 
Action start 15:13:21: FileCost.
MSI (c) (84:F8) [15:13:21:511]: Note: 1: 2205 2:  3: MsiAssembly 
MSI (c) (84:F8) [15:13:21:511]: Note: 1: 2205 2:  3: Class 
MSI (c) (84:F8) [15:13:21:511]: Note: 1: 2205 2:  3: Extension 
MSI (c) (84:F8) [15:13:21:511]: Note: 1: 2205 2:  3: TypeLib 
Action ended 15:13:21: FileCost. Return value 1.
MSI (c) (84:F8) [15:13:21:511]: Doing action: CostFinalize
MSI (c) (84:F8) [15:13:21:511]: Note: 1: 2205 2:  3: ActionText 
Action start 15:13:21: CostFinalize.
MSI (c) (84:F8) [15:13:21:511]: PROPERTY CHANGE: Adding OutOfDiskSpace property. Its value is '0'.
MSI (c) (84:F8) [15:13:21:511]: PROPERTY CHANGE: Adding OutOfNoRbDiskSpace property. Its value is '0'.
MSI (c) (84:F8) [15:13:21:511]: PROPERTY CHANGE: Adding PrimaryVolumeSpaceAvailable property. Its value is '0'.
MSI (c) (84:F8) [15:13:21:511]: PROPERTY CHANGE: Adding PrimaryVolumeSpaceRequired property. Its value is '0'.
MSI (c) (84:F8) [15:13:21:511]: PROPERTY CHANGE: Adding PrimaryVolumeSpaceRemaining property. Its value is '0'.
MSI (c) (84:F8) [15:13:21:511]: Note: 1: 2205 2:  3: Patch 
MSI (c) (84:F8) [15:13:21:511]: Note: 1: 2205 2:  3: Condition 
MSI (c) (84:F8) [15:13:21:511]: PROPERTY CHANGE: Adding TARGETDIR property. Its value is 'B:\'.
MSI (c) (84:F8) [15:13:21:511]: PROPERTY CHANGE: Adding CmkFolder property. Its value is 'C:\ProgramData\checkmk\'.
MSI (c) (84:F8) [15:13:21:511]: PROPERTY CHANGE: Adding UserFolder property. Its value is 'C:\ProgramData\checkmk\agent\'.
MSI (c) (84:F8) [15:13:21:511]: PROPERTY CHANGE: Adding INSTALLFOLDER_ROOT property. Its value is 'C:\Program Files (x86)\checkmk\'.
MSI (c) (84:F8) [15:13:21:511]: PROPERTY CHANGE: Adding INSTALLFOLDER_SERVICE property. Its value is 'C:\Program Files (x86)\checkmk\service\'.
MSI (c) (84:F8) [15:13:21:511]: PROPERTY CHANGE: Adding utils property. Its value is 'C:\Program Files (x86)\checkmk\service\utils\'.
MSI (c) (84:F8) [15:13:21:511]: PROPERTY CHANGE: Adding install property. Its value is 'C:\Program Files (x86)\checkmk\service\install\'.
MSI (c) (84:F8) [15:13:21:511]: PROPERTY CHANGE: Adding plugins property. Its value is 'C:\Program Files (x86)\checkmk\service\plugins\'.
MSI (c) (84:F8) [15:13:21:511]: PROPERTY CHANGE: Adding providers property. Its value is 'C:\Program Files (x86)\checkmk\service\providers\'.
MSI (c) (84:F8) [15:13:21:511]: Target path resolution complete. Dumping Directory table...
MSI (c) (84:F8) [15:13:21:511]: Note: target paths subject to change (via custom actions or browsing)
MSI (c) (84:F8) [15:13:21:511]: Dir (target): Key: TARGETDIR	, Object: B:\
MSI (c) (84:F8) [15:13:21:511]: Dir (target): Key: WindowsFolder	, Object: C:\Windows\
MSI (c) (84:F8) [15:13:21:511]: Dir (target): Key: CommonAppDataFolder	, Object: C:\ProgramData\
MSI (c) (84:F8) [15:13:21:511]: Dir (target): Key: CmkFolder	, Object: C:\ProgramData\checkmk\
MSI (c) (84:F8) [15:13:21:511]: Dir (target): Key: UserFolder	, Object: C:\ProgramData\checkmk\agent\
MSI (c) (84:F8) [15:13:21:511]: Dir (target): Key: ProgramFilesFolder	, Object: C:\Program Files (x86)\
MSI (c) (84:F8) [15:13:21:511]: Dir (target): Key: INSTALLFOLDER_ROOT	, Object: C:\Program Files (x86)\checkmk\
MSI (c) (84:F8) [15:13:21:511]: Dir (target): Key: INSTALLFOLDER_SERVICE	, Object: C:\Program Files (x86)\checkmk\service\
MSI (c) (84:F8) [15:13:21:511]: Dir (target): Key: utils	, Object: C:\Program Files (x86)\checkmk\service\utils\
MSI (c) (84:F8) [15:13:21:511]: Dir (target): Key: install	, Object: C:\Program Files (x86)\checkmk\service\install\
MSI (c) (84:F8) [15:13:21:511]: Dir (target): Key: plugins	, Object: C:\Program Files (x86)\checkmk\service\plugins\
MSI (c) (84:F8) [15:13:21:511]: Dir (target): Key: providers	, Object: C:\Program Files (x86)\checkmk\service\providers\
MSI (c) (84:F8) [15:13:21:511]: PROPERTY CHANGE: Adding INSTALLLEVEL property. Its value is '1'.
MSI (c) (84:F8) [15:13:21:511]: Note: 1: 2205 2:  3: MsiAssembly 
MSI (c) (84:F8) [15:13:21:511]: Note: 1: 2228 2:  3: MsiAssembly 4:  SELECT `MsiAssembly`.`Attributes`, `MsiAssembly`.`File_Application`, `MsiAssembly`.`File_Manifest`,  `Component`.`KeyPath` FROM `MsiAssembly`, `Component` WHERE  `MsiAssembly`.`Component_` = `Component`.`Component` AND `MsiAssembly`.`Component_` = ? 
Action ended 15:13:21: CostFinalize. Return value 1.
MSI (c) (84:F8) [15:13:21:511]: Doing action: MigrateFeatureStates
MSI (c) (84:F8) [15:13:21:511]: Note: 1: 2205 2:  3: ActionText 
Action start 15:13:21: MigrateFeatureStates.
Action ended 15:13:21: MigrateFeatureStates. Return value 0.
MSI (c) (84:F8) [15:13:21:511]: Skipping action: MaintenanceWelcomeDlg (condition is false)
MSI (c) (84:F8) [15:13:21:511]: Skipping action: ResumeDlg (condition is false)
MSI (c) (84:F8) [15:13:21:511]: Doing action: WelcomeDlg
MSI (c) (84:F8) [15:13:21:511]: Note: 1: 2205 2:  3: ActionText 
Action start 15:13:21: WelcomeDlg.
MSI (c) (84:E8) [15:13:21:527]: Note: 1: 2205 2:  3: _RemoveFilePath 
MSI (c) (84:E8) [15:13:21:527]: PROPERTY CHANGE: Modifying CostingComplete property. Its current value is '0'. Its new value: '1'.
MSI (c) (84:E8) [15:13:21:527]: Note: 1: 2205 2:  3: BindImage 
MSI (c) (84:E8) [15:13:21:527]: Note: 1: 2205 2:  3: ProgId 
MSI (c) (84:E8) [15:13:21:527]: Note: 1: 2205 2:  3: PublishComponent 
MSI (c) (84:E8) [15:13:21:527]: Note: 1: 2205 2:  3: SelfReg 
MSI (c) (84:E8) [15:13:21:527]: Note: 1: 2205 2:  3: Extension 
MSI (c) (84:E8) [15:13:21:527]: Note: 1: 2205 2:  3: Font 
MSI (c) (84:E8) [15:13:21:527]: Note: 1: 2205 2:  3: Shortcut 
MSI (c) (84:E8) [15:13:21:527]: Note: 1: 2205 2:  3: Class 
MSI (c) (84:E8) [15:13:21:527]: Note: 1: 2205 2:  3: TypeLib 
MSI (c) (84:E8) [15:13:21:527]: Note: 1: 2727 2:  
MSI (c) (84:2C) [15:13:24:339]: Note: 1: 2205 2:  3: Error 
MSI (c) (84:2C) [15:13:24:339]: Note: 1: 2228 2:  3: Error 4: SELECT `Message` FROM `Error` WHERE `Error` = 2898 
Info 2898.For WixUI_Font_Title textstyle, the system created a 'Tahoma' font, in 0 character set, of 14 pixels height.
MSI (c) (84:2C) [15:13:25:667]: PROPERTY CHANGE: Adding LicenseAccepted property. Its value is '1'.
MSI (c) (84:2C) [15:13:28:027]: PROPERTY CHANGE: Adding WIXUI_CLEANINSTALL property. Its value is '1'.
MSI (c) (84:2C) [15:13:28:714]: PROPERTY CHANGE: Deleting WIXUI_MIGRATELEGACY property. Its current value is '1'.
MSI (c) (84:2C) [15:13:29:339]: Doing action: WixUIValidatePath
MSI (c) (84:2C) [15:13:29:339]: Note: 1: 2205 2:  3: ActionText 
Action start 15:13:29: WixUIValidatePath.
MSI (c) (84:2C) [15:13:29:355]: Invoking remote custom action. DLL: C:\Users\jonroot\AppData\Local\Temp\MSID9BB.tmp, Entrypoint: ValidatePath
MSI (c) (84:98) [15:13:29:355]: Cloaking enabled.
MSI (c) (84:98) [15:13:29:355]: Attempting to enable all disabled privileges before calling Install on Server
MSI (c) (84:98) [15:13:29:355]: Connected to service for CA interface.
MSI (c) (84!08) [15:13:29:386]: PROPERTY CHANGE: Adding WIXUI_INSTALLDIR_VALID property. Its value is '1'.
Action ended 15:13:29: WixUIValidatePath. Return value 1.
MSI (c) (84:2C) [15:13:29:886]: Note: 1: 2727 2:  
Action ended 15:13:30: WelcomeDlg. Return value 1.
MSI (c) (84:F8) [15:13:30:277]: Doing action: ProgressDlg
MSI (c) (84:F8) [15:13:30:277]: Note: 1: 2205 2:  3: ActionText 
Action start 15:13:30: ProgressDlg.
Action ended 15:13:30: ProgressDlg. Return value 1.
MSI (c) (84:F8) [15:13:30:277]: Doing action: ExecuteAction
MSI (c) (84:F8) [15:13:30:277]: Note: 1: 2205 2:  3: ActionText 
Action start 15:13:30: ExecuteAction.
MSI (c) (84:F8) [15:13:30:277]: PROPERTY CHANGE: Adding SECONDSEQUENCE property. Its value is '1'.
MSI (c) (84:F8) [15:13:30:293]: Grabbed execution mutex.
MSI (c) (84:F8) [15:13:30:293]: Incrementing counter to disable shutdown. Counter after increment: 0
MSI (c) (84:F8) [15:13:30:293]: Switching to server: WIXUI_CLEANINSTALL="1" INSTALLFOLDER_SERVICE="C:\Program Files (x86)\checkmk\service\" INSTALLFOLDER_ROOT="C:\Program Files (x86)\checkmk\" TARGETDIR="B:\" SECONDSEQUENCE="1" WIXUI_INSTALLDIR_VALID="1" INSTALLLEVEL="1" ROOTDRIVE="B:\" EXECUTEACTION="INSTALL" ACTION="INSTALL" SOURCEDIR="C:\Users\jonroot\Desktop\Agent\" USERNAME="Windows User" CLIENTPROCESSID="1156" CLIENTUILEVEL="0" CURRENTDIRECTORY="C:\Users\jonroot\Desktop\Agent" WIXUI_MIGRATELEGACY=""  ADDLOCAL=providers,plugins,install,utils,ProductFeature,clean_feature,installable_binaries,plugins_binaries  
MSI (s) (04:FC) [15:13:30:293]: Running installation inside multi-package transaction C:\Users\jonroot\Desktop\Agent\check-mk-agent-2.2.0p36-8c6aa8c5a6bbec11.msi
MSI (s) (04:FC) [15:13:30:293]: Grabbed execution mutex.
MSI (s) (04:D8) [15:13:30:293]: MainEngineThread is returning 1603
MSI (s) (04:FC) [15:13:30:293]: User policy value 'DisableRollback' is 0
MSI (s) (04:FC) [15:13:30:293]: Machine policy value 'DisableRollback' is 0
MSI (s) (04:FC) [15:13:30:293]: Incrementing counter to disable shutdown. Counter after increment: 0
MSI (s) (04:FC) [15:13:30:293]: Note: 1: 1402 2: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Installer\Rollback\Scripts 3: 2 
MSI (s) (04:FC) [15:13:30:293]: Note: 1: 1402 2: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Installer\Rollback\Scripts 3: 2 
MSI (s) (04:FC) [15:13:30:293]: Decrementing counter to disable shutdown. If counter >= 0, shutdown will be denied.  Counter after decrement: -1
MSI (c) (84:F8) [15:13:30:293]: Back from server. Return value: 1603
MSI (c) (84:F8) [15:13:30:293]: Decrementing counter to disable shutdown. If counter >= 0, shutdown will be denied.  Counter after decrement: -1
MSI (c) (84:F8) [15:13:30:293]: PROPERTY CHANGE: Deleting SECONDSEQUENCE property. Its current value is '1'.
Action ended 15:13:30: ExecuteAction. Return value 3.
MSI (c) (84:F8) [15:13:30:293]: Doing action: FatalError
MSI (c) (84:F8) [15:13:30:293]: Note: 1: 2205 2:  3: ActionText 
Action start 15:13:30: FatalError.
Action ended 15:13:31: FatalError. Return value 2.
Action ended 15:13:31: INSTALL. Return value 3.
MSI (c) (84:F8) [15:13:31:308]: Destroying RemoteAPI object.
MSI (c) (84:98) [15:13:31:308]: Custom Action Manager thread ending.
=== Logging stopped: 19/12/2024  15:13:31 ===
MSI (c) (84:F8) [15:13:31:308]: Note: 1: 1708 
MSI (c) (84:F8) [15:13:31:308]: Note: 1: 2205 2:  3: Error 
MSI (c) (84:F8) [15:13:31:308]: Note: 1: 2228 2:  3: Error 4: SELECT `Message` FROM `Error` WHERE `Error` = 1708 
MSI (c) (84:F8) [15:13:31:308]: Note: 1: 2205 2:  3: Error 
MSI (c) (84:F8) [15:13:31:308]: Note: 1: 2228 2:  3: Error 4: SELECT `Message` FROM `Error` WHERE `Error` = 1709 
MSI (c) (84:F8) [15:13:31:308]: Product: Check MK Agent 2.2 -- Installation failed.

MSI (c) (84:F8) [15:13:31:308]: Windows Installer installed the product. Product Name: Check MK Agent 2.2. Product Version: 2.2.0.50036. Product Language: 1033. Manufacturer: Checkmk GmbH. Installation success or error status: 1603.

MSI (c) (84:F8) [15:13:31:308]: Grabbed execution mutex.
MSI (c) (84:F8) [15:13:31:308]: Cleaning up uninstalled install packages, if any exist
MSI (c) (84:F8) [15:13:31:308]: MainEngineThread is returning 1603
=== Verbose logging stopped: 19/12/2024  15:13:31 ===

Do the server have an antivirus agent installed or some other things as this just stopped working suddenly?

1 Like

Thanks for replying and sorry for delay, we have sophos xdr installed on our servers but this has not been an issue with any other server we have or an issue with this server in the past. Yes it has just stopped working suddenly.

This is the thing with modern “endpoint protection”. It sometimes behaves unpredictably. You might want to disable said tool for a while to see, if it has an impact on the Checkmk agent.

Issue was resolved by running a chkdsk C: /f /r in an elevated command prompt on the system drive twice it seems. Unsure why it did not have any affect the first time but on a second pass it had cleared up system drive file issues and allowed a reinstallation of the agent.