nacos项目启动出现的bug Server check fail, please check server localhost ,port 9848 is available

启动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

nacos项目启动出现的bug Server check fail, please check server localhost ,port 9848 is available_第1张图片

 有bootstrap的时候会采用nacos的默认配置 所以一直读取本地的端口 把写在application.yml的nacos配置转移到bootstrap里就行了

你可能感兴趣的:(bug,java,服务器)