running operation 'operation-install' for endpoint-security.7.10.0 Failed to dispatch action 'action_id: xxxxxxxxxxxxxxxx, type: POLICY_CHANGE', error: operator: failed to execute step sc-run, error: operation 'Exec' failed: : operation 'Exec' failed: failed to dispatch actions, error: operator: failed to execute step sc-run, error: operation 'Exec' failed: : operation 'Exec' failed:
This is all [repeatedly] what first-time user gets when trying to start fleet/agent. The problem seems to be that endpoint security requests the version of init, gets SysVInit version, tries a few times, then agrily leave with error 21, keeping elastic-agent in a continuous restart loop.
Disabling endpoint security resolves the problem. Took a better half of an hour to figure it out.
(No need to tell me that you use that disease called systemd, I have observed it [since I have to start agent manually, the init.d script is fubar], but crashing isn't the most polite way to convey the message "I will not run under init".)
Just maybe someone gets the same.