New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] docker运行Java程序时配置代理-Dhttp.proxyHost后启动报错 #11809
Comments
|
不像是,如果是端口的问题,把代理去掉了为什么就不报错了 |
直连没问的话,说明nacos没有问题,是代理本身的问题。 |
那就不清楚了, 但是grpc应该是http2, 并且如果只使用http2代理可能会连接一直断开。目前看报错就是grpc客户端在通过代理访问的时候,收到了代理返回的403.具体问题得自行排查一下代理了。 |
No more response from author, It seems env problem. |
bug现象描述
版本:2.0.4(客户端和服务端都是)
环境:私有云环境,只有少量跳板机器可以访问公网,其他机器均通过配置代理方式访问公网
bug现象:docker启动时配置指定代理会报错,Java命令启动不会报错,同在一台主机上进行的测试
代理软件:squid
Java命令启动正常
docker方式启动报错
docker run -d --name test-demo \ -p 18080:8080 \ --network host \ -e "JAVA_OPTS=-server -Xms1g -Xmx1g -Dhttp.proxyHost=192.168.131.189 -Dhttp.proxyPort=31280 -Dhttps.proxyHost=192.168.131.189 -Dhttps.proxyPort=31280 -Dhttp.nonProxyHosts='localhost|127.0.0.1|192.168.131.*'" \ reg.myharbor.com/order/demo:v1
报错内容如下
测试源码:demo.zip
The text was updated successfully, but these errors were encountered: