# \[apm\]\[help\]APM Server Wont start and fetch indices

**URL:** <https://discuss.elastic.co/t/apm-help-apm-server-wont-start-and-fetch-indices/323086>\
**Category:** APM\
**Tags:** server\
**Created:** [January 13, 2023, 5:26am UTC](https://discuss.elastic.co/t/apm-help-apm-server-wont-start-and-fetch-indices/323086 "2023-01-13T05:26:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![atharvaunde](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/atharvaunde/32/115890_2.png) [@atharvaunde](https://discuss.elastic.co/u/atharvaunde)\
**Post date:** [January 13, 2023, 5:26am UTC](https://discuss.elastic.co/t/apm-help-apm-server-wont-start-and-fetch-indices/323086/1 "2023-01-13T05:26:26Z")

</div>

Hello Team, I just downloaded tar file for apm server (arm64) and extracted on the host where ES and Kibana is installed.

the output of output test is as following

```auto
ubuntu@ip-10-0-3-189:~/apm-server-8.6.0-linux-arm64$ ./apm-server test output
elasticsearch: http://localhost:9200...
  parse url... OK
  connection...
    parse host... OK
    dns lookup... OK
    addresses: 127.0.0.1
    dial up... OK
  TLS... WARN secure connection disabled
  talk to server... OK
  version: 8.6.0

```

but in the console, am getting this error on server.

```auto
{"log.level":"error","@timestamp":"2023-01-13T05:25:17.356Z","log.logger":"beater","log.origin":{"file.name":"beater/waitready.go","file.line":62},"message":"precondition 'apm integration installed' failed: error querying Elasticsearch for integration index templates: unexpected HTTP status: 404 Not Found ({\"error\":{\"root_cause\":[{\"type\":\"resource_not_found_exception\",\"reason\":\"index template matching [logs-apm.error] not found\"}],\"type\":\"resource_not_found_exception\",\"reason\":\"index template matching [logs-apm.error] not found\"},\"status\":404}): to remediate, please install the apm integration: https://ela.st/apm-integration-quickstart","service.name":"apm-server","ecs.version":"1.6.0"}
{"log.level":"error","@timestamp":"2023-01-13T05:25:22.355Z","log.logger":"beater","log.origin":{"file.name":"beater/waitready.go","file.line":62},"message":"precondition 'apm integration installed' failed: error querying Elasticsearch for integration index templates: unexpected HTTP status: 404 Not Found ({\"error\":{\"root_cause\":[{\"type\":\"resource_not_found_exception\",\"reason\":\"index template matching [logs-apm.error] not found\"}],\"type\":\"resource_not_found_exception\",\"reason\":\"index template matching [logs-apm.error] not found\"},\"status\":404}): to remediate, please install the apm integration: https://ela.st/apm-integration-quickstart","service.name":"apm-server","ecs.version":"1.6.0"}

```

as am running this locally, is it mandatory to have ES authentication enabled?

---

<div class="post-metadata">

**Author:** ![simitt](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/simitt/32/106406_2.png) [@simitt](https://discuss.elastic.co/u/simitt)\
**Post date:** [January 13, 2023, 12:53pm UTC](https://discuss.elastic.co/t/apm-help-apm-server-wont-start-and-fetch-indices/323086/2 "2023-01-13T12:53:31Z")

</div>

Hi @atharvaunde ,

this looks like the Elasticsearch index templates and pipelines have not been set up. Please refer to [how to install the APM integration](https://www.elastic.co/guide/en/apm/guide/current/apm-server-configuration.html#_install_the_apm_integration) which guides you through how to set up these templates. Once this is done, the APM Server will recognize and can start ingestion.

---

<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:** [February 3, 2023, 8:53am UTC](https://discuss.elastic.co/t/apm-help-apm-server-wont-start-and-fetch-indices/323086/3 "2023-02-03T08:53:44Z")

</div>

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