# Fleet agent 8.12 container crashes during startup

**URL:** <https://discuss.elastic.co/t/fleet-agent-8-12-container-crashes-during-startup/355061>\
**Category:** Elastic Cloud on Kubernetes (ECK)\
**Tags:** fleet\
**Created:** [March 8, 2024, 8:10pm UTC](https://discuss.elastic.co/t/fleet-agent-8-12-container-crashes-during-startup/355061 "2024-03-08T20:10:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![istmead](https://avatars.discourse-cdn.com/v4/letter/i/a9a28c/32.png) [@istmead](https://discuss.elastic.co/u/istmead)\
**Post date:** [March 8, 2024, 8:10pm UTC](https://discuss.elastic.co/t/fleet-agent-8-12-container-crashes-during-startup/355061/1 "2024-03-08T20:10:29Z")

</div>

Policy selected for enrollment: eck-fleet-server  
{"log.level":"info","@timestamp":"2024-03-08T20:04:17.361Z","log.origin":{"file.name":"cmd/enroll\_cmd.go","file.line":628},"message":"Spawning Elastic Agent daemon as a subprocess to complete bootstrap process.","ecs.version":"1.6.0"}  
Error: open /usr/share/elastic-agent/state/data/agent.lock: permission denied  
For help, please see our troubleshooting guide at [Troubleshoot common problems | Fleet and Elastic Agent Guide [8.12] | Elastic](https://www.elastic.co/guide/en/fleet/8.12/fleet-troubleshooting.html)  
Error: open /usr/share/elastic-agent/state/data/agent.lock: permission denied

sh-5.1# cd /usr/share/elastic-agent/state/data/  
sh-5.1# ls -rlt  
ls: cannot access 'agent.lock': Permission denied  
ls: cannot access 'state.enc': Permission denied  
total 4  
-?????????? ? ? ? ? ? state.enc  
-?????????? ? ? ? ? ? agent.lock  
drwxrwx---. 6 root root 87 Jan 8 17:22 run  
drwxrwx---. 2 root root 4096 Mar 8 16:15 logs  
drwxrwx---. 2 root root 6 Mar 8 16:40 tmp  
sh-5.1#

---

<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:** [April 5, 2024, 8:11pm UTC](https://discuss.elastic.co/t/fleet-agent-8-12-container-crashes-during-startup/355061/2 "2024-04-05T20:11:15Z")

</div>

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