-
Notifications
You must be signed in to change notification settings - Fork 12.6k
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
docker部署nacos集群nginx负载均衡,服务注册正常,但是grpc报错 #10707
Comments
grpc端口开放了吗 |
开了,我服务器上貌似好了,现在本地注册到服务器的机器IP,可以正常注册,但是会报grpc错误,等会发一下日志 |
下面是一个服务报的错误,访问是没有问题的
|
本地服务注册到局域网中的docker nacos中,grpc连接的是docker容器的IP,dubbo注册的是我的本机IP,
|
可以看一下这个的配置 #10452 |
以及#9004 nginx做nacos负载均衡确实缺一个最佳实践 |
是的,我看了上面的issue,我服务器上现在没有报错了,都是用docker他们网络是通的。我本地连接的是服务器主机IP和NGINX docker映射端口,服务注册上去是没有问题,但是过一段时间就报grpc错误,看到上面的IP地址是nginx 容器的IP,本地不知道怎么连服务器了,本地和服务器都是一个局域网,就是一个是容器,一个是直接运行的 |
今天发现服务器docker容器里的日志又报错了,日志里可以看到 Connection refused: juru.nacos.jrmall.cn/172.2.1.6:1080 拒绝访问的,80端口是正常的,很不解,哪位大神指点一下
nginx容器IP:172.2.1.6
|
Connection refused: juru.nacos.jrmall.cn/172.2.1.6:1080 说明1080端口没有启动监听 |
或者是1080映射的后端服务没有 |
你好!你是哪位。怎么发到的邮箱
…---原始邮件---
发件人: "杨翊 ***@***.***>
发送时间: 2023年6月30日(周五) 上午9:40
收件人: ***@***.***>;
抄送: ***@***.***>;
主题: Re: [alibaba/nacos] docker部署nacos集群nginx负载均衡,服务注册正常,但是grpc报错 (Issue #10707)
或者是1080映射的后端服务没有
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
我感觉是你对你自己环境弄的很混乱,最好梳理一下,分开部署和配置。 |
现在没有报grpc 连接错误了,不过在更新服务的时候等待超时了,接口调用没有问题,可以调通。
|
超时无非3种情况:
具体那种原因可以看下服务端是否收到了请求并进行处理,或者抓网络包看服务端是否收到了包,是否回了包。 |
好的,我在观察一下 |
No more response from author, I think this is a env problem. |
nacos-server 版本:2.2.3
nacos-client:2.1.0(spring-cloud-alibaba.version 2.2.9)
nginx容器IP:
nginx配置:172.2.1.6
错误日志:
The text was updated successfully, but these errors were encountered: