# Why curl command is not showing o/p in proxy server

**URL:** <https://discuss.elastic.co/t/why-curl-command-is-not-showing-o-p-in-proxy-server/297854>\
**Category:** Elasticsearch\
**Created:** [February 22, 2022, 7:54am UTC](https://discuss.elastic.co/t/why-curl-command-is-not-showing-o-p-in-proxy-server/297854 "2022-02-22T07:54:34Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bhanuji\_paluri](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bhanuji_paluri/32/101841_2.png) [@Bhanuji\_paluri](https://discuss.elastic.co/u/Bhanuji_paluri)\
**Post date:** [February 22, 2022, 7:54am UTC](https://discuss.elastic.co/t/why-curl-command-is-not-showing-o-p-in-proxy-server/297854/1 "2022-02-22T07:54:34Z")

</div>

curl os not responding in proxy side,

i have restarted ES nodes and then start working fine but again stopped from first response ,

but get the output in devtools.

kindly let me know what all steps need to perform for trouble-suite the issue?

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [February 22, 2022, 8:30am UTC](https://discuss.elastic.co/t/why-curl-command-is-not-showing-o-p-in-proxy-server/297854/2 "2022-02-22T08:30:14Z")

</div>

It's not entirely clear what your problem here is sorry to say.

If you are sending requests to Elasticsearch then it'd be good to see what they are, as well as the response you are getting.

---

<div class="post-metadata">

**Author:** ![Bhanuji\_paluri](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bhanuji_paluri/32/101841_2.png) [@Bhanuji\_paluri](https://discuss.elastic.co/u/Bhanuji_paluri)\
**Post date:** [February 22, 2022, 5:14pm UTC](https://discuss.elastic.co/t/why-curl-command-is-not-showing-o-p-in-proxy-server/297854/3 "2022-02-22T17:14:21Z")

</div>

502 Proxy Error

# Proxy Error

The proxy server received an invalid response from an upstream server.  
The proxy server could not handle the request

Reason: **Error reading from remote server**

This is error we are getting while running the curl Get command

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [February 22, 2022, 5:22pm UTC](https://discuss.elastic.co/t/why-curl-command-is-not-showing-o-p-in-proxy-server/297854/4 "2022-02-22T17:22:19Z")

</div>

Which version of Elasticsearch are you using? What is the command/request you are running? Do you get any error if you send it directly to the cluster, avoiding the proxy?

---

<div class="post-metadata">

**Author:** ![Bhanuji\_paluri](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bhanuji_paluri/32/101841_2.png) [@Bhanuji\_paluri](https://discuss.elastic.co/u/Bhanuji_paluri)\
**Post date:** [February 22, 2022, 5:38pm UTC](https://discuss.elastic.co/t/why-curl-command-is-not-showing-o-p-in-proxy-server/297854/5 "2022-02-22T17:38:30Z")

</div>

version of elastic is 7.10.0  
curl --user uid:pass -X GET [https://dafinfrantools-es.sero.wh.rnd.internal.ericsson.com/\_cat/indices?pretty](https://dafinfrantools-es.sero.wh.rnd.internal.ericsson.com/_cat/indices?pretty)  
if i run the above command in any of the ES node, its just hung up and after sometime saying like below error

502 Proxy Error
# Proxy Error

The proxy server received an invalid response from an upstream server.  
The proxy server could not handle the request

Reason: **Error reading from remote server**

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [February 22, 2022, 5:44pm UTC](https://discuss.elastic.co/t/why-curl-command-is-not-showing-o-p-in-proxy-server/297854/6 "2022-02-22T17:44:29Z")

</div>

Do you have Elasticsearch running on the default 9200 port? If so should you not be specifying this in the URL (or does the proxy handle this mapping)?

---

<div class="post-metadata">

**Author:** ![Bhanuji\_paluri](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bhanuji_paluri/32/101841_2.png) [@Bhanuji\_paluri](https://discuss.elastic.co/u/Bhanuji_paluri)\
**Post date:** [February 22, 2022, 5:49pm UTC](https://discuss.elastic.co/t/why-curl-command-is-not-showing-o-p-in-proxy-server/297854/7 "2022-02-22T17:49:18Z")

</div>

we have changed the port to 9201 as per our requirement .

i'm sure about mapping  
now kibana url is not working as its saying "kibana server is not ready yet"

logs are  
{"type":"log","@timestamp":"2022-02-22T17:48:27Z","tags":["error","savedobjects-service"],"pid":22996,"message":"Unable to retrieve version information from Elasticsearch nodes."}  
{"type":"log","@timestamp":"2022-02-22T17:48:27Z","tags":["error","Elasticsearch","data"],"pid":22996,"message":"[security\_exception]: no permissions for [indices:admin/get] and User [name=elastic, backend\_roles=[admin], requestedTenant=null]"}  
{"type":"log","@timestamp":"2022-02-22T17:48:29Z","tags":["error","Elasticsearch","data"],"pid":22996,"message":"[security\_exception]: no permissions for [cluster:monitor/nodes/info] and User [name=elastic, backend\_roles=[admin], requestedTenant=null]"}  
{"type":"log","@timestamp":"2022-02-22T17:48:29Z","tags":["error","Elasticsearch","data"],"pid":22996,"message":"[security\_exception]: no permissions for [indices:admin/get] and User [name=elastic, backend\_roles=[admin], requestedTenant=null]"}  
{"type":"log","@timestamp":"2022-02-22T17:48:32Z","tags":["error","Elasticsearch","data"],"pid":22996,"message":"[security\_exception]: no permissions for [cluster:monitor/nodes/info] and User [name=elastic, backend\_roles=[admin], requestedTenant=null]"}  
{"type":"log","@timestamp":"2022-02-22T17:48:32Z","tags":["error","Elasticsearch","data"],"pid":22996,"message":"[security\_exception]: no permissions for [indices:admin/get] and User [name=elastic, backend\_roles=[admin], requestedTenant=null]"}  
{"type":"log","@timestamp":"2022-02-22T17:48:34Z","tags":["error","Elasticsearch","data"],"pid":22996,"message":"[security\_exception]: no permissions for [cluster:monitor/nodes/info] and User [name=elastic, backend\_roles=[admin], requestedTenant=null]"}  
{"type":"log","@timestamp":"2022-02-22T17:48:34Z","tags":["error","Elasticsearch","data"],"pid":22996,"message":"[security\_exception]: no permissions for [indices:admin/get] and User [name=elastic, backend\_roles=[admin], requestedTenant=null]"}  
{"type":"log","@timestamp":"2022-02-22T17:48:37Z","tags":["error","Elasticsearch","data"],"pid":22996,"message":"[security\_exception]: no permissions for [indices:admin/get] and User [name=elastic, backend\_roles=[admin], requestedTenant=null]"}

---

<div class="post-metadata">

**Author:** ![Bhanuji\_paluri](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bhanuji_paluri/32/101841_2.png) [@Bhanuji\_paluri](https://discuss.elastic.co/u/Bhanuji_paluri)\
**Post date:** [February 22, 2022, 5:52pm UTC](https://discuss.elastic.co/t/why-curl-command-is-not-showing-o-p-in-proxy-server/297854/8 "2022-02-22T17:52:16Z")

</div>

adding

port is load LB one , so we have tried with port also but still it is in hang,

but i did the restart of ES node and run the curl command that time it went fine for first try only later again(2nd try of same curl) in hang state

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [February 22, 2022, 5:52pm UTC](https://discuss.elastic.co/t/why-curl-command-is-not-showing-o-p-in-proxy-server/297854/9 "2022-02-22T17:52:29Z")

</div>

Can you please specify the port in the URL when you curl the cluster? Can you run the command with port specified from the node itself to bypass the load balancer?

---

<div class="post-metadata">

**Author:** ![Bhanuji\_paluri](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bhanuji_paluri/32/101841_2.png) [@Bhanuji\_paluri](https://discuss.elastic.co/u/Bhanuji_paluri)\
**Post date:** [February 22, 2022, 5:53pm UTC](https://discuss.elastic.co/t/why-curl-command-is-not-showing-o-p-in-proxy-server/297854/10 "2022-02-22T17:53:03Z")

</div>

we specified and tried but no luck

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [February 22, 2022, 5:54pm UTC](https://discuss.elastic.co/t/why-curl-command-is-not-showing-o-p-in-proxy-server/297854/11 "2022-02-22T17:54:39Z")

</div>

What does your node configuration file look like?

---

<div class="post-metadata">

**Author:** ![Bhanuji\_paluri](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bhanuji_paluri/32/101841_2.png) [@Bhanuji\_paluri](https://discuss.elastic.co/u/Bhanuji_paluri)\
**Post date:** [February 22, 2022, 5:58pm UTC](https://discuss.elastic.co/t/why-curl-command-is-not-showing-o-p-in-proxy-server/297854/12 "2022-02-22T17:58:07Z")

</div>

..hope you got it

---

<div class="post-metadata">

**Author:** ![Bhanuji\_paluri](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bhanuji_paluri/32/101841_2.png) [@Bhanuji\_paluri](https://discuss.elastic.co/u/Bhanuji_paluri)\
**Post date:** [February 22, 2022, 6:05pm UTC](https://discuss.elastic.co/t/why-curl-command-is-not-showing-o-p-in-proxy-server/297854/14 "2022-02-22T18:05:46Z")

</div>

i have sent yml file

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [February 22, 2022, 6:10pm UTC](https://discuss.elastic.co/t/why-curl-command-is-not-showing-o-p-in-proxy-server/297854/15 "2022-02-22T18:10:00Z")

</div>

No. Please post it here.

---

<div class="post-metadata">

**Author:** ![Bhanuji\_paluri](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bhanuji_paluri/32/101841_2.png) [@Bhanuji\_paluri](https://discuss.elastic.co/u/Bhanuji_paluri)\
**Post date:** [February 22, 2022, 6:16pm UTC](https://discuss.elastic.co/t/why-curl-command-is-not-showing-o-p-in-proxy-server/297854/16 "2022-02-22T18:16:10Z")

</div>

# ======================== Elasticsearch Configuration =========================

# ---------------------------------- Cluster -----------------------------------

cluster.name: ELK-dafinfrantools  
node.name: seroiudb01470.sero.gic.ericsson.se  
node.master: true  
node.data: true  
node.ingest: true

# ----------------------------------- Paths ------------------------------------

path.data: /u02/ELK/7.10.0/data/dafinfrantools/9201/  
path.logs: /u03/ELK/7.10.0/logs/dafinfrantools/9201/  
path.repo: /u05/ELK/7.10.0/exp/dafinfrantools/9201/

# ----------------------------------- Memory -----------------------------------

bootstrap.memory\_lock: true

# ---------------------------------- Network -----------------------------------

#network.host: [_global_, _local_]  
network.host: [_ens160_, _local_]  
http.port: 9201  
transport.tcp.port: 9301  
#transport.host: [_global_, _local_]  
transport.host: [_ens160_, _local_]

# --------------------------------- Discovery ----------------------------------

discovery.seed\_hosts: ["seroiudb01470.sero.gic.ericsson.se","seroiudb01471.sero.gic.ericsson.se","seroiudb01472.sero.gic.ericsson.se","seroiudb01473.sero.gic.ericsson.se","seroiudb01474.sero.gic.ericsson.se"]  
cluster.initial\_master\_nodes: ["seroiudb01470.sero.gic.ericsson.se","seroiudb01471.sero.gic.ericsson.se","seroiudb01472.sero.gic.ericsson.se","seroiudb01473.sero.gic.ericsson.se","seroiudb01474.sero.gic.ericsson.se"]

# ---------------------------------- OpenDistro for Elasticsearch Security ---------------------------------

opendistro\_security.ssl.transport.pemcert\_filepath: node.pem  
opendistro\_security.ssl.transport.pemkey\_filepath: node-key.pem  
opendistro\_security.ssl.transport.pemtrustedcas\_filepath: root-ca.pem  
opendistro\_security.ssl.transport.enforce\_hostname\_verification: false  
opendistro\_security.ssl.http.enabled: false  
opendistro\_security.allow\_unsafe\_democertificates: true  
opendistro\_security.allow\_default\_init\_securityindex: true  
opendistro\_security.authcz.admin\_dn:

- '[CN=elk-admin.ericsson.com](http://CN=elk-admin.ericsson.com),OU=IT,O=Ericsson,L=Stockholm,ST=Stockholm,C=SE'  
opendistro\_security.nodes\_dn:
- '[CN=ericsson.com](http://CN=ericsson.com),OU=IT,O=Ericsson,L=Stockholm,ST=Stockholm,C=SE'  
opendistro\_security.audit.type: internal\_elasticsearch  
opendistro\_security.enable\_snapshot\_restore\_privilege: true  
opendistro\_security.check\_snapshot\_restore\_write\_privileges: true  
opendistro\_security.restapi.roles\_enabled: [all\_access, security\_rest\_api\_access]  
opendistro\_security.system\_indices.enabled: true  
opendistro\_security.system\_indices.indices: [.opendistro-alerting-config, .opendistro-alerting-alert\*, .opendistro-anomaly-results\*, .opendistro-anomaly-detector\*, .opendistro-anomaly-checkpoints, .opendistro-anomaly-detection-state, .opendistro-reports-_, .opendistro-notifications-_]

# ---------------------------------- Gateway -----------------------------------

gateway.recover\_after\_nodes: 2  
gateway.recover\_after\_time: 5m  
gateway.expected\_nodes: 2

---

<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 22, 2022, 6:16pm UTC](https://discuss.elastic.co/t/why-curl-command-is-not-showing-o-p-in-proxy-server/297854/17 "2022-02-22T18:16:10Z")

</div>

Opendistro is an AWS run product and differs from the original Elasticsearch and Kibana products that Elastic builds and maintains. You may need to contact them directly for further assistance.

(This is an automated response from your friendly Elastic bot. Please report this post if you have any suggestions or concerns :elasticheart: )

---

<div class="post-metadata">

**Author:** ![Bhanuji\_paluri](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bhanuji_paluri/32/101841_2.png) [@Bhanuji\_paluri](https://discuss.elastic.co/u/Bhanuji_paluri)\
**Post date:** [February 22, 2022, 6:16pm UTC](https://discuss.elastic.co/t/why-curl-command-is-not-showing-o-p-in-proxy-server/297854/18 "2022-02-22T18:16:34Z")

</div>

hope you got now

---

<div class="post-metadata">

**Author:** ![Bhanuji\_paluri](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bhanuji_paluri/32/101841_2.png) [@Bhanuji\_paluri](https://discuss.elastic.co/u/Bhanuji_paluri)\
**Post date:** [February 22, 2022, 6:19pm UTC](https://discuss.elastic.co/t/why-curl-command-is-not-showing-o-p-in-proxy-server/297854/19 "2022-02-22T18:19:23Z")

</div>

sometimes , ES node url showing below error  
{"error":{"root\_cause":[{"type":"security\_exception","reason":"no permissions for [cluster:monitor/main] and User [name=elastic, backend\_roles=[admin], requestedTenant=null]"}],"type":"security\_exception","reason":"no permissions for [cluster:monitor/main] and User [name=elastic, backend\_roles=[admin], requestedTenant=null]"},"status":403}

---

<div class="post-metadata">

**Author:** ![Bhanuji\_paluri](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bhanuji_paluri/32/101841_2.png) [@Bhanuji\_paluri](https://discuss.elastic.co/u/Bhanuji_paluri)\
**Post date:** [February 22, 2022, 6:19pm UTC](https://discuss.elastic.co/t/why-curl-command-is-not-showing-o-p-in-proxy-server/297854/20 "2022-02-22T18:19:51Z")

</div>

we thought like admin/super user role is removed?

---

<div class="post-metadata">

**Author:** ![Bhanuji\_paluri](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bhanuji_paluri/32/101841_2.png) [@Bhanuji\_paluri](https://discuss.elastic.co/u/Bhanuji_paluri)\
**Post date:** [February 22, 2022, 6:21pm UTC](https://discuss.elastic.co/t/why-curl-command-is-not-showing-o-p-in-proxy-server/297854/21 "2022-02-22T18:21:37Z")

</div>

as i'm from india, its too late night to me, can you please make your suggestions quickly

[Next page](https://discuss.elastic.co/t/why-curl-command-is-not-showing-o-p-in-proxy-server/297854.md?page=2)
