# APM server does not working

**URL:** <https://discuss.elastic.co/t/apm-server-does-not-working/374726>\
**Category:** APM\
**Tags:** fleet, server\
**Created:** [February 19, 2025, 7:50am UTC](https://discuss.elastic.co/t/apm-server-does-not-working/374726 "2025-02-19T07:50:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dhwo0787](https://avatars.discourse-cdn.com/v4/letter/d/ec9cab/32.png) [@dhwo0787](https://discuss.elastic.co/u/dhwo0787)\
**Post date:** [February 19, 2025, 7:50am UTC](https://discuss.elastic.co/t/apm-server-does-not-working/374726/1 "2025-02-19T07:50:20Z")

</div>

I install Fleet-managed APM-Server.  
It seems active, but show error codes and doesn't work as a service.

error :  
"message":"failed to clear scroll: context deadline exceeded","service.name":"apm-server","ecs.version":"1.6.0"

"message":"refresh cache error: context deadline exceeded","service.name":"apm-server","ecs.version":"1.6.0"}

"message":"precondition failed: error querying cluster\_uuid: status\_code=401","service.name":"apm-server","ecs.version":"1.6.0"}

These 3 error codes show every seconds.

I followed this [website](https://www.elastic.co/guide/en/observability/current/get-started-with-fleet-apm-server.html)

but, it doesn't work. Please help me

I write about my elasticsearch server setting in below.

\*apm\_server.yml :  
apm-server:  
host: "0.0.0.0:8200"

## output.elasticsearch: hosts: ["0.0.0.0:9200"] username: "elastic" password: "mypassword"(changed for security)

\*elasticsearch.yml :  
network.host: 0.0.0.0  
http.port: 9200

xpack.security.enabled: true  
xpack.security.enrollment.enabled: true

xpack.security.http.ssl:  
enabled: true  
keystore.path: certs/http.p12

xpack.security.transport.ssl:  
enabled: true  
verification\_mode: certificate  
keystore.path: certs/transport.p12  
truststore.path: certs/transport.p12

## cluster.initial\_master\_nodes: ["SSVELA1V"] http.host: 0.0.0.0 xpack.security.authc.api\_key.enabled: true

\*kibana.yml :  
server.port: 5601  
server.host: 0.0.0.0  
server.ssl.enabled: true  
server.ssl.certificate: /etc/kibana/cert/kib2.crt  
server.ssl.key: /etc/kibana/cert/kib2.key  
elasticsearch.username: "kibana\_system"  
elasticsearch.password: ""security change""  
xpack.fleet.registryUrl: "http://docker\_registry\_server:8080"  
xpack.encryptedSavedObjects.encryptionKey: "security change"  
xpack.reporting.encryptionKey: "security change"  
xpack.security.encryptionKey: "security change"
