Users have reported to have several agents were not coming back online after a Fleet Server outage. Those agents had tried to unenroll themselves due to many authentication failures, they logged: retrieved an invalid api key error '7' times. Starting to unenroll the elastic agent.. However restarting the agents brought them back online. That shows the agent did not persist its unenroll.
It happens because as it's a self-inflicted unenroll the agent does not want to trigger a policyChange ack and sets the action to nil
Users have reported to have several agents were not coming back online after a Fleet Server outage. Those agents had tried to unenroll themselves due to many authentication failures, they logged:
retrieved an invalid api key error '7' times. Starting to unenroll the elastic agent.
. However restarting the agents brought them back online. That shows the agent did not persist its unenroll.It happens because as it's a self-inflicted unenroll the agent does not want to trigger a
policyChange ack
and sets the action tonil
however a nil action isn't persisted. Actually the agent panics when trying to persist a
nil
actionas the action ins't persisted, next time the agent For confirmed bugs, please report:
401 - unauthorised
retrieved an invalid api key error '7' times. Starting to unenroll the elastic agent.