You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2019/11/21 03:15:12 UTC
[GitHub] [pulsar] lxkaka opened a new issue #5711: through pulsar proxy
visit api return 502
lxkaka opened a new issue #5711: through pulsar proxy visit api return 502
URL: https://github.com/apache/pulsar/issues/5711
**Describe the bug**
through proxy call admin api return error_code 502
```
curl -i http://proxy-address/admin/v2/persistent/public/default
HTTP/1.1 502 Bad Gateway
Date: Thu, 21 Nov 2019 03:09:30 GMT
Content-Type: text/html;charset=iso-8859-1
Content-Length: 355
Connection: keep-alive
Cache-Control: must-revalidate,no-cache,no-store
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
<title>Error 502 Bad Gateway</title>
</head>
<body><h2>HTTP ERROR 502</h2>
<p>Problem accessing /admin/v2/persistent/public/default. Reason:
<pre> Bad Gateway</pre></p><hr><a href="http://eclipse.org/jetty">Powered by Jetty:// 9.4.12.v20180830</a><hr/>
</body>
</html>
```
**Expected behavior**
expect return 200 and valid response
**Environment **
- deploy in k8s and image is `puslar-all:2.4.1`
**Additional context**
pulsar proxy logs
```
at io.netty.channel.unix.FileDescriptor.readAddress(..)(Unknown Source) ~[io.netty-netty-all-4.1.32.Final.jar:4.1.32.Final]
02:24:39.865 [pulsar-discovery-io-2-1] WARN org.apache.pulsar.proxy.server.ProxyConnection - [/172.19.25.180:46476] Got exception NativeIoException : syscall:read(..) failed: Connection reset by peer
02:24:39.865 [pulsar-discovery-io-2-1] INFO org.apache.pulsar.proxy.server.ProxyConnection - [/172.19.25.180:46476] Connection closed
02:24:40.057 [pulsar-discovery-io-2-1] INFO org.apache.pulsar.proxy.server.ProxyConnection - [/172.19.25.229:53780] New connection opened
02:24:40.057 [pulsar-discovery-io-2-1] WARN io.netty.channel.DefaultChannelPipeline - An exceptionCaught() event was fired, and it reached at the tail of the pipeline. It usually means the last handler in the pipeline did not handle the exception.
io.netty.channel.unix.Errors$NativeIoException: syscall:read(..) failed: Connection reset by peer
at io.netty.channel.unix.FileDescriptor.readAddress(..)(Unknown Source) ~[io.netty-netty-all-4.1.32.Final.jar:4.1.32.Final]
02:24:40.057 [pulsar-discovery-io-2-1] WARN org.apache.pulsar.proxy.server.ProxyConnection - [/172.19.25.229:53780] Got exception NativeIoException : syscall:read(..) failed: Connection reset by peer
02:24:40.057 [pulsar-discovery-io-2-1] INFO org.apache.pulsar.proxy.server.ProxyConnection - [/172.19.25.229:53780] Connection closed
02:24:40.067 [pulsar-discovery-io-2-1] INFO org.apache.pulsar.proxy.server.ProxyConnection - [/192.168.64.129:44812] New connection opened
02:24:40.067 [pulsar-discovery-io-2-1] WARN io.netty.channel.DefaultChannelPipeline - An exceptionCaught() event was fired, and it reached at the tail of the pipeline. It usually means the last handler in the pipeline did not handle the exception.
io.netty.channel.unix.Errors$NativeIoException: syscall:read(..) failed: Connection reset by peer
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services