# ECK fleet-server-agent errors after adding "policyID: eck-fleet-server"

**URL:** https://discuss.elastic.co/t/eck-fleet-server-agent-errors-after-adding-policyid-eck-fleet-server/340347
**Category:** Elasticsearch
**Tags:** docker
**Created:** [August 8, 2023, 9:18am UTC](https://discuss.elastic.co/t/eck-fleet-server-agent-errors-after-adding-policyid-eck-fleet-server/340347 "2023-08-08T09:18:04Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![khteh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/khteh/32/147573_2.png) [@khteh](https://discuss.elastic.co/u/khteh)
#### Post date: [August 8, 2023, 9:18am UTC](https://discuss.elastic.co/t/eck-fleet-server-agent-errors-after-adding-policyid-eck-fleet-server/340347/1 "2023-08-08T09:18:04Z")

</div>

Hit the following errors after adding the suggested configuration according to [https://www.elastic.co/guide/en/cloud-on-k8s/current/k8s-elastic-agent-fleet-quickstart.html:](https://www.elastic.co/guide/en/cloud-on-k8s/current/k8s-elastic-agent-fleet-quickstart.html:)

```auto
{"log.level":"error","@timestamp":"2023-08-08T09:15:00.917Z","message":"error while closing listener.","component":{"binary":"fleet-server","dataset":"elastic_agent.fleet_server","id":"fleet-server-default","type":"fleet-server"},"log":{"source":"fleet-server-default"},"error.message":"close tcp [::]:8220: use of closed network connection","ecs.version":"1.6.0","service.name":"fleet-server","ecs.version":"1.6.0"}
Error: fleet-server failed: context canceled
Error: enrollment failed: exit status 1

```

What was wrong and how to fix it?

---

<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: [September 5, 2023, 9:18am UTC](https://discuss.elastic.co/t/eck-fleet-server-agent-errors-after-adding-policyid-eck-fleet-server/340347/2 "2023-09-05T09:18:38Z")

</div>

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