You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Elastic Agent 8.3/8.4 doesn't exit cleanly on MacOS.
In both cases it receives SIGKILL in 5 secs after SIGTERM
The consequences observed are:
8.4 (main branch) leaves the metricbeat and flilebeat running orphant.
8.3 branch doesn't leave metricbeat and flilebeat running, but it was leaving osquerybeat running, so it seems like it's still and issue with the shutdown timing.
2022-06-22 08:48:34.236902 (system) <Notice>: booting out service: caller = launchctl[13950]<-sudo[13949]<-zsh[3235]<-login[3233]<-iTermServer-3.4[3232]<-iTerm2[3231]<-launchd[1], service = co.elastic.elastic-agent, value = 0x0
2022-06-22 08:48:34.236990 (system/co.elastic.elastic-agent [13910]) <Notice>: signaled service: Terminated: 15
2022-06-22 08:48:34.236993 (system/co.elastic.elastic-agent [13910]) <Notice>: service state: SIGTERMed
2022-06-22 08:48:34.236995 (system/co.elastic.elastic-agent [13910]) <Notice>: scheduling cleanup in 5 sec after sending Terminated: 15
2022-06-22 08:48:34.237019 (system) <Notice>: Bootout by launchctl[13950] for /Library/LaunchDaemons/co.elastic.elastic-agent.plist succeeded (0: )
2022-06-22 08:48:39.240243 (system/co.elastic.elastic-agent [13910]) <Warning>: Service did not exit 5 seconds after SIGTERM. Sending SIGKILL.
2022-06-22 08:48:39.240419 (system/co.elastic.elastic-agent [13910]) <Notice>: signaled service for SIGTERM timeout: Killed: 9
2022-06-22 08:48:39.240432 (system/co.elastic.elastic-agent [13910]) <Notice>: service state: SIGKILLed
2022-06-22 08:48:39.244891 (system/co.elastic.elastic-agent [13910]) <Notice>: exited due to SIGKILL | sent by launchd[1]
2022-06-22 08:48:39.244902 (system/co.elastic.elastic-agent [13910]) <Notice>: service state: exited
2022-06-22 08:48:39.244905 (system/co.elastic.elastic-agent [13910]) <Notice>: internal event: EXITED, code = 0
20
For confirmed bugs, please report:
Version: 8.4, 8.3
Operating System: MacOS (Monterey)
Steps to Reproduce:
Install dev build off of the main branch on MacOS (Monterey)
Elastic Agent 8.3/8.4 doesn't exit cleanly on MacOS.
In both cases it receives SIGKILL in 5 secs after SIGTERM
The consequences observed are:
For confirmed bugs, please report:
The short term solution would be to increase the exit timeout for the service explicitly.
Setting
solves the problem.
The agent took about 11 secs to shutdown upon receiving SIGTERM on my machine for example:
The text was updated successfully, but these errors were encountered: