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
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#