-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
服务端开启tls,集群服务间grpc通信报错:UNAVAILABLE: Network closed for unknown reason #11456
Labels
kind/feature
type/feature
Comments
目前仅支持客户端和服务端之间的tls(即9848端口) |
@i will solve it@ |
I've been a bit busy lately, so I'll submit the PR before next week. |
stone-98
added a commit
to stone-98/nacos
that referenced
this issue
Dec 20, 2023
stone-98
added a commit
to stone-98/nacos
that referenced
this issue
Dec 20, 2023
stone-98
added a commit
to stone-98/nacos
that referenced
this issue
Dec 20, 2023
stone-98
added a commit
to stone-98/nacos
that referenced
this issue
Dec 23, 2023
stone-98
added a commit
to stone-98/nacos
that referenced
this issue
Dec 24, 2023
stone-98
added a commit
to stone-98/nacos
that referenced
this issue
Dec 24, 2023
stone-98
added a commit
to stone-98/nacos
that referenced
this issue
Dec 24, 2023
stone-98
added a commit
to stone-98/nacos
that referenced
this issue
Dec 24, 2023
stone-98
added a commit
to stone-98/nacos
that referenced
this issue
Dec 24, 2023
stone-98
added a commit
to stone-98/nacos
that referenced
this issue
Dec 25, 2023
stone-98
added a commit
to stone-98/nacos
that referenced
this issue
Dec 25, 2023
stone-98
added a commit
to stone-98/nacos
that referenced
this issue
Dec 25, 2023
stone-98
added a commit
to stone-98/nacos
that referenced
this issue
Dec 25, 2023
stone-98
added a commit
to stone-98/nacos
that referenced
this issue
Dec 25, 2023
stone-98
added a commit
to stone-98/nacos
that referenced
this issue
Dec 30, 2023
stone-98
added a commit
to stone-98/nacos
that referenced
this issue
Dec 30, 2023
stone-98
added a commit
to stone-98/nacos
that referenced
this issue
Dec 30, 2023
stone-98
added a commit
to stone-98/nacos
that referenced
this issue
Dec 30, 2023
stone-98
added a commit
to stone-98/nacos
that referenced
this issue
Dec 30, 2023
stone-98
added a commit
to stone-98/nacos
that referenced
this issue
Jan 7, 2024
stone-98
added a commit
to stone-98/nacos
that referenced
this issue
Jan 8, 2024
stone-98
added a commit
to stone-98/nacos
that referenced
this issue
Jan 8, 2024
stone-98
added a commit
to stone-98/nacos
that referenced
this issue
Jan 8, 2024
stone-98
added a commit
to stone-98/nacos
that referenced
this issue
Jan 10, 2024
stone-98
added a commit
to stone-98/nacos
that referenced
this issue
Jan 10, 2024
stone-98
added a commit
to stone-98/nacos
that referenced
this issue
Jan 10, 2024
stone-98
added a commit
to stone-98/nacos
that referenced
this issue
Jan 22, 2024
stone-98
added a commit
to stone-98/nacos
that referenced
this issue
Jan 22, 2024
stone-98
added a commit
to stone-98/nacos
that referenced
this issue
Jan 24, 2024
stone-98
added a commit
to stone-98/nacos
that referenced
this issue
Feb 2, 2024
stone-98
added a commit
to stone-98/nacos
that referenced
this issue
Feb 8, 2024
stone-98
added a commit
to stone-98/nacos
that referenced
this issue
Feb 21, 2024
…ract ProtocolNegotiatorBuilderSingleton.
stone-98
added a commit
to stone-98/nacos
that referenced
this issue
Mar 12, 2024
stone-98
added a commit
to stone-98/nacos
that referenced
this issue
Mar 12, 2024
stone-98
added a commit
to stone-98/nacos
that referenced
this issue
Mar 12, 2024
This was referenced May 15, 2024
KomachiSion
pushed a commit
that referenced
this issue
May 15, 2024
* Fix exception code error.(#10925) * [ISSUE #11456]Add RpcClusterClientTlsConfig.java. * [ISSUE #11456]Add cluster rpc tls config. * [ISSUE #11456]Add RpcClusterClientTlsConfig UT. * [ISSUE #11456]Add cluster server tls. * [ISSUE #11456]Remove supportCommunicationTypes. * [ISSUE #11456]Fix unit testing and indentation handling * [ISSUE #11456]Indentation handling * [ISSUE #11456]Fix unit test and rpc constants. * [ISSUE #11456]Fix unit test. * [ISSUE #11456]Optimize code. * [ISSUE #11456]Fix check style. * [ISSUE #11456]Add unit test. * [ISSUE #11456]Fix check style. * [ISSUE #11456]Update unit test. * [ISSUE #11456]Fix unit test. * [ISSUE #11456]Add License. * [ISSUE #11456]Fix unit test. * [ISSUE #11456]Fix unit test. * [ISSUE #11456]Rename class. * [ISSUE #11456]Optimize code. * [ISSUE #11456]Handling indentation issues. * [ISSUE #11456]Handling indentation issues. * [ISSUE #11456]Handling indentation issues. * [ISSUE #11456]Optimize code. * [ISSUE #11456]Fix unit test. * [ISSUE #11456]Fix unit testing and compatibility handling. * [ISSUE #11456]Support TLS GRPC communication between clusters. * [ISSUE #11456] Fix bugs. * [ISSUE #11456]Fix bugs. * [ISSUE #11456]Adjusting parameter names (compatibility considerations). * [ISSUE #11456]Resolve conflict. * [ISSUE #11456]Remove ProtocolNegotiatorBuilderManager and abstract ProtocolNegotiatorBuilderSingleton. * [ISSUE #11456]Remove CommunicationType.java. * [ISSUE #11456]Optimize code. * [ISSUE #11456]Revert author. * Splitting RpcTlsConfigFactory. * Split RpcConstants. * Divided RpcTlsConfigFactory, adjusted cluster parameters to "nacos.remote.peer.rpc.tls". * check style. * check style. * unit test.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
问题描述
服务端开启tls后,若nacos.remote.server.rpc.tls.compatibility=true无问题;若nacos.remote.server.rpc.tls.compatibility=false,集群服务间grpc通信9849端口报错,详细堆栈如下:
复现步骤
application.properties中增加配置
nacos.remote.server.rpc.tls.enableTls=true
nacos.remote.server.rpc.tls.compatibility=false
nacos.remote.server.rpc.tls.certChainFile=...
nacos.remote.server.rpc.tls.certPrivateKey=...
nacos.remote.server.rpc.tls.certPrivateKeyPassword=...
原因定位
集群服务间grpc通信client通过ClusterRpcClientProxy创建,在创建RpcClient时RpcClientTlsConfig为null,而此时服务器开启了tls,因此通信时报错。这里Rpc Client是不是应该根据配置传入TlsConfig。
ClusterRpcClientProxy
RpcClientFactory
The text was updated successfully, but these errors were encountered: