# Failure with receiving network data - CURLE\_RECV\_ERROR (56)

**URL:** <https://discuss.elastic.co/t/failure-with-receiving-network-data-curle-recv-error-56/169556>\
**Category:** Logstash\
**Created:** [February 22, 2019, 10:36am UTC](https://discuss.elastic.co/t/failure-with-receiving-network-data-curle-recv-error-56/169556 "2019-02-22T10:36:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dominique\_Fabre](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dominique_fabre/32/41231_2.png) [@Dominique\_Fabre](https://discuss.elastic.co/u/Dominique_Fabre)\
**Post date:** [February 22, 2019, 10:36am UTC](https://discuss.elastic.co/t/failure-with-receiving-network-data-curle-recv-error-56/169556/1 "2019-02-22T10:36:44Z")

</div>

Hi,

I created a self-signed certificate like this  
openssl req -subj '/CN=logstash\_hostname/' -x509 -days 3652 -batch -nodes -newkey rsa:2048 -keyout logstash.key -out logstash.crt

Then i set the logstash configuration file with this input beats:  
input {  
beats {  
port =\> 1500  
host =\> "logstash\_hostname"  
ssl =\> true  
ssl\_certificate =\> "logstash.crt"  
ssl\_key =\> "logstash.key"  
}  
}

I test logstsah with the utility curl:

curl -v --cacert logstash.crt https://logstash\_hostname:1500

Then i get the following error:

- Rebuilt URL to: https://logstash\_hostname:1500
- Trying [IP]...
- TCP\_NODELAY set
- Connected to logstash\_hostname ([IP]) port 1500 (#0)
- ALPN, offering h2
- ALPN, offering http/1.1
- Cipher selection: ALL:!EXPORT:!EXPORT40:!EXPORT56:!aNULL:!LOW:!RC4:@STRENGTH
- successfully set certificate verify locations:
- CAfile: logstash.crt  
CApath: /etc/ssl/certs
- TLSv1.2 (OUT), TLS header, Certificate Status (22):
- TLSv1.2 (OUT), TLS handshake, Client hello (1):
- TLSv1.2 (IN), TLS handshake, Server hello (2):
- TLSv1.2 (IN), TLS handshake, Certificate (11):
- TLSv1.2 (IN), TLS handshake, Server key exchange (12):
- TLSv1.2 (IN), TLS handshake, Server finished (14):
- TLSv1.2 (OUT), TLS handshake, Client key exchange (16):
- TLSv1.2 (OUT), TLS change cipher, Client hello (1):
- TLSv1.2 (OUT), TLS handshake, Finished (20):
- TLSv1.2 (IN), TLS change cipher, Client hello (1):
- TLSv1.2 (IN), TLS handshake, Finished (20):
- SSL connection using TLSv1.2 / ECDHE-RSA-AES256-GCM-SHA384
- ALPN, server did not agree to a protocol
- Server certificate:
- subject: CN=logstash\_hostname
- start date: Jan 31 13:31:48 2019 GMT
- expire date: Jan 31 13:31:48 2020 GMT
- common name: logstash\_hostname (matched)
- issuer: CN=logstash\_hostname
- SSL certificate verify ok.  
\> GET / HTTP/1.1  
\> Host: logstash\_hostname:1500  
\> User-Agent: curl/7.52.1  
\> Accept: _/_  
\>
- SSL read: error:00000000:lib(0):func(0):reason(0), errno 104
- Curl\_http\_done: called premature == 1
- stopped the pause stream!
- Closing connection 0  
curl: (56) SSL read: error:00000000:lib(0):func(0):reason(0), errno 104

Any ideas about this?

---

<div class="post-metadata">

**Author:** ![Dominique\_Fabre](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dominique_fabre/32/41231_2.png) [@Dominique\_Fabre](https://discuss.elastic.co/u/Dominique_Fabre)\
**Post date:** [February 27, 2019, 10:50am UTC](https://discuss.elastic.co/t/failure-with-receiving-network-data-curle-recv-error-56/169556/2 "2019-02-27T10:50:13Z")

</div>

Hello,

I changed the port number from 1500 to 1501 and everything works fine...  
There must be a misconfiguration of my vm that hosts logstash and this leads to the error.

---

<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:** [March 27, 2019, 11:04am UTC](https://discuss.elastic.co/t/failure-with-receiving-network-data-curle-recv-error-56/169556/3 "2019-03-27T11:04:31Z")

</div>

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