Git Product home page Git Product logo

Comments (8)

yuluo-yx avatar yuluo-yx commented on May 27, 2024

网络波动问题?排查下 nacos 9848 端口看看

如果是容器部署的话,可以尝试把 9848 9849 8848 端口都放开看看(nacos 的端口偏移量是 1000 和 1001)

可以提供一个复现 demo,本地不好复现没办法验证问题

from spring-cloud-alibaba.

chengyouling avatar chengyouling commented on May 27, 2024

容器部署的,9848 9849 8848 端口都放开了,本地确实不好复现,这个异常是偶尔发生的,主要是看到了Caused by: java.io.IOException: Connection reset by peer这个提示,感觉是服务端或者客户端的某一方主动关闭了连接,怀疑是不是客户端和服务端的不匹配导致的呢?这两个版本是否存在兼容性问题?
nacos-client-2.1.2
nacos-server-2.1.0

from spring-cloud-alibaba.

yuluo-yx avatar yuluo-yx commented on May 27, 2024

容器部署的,9848 9849 8848 端口都放开了,本地确实不好复现,这个异常是偶尔发生的,主要是看到了Caused by: java.io.IOException: Connection reset by peer这个提示,感觉是服务端或者客户端的某一方主动关闭了连接,怀疑是不是客户端和服务端的不匹配导致的呢?这两个版本是否存在兼容性问题? nacos-client-2.1.2 nacos-server-2.1.0

nacos-client-2.1.2 nacos-server-2.1.0 不是很确定有没有兼容性问题,你可以参考 sca 的推荐的版本组件 https://github.com/alibaba/spring-cloud-alibaba/wiki/%E7%89%88%E6%9C%AC%E8%AF%B4%E6%98%8E

可以试着从 spring-cloud-starter-alibaba-nacos-discovery中排除现有的 nacos-client 依赖,引入和 nacos-server 一致的看看

<dependency>
	<groupId>com.alibaba.cloud</groupId>
	<artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
	<exclusions>
		<exclusion>
			<groupId>com.alibaba.nacos</groupId>
			<artifactId>nacos-client</artifactId>
		</exclusion>
	</exclusions>
</dependency>

<dependency>
	<groupId>com.alibaba.nacos</groupId>
	<artifactId>nacos-client</artifactId>
	<version>${nacos.client}</version>
</dependency>

from spring-cloud-alibaba.

ruansheng8 avatar ruansheng8 commented on May 27, 2024

客户端与服务端通信中间是否有经过 Nginx 或其他代理转发

from spring-cloud-alibaba.

chengyouling avatar chengyouling commented on May 27, 2024

客户端与服务端通信中间是否有经过 Nginx 或其他代理转发

没有的,都是直接通过sdk连接的Nacos-server,本地又很难复现这个错误,但是部署到容器中就会偶尔有这个问题。

from spring-cloud-alibaba.

chengyouling avatar chengyouling commented on May 27, 2024

@ruansheng8
这个现象奇怪就在于没有规律,其他业务组件也没有类似的报错,就集成spring-cloud-gateway的这个组件偶尔报错一两次,有没有可能grpc跟gateway组件有什么冲突呢?不知道之前有没有类似的问题?

from spring-cloud-alibaba.

ruansheng8 avatar ruansheng8 commented on May 27, 2024

@chengyouling 本地可以用 Maven Helper 看看是否有依赖冲突,或者咨询一下 Nacos 社区之前是否有遇到过类似的情况。

from spring-cloud-alibaba.

github-actions avatar github-actions commented on May 27, 2024

This issue has been open 30 days with no activity. This will be closed in 7 days.

from spring-cloud-alibaba.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.