mssky9527/NacosFileReadWrite

问题请教

Opened this issue · 1 comments

师傅您好,请问一下,我复现的时候,在docker的一个网段中构建了三个nacos节点,在其中一个nacos节点上使用该工具报错如下,请问下大概是什么原因呢?
/tmp # java -jar NacosFileReadWrite-0.1-SNAPSHOT-jar-with-dependencies.jar http://127.0.0.1:8848/ 7848 write ../../../../../../tmp/test.txt 12341123413
[main] INFO com.alipay.sofa.jraft.util.JRaftServiceLoader - SPI service [com.alipay.sofa.jraft.rpc.RaftRpcFactory - com.alipay.sofa.jraft.rpc.impl.GrpcRaftRpcFactory] loading.
[main] INFO com.alipay.sofa.jraft.rpc.impl.GrpcClient - Creating new channel to: 127.0.0.1:7848.
[main] INFO com.alipay.sofa.jraft.rpc.impl.GrpcClient - The channel 127.0.0.1:7848 is in state: CONNECTING.
[grpc-default-worker-ELG-1-2] INFO com.alipay.sofa.jraft.rpc.impl.GrpcClient - The channel 127.0.0.1:7848 is in state: TRANSIENT_FAILURE.
[grpc-default-worker-ELG-1-2] WARN com.alipay.sofa.jraft.rpc.impl.GrpcClient - There has been some transient failure on this channel 127.0.0.1:7848.
[main] ERROR com.alipay.sofa.jraft.rpc.impl.AbstractClientService - Fail to connect 127.0.0.1:7848, remoting exception: java.util.concurrent.ExecutionException: io.grpc.StatusRuntimeException: UNAVAILABLE: io exception.
[main] INFO com.alipay.sofa.jraft.rpc.impl.GrpcClient - The channel 127.0.0.1:7848 is in state: CONNECTING.
[grpc-default-worker-ELG-1-5] INFO com.alipay.sofa.jraft.rpc.impl.GrpcClient - The channel 127.0.0.1:7848 is in state: TRANSIENT_FAILURE.
[grpc-default-worker-ELG-1-5] WARN com.alipay.sofa.jraft.rpc.impl.GrpcClient - There has been some transient failure on this channel 127.0.0.1:7848.
com.alipay.sofa.jraft.error.RemotingException: java.util.concurrent.ExecutionException: io.grpc.StatusRuntimeException: UNAVAILABLE: io exception
at com.alipay.sofa.jraft.rpc.impl.GrpcClient.invokeSync(GrpcClient.java:133)
at com.alipay.sofa.jraft.rpc.RpcClient.invokeSync(RpcClient.java:71)
at com.nacostools.rce.NacosFileReadWrite.sendWritePayload(NacosFileReadWrite.java:183)
at com.nacostools.rce.NacosFileReadWrite.main(NacosFileReadWrite.java:61)
Caused by: java.util.concurrent.ExecutionException: io.grpc.StatusRuntimeException: UNAVAILABLE: io exception
at java.util.concurrent.CompletableFuture.reportGet(CompletableFuture.java:357)
at java.util.concurrent.CompletableFuture.get(CompletableFuture.java:1928)
at com.alipay.sofa.jraft.rpc.impl.GrpcClient.invokeSync(GrpcClient.java:127)
... 3 more
Caused by: io.grpc.StatusRuntimeException: UNAVAILABLE: io exception
at io.grpc.Status.asRuntimeException(Status.java:539)
at io.grpc.stub.ClientCalls$StreamObserverToCallListenerAdapter.onClose(ClientCalls.java:487)
at io.grpc.internal.ClientCallImpl.closeObserver(ClientCallImpl.java:563)
at io.grpc.internal.ClientCallImpl.access$300(ClientCallImpl.java:70)
at io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl$1StreamClosed.runInternal(ClientCallImpl.java:744)
at io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl$1StreamClosed.runInContext(ClientCallImpl.java:723)
at io.grpc.internal.ContextRunnable.run(ContextRunnable.java:37)
at io.grpc.internal.SerializeReentrantCallsDirectExecutor.execute(SerializeReentrantCallsDirectExecutor.java:49)
at io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl.closedInternal(ClientCallImpl.java:752)
at io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl.closed(ClientCallImpl.java:688)
at io.grpc.internal.RetriableStream$Sublistener$5.run(RetriableStream.java:986)
at io.grpc.SynchronizationContext.drain(SynchronizationContext.java:95)
at io.grpc.SynchronizationContext.execute(SynchronizationContext.java:127)
at io.grpc.internal.RetriableStream$Sublistener.closed(RetriableStream.java:981)
at io.grpc.internal.FailingClientStream.start(FailingClientStream.java:61)
at io.grpc.internal.DelayedStream.internalStart(DelayedStream.java:257)
at io.grpc.internal.DelayedStream.start(DelayedStream.java:244)
at io.grpc.internal.RetriableStream$StartEntry.runWith(RetriableStream.java:349)
at io.grpc.internal.RetriableStream.drain(RetriableStream.java:313)
at io.grpc.internal.RetriableStream.start(RetriableStream.java:390)
at io.grpc.internal.ClientCallImpl.startInternal(ClientCallImpl.java:289)
at io.grpc.internal.ClientCallImpl.start(ClientCallImpl.java:191)
at io.grpc.stub.ClientCalls.startCall(ClientCalls.java:341)
at io.grpc.stub.ClientCalls.asyncUnaryRequestCall(ClientCalls.java:315)
at io.grpc.stub.ClientCalls.asyncUnaryRequestCall(ClientCalls.java:303)
at io.grpc.stub.ClientCalls.asyncUnaryCall(ClientCalls.java:76)
at com.alipay.sofa.jraft.rpc.impl.GrpcClient.invokeAsync(GrpcClient.java:154)
at com.alipay.sofa.jraft.rpc.impl.GrpcClient.invokeSync(GrpcClient.java:118)
... 3 more
Caused by: io.grpc.netty.shaded.io.netty.channel.AbstractChannel$AnnotatedConnectException: connect(..) failed: Invalid argument: /127.0.0.1:7848
Caused by: java.net.ConnectException: connect(..) failed: Invalid argument
at io.grpc.netty.shaded.io.netty.channel.unix.Errors.newConnectException0(Errors.java:155)
at io.grpc.netty.shaded.io.netty.channel.unix.Errors.handleConnectErrno(Errors.java:128)
at io.grpc.netty.shaded.io.netty.channel.unix.Socket.connect(Socket.java:313)
at io.grpc.netty.shaded.io.netty.channel.epoll.AbstractEpollChannel.doConnect0(AbstractEpollChannel.java:773)
at io.grpc.netty.shaded.io.netty.channel.epoll.EpollSocketChannel.doConnect0(EpollSocketChannel.java:144)
at io.grpc.netty.shaded.io.netty.channel.epoll.AbstractEpollChannel.doConnect(AbstractEpollChannel.java:758)
at io.grpc.netty.shaded.io.netty.channel.epoll.AbstractEpollChannel$AbstractEpollUnsafe.connect(AbstractEpollChannel.java:600)
at io.grpc.netty.shaded.io.netty.channel.DefaultChannelPipeline$HeadContext.connect(DefaultChannelPipeline.java:1342)
at io.grpc.netty.shaded.io.netty.channel.AbstractChannelHandlerContext.invokeConnect(AbstractChannelHandlerContext.java:548)
at io.grpc.netty.shaded.io.netty.channel.AbstractChannelHandlerContext.connect(AbstractChannelHandlerContext.java:533)
at io.grpc.netty.shaded.io.netty.channel.ChannelDuplexHandler.connect(ChannelDuplexHandler.java:54)
at io.grpc.netty.shaded.io.grpc.netty.WriteBufferingAndExceptionHandler.connect(WriteBufferingAndExceptionHandler.java:157)
at io.grpc.netty.shaded.io.netty.channel.AbstractChannelHandlerContext.invokeConnect(AbstractChannelHandlerContext.java:548)
at io.grpc.netty.shaded.io.netty.channel.AbstractChannelHandlerContext.access$1000(AbstractChannelHandlerContext.java:61)
at io.grpc.netty.shaded.io.netty.channel.AbstractChannelHandlerContext$9.run(AbstractChannelHandlerContext.java:538)
at io.grpc.netty.shaded.io.netty.util.concurrent.AbstractEventExecutor.runTask(AbstractEventExecutor.java:174)
at io.grpc.netty.shaded.io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:167)
at io.grpc.netty.shaded.io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:470)
at io.grpc.netty.shaded.io.netty.channel.epoll.EpollEventLoop.run(EpollEventLoop.java:394)
at io.grpc.netty.shaded.io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:997)
at io.grpc.netty.shaded.io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
at io.grpc.netty.shaded.io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
at java.lang.Thread.run(Thread.java:750)

用idea直接运行,打包发包会出问题,我也不知道为啥打包后就会发不了包