启动Nacos的时候发现客户端报错了 [ main] c.a.n.c.remote.client.grpc.GrpcClient : Server check fail, please check server localhost ,
启动Nacos的时候发现客户端报错了
[ main] c.a.n.c.remote.client.grpc.GrpcClient : Server check fail, please check server localhost ,port 9848 is available , error ={}java.util.concurrent.TimeoutException: Waited 3000 milliseconds (plus 15 milliseconds, 118500 nanoseconds delay) for com.alibaba.nacos.shaded.io.grpc.stub.ClientCalls$GrpcFuture@291373D3[status=PENDING, info=[GrpcFuture{clientCall={delegate={delegate=ClientCallImpl{method=MethodDescriptor{fullMethodName=Request/request, type=UNARY, idempotent=false, safe=false, sampledToLocalTracing=true, requestMarshaller=com.alibaba.nacos.shaded.io.grpc.protobuf.lite.ProtoLiteUtils$MessageMarshaller@58ba5b30, responseMarshaller=com.alibaba.nacos.shaded.io.grpc.protobuf.lite.ProtoLiteUtils$MessageMarshaller@4dba773d, schemaDescriptor=com.alibaba.nacos.api.grpc.auto.RequestGrpc$RequestMethodDescriptorSupplier@1d9bd4da}}}}}]]
网上各种说是nacos版本不匹配的问题 后来发现是配置文件的bug
有bootstrap的时候会采用nacos的默认配置 所以一直读取本地的端口 把写在application.yml的nacos配置转移到bootstrap里就行了
来源地址:https://blog.csdn.net/qq_38838006/article/details/128479532
--结束END--
本文标题: nacos项目启动出现的bug Server check fail, please check server localhost ,port 9848 is available
本文链接: https://lsjlt.com/news/413783.html(转载时请注明来源链接)
有问题或投稿请发送至: 邮箱/279061341@qq.com QQ/279061341
2024-10-22
2024-10-22
2024-10-22
2024-10-22
2024-10-22
2024-10-22
2024-10-22
2024-10-22
2024-10-22
2024-10-22
回答
回答
回答
回答
回答
回答
回答
回答
回答
回答
0