# "curl (56) Failure" for alias PUT call

**URL:** <https://discuss.elastic.co/t/curl-56-failure-for-alias-put-call/123466>\
**Category:** Elasticsearch\
**Created:** [March 12, 2018, 2:07am UTC](https://discuss.elastic.co/t/curl-56-failure-for-alias-put-call/123466 "2018-03-12T02:07:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jihun](https://avatars.discourse-cdn.com/v4/letter/j/4bbf92/32.png) [@jihun](https://discuss.elastic.co/u/jihun)\
**Post date:** [March 12, 2018, 2:07am UTC](https://discuss.elastic.co/t/curl-56-failure-for-alias-put-call/123466/1 "2018-03-12T02:07:57Z")

</div>

Recently, curl for ES cluster sometimes fails with "curl: (56) Failure when receiving data from the peer"

For example today a curl job run by Jenkins failed like below.  
( removing alias succeed but adding alias failed)

```
curl -X DELETE 'http://10.97.54.65:9200/jpl_denorm_band_*/_alias/head_jpl_denorm_band'
  % Total % Received % Xferd Average Speed Time Time Time Current
                                 Dload Upload Total Spent Left Speed

  0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
  0 21 0 21 0 0 112 0 --:--:-- --:--:-- --:--:-- 112
{"acknowledged":true}

curl -X PUT http://10.97.54.65:9200/jpl_denorm_band_20180311/_alias/head_jpl_denorm_band
  % Total % Received % Xferd Average Speed Time Time Time Current
                                 Dload Upload Total Spent Left Speed

  0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
  0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
curl: (56) Failure when receiving data from the peer
Build step 'Execute shell' marked build as failure

```

This is elasticsearch logs around that time

```
[2018-03-12T06:05:26,747][WARN][o.e.t.n.Netty4Transport] [xelastic101.band] exception caught on transport layer [[id: 0x1969e9e6, L:/10.97.54.65:9300 - R:/10.99.39.9:38746]], closing connection
java.lang.ClassCastException: null
[2018-03-12T06:11:55,684][WARN][o.e.h.n.Netty4HttpServerTransport] [xelastic101.band] caught exception while handling client http traffic, closing connection [id: 0xfaf4fe37, L:/10.97.54.65:9200 - R:/10.99.39.9:51022]
java.lang.ClassCastException: null
[2018-03-12T06:38:09,485][WARN][o.e.t.n.Netty4Transport] [xelastic101.band] exception caught on transport layer [[id: 0x00995d3a, L:/10.97.54.65:9300 - R:/10.99.39.9:39034]], closing connection
java.lang.ClassCastException: null 

```

Also GC log

```
2018-03-12T06:11:47.318+0900: 1002398.844: [GC pause (G1 Evacuation Pause) (young), 0.0481982 secs]
   [Parallel Time: 32.0 ms, GC Workers: 23]
      [GC Worker Start (ms): Min: 1002398845.4, Avg: 1002398845.5, Max: 1002398845.5, Diff: 0.1]
      [Ext Root Scanning (ms): Min: 1.1, Avg: 1.2, Max: 1.4, Diff: 0.3, Sum: 27.7]
      [Update RS (ms): Min: 23.4, Avg: 23.8, Max: 24.7, Diff: 1.2, Sum: 546.3]
         [Processed Buffers: Min: 27, Avg: 41.2, Max: 62, Diff: 35, Sum: 948]
      [Scan RS (ms): Min: 0.4, Avg: 1.2, Max: 1.5, Diff: 1.1, Sum: 28.6]
      [Code Root Scanning (ms): Min: 0.0, Avg: 0.0, Max: 0.0, Diff: 0.0, Sum: 0.1]
      [Object Copy (ms): Min: 5.2, Avg: 5.4, Max: 5.5, Diff: 0.2, Sum: 123.7]
      [Termination (ms): Min: 0.0, Avg: 0.0, Max: 0.1, Diff: 0.1, Sum: 0.4]
         [Termination Attempts: Min: 1, Avg: 1.5, Max: 3, Diff: 2, Sum: 34]
      [GC Worker Other (ms): Min: 0.1, Avg: 0.1, Max: 0.2, Diff: 0.2, Sum: 3.3]
      [GC Worker Total (ms): Min: 31.6, Avg: 31.7, Max: 31.9, Diff: 0.3, Sum: 730.1]
      [GC Worker End (ms): Min: 1002398877.1, Avg: 1002398877.2, Max: 1002398877.3, Diff: 0.2]
   [Code Root Fixup: 0.1 ms]
   [Code Root Purge: 0.0 ms]
   [Clear CT: 1.9 ms]
   [Other: 14.3 ms]
      [Choose CSet: 0.0 ms]
      [Ref Proc: 8.4 ms]
      [Ref Enq: 0.5 ms]
      [Redirty Cards: 0.2 ms]
      [Humongous Register: 0.5 ms]
      [Humongous Reclaim: 0.3 ms]
      [Free CSet: 2.9 ms]

```

Kibana monitoring logs

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/7/c/7cae7c3194921e29222c0e0975c6b969ef74a339.png)

Logs and monitoring chart looks not in trouble.  
What can I do check more about this problem?

---

<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 9, 2018, 2:08am UTC](https://discuss.elastic.co/t/curl-56-failure-for-alias-put-call/123466/2 "2018-04-09T02:08:05Z")

</div>

Closed on April 9, 2018, 2:08am UTC

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