# Error talk to server

**URL:** https://discuss.elastic.co/t/error-talk-to-server/328160
**Category:** APM
**Tags:** server
**Created:** [March 21, 2023, 11:24am UTC](https://discuss.elastic.co/t/error-talk-to-server/328160 "2023-03-21T11:24:31Z")
**Posts on this page:** 13
**Page:** 1

<div class="post-metadata">

### Author: ![rachit](https://avatars.discourse-cdn.com/v4/letter/r/91b2a8/32.png) [@rachit](https://discuss.elastic.co/u/rachit)
#### Post date: [March 21, 2023, 11:24am UTC](https://discuss.elastic.co/t/error-talk-to-server/328160/1 "2023-03-21T11:24:31Z")

</div>

Hi Team,

I'm facing error while connecting apm to Elasticsearch.

apm-server test output  
elasticsearch: [http://localhost:9200](http://localhost:9200)...  
parse url... OK  
connection...  
parse host... OK  
dns lookup... OK  
addresses: 127.0.0.1, ::1  
dial up... OK  
TLS... WARN secure connection disabled  
talk to server... ERROR Get "[http://localhost:9200](http://localhost:9200)": EOF

Thanks

---

<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: [March 21, 2023, 11:54am UTC](https://discuss.elastic.co/t/error-talk-to-server/328160/2 "2023-03-21T11:54:37Z")

</div>

This post does not contain any details necessary to offer guidance. Please add information about your installation method (native OS, docker, ..), the apm-server version, the configuration, whether you checked that the Elasticsearch endpoint is generally reachable from the host/container where apm-server is running, etc.

---

<div class="post-metadata">

### Author: ![rachit](https://avatars.discourse-cdn.com/v4/letter/r/91b2a8/32.png) [@rachit](https://discuss.elastic.co/u/rachit)
#### Post date: [March 21, 2023, 12:30pm UTC](https://discuss.elastic.co/t/error-talk-to-server/328160/3 "2023-03-21T12:30:13Z")

</div>

Hi Simitt,

Installation on AWS EC2 RHEL.  
APM version 8.4.3  
Elastic Search version 8.4.0 (Its reachable and working with Kibana already)

All service is running on same EC2 instance.

---

<div class="post-metadata">

### Author: ![rachit](https://avatars.discourse-cdn.com/v4/letter/r/91b2a8/32.png) [@rachit](https://discuss.elastic.co/u/rachit)
#### Post date: [March 21, 2023, 12:42pm UTC](https://discuss.elastic.co/t/error-talk-to-server/328160/4 "2023-03-21T12:42:12Z")

</div>

and i also tried with elastic user and new user (apm) alll give same error.

---

<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: [March 21, 2023, 12:54pm UTC](https://discuss.elastic.co/t/error-talk-to-server/328160/5 "2023-03-21T12:54:53Z")

</div>

Please share the `apm-server.yml` (remove any sensitive information from the config file before sharing) and check the apm-server logs if they contain any errors or warnings.

---

<div class="post-metadata">

### Author: ![rachit](https://avatars.discourse-cdn.com/v4/letter/r/91b2a8/32.png) [@rachit](https://discuss.elastic.co/u/rachit)
#### Post date: [March 21, 2023, 1:05pm UTC](https://discuss.elastic.co/t/error-talk-to-server/328160/6 "2023-03-21T13:05:05Z")

</div>

> [@simitt](#):
>
> apm-server.ym

![image](https://us1.discourse-cdn.com/elastic/original/3X/1/9/190786fa6ceedd233732a0e8a29bd443841194fe.png)

---

<div class="post-metadata">

### Author: ![rachit](https://avatars.discourse-cdn.com/v4/letter/r/91b2a8/32.png) [@rachit](https://discuss.elastic.co/u/rachit)
#### Post date: [March 21, 2023, 1:05pm UTC](https://discuss.elastic.co/t/error-talk-to-server/328160/7 "2023-03-21T13:05:56Z")

</div>

{"log.level":"error","@timestamp":"2023-03-21T13:05:44.238Z","log.logger":"beater","log.origin":{"file.name":"beater/waitready.go","file.line":64},"message":"precondition failed: EOF","service.name":"apm-server","ecs.version":"1.6.0"}

---

<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: [March 21, 2023, 2:15pm UTC](https://discuss.elastic.co/t/error-talk-to-server/328160/8 "2023-03-21T14:15:28Z")

</div>

You need to install the [APM Integration](https://www.elastic.co/guide/en/apm/guide/current/apm-server-configuration.html#_install_the_apm_integration) for the apm-server to be able to send data to Elasticsearch output.

---

<div class="post-metadata">

### Author: ![rachit](https://avatars.discourse-cdn.com/v4/letter/r/91b2a8/32.png) [@rachit](https://discuss.elastic.co/u/rachit)
#### Post date: [March 22, 2023, 4:54am UTC](https://discuss.elastic.co/t/error-talk-to-server/328160/9 "2023-03-22T04:54:31Z")

</div>

It was already done .

---

<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: [March 22, 2023, 11:12am UTC](https://discuss.elastic.co/t/error-talk-to-server/328160/10 "2023-03-22T11:12:58Z")

</div>

The error you shared is suggesting that the integration is not yet installed.

I suggest you start sending apm events to the apm server and share if there are any errors logged.

---

<div class="post-metadata">

### Author: ![rachit](https://avatars.discourse-cdn.com/v4/letter/r/91b2a8/32.png) [@rachit](https://discuss.elastic.co/u/rachit)
#### Post date: [March 22, 2023, 11:27am UTC](https://discuss.elastic.co/t/error-talk-to-server/328160/11 "2023-03-22T11:27:02Z")

</div>

But when i run below command its clear says its not connected to Elastic search.  
[ec2-user@ip-10-0-11-109 apm-server-8.4.3-linux-x86\_64]$ sudo /home/ec2-user/ELK/apm-server-8.4.3-linux-x86\_64/apm-server test output  
elasticsearch: [http://localhost:9200](http://localhost:9200)...  
parse url... OK  
connection...  
parse host... OK  
dns lookup... OK  
addresses: 127.0.0.1, ::1  
dial up... OK  
TLS... WARN secure connection disabled  
**talk to server... ERROR Get "[http://localhost:9200](http://localhost:9200)": EOF**

---

<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: [March 22, 2023, 1:00pm UTC](https://discuss.elastic.co/t/error-talk-to-server/328160/12 "2023-03-22T13:00:09Z")

</div>

For diagnosing the problem we need some log output of what is happening. The only error that you shared so far was related to APM Integration, and you already mentioned that you double checked that the integration is installed. (If setup is correct, you should not see this error being logged in the future).

The next possible way of investigating this is to generate some load against the server and see if it logs any further error detail when trying to send the data to ES.

---

<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: [April 12, 2023, 9:00am UTC](https://discuss.elastic.co/t/error-talk-to-server/328160/13 "2023-04-12T09:00:59Z")

</div>

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