-
Notifications
You must be signed in to change notification settings - Fork 92
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
自动断开重新注册问题 #252
Comments
应用是.net core3.1 webapi ,Nacos sdk用的是1.2.1版本 |
这个是触发了客户端和服务端的重连机制,做完全 redo 的操作后,服务是会重新注册和被发现的。 |
嗯,大概了解。那么grpc长连接 每5秒钟向nacos发送心跳,假设nacos服务一直正常。那么上边这个问题,有可能是grpcclient链接无法创建,或调用不可达的情况发生吗? |
主要是什么情况下,能触发这个redo那。 |
@catcherwong @china9839 我的服务现在也会出现这个问题。突然间就断掉了。而且一直重连失败,要重启容器才行,不知道为什么。nacos-sdk包用的是1.3.5 |
@ROMYIM 有具体的日志吗? |
我的问题和他类似用也是1.3.5,nacos版本2.1.1,连接成功后几秒就断了,我看是心跳检测不过,具体日志 [19:30:59.732 scm-std-message-apis-55b4659cc-9m67s Error] [Nacos.V2.Naming.NacosNamingService] [SecurityProxy] login http request failed, url: http://svc-scm-nacos-headless:8848/nacos/v1/auth/users/login System.Threading.Tasks.TaskCanceledException: The operation was canceled. at System.Net.Http.ConnectHelper.ConnectAsync(String host, Int32 port, CancellationToken cancellationToken) at System.Net.Http.HttpConnectionPool.ConnectAsync(HttpRequestMessage request, Boolean allowHttp2, CancellationToken cancellationToken) at System.Net.Http.HttpConnectionPool.CreateHttp11ConnectionAsync(HttpRequestMessage request, CancellationToken cancellationToken) at System.Net.Http.HttpConnectionPool.GetHttpConnectionAsync(HttpRequestMessage request, CancellationToken cancellationToken) at System.Net.Http.HttpConnectionPool.SendWithRetryAsync(HttpRequestMessage request, Boolean doRequestAuth, CancellationToken cancellationToken) at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken) at System.Net.Http.HttpClient.FinishSendAsyncBuffered(Task`1 sendTask, HttpRequestMessage request, CancellationTokenSource cts, Boolean disposeCts) at Nacos.V2.Security.SecurityProxy.LoginAsync(String server) [19:30:59.732 scm-std-message-apis-55b4659cc-9m67s Error] [Nacos.V2.Naming.NacosNamingService] [SecurityProxy] login http request failed, url: http://svc-scm-nacos-headless:8848/nacos/v1/auth/users/login System.Threading.Tasks.TaskCanceledException: The operation was canceled. at System.Net.Http.ConnectHelper.ConnectAsync(String host, Int32 port, CancellationToken cancellationToken) at System.Net.Http.HttpConnectionPool.ConnectAsync(HttpRequestMessage request, Boolean allowHttp2, CancellationToken cancellationToken) at System.Net.Http.HttpConnectionPool.CreateHttp11ConnectionAsync(HttpRequestMessage request, CancellationToken cancellationToken) |
2023-06-17 10:07:43.436 [Warning] [Nacos.V2.Naming.NacosNamingService] Grpc connection disconnect, mark to redo
2023-06-17 10:07:43.436 [Warning] [Nacos.V2.Naming.NacosNamingService] mark to redo completed
2023-06-17 10:07:43.436 [Information] [Nacos.V2.Naming.NacosNamingService] Grpc connection connect
2023-06-17 10:07:48.423 [Information] [Nacos.V2.Naming.NacosNamingService] Redo instance operation REGISTER for "DEFAULT_GROUP"@@"system-service"
2023-06-17 10:07:48.424 [Information] [Nacos.V2.Naming.NacosNamingService] Redo instance operation REGISTER for "DEFAULT_GROUP"@@"system-service"
2023-06-17 10:07:48.431 [Information] [Nacos.V2.Naming.NacosNamingService] Redo subscriber operation
The text was updated successfully, but these errors were encountered: