Comments (8)
网络波动问题?排查下 nacos 9848 端口看看
如果是容器部署的话,可以尝试把 9848 9849 8848 端口都放开看看(nacos 的端口偏移量是 1000 和 1001)
可以提供一个复现 demo,本地不好复现没办法验证问题
from spring-cloud-alibaba.
容器部署的,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.
容器部署的,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.
客户端与服务端通信中间是否有经过 Nginx 或其他代理转发
from spring-cloud-alibaba.
客户端与服务端通信中间是否有经过 Nginx 或其他代理转发
没有的,都是直接通过sdk连接的Nacos-server,本地又很难复现这个错误,但是部署到容器中就会偶尔有这个问题。
from spring-cloud-alibaba.
@ruansheng8
这个现象奇怪就在于没有规律,其他业务组件也没有类似的报错,就集成spring-cloud-gateway的这个组件偶尔报错一两次,有没有可能grpc跟gateway组件有什么冲突呢?不知道之前有没有类似的问题?
from spring-cloud-alibaba.
@chengyouling 本地可以用 Maven Helper 看看是否有依赖冲突,或者咨询一下 Nacos 社区之前是否有遇到过类似的情况。
from spring-cloud-alibaba.
This issue has been open 30 days with no activity. This will be closed in 7 days.
from spring-cloud-alibaba.
Related Issues (20)
- 2021.0.5 spring-cloud-starter-alibaba-nacos-config 如何设置本地配置优先级最高? HOT 7
- A new Committer @yuluo-yx HOT 1
- 一个服务可以注册到多个命名空间吗?
- which version of spring-cloud-cloud adapt to spring boot 2.1.8.RELEASE? HOT 2
- Nacos enables authentication and authentication, uses jasypt to encrypt the nacos password, and spring.config.import introduces nacos configuration to report errors. HOT 2
- spring-cloud-starter-alibaba-nacos-discovery 中权重的更新间隔 HOT 3
- [bug] 2023.0.0.0-RC1 Not Supported graalvm HOT 10
- 共享配置和扩展配置是否也能加一个fileExtension这样的参数 HOT 5
- 属性spring.cloud.nacos.discovery.connect-timeout没有了?? HOT 2
- Example: Component graalvm compile test. HOT 1
- 2023.x 分支 连接 Nacos 2.3.1 获取配置文件失败! HOT 3
- 2023.X依赖只要引入nacos的discovery依赖之后,但实际不配置地址启动报错 HOT 2
- Using @RefreshScope in nacos cannot refresh the remote configuration file HOT 5
- 引入spring-cloud-starter-alibaba-seata 会导致 shared-configs 配置失效 HOT 7
- 如何自定义停机逻辑,实现优雅停机 HOT 10
- 使用RefreshScope 注解,项目在运行一段时间后失效 HOT 5
- ci: ci episodic anomalies HOT 1
- access_log接口返回的客户端版本号不对 HOT 6
- Is it able to use discovery without registering itself? HOT 4
- 2023能升级到nacos2.3.2? HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spring-cloud-alibaba.