# \[elastic-agent\] \<defunct\> Version 8.9.1

**URL:** <https://discuss.elastic.co/t/elastic-agent-defunct-version-8-9-1/343588>\
**Category:** Beats\
**Tags:** beats-module, filebeat, metricbeat\
**Created:** [September 22, 2023, 2:54am UTC](https://discuss.elastic.co/t/elastic-agent-defunct-version-8-9-1/343588 "2023-09-22T02:54:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Atul\_Chadha](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/atul_chadha/32/75469_2.png) [@Atul\_Chadha](https://discuss.elastic.co/u/Atul_Chadha)\
**Post date:** [September 22, 2023, 2:54am UTC](https://discuss.elastic.co/t/elastic-agent-defunct-version-8-9-1/343588/1 "2023-09-22T02:54:06Z")

</div>

I am aware of few related issue for elastic-agent going into defunct , they appear to be for older version and a fix was applied for 8.5

> [@Elastic Agent defunct on fleet server and clients](https://discuss.elastic.co/t/elastic-agent-defunct-on-fleet-server-and-clients/305803):
>
> Hello there, I have installed elastic-agent on a ubuntu-server box and when I list which process is running I get this: [image] And then I realized that I got the same on the fleet server: This doesn´t look normal. Elastic version on both servers: Binary: 8.2.1 (build: 40ea6cb697bcb76375527092a19d7413bfa00f3f at 2022-05-19 19:19:07 +0000 UTC) Daemon: 8.2.1 (build: 40ea6cb697bcb76375527092a19d7413bfa00f3f at 2022-05-19 19:19:07 +0000 UTC) Thanks for the attention.

> <https://github.com/elastic/elastic-agent/issues/127>
>
> \## Environment
> \- Version: 8.0.0-SNAPSHOT (Downloaded from https://snapshots.ela…stic.co/8.0.0-3ce083a1/downloads/beats/elastic-agent/elastic-agent-8.0.0-SNAPSHOT-x86\_64.rpm)
> \- Operating System: Centos 7, dockerised
> 
> \## Steps to Reproduce
> 1. Start a Centos:7 docker container: \`docker run --name centos centos:7 tail -f /dev/null\`
> 1. Enter the container: \`docker exec -ti centos bash\`
> 1. Download the agent RPM package: \`curl https://snapshots.elastic.co/8.0.0-3ce083a1/downloads/beats/elastic-agent/elastic-agent-8.0.0-SNAPSHOT-x86\_64.rpm -o /elastic-agent-8.0.0-SNAPSHOT-x86\_64.rpm\`
> 1. Install systemctl replacement for Docker: \`curl https://raw.githubusercontent.com/gdraheim/docker-systemctl-replacement/master/files/docker/systemctl.py -o /usr/bin/systemctl\`
> 1. Install the RPM package with yum: \`yum localinstall /elastic-agent-8.0.0-SNAPSHOT-x86\_64.rpm -y\`
> 1. Enable service: \`systemctl enable elastic-agent\`
> 1. Start service: \`systemctl start elastic-agent\`
> 1. Check processes: \`top\`. There should be only one process for the elastic-agent 
> 1. Restart service: \` systemctl restart elastic-agent\`
> 1. Check processes: \`top\`
> 
> \## Behaviours:
> \### Expected behaviour
> After the initial restart, the elastic-agent appears once, not in the Z state.
> \<img width="693" alt="Screenshot 2020-08-11 at 17 16 34" src="https://user-images.githubusercontent.com/951580/89915273-6f105300-dbf6-11ea-93ac-8a588b9ca6de.png"\>
> 
> \### Current behaviour
> After the initial restart, the elastic-agent appears twice, one in the Z state, and the other in the S state (as shown in the attachment)
> \<img width="705" alt="Screenshot 2020-08-11 at 17 15 38" src="https://user-images.githubusercontent.com/951580/89915220-6029a080-dbf6-11ea-9a85-baaa113efe3a.png"\>
> 
> \### Other observations
> This behavior persists across multiple restarts: the elastic-agent process gets into the zombie state each time is restarted (note that I restarted it three times, so there are 3 zombie processes):
> \<img width="697" alt="Screenshot 2020-08-11 at 17 18 22" src="https://user-images.githubusercontent.com/951580/89915456-aed73a80-dbf6-11ea-9c81-f84ae026caa0.png"\>
> 
> \## One shot script
> \`\`\`shell
> docker run -d --name centos centos:7 tail -f /dev/null
> docker exec -ti centos bash
> \`\`\`
> Inside the container
> \`\`\`shell
> curl https://snapshots.elastic.co/8.0.0-3ce083a1/downloads/beats/elastic-agent/elastic-agent-8.0.0-SNAPSHOT-x86\_64.rpm -o /elastic-agent-8.0.0-SNAPSHOT-x86\_64.rpm
> curl https://raw.githubusercontent.com/gdraheim/docker-systemctl-replacement/master/files/docker/systemctl.py -o /usr/bin/systemctl 
> yum localinstall /elastic-agent-8.0.0-SNAPSHOT-x86\_64.rpm -y
> systemctl enable elastic-agent
> systemctl start elastic-agent
> systemctl restart elastic-agent
> top
> \`\`\`

We are on version 8.9.1 and still seeing this on Centos 7.x , please advice if this is still a known issue ?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [October 20, 2023, 4:54am UTC](https://discuss.elastic.co/t/elastic-agent-defunct-version-8-9-1/343588/2 "2023-10-20T04:54:48Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
