# Fleet server failed to enroll

**URL:** <https://discuss.elastic.co/t/fleet-server-failed-to-enroll/379022>\
**Category:** Elastic Agent\
**Created:** [June 9, 2025, 7:28pm UTC](https://discuss.elastic.co/t/fleet-server-failed-to-enroll/379022 "2025-06-09T19:28:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![nerd](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nerd/32/143591_2.png) [@nerd](https://discuss.elastic.co/u/nerd)\
**Post date:** [June 9, 2025, 7:28pm UTC](https://discuss.elastic.co/t/fleet-server-failed-to-enroll/379022/1 "2025-06-09T19:28:09Z")

</div>

Hi team,

I’m currently facing issues enrolling the Fleet Server. During debugging, I encountered an EOF error, along with another related issue.

Is there a known problem with Elastic Agent version 7.17.13, or could this version be unstable?

---

<div class="post-metadata">

**Author:** ![Tortoise](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tortoise/32/147587_2.png) [@Tortoise](https://discuss.elastic.co/u/Tortoise)\
**Post date:** [June 10, 2025, 5:05am UTC](https://discuss.elastic.co/t/fleet-server-failed-to-enroll/379022/2 "2025-06-10T05:05:32Z")

</div>

Hello @nerd

Welcome to the community.

I was able to find similar issue but that was for filebeat :

> <https://github.com/elastic/beats/issues/31308>
>
> Using the \`close.reader.on\_eof: true\` option always results in the Error at the …EOF:
> So, am I missing some configuration here, or this a bug (as EOF should not be reported as error):
> 
> \[log.Errorf("Read line error: %v", err)\](https://github.com/elastic/beats/blob/v7.17.2/filebeat/input/filestream/input.go#L322)
> 
> \> 2022-04-14T18:59:16.106Z ERROR \[input.filestream\] filestream/input.go:322 Read line error: EOF {"id": "cdr-dqi", "source": "filestream::cdr-dqi::native::3561807-64769", "path": "/opt/sdf/cdr/ts\_20220414\_185910.cdr", "state-id": "native::3561807-64769"}
> 
> 
> filebeat.yaml
> 
> \`\`\`
> \# CDR
> \- type: filestream
> 
> # Change to true to enable this input configuration.
> enabled: true
> id: cdr-dqi
> 
> # Tuning options
> close.reader.on\_eof: true
> close\_inactive: 5m
> ignore\_older: 6m
> clean\_inactive: 7m
> 
> # Paths that should be crawled and fetched. Glob based paths.
> paths:
> - /opt/sdf/cdr/ts\_\[0-9\]\[0-9\]\[0-9\]\[0-9\]\[0-9\]\[0-9\]\[0-9\]\[0-9\]\_\*.cdr
> 
> # Optional additional fields. These fields can be freely picked
> # to add additional information to the crawled log files for filtering
> fields:
> logtype: cdr
> 
> # Exclude lines. A list of regular expressions to match. It drops the lines that are
> # matching any regular expression from the list.
> exclude\_lines: \["^CDR Header", "^CDR Footer"\]
> \`\`\`
> 
> File content:
> \> \[sdfrun@dqi-ssi2-dqi-86654c8476-52ctb cdr\]$ tail /opt/sdf/cdr/ts\_20220414\_185910.cdr
> \> ...
> \> DQI,F,1404202218:59:10.639,,unknownIMSI,,43,SOAP:SOAP request type error: start tag not found,0,N/A,N/A,2321,1,10.32.22.15
> \> DQI,F,1404202218:59:10.639,,unknownIMSI,,43,SOAP:SOAP request type error: start tag not found,0,N/A,N/A,2321,50,200.100.100.100
> \> CDR Footer
> \> \[sdfrun@dqi-ssi2-dqi-86654c8476-52ctb cdr\]$

Could you please share more information about the command , error message you are receiving while enrolling the elastic agent?

Thanks!!

---

<div class="post-metadata">

**Author:** ![nerd](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nerd/32/143591_2.png) [@nerd](https://discuss.elastic.co/u/nerd)\
**Post date:** [June 10, 2025, 7:25pm UTC](https://discuss.elastic.co/t/fleet-server-failed-to-enroll/379022/3 "2025-06-10T19:25:34Z")

</div>

I appreciate.Thankyu
