When using a Run Client Task Now task to deploy a product, the managed product being installed might fail to install successfully.
The
C:\ProgramData\McAfee\Agent\logs\masvc_<computer name>
.log shows the following:
NOTE: The task name can vary depending on what you name it.
2022-02-16 10:58:24.755 masvc(2892.3052) runnow.Info: dc task name:Endpoint Security Deployment Task (Default) owner:EPOAGENT3000 type:Deployment task_id:MA_RunNow_296_{a785393c-8f49-11ec-3e31-b4e5deb5377a} creator:EPOSERVER_RUNNOW
2022-02-16 10:58:24.755 masvc(2892.3052) runnow.Debug: Product {EPOAGENT3000.EN_US} run now task {Endpoint Security Deployment Task (Default)} received
2022-02-16 10:58:24.833 masvc(2892.3052) scheduler.Info: Next time(local) of task Endpoint Security Deployment Task (Default): 2022-02-16 10:58:27
2022-02-16 10:58:24.833 masvc(2892.3052) runnow.Info: Scheduled the dc task <MA_RunNow_296_{a785393c-8f49-11ec-3e31-b4e5deb5377a}> name <Endpoint Security Deployment Task (Default)> rc = <0>
2022-02-16 10:58:27.766 masvc(2892.3052) scheduler.Info: Scheduler: Invoking task [Endpoint Security Deployment Task (Default)]...
2022-02-16 10:58:27.766 masvc(2892.3052) scheduler.Info: The task Endpoint Security Deployment Task (Default) becomes active
2022-02-16 11:17:12.842 masvc(2892.3052) scheduler.Info: The task Endpoint Security Deployment Task (Default) is still running
2022-02-16 11:17:12.842 masvc(2892.3052) scheduler.Info: The status of the task Endpoint Security Deployment Task (Default) is unknown
2022-02-16 11:18:28.529 masvc(2892.3052) scheduler.Info: The task Endpoint Security Deployment Task (Default) has been stopped by Scheduler
2022-02-16 11:18:28.654 masvc(2892.3052) scheduler.Info: Scheduler: Task [Endpoint Security Deployment Task (Default)] is finished
2022-02-16 11:18:28.826 masvc(2892.3052) scheduler.Info: The task Endpoint Security Deployment Task (Default) is freed
The McScript_deploy.log displays the following:
NOTE: Note from the below entries the start and end times of the task. The timespan measures around 20 minutes. The Run Client Task Now task has a 20-minute timeout by default.
2022-02-16 10:58:29 I #5436 ScrptMain START [C:\Program Files\McAfee\Agent\x86\McScript_InUse.exe -script C:\ProgramData\McAfee\Agent\update\InstallMain.McS -id 24988 -localeid 0409 -logfile C:\ProgramData\McAfee\Agent\logs\McScript_deploy -parent FRAMEWORK -initiator 4 -installdir C:\Program Files\McAfee\Agent\\x86\ -taskid MA_RunNow_296_{a785393c-8f49-11ec-3e31-b4e5deb5377a}]
...
...
2022-02-16 11:18:30 I #5436 ScrptExe C:\ProgramData\McAfee\Agent\\Current\ENDP_AM_1070\Install\0000\ThreatPreventionInstall.mcs was aborted during execution
2022-02-16 11:18:30 I #5436 ScrptExe User termination invoked.Further commands will not be executed
2022-02-16 11:18:30 I #5436 ScrptExe Command aborted...Call
2022-02-16 11:18:30 I #5436 ScrptExe Command aborted...CallIf
2022-02-16 11:18:30 I #5436 ScrptExe Command aborted...CallIf
2022-02-16 11:18:30 I #5436 ScrptExe Command aborted...LoopIf
2022-02-16 11:18:30 I #5436 ScrptExe Command aborted...Call
2022-02-16 11:18:30 I #5436 ScrptMgr Update is cancelled by the user.
2022-02-16 11:18:30 I #5436 ScrptMain Run script return code: 35
2022-02-16 11:18:30 I #5436 ScrptMain McAfee Update Engine is exiting with return code: 1
2022-02-16 11:18:30 I #5436 MueEep Invoking events withEventId " 0" Severity " 0" Productid " EPOAGENT3000" Locale " 0409" UpdateType " N/A" UpdateError " 5" iUpdateState " 4" New Version " N/A" Date Time " N/A" Script Id" 24988" Custom Message " "
2022-02-16 11:18:30 I #5436 MueEep Updating session state to 4
2022-02-16 11:18:30 I #5436 MueEep Updating final session state to 4
2022-02-16 11:18:30 I #5436 MueEep Invoking EndUpdateDialog withTitle " Update Failed" Message " Please check the update log for more details." CountdownMessage " " CountdownValue" 0"