Configure fleet server

now im trying to configure fleet server on Centos7
while i configure fleet server with lines on Kibana UI

ES / Kibana version - 8.12.1

sudo ./elastic-agent install \

  --fleet-server-es=https://[my server ip] \  --fleet-server-service-token=AAEAAWVsYXN0aWMvZmxlZXQtc2VydmVyL3Rva2VuLTE3MDgwMDE0MjYzOTQ6ZlBRMjY4alFUWW1GUzR6c1R2UDAtUQ \  --fleet-server-policy=fleet-server-policy \  --fleet-server-es-ca-trusted-fingerprint=ab43ced0ecc07ada4911392b724c76b99e2ba2d6baa0a782469480902fd801e5 \  --fleet-server-port=8220

There were no error when i installed fleet server first time.

but i got error when i remove fleetserver and es-agent and then reinstalled same fleet server. what should i do


Elastic Agent will be installed at /opt/Elastic/Agent and will run as a service. Do you want to continue? [Y/n]:Y
[ ] Service Started [24s] Elastic Agent successfully installed, starting enrollment.
[ ===] Waiting For Enroll... [30s] {"log.level":"info","@timestamp":"2024-02-15T21:52:39.705+0900","log.origin":{"[file.name](http://file.name)":"cmd/enroll_cmd.go","file.line":419},"message":"Generating self-signed certificate for Fleet Server","ecs.version":"1.6.0"}
[= ] Waiting For Enroll... [35s] {"log.level":"info","@timestamp":"2024-02-15T21:52:44.034+0900","log.origin":{"[file.name](http://file.name)":"cmd/enroll_cmd.go","file.line":461},"message":"Restarting agent daemon, attempt 0","ecs.version":"1.6.0"}
[ ==] Waiting For Enroll... [40s] {"log.level":"info","@timestamp":"2024-02-15T21:52:49.119+0900","log.origin":{"[file.name](http://file.name)":"cmd/enroll_cmd.go","file.line":837},"message":"Fleet Server - Starting: spawned pid '1892'","ecs.version":"1.6.0"}
[ ==] Waiting For Enroll... [44s] {"log.level":"info","@timestamp":"2024-02-15T21:52:53.122+0900","log.origin":{"[file.name](http://file.name)":"cmd/enroll_cmd.go","file.line":837},"message":"Fleet Server - Waiting on fleet-server input to be added to policy: fleet-server-policy","ecs.version":"1.6.0"}
[== ] Waiting For Enroll... [2m38s] Error: fleet-server failed: context canceled
For help, please see our troubleshooting guide at https://www.elastic.co/guide/en/fleet/8.12/fleet-troubleshooting.html
[ ==] Uninstalled [2m39s] Error uninstalling. Printing logs
{debug 2024-02-15 21:54:47.562717161 +0900 KST m=+164.583218648 processes Error fetching PID info for 2, skipping: FillPidMetrics: error getting metadata for pid 2: error fetching exe from pid 2: readlink /proc/2/exe: no such file or directory [github.com/elastic/elastic-agent-system-metrics@v0.9.1/metric/system/process/process.go:173](http://github.com/elastic/elastic-agent-system-metrics@v0.9.1/metric/system/process/process.go:173) }
{debug 2024-02-15 21:54:47.564756246 +0900 KST m=+164.585257732 processes Error fetching PID info for 4, skipping: FillPidMetrics: error getting metadata for pid 4: error fetching exe from pid 4: readlink /proc/4/exe: no such file or directory [github.com/elastic/elastic-agent-system-metrics@v0.9.1/metric/system/process/process.go:173](http://github.com/elastic/elastic-agent-system-metrics@v0.9.1/metric/system/process/process.go:173) }
{debug 2024-02-15 21:54:47.564828989 +0900 KST m=+164.585330476 processes Error fetching PID info for 5, skipping: FillPidMetrics: error getting metadata for pid 5: error fetching exe from pid 5: readlink /proc/5/exe: no such file or directory [github.com/elastic/elastic-agent-system-metrics@v0.9.1/metric/system/process/process.go:173](http://github.com/elastic/elastic-agent-system-metrics@v0.9.1/metric/system/process/process.go:173) }
{debug 2024-02-15 21:54:47.564891961 +0900 KST m=+164.585393447 processes Error fetching PID info for 6, skipping: FillPidMetrics: error getting metadata for pid 6: error fetching exe from pid 6: readlink /proc/6/exe: no such file or directory [github.com/elastic/elastic-agent-system-metrics@v0.9.1/metric/system/process/process.go:173](http://github.com/elastic/elastic-agent-system-metrics@v0.9.1/metric/system/process/process.go:173) }
{debug 2024-02-15 21:54:47.564955987 +0900 KST m=+164.585457472 processes Error fetching PID info for 7, skipping: FillPidMetrics: error getting metadata for pid 7: error fetching exe from pid 7: readlink /proc/7/exe: no such file or directory [github.com/elastic/elastic-agent-system-metrics@v0.9.1/metric/system/process/process.go:173](http://github.com/elastic/elastic-agent-system-metrics@v0.9.1/metric/system/process/process.go:173) }
{debug 2024-02-15 21:54:47.565017277 +0900 KST m=+164.585518764 processes Error fetching PID info for 8, skipping: FillPidMetrics: error getting metadata for pid 8: error fetching exe from pid 8: readlink /proc/8/exe: no such file or directory [github.com/elastic/elastic-agent-system-metrics@v0.9.1/metric/system/process/process.go:173](http://github.com/elastic/elastic-agent-system-metrics@v0.9.1/metric/system/process/process.go:173) }
{debug 2024-02-15 21:54:47.565110082 +0900 KST m=+164.585611567 processes Error fetching PID info for 9, skipping: FillPidMetrics: error getting metadata for pid 9: error fetching exe from pid 9: readlink /proc/9/exe: no such file or directory [github.com/elastic/elastic-agent-system-metrics@v0.9.1/metric/system/process/process.go:173](http://github.com/elastic/elastic-agent-system-metrics@v0.9.1/metric/system/process/process.go:173) }
{debug 2024-02-15 21:54:47.565176964 +0900 KST m=+164.585678449 processes Error fetching PID info for 10, skipping: FillPidMetrics: error getting metadata for pid 10: error fetching exe from pid 10: readlink /proc/10/exe: no such file or directory [github.com/elastic/elastic-agent-system-metrics@v0.9.1/metric/system/process/process.go:173](http://github.com/elastic/elastic-agent-system-metrics@v0.9.1/metric/system/process/process.go:173) }
{debug 2024-02-15 21:54:47.565897138 +0900 KST m=+164.586398624 processes Error fetching PID info for 11, skipping: FillPidMetrics: error getting metadata for pid 11: error fetching exe from pid 11: readlink /proc/11/exe: no such file or directory [github.com/elastic/elastic-agent-system-metrics@v0.9.1/metric/system/process/process.go:173](http://github.com/elastic/elastic-agent-system-metrics@v0.9.1/metric/system/process/process.go:173) }
{debug 2024-02-15 21:54:47.565970102 +0900 KST m=+164.586471599 processes Error fetching PID info for 13, skipping: FillPidMetrics: error getting metadata for pid 13: error fetching exe from pid 13: readlink /proc/13/exe: no such file or directory [github.com/elastic/elastic-agent-system-metrics@v0.9.1/metric/system/process/process.go:173](http://github.com/elastic/elastic-agent-system-metrics@v0.9.1/metric/system/process/process.go:173) }
{debug 2024-02-15 21:54:47.566030626 +0900 KST m=+164.586532112 processes Error fetching PID info for 14, skipping: FillPidMetrics: error getting metadata for pid 14: error fetching exe from pid 14: readlink /proc/14/exe: no such file or directory [github.com/elastic/elastic-agent-system-metrics@v0.9.1/metric/system/process/process.go:173](http://github.com/elastic/elastic-agent-system-metrics@v0.9.1/metric/system/process/process.go:173) }
{debug 2024-02-15 21:54:47.566094327 +0900 KST m=+164.586595814 processes Error fetching PID info for 15, skipping: FillPidMetrics: error getting metadata for pid 15: error fetching exe from pid 15: readlink /proc/15/exe: no such file or directory [github.com/elastic/elastic-agent-system-metrics@v0.9.1/metric/system/process/process.go:173](http://github.com/elastic/elastic-agent-system-metrics@v0.9.1/metric/system/process/process.go:173) }
{debug 2024-02-15 21:54:47.566158527 +0900 KST m=+164.586660014 processes Error fetching PID info for 16, skipping: FillPidMetrics: error getting metadata for pid 16: error fetching exe from pid 16: readlink /proc/16/exe: no such file or directory [github.com/elastic/elastic-agent-system-metrics@v0.9.1/metric/system/process/process.go:173](http://github.com/elastic/elastic-agent-system-metrics@v0.9.1/metric/system/process/process.go:173) }
{debug 2024-02-15 21:54:47.566220465 +0900 KST m=+164.586721951 processes Error fetching PID info for 17, skipping: FillPidMetrics: error getting metadata for pid 17: error fetching exe from pid 17: readlink /proc/17/exe: no such file or directory [github.com/elastic/elastic-agent-system-metrics@v0.9.1/metric/system/process/process.go:173](http://github.com/elastic/elastic-agent-system-metrics@v0.9.1/metric/system/process/process.go:173) }
{debug 2024-02-15 21:54:47.566318271 +0900 KST m=+164.586819758 processes Error fetching PID info for 18, skipping: FillPidMetrics: error getting metadata for pid 18: error fetching exe from pid 18: readlink /proc/18/exe: no such file or directory [github.com/elastic/elastic-agent-system-metrics@v0.9.1/metric/system/process/process.go:173](http://github.com/elastic/elastic-agent-system-metrics@v0.9.1/metric/system/process/process.go:173) }
{debug 2024-02-15 21:54:47.566414063 +0900 KST m=+164.586915553 processes Error fetching PID info for 19, skipping: FillPidMetrics: error getting metadata for pid 19: error fetching exe from pid 19: readlink /proc/19/exe: no such file or directory [github.com/elastic/elastic-agent-system-metrics@v0.9.1/metric/system/process/process.go:173](http://github.com/elastic/elastic-agent-system-metrics@v0.9.1/metric/system/process/process.go:173) }
{debug 2024-02-15 21:54:47.566496314 +0900 KST m=+164.586997806 processes Error fetching PID info for 20, skipping: FillPidMetrics: error getting metadata for pid 20: error fetching exe from pid 20: readlink /proc/20/exe: no such file or directory [github.com/elastic/elastic-agent-system-metrics@v0.9.1/metric/system/process/process.go:173](http://github.com/elastic/elastic-agent-system-metrics@v0.9.1/metric/system/process/process.go:173) }
{debug 2024-02-15 21:54:47.566575607 +0900 KST m=+164.587077093 processes Error fetching PID info for 21, skipping: FillPidMetrics: error getting metadata for pid 21: error fetching exe from pid 21: readlink /proc/21/exe: no such file or directory [github.com/elastic/elastic-agent-system-metrics@v0.9.1/metric/system/process/process.go:173](http://github.com/elastic/elastic-agent-system-metrics@v0.9.1/metric/system/process/process.go:173) }
{debug 2024-02-15 21:54:47.566636083 +0900 KST m=+164.587137569 processes Error fetching PID info for 22, skipping: FillPidMetrics: error getting metadata for pid 22: error fetching exe from pid 22: readlink /proc/22/exe: no such file or directory [github.com/elastic/elastic-agent-system-metrics@v0.9.1/metric/system/process/process.go:173](http://github.com/elastic/elastic-agent-system-metrics@v0.9.1/metric/system/process/process.go:173) }
{debug 2024-02-15 21:54:47.566697455 +0900 KST m=+164.587198942 processes Error fetching PID info for 23, skipping: FillPidMetrics: error getting metadata for pid 23: error fetching exe from pid 23: readlink /proc/23/exe: no such file or directory [github.com/elastic/elastic-agent-system-metrics@v0.9.1/metric/system/process/process.go:173](http://github.com/elastic/elastic-agent-system-metrics@v0.9.1/metric/system/process/process.go:173) }
{debug 2024-02-15 21:54:47.566755715 +0900 KST m=+164.587257200 processes Error fetching PID info for 24, skipping: FillPidMetrics: error getting metadata for pid 24: error fetching exe from pid 24: readlink /proc/24/exe: no such file or directory [github.com/elastic/elastic-agent-system-metrics@v0.9.1/metric/system/process/process.go:173](http://github.com/elastic/elastic-agent-system-metrics@v0.9.1/metric/system/process/process.go:173) }
{debug 2024-02-15 21:54:47.566816171 +0900 KST m=+164.587317658 processes Error fetching PID info for 25, skipping: FillPidMetrics: error getting metadata for pid 25: error fetching exe from pid 25: readlink /proc/25/exe: no such file or directory [github.com/elastic/elastic-agent-system-metrics@v0.9.1/metric/system/process/process.go:173](http://github.com/elastic/elastic-agent-system-metrics@v0.9.1/metric/system/process/process.go:173) }
{debug 2024-02-15 21:54:47.566883205 +0900 KST m=+164.587384692 processes Error fetching PID info for 30, skipping: FillPidMetrics: error getting metadata for pid 30: error fetching exe from pid 30: readlink /proc/30/exe: no such file or directory [github.com/elastic/elastic-agent-system-metrics@v0.9.1/metric/system/process/process.go:173](http://github.com/elastic/elastic-agent-system-metrics@v0.9.1/metric/system/process/process.go:173) }
{debug 2024-02-15 21:54:47.566948779 +0900 KST m=+164.587450266 processes Error fetching PID info for 31, skipping: FillPidMetrics: error getting metadata for pid 31: error fetching exe from pid 31: readlink /proc/31/exe: no such file or directory [github.com/elastic/elastic-agent-system-metrics@v0.9.1/metric/system/process/process.go:173](http://github.com/elastic/elastic-agent-system-metrics@v0.9.1/metric/system/process/process.go:173) }
{debug 2024-02-15 21:54:47.567013431 +0900 KST m=+164.587514917 processes Error fetching PID info for 32, skipping: FillPidMetrics: error getting metadata for pid 32: error fetching exe from pid 32: readlink /proc/32/exe: no such file or directory [github.com/elastic/elastic-agent-system-metrics@v0.9.1/metric/system/process/process.go:173](http://github.com/elastic/elastic-agent-system-metrics@v0.9.1/metric/system/process/process.go:173) }
{debug 2024-02-15 21:54:47.56707836 +0900 KST m=+164.587579847 processes Error fetching PID info for 33, skipping: FillPidMetrics: error getting metadata for pid 33: error fetching exe from pid 33: readlink /proc/33/exe: no such file or directory [github.com/elastic/elastic-agent-system-metrics@v0.9.1/metric/system/process/process.go:173](http://github.com/elastic/elastic-agent-system-metrics@v0.9.1/metric/system/process/process.go:173) }
{debug 2024-02-15 21:54:47.567138127 +0900 KST m=+164.587639613 processes Error fetching PID info for 41, skipping: FillPidMetrics: error getting metadata for pid 41: error fetching exe from pid 41: readlink /proc/41/exe: no such file or directory [github.com/elastic/elastic-agent-system-metrics@v0.9.1/metric/system/process/process.go:173](http://github.com/elastic/elastic-agent-system-metrics@v0.9.1/metric/system/process/process.go:173) }
{debug 2024-02-15 21:54:47.56720687 +0900 KST m=+164.587708356 processes Error fetching PID info for 43, skipping: FillPidMetrics: error getting metadata for pid 43: error fetching exe from pid 43: readlink /proc/43/exe: no such file or directory [github.com/elastic/elastic-agent-system-metrics@v0.9.1/metric/system/process/process.go:173](http://github.com/elastic/elastic-agent-system-metrics@v0.9.1/metric/system/process/process.go:173) }
{debug 2024-02-15 21:54:47.567265739 +0900 KST m=+164.587767226 processes Error fetching PID info for 44, skipping: FillPidMetrics: error getting metadata for pid 44: error fetching exe from pid 44: readlink /proc/44/exe: no such file or directory [github.com/elastic/elastic-agent-system-metrics@v0.9.1/metric/system/process/process.go:173](http://github.com/elastic/elastic-agent-system-metrics@v0.9.1/metric/system/process/process.go:173) }
{debug 2024-02-15 21:54:47.567338611 +0900 KST m=+164.587840102 processes Error fetching PID info for 45, skipping: FillPidMetrics: error getting metadata for pid 45: error fetching exe from pid 45: readlink /proc/45/exe: no such file or directory [github.com/elastic/elastic-agent-system-metrics@v0.9.1/metric/system/process/process.go:173](http://github.com/elastic/elastic-agent-system-metrics@v0.9.1/metric/system/process/process.go:173) }
{debug 2024-02-15 21:54:47.567429495 +0900 KST m=+164.587930985 processes Error fetching PID info for 46, skipping: FillPidMetrics: error getting metadata for pid 46: error fetching exe from pid 46: readlink /proc/46/exe: no such file or directory [github.com/elastic/elastic-agent-system-metrics@v0.9.1/metric/system/process/process.go:173](http://github.com/elastic/elastic-agent-system-metrics@v0.9.1/metric/system/process/process.go:173) }
{debug 2024-02-15 21:54:47.567500014 +0900 KST m=+164.588001503 processes Error fetching PID info for 48, skipping: FillPidMetrics: error getting metadata for pid 48: error fetching exe from pid 48: readlink /proc/48/exe: no such file or directory [github.com/elastic/elastic-agent-system-metrics@v0.9.1/metric/system/process/process.go:173](http://github.com/elastic/elastic-agent-system-metrics@v0.9.1/metric/system/process/process.go:173) }
{debug 2024-02-15 21:54:47.567568147 +0900 KST m=+164.588069633 processes Error fetching PID info for 60, skipping: FillPidMetrics: error getting metadata for pid 60: error fetching exe from pid 60: readlink /proc/60/exe: no such file or directory [github.com/elastic/elastic-agent-system-metrics@v0.9.1/metric/system/process/process.go:173](http://github.com/elastic/elastic-agent-system-metrics@v0.9.1/metric/system/process/process.go:173) }
{debug 2024-02-15 21:54:47.567629191 +0900 KST m=+164.588130677 processes Error fetching PID info for 96, skipping: FillPidMetrics: error getting metadata for pid 96: error fetching exe from pid 96: readlink /proc/96/exe: no such file or directory [github.com/elastic/elastic-agent-system-metrics@v0.9.1/metric/system/process/process.go:173](http://github.com/elastic/elastic-agent-system-metrics@v0.9.1/metric/system/process/process.go:173) }
{debug 2024-02-15 21:54:47.567694793 +0900 KST m=+164.588196280 processes Error fetching PID info for 278, skipping: FillPidMetrics: error getting metadata for pid 278: error fetching exe from pid 278: readlink /proc/278/exe: no such file or directory [github.com/elastic/elastic-agent-system-metrics@v0.9.1/metric/system/process/process.go:173](http://github.com/elastic/elastic-agent-system-metrics@v0.9.1/metric/system/process/process.go:173) }
{debug 2024-02-15 21:54:47.567772763 +0900 KST m=+164.588274250 processes Error fetching PID info for 280, skipping: FillPidMetrics: error getting metadata for pid 280: error fetching exe from pid 280: readlink /proc/280/exe: no such file or directory [github.com/elastic/elastic-agent-system-metrics@v0.9.1/metric/system/process/process.go:173](http://github.com/elastic/elastic-agent-system-metrics@v0.9.1/metric/system/process/process.go:173) }
{debug 2024-02-15 21:54:47.569107788 +0900 KST m=+164.589609283 processes Error fetching PID info for 282, skipping: FillPidMetrics: error getting metadata for pid 282: error fetching exe from pid 282: readlink /proc/282/exe: no such file or directory [github.com/elastic/elastic-agent-system-metrics@v0.9.1/metric/system/process/process.go:173](http://github.com/elastic/elastic-agent-system-metrics@v0.9.1/metric/system/process/process.go:173) }
{debug 2024-02-15 21:54:47.569198831 +0900 KST m=+164.589700317 processes Error fetching PID info for 283, skipping: FillPidMetrics: error getting metadata for pid 283: error fetching exe from pid 283: readlink /proc/283/exe: no such file or directory [github.com/elastic/elastic-agent-system-metrics@v0.9.1/metric/system/process/process.go:173](http://github.com/elastic/elastic-agent-system-metrics@v0.9.1/metric/system/process/process.go:173) }
{debug 2024-02-15 21:54:47.569280604 +0900 KST m=+164.589782095 processes Error fetching PID info for 284, skipping: FillPidMetrics: error getting metadata for pid 284: error fetching exe from pid 284: readlink /proc/284/exe: no such file or directory [github.com/elastic/elastic-agent-system-metrics@v0.9.1/metric/system/process/process.go:173](http://github.com/elastic/elastic-agent-system-metrics@v0.9.1/metric/system/process/process.go:173) }
{debug 2024-02-15 21:54:47.569367313 +0900 KST m=+164.589868804 processes Error fetching PID info for 285, skipping: FillPidMetrics: error getting metadata for pid 285: error fetching exe from pid 285: readlink /proc/285/exe: no such file or directory [github.com/elastic/elastic-agent-system-metrics@v0.9.1/metric/system/process/process.go:173](http://github.com/elastic/elastic-agent-system-metrics@v0.9.1/metric/system/process/process.go:173) }
{debug 2024-02-15 21:54:47.569441496 +0900 KST m=+164.589942986 processes Error fetching PID info for 286, skipping: FillPidMetrics: error getting metadata for pid 286: error fetching exe from pid 286: readlink /proc/286/exe: no such file or directory [github.com/elastic/elastic-agent-system-metrics@v0.9.1/metric/system/process/process.go:173](http://github.com/elastic/elastic-agent-system-metrics@v0.9.1/metric/system/process/process.go:173) }
{debug 2024-02-15 21:54:47.569511647 +0900 KST m=+164.590013136 processes Error fetching PID info for 287, skipping: FillPidMetrics: error getting metadata for pid 287: error fetching exe from pid 287: readlink /proc/287/exe: no such file or directory [github.com/elastic/elastic-agent-system-metrics@v0.9.1/metric/system/process/process.go:173](http://github.com/elastic/elastic-agent-system-metrics@v0.9.1/metric/system/process/process.go:173) }
{debug 2024-02-15 21:54:47.569573352 +0900 KST m=+164.590074839 processes Error fetching PID info for 289, skipping: FillPidMetrics: error getting metadata for pid 289: error fetching exe from pid 289: readlink /proc/289/exe: no such file or directory [github.com/elastic/elastic-agent-system-metrics@v0.9.1/metric/system/process/process.go:173](http://github.com/elastic/elastic-agent-system-metrics@v0.9.1/metric/system/process/process.go:173) }
{debug 2024-02-15 21:54:47.569635084 +0900 KST m=+164.590136570 processes Error fetching PID info for 290, skipping: FillPidMetrics: error getting metadata for pid 290: error fetching exe from pid 290: readlink /proc/290/exe: no such file or directory [github.com/elastic/elastic-agent-system-metrics@v0.9.1/metric/system/process/process.go:173](http://github.com/elastic/elastic-agent-system-metrics@v0.9.1/metric/system/process/process.go:173) }
{debug 2024-02-15 21:54:47.569696924 +0900 KST m=+164.590198412 processes Error fetching PID info for 365, skipping: FillPidMetrics: error getting metadata for pid 365: error fetching exe from pid 365: readlink /proc/365/exe: no such file or directory [github.com/elastic/elastic-agent-system-metrics@v0.9.1/metric/system/process/process.go:173](http://github.com/elastic/elastic-agent-system-metrics@v0.9.1/metric/system/process/process.go:173) }
{debug 2024-02-15 21:54:47.569759136 +0900 KST m=+164.590260623 processes Error fetching PID info for 366, skipping: FillPidMetrics: error getting metadata for pid 366: error fetching exe from pid 366: readlink /proc/366/exe: no such file or directory [github.com/elastic/elastic-agent-system-metrics@v0.9.1/metric/system/process/process.go:173](http://github.com/elastic/elastic-agent-system-metrics@v0.9.1/metric/system/process/process.go:173) }
{debug 2024-02-15 21:54:47.569828086 +0900 KST m=+164.590329574 processes Error fetching PID info for 375, skipping: FillPidMetrics: error getting metadata for pid 375: error fetching exe from pid 375: readlink /proc/375/exe: no such file or directory [github.com/elastic/elastic-agent-system-metrics@v0.9.1/metric/system/process/process.go:173](http://github.com/elastic/elastic-agent-system-metrics@v0.9.1/metric/system/process/process.go:173) }
{debug 2024-02-15 21:54:47.569895671 +0900 KST m=+164.590397157 processes Error fetching PID info for 376, skipping: FillPidMetrics: error getting metadata for pid 376: error fetching exe from pid 376: readlink /proc/376/exe: no such file or directory [github.com/elastic/elastic-agent-system-metrics@v0.9.1/metric/system/process/process.go:173](http://github.com/elastic/elastic-agent-system-metrics@v0.9.1/metric/system/process/process.go:173) }
{debug 2024-02-15 21:54:47.5699566 +0900 KST m=+164.590458087 processes Error fetching PID info for 389, skipping: FillPidMetrics: error getting metadata for pid 389: error fetching exe from pid 389: readlink /proc/389/exe: no such file or directory [github.com/elastic/elastic-agent-system-metrics@v0.9.1/metric/system/process/process.go:173](http://github.com/elastic/elastic-agent-system-metrics@v0.9.1/metric/system/process/process.go:173) }
{debug 2024-02-15 21:54:47.570019531 +0900 KST m=+164.590521016 processes Error fetching PID info for 390, skipping: FillPidMetrics: error getting metadata for pid 390: error fetching exe from pid 390: readlink /proc/390/exe: no such file or directory [github.com/elastic/elastic-agent-system-metrics@v0.9.1/metric/system/process/process.go:173](http://github.com/elastic/elastic-agent-system-metrics@v0.9.1/metric/system/process/process.go:173) }
{debug 2024-02-15 21:54:47.570079269 +0900 KST m=+164.590580755 processes Error fetching PID info for 391, skipping: FillPidMetrics: error getting metadata for pid 391: error fetching exe from pid 391: readlink /proc/391/exe: no such file or directory [github.com/elastic/elastic-agent-system-metrics@v0.9.1/metric/system/process/process.go:173](http://github.com/elastic/elastic-agent-system-metrics@v0.9.1/metric/system/process/process.go:173) }
{debug 2024-02-15 21:54:47.570139988 +0900 KST m=+164.590641474 processes Error fetching PID info for 392, skipping: FillPidMetrics: error getting metadata for pid 392: error fetching exe from pid 392: readlink /proc/392/exe: no such file or directory [github.com/elastic/elastic-agent-system-metrics@v0.9.1/metric/system/process/process.go:173](http://github.com/elastic/elastic-agent-system-metrics@v0.9.1/metric/system/process/process.go:173) }
{debug 2024-02-15 21:54:47.570198726 +0900 KST m=+164.590700213 processes Error fetching PID info for 393, skipping: FillPidMetrics: error getting metadata for pid 393: error fetching exe from pid 393: readlink /proc/393/exe: no such file or directory [github.com/elastic/elastic-agent-system-metrics@v0.9.1/metric/system/process/process.go:173](http://github.com/elastic/elastic-agent-system-metrics@v0.9.1/metric/system/process/process.go:173) }
{debug 2024-02-15 21:54:47.57027191 +0900 KST m=+164.590773400 processes Error fetching PID info for 394, skipping: FillPidMetrics: error getting metadata for pid 394: error fetching exe from pid 394: readlink /proc/394/exe: no such file or directory [github.com/elastic/elastic-agent-system-metrics@v0.9.1/metric/system/process/process.go:173](http://github.com/elastic/elastic-agent-system-metrics@v0.9.1/metric/system/process/process.go:173) }
{debug 2024-02-15 21:54:47.570359249 +0900 KST m=+164.590860748 processes Error fetching PID info for 395, skipping: FillPidMetrics: error getting metadata for pid 395: error fetching exe from pid 395: readlink /proc/395/exe: no such file or directory [github.com/elastic/elastic-agent-system-metrics@v0.9.1/metric/system/process/process.go:173](http://github.com/elastic/elastic-agent-system-metrics@v0.9.1/metric/system/process/process.go:173) }
{debug 2024-02-15 21:54:47.570430843 +0900 KST m=+164.590932333 processes Error fetching PID info for 396, skipping: FillPidMetrics: error getting metadata for pid 396: error fetching exe from pid 396: readlink /proc/396/exe: no such file or directory [github.com/elastic/elastic-agent-system-metrics@v0.9.1/metric/system/process/process.go:173](http://github.com/elastic/elastic-agent-system-metrics@v0.9.1/metric/system/process/process.go:173) }
{debug 2024-02-15 21:54:47.57050474 +0900 KST m=+164.591006226 processes Error fetching PID info for 397, skipping: FillPidMetrics: error getting metadata for pid 397: error fetching exe from pid 397: readlink /proc/397/exe: no such file or directory [github.com/elastic/elastic-agent-system-metrics@v0.9.1/metric/system/process/process.go:173](http://github.com/elastic/elastic-agent-system-metrics@v0.9.1/metric/system/process/process.go:173) }
{debug 2024-02-15 21:54:47.570570481 +0900 KST m=+164.591071968 processes Error fetching PID info for 398, skipping: FillPidMetrics: error getting metadata for pid 398: error fetching exe from pid 398: readlink /proc/398/exe: no such file or directory [github.com/elastic/elastic-agent-system-metrics@v0.9.1/metric/system/process/process.go:173](http://github.com/elastic/elastic-agent-system-metrics@v0.9.1/metric/system/process/process.go:173) }
{debug 2024-02-15 21:54:47.570631575 +0900 KST m=+164.591133061 processes Error fetching PID info for 399, skipping: FillPidMetrics: error getting metadata for pid 399: error fetching exe from pid 399: readlink /proc/399/exe: no such file or directory [github.com/elastic/elastic-agent-system-metrics@v0.9.1/metric/system/process/process.go:173](http://github.com/elastic/elastic-agent-system-metrics@v0.9.1/metric/system/process/process.go:173) }
{debug 2024-02-15 21:54:47.570693711 +0900 KST m=+164.591195197 processes Error fetching PID info for 400, skipping: FillPidMetrics: error getting metadata for pid 400: error fetching exe from pid 400: readlink /proc/400/exe: no such file or directory [github.com/elastic/elastic-agent-system-metrics@v0.9.1/metric/system/process/process.go:173](http://github.com/elastic/elastic-agent-system-metrics@v0.9.1/metric/system/process/process.go:173) }
{debug 2024-02-15 21:54:47.575619182 +0900 KST m=+164.596120668 processes Error fetching PID info for 564, skipping: FillPidMetrics: error getting metadata for pid 564: error fetching exe from pid 564: readlink /proc/564/exe: no such file or directory [github.com/elastic/elastic-agent-system-metrics@v0.9.1/metric/system/process/process.go:173](http://github.com/elastic/elastic-agent-system-metrics@v0.9.1/metric/system/process/process.go:173) }
{debug 2024-02-15 21:54:47.575688894 +0900 KST m=+164.596190378 processes Error fetching PID info for 566, skipping: FillPidMetrics: error getting metadata for pid 566: error fetching exe from pid 566: readlink /proc/566/exe: no such file or directory [github.com/elastic/elastic-agent-system-metrics@v0.9.1/metric/system/process/process.go:173](http://github.com/elastic/elastic-agent-system-metrics@v0.9.1/metric/system/process/process.go:173) }
{debug 2024-02-15 21:54:47.575752643 +0900 KST m=+164.596254130 processes Error fetching PID info for 568, skipping: FillPidMetrics: error getting metadata for pid 568: error fetching exe from pid 568: readlink /proc/568/exe: no such file or directory [github.com/elastic/elastic-agent-system-metrics@v0.9.1/metric/system/process/process.go:173](http://github.com/elastic/elastic-agent-system-metrics@v0.9.1/metric/system/process/process.go:173) }
{debug 2024-02-15 21:54:47.575814917 +0900 KST m=+164.596316403 processes Error fetching PID info for 570, skipping: FillPidMetrics: error getting metadata for pid 570: error fetching exe from pid 570: readlink /proc/570/exe: no such file or directory [github.com/elastic/elastic-agent-system-metrics@v0.9.1/metric/system/process/process.go:173](http://github.com/elastic/elastic-agent-system-metrics@v0.9.1/metric/system/process/process.go:173) }
{debug 2024-02-15 21:54:47.575876517 +0900 KST m=+164.596378004 processes Error fetching PID info for 572, skipping: FillPidMetrics: error getting metadata for pid 572: error fetching exe from pid 572: readlink /proc/572/exe: no such file or directory [github.com/elastic/elastic-agent-system-metrics@v0.9.1/metric/system/process/process.go:173](http://github.com/elastic/elastic-agent-system-metrics@v0.9.1/metric/system/process/process.go:173) }
{debug 2024-02-15 21:54:47.57596578 +0900 KST m=+164.596467265 processes Error fetching PID info for 574, skipping: FillPidMetrics: error getting metadata for pid 574: error fetching exe from pid 574: readlink /proc/574/exe: no such file or directory [github.com/elastic/elastic-agent-system-metrics@v0.9.1/metric/system/process/process.go:173](http://github.com/elastic/elastic-agent-system-metrics@v0.9.1/metric/system/process/process.go:173) }
{debug 2024-02-15 21:54:47.576031297 +0900 KST m=+164.596532783 processes Error fetching PID info for 576, skipping: FillPidMetrics: error getting metadata for pid 576: error fetching exe from pid 576: readlink /proc/576/exe: no such file or directory [github.com/elastic/elastic-agent-system-metrics@v0.9.1/metric/system/process/process.go:173](http://github.com/elastic/elastic-agent-system-metrics@v0.9.1/metric/system/process/process.go:173) }
{debug 2024-02-15 21:54:47.576090552 +0900 KST m=+164.596592040 processes Error fetching PID info for 586, skipping: FillPidMetrics: error getting metadata for pid 586: error fetching exe from pid 586: readlink /proc/586/exe: no such file or directory [github.com/elastic/elastic-agent-system-metrics@v0.9.1/metric/system/process/process.go:173](http://github.com/elastic/elastic-agent-system-metrics@v0.9.1/metric/system/process/process.go:173) }
{debug 2024-02-15 21:54:47.613885343 +0900 KST m=+164.634386835 processes Error fetching PID info for 1816, skipping: FillPidMetrics: error getting metadata for pid 1816: error fetching exe from pid 1816: readlink /proc/1816/exe: no such file or directory [github.com/elastic/elastic-agent-system-metrics@v0.9.1/metric/system/process/process.go:173](http://github.com/elastic/elastic-agent-system-metrics@v0.9.1/metric/system/process/process.go:173) }
{debug 2024-02-15 21:54:47.613968539 +0900 KST m=+164.634470026 processes Error fetching PID info for 1910, skipping: FillPidMetrics: error getting metadata for pid 1910: error fetching exe from pid 1910: readlink /proc/1910/exe: no such file or directory [github.com/elastic/elastic-agent-system-metrics@v0.9.1/metric/system/process/process.go:173](http://github.com/elastic/elastic-agent-system-metrics@v0.9.1/metric/system/process/process.go:173) }
{debug 2024-02-15 21:54:47.649063464 +0900 KST m=+164.669564958 Loaded configuration from /home/qwer/es_812/elastic-agent-8.12.1-linux-x86_64/elastic-agent.yml [github.com/elastic/elastic-agent/internal/pkg/config/loader.go:45](http://github.com/elastic/elastic-agent/internal/pkg/config/loader.go:45) }
{debug 2024-02-15 21:54:47.649117617 +0900 KST m=+164.669619100 Merged configuration from /home/qwer/es_812/elastic-agent-8.12.1-linux-x86_64/elastic-agent.yml into result [github.com/elastic/elastic-agent/internal/pkg/config/loader.go:57](http://github.com/elastic/elastic-agent/internal/pkg/config/loader.go:57) }
{debug 2024-02-15 21:54:47.64913017 +0900 KST m=+164.669631656 Merged all configuration files from [/home/qwer/es_812/elastic-agent-8.12.1-linux-x86_64/elastic-agent.yml], no external input files [github.com/elastic/elastic-agent/internal/pkg/config/loader.go:64](http://github.com/elastic/elastic-agent/internal/pkg/config/loader.go:64) }
{debug 2024-02-15 21:54:47.649427653 +0900 KST m=+164.669929149 composable Starting controller for composable inputs [github.com/elastic/elastic-agent/internal/pkg/composable/controller.go:112](http://github.com/elastic/elastic-agent/internal/pkg/composable/controller.go:112) }
{debug 2024-02-15 21:54:47.649499007 +0900 KST m=+164.670000499 composable Started controller for composable inputs [github.com/elastic/elastic-agent/internal/pkg/composable/controller.go:155](http://github.com/elastic/elastic-agent/internal/pkg/composable/controller.go:155) }
{debug 2024-02-15 21:54:47.649669955 +0900 KST m=+164.670171446 composable Variable state changed for composable inputs; debounce started [github.com/elastic/elastic-agent/internal/pkg/composable/controller.go:191](http://github.com/elastic/elastic-agent/internal/pkg/composable/controller.go:191) }
{debug 2024-02-15 21:54:47.658503122 +0900 KST m=+164.679004630 composable Kubernetes leaderelection provider skipped, unable to connect: unable to build kube config due to error: invalid configuration: no configuration has been provided, try setting KUBERNETES_MASTER environment variable [github.com/elastic/elastic-agent/internal/pkg/composable/providers/kubernetesleaderelection/kubernetes_leaderelection.go:53](http://github.com/elastic/elastic-agent/internal/pkg/composable/providers/kubernetesleaderelection/kubernetes_leaderelection.go:53) }
{debug 2024-02-15 21:54:47.658628325 +0900 KST m=+164.679129812 composable Kubernetes_secrets provider skipped, unable to connect: unable to build kube config due to error: invalid configuration: no configuration has been provided, try setting KUBERNETES_MASTER environment variable [github.com/elastic/elastic-agent/internal/pkg/composable/providers/kubernetessecrets/kubernetes_secrets.go:97](http://github.com/elastic/elastic-agent/internal/pkg/composable/providers/kubernetessecrets/kubernetes_secrets.go:97) }
{debug 2024-02-15 21:54:47.658738305 +0900 KST m=+164.679239789 docker Docker client will negotiate the API version on the first request. [github.com/elastic/elastic-agent-autodiscover@v0.6.6/docker/client.go:49](http://github.com/elastic/elastic-agent-autodiscover@v0.6.6/docker/client.go:49) }
{info 2024-02-15 21:54:47.659471067 +0900 KST m=+164.679972555 composable.providers.docker Docker provider skipped, unable to connect: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running? [github.com/elastic/elastic-agent/internal/pkg/composable/providers/docker/docker.go:44](http://github.com/elastic/elastic-agent/internal/pkg/composable/providers/docker/docker.go:44) }
{debug 2024-02-15 21:54:47.659590226 +0900 KST m=+164.680091709 composable.providers.kubernetes Kubernetes provider for resource pod skipped, unable to connect: unable to build kube config due to error: invalid configuration: no configuration has been provided, try setting KUBERNETES_MASTER environment variable [github.com/elastic/elastic-agent/internal/pkg/composable/providers/kubernetes/kubernetes.go:106](http://github.com/elastic/elastic-agent/internal/pkg/composable/providers/kubernetes/kubernetes.go:106) }
{debug 2024-02-15 21:54:47.659626251 +0900 KST m=+164.680127737 composable.providers.kubernetes Kubernetes provider for resource node skipped, unable to connect: unable to build kube config due to error: invalid configuration: no configuration has been provided, try setting KUBERNETES_MASTER environment variable [github.com/elastic/elastic-agent/internal/pkg/composable/providers/kubernetes/kubernetes.go:106](http://github.com/elastic/elastic-agent/internal/pkg/composable/providers/kubernetes/kubernetes.go:106) }
{debug 2024-02-15 21:54:47.750686436 +0900 KST m=+164.771187942 composable Computing new variable state for composable inputs [github.com/elastic/elastic-agent/internal/pkg/composable/controller.go:207](http://github.com/elastic/elastic-agent/internal/pkg/composable/controller.go:207) }
{debug 2024-02-15 21:54:47.750820571 +0900 KST m=+164.771322077 composable Stopping controller for composable inputs [github.com/elastic/elastic-agent/internal/pkg/composable/controller.go:159](http://github.com/elastic/elastic-agent/internal/pkg/composable/controller.go:159) }
{debug 2024-02-15 21:54:47.861274952 +0900 KST m=+164.881776445 composable Stopped controller for composable inputs [github.com/elastic/elastic-agent/internal/pkg/composable/controller.go:188](http://github.com/elastic/elastic-agent/internal/pkg/composable/controller.go:188) }
Error: enroll command failed for unknown reason: exit status 1

How did you remove fleetserver and the elastic-agent? Did you use the elastic-agent uninstall command?

Can you confirm that the fleet-server integration is still present in the fleet-server-policy?

there's nothing left at fleet-server-policy

and when i delete first time, i didn't elastic-agent-uninstall command, I just delete every folders.

i tried to install with tar and rpm

The policy needs a fleet-server integration in order to function.

I too am having what seems like exactly the same issue.
@01052346103a did you manage to resolve this?

@MichelLaterman I do think I have the right setup, but fail at the step:

[====] Waiting For Enroll...  [13s] {"log.level":"info","@timestamp":"2024-02-28T14:29:07.406Z","log.origin":{"file.name":"cmd/enroll_cmd.go","file.line":837},"message":"Fleet Server - Waiting on fleet-server input to be added to policy: fleet-server-policy","ecs.version":"1.6.0"}
[    ] Waiting For Enroll...  [2m7s] Error: fleet-server failed: context canceled

Have I missed something? Well, I guess I have :wink:
I've been at this now at three separate occations, read a whole bunch of posts, but can't get forward.

What install command did you use?
Can you confirm that the service token you used is related to the posted policy and not another one?