记录nacos远程连接的坑: Waited 3000 milliseconds (plus 4100 nanoseconds delay)

2年前 (2022) 程序员胖胖胖虎阿
966 0 0

:: BladeX 2.9.0.RELEASE :: inte-dmall:dev :: Running SpringBoot 2.3.12.RELEASE ::

2022-03-16 15:06:06.138 INFO 19224 — [ main] org.reflections.Reflections : Reflections took 45 ms to scan 1 urls, producing 3 keys and 6 values
2022-03-16 15:06:06.176 INFO 19224 — [ main] org.reflections.Reflections : Reflections took 18 ms to scan 1 urls, producing 4 keys and 9 values
2022-03-16 15:06:06.198 INFO 19224 — [ main] org.reflections.Reflections : Reflections took 19 ms to scan 1 urls, producing 3 keys and 10 values
2022-03-16 15:06:06.415 INFO 19224 — [ main] org.reflections.Reflections : Reflections took 213 ms to scan 284 urls, producing 0 keys and 0 values
2022-03-16 15:06:06.427 INFO 19224 — [ main] org.reflections.Reflections : Reflections took 11 ms to scan 1 urls, producing 1 keys and 5 values
2022-03-16 15:06:06.438 INFO 19224 — [ main] org.reflections.Reflections : Reflections took 7 ms to scan 1 urls, producing 1 keys and 7 values
2022-03-16 15:06:06.449 INFO 19224 — [ main] org.reflections.Reflections : Reflections took 8 ms to scan 1 urls, producing 2 keys and 8 values
2022-03-16 15:06:06.615 INFO 19224 — [ main] org.reflections.Reflections : Reflections took 162 ms to scan 284 urls, producing 0 keys and 0 values
2022-03-16 15:06:18.046 WARN 19224 — [ main] c.a.c.n.c.NacosPropertySourceBuilder : Ignore the empty nacos configuration and get it based on dataId[inte-dmall] & group[DEFAULT_GROUP]
2022-03-16 15:06:18.355 WARN 19224 — [ main] c.a.c.n.c.NacosPropertySourceBuilder : Ignore the empty nacos configuration and get it based on dataId[inte-dmall.yaml] & group[DEFAULT_GROUP]
2022-03-16 15:06:18.677 INFO 19224 — [ main] b.c.PropertySourceBootstrapConfiguration : Located property source: [BootstrapPropertySource {name=‘bootstrapProperties-inte-dmall-dev.yaml,DEFAULT_GROUP’}, BootstrapPropertySource {name=‘bootstrapProperties-inte-dmall.yaml,DEFAULT_GROUP’}, BootstrapPropertySource {name=‘bootstrapProperties-inte-dmall,DEFAULT_GROUP’}, BootstrapPropertySource {name=‘bootstrapProperties-blade-dev.yaml,DEFAULT_GROUP’}, BootstrapPropertySource {name=‘bootstrapProperties-blade.yaml,DEFAULT_GROUP’}]
2022-03-16 15:06:18.734 INFO 19224 — [ main] com.inte.dmall.DmallApplication : The following profiles are active: dev
2022-03-16 15:06:19.338 WARN 19224 — [ main] o.s.c.c.u.SpringFactoryImportSelector : More than one implementation of @EnableCircuitBreaker (now relying on @Conditionals to pick one): [org.springframework.cloud.netflix.hystrix.HystrixCircuitBreakerConfiguration, com.alibaba.cloud.sentinel.custom.SentinelCircuitBreakerConfiguration]
2022-03-16 15:06:19.923 ERROR 19224 — [t.remote.worker] 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 4100 nanoseconds delay) for com.alibaba.nacos.shaded.io.grpc.stub.ClientCallsKaTeX parse error: Expected '}', got 'EOF' at end of input: ….ProtoLiteUtilsMessageMarshaller@58a84a12, responseMarshaller=com.alibaba.nacos.shaded.io.grpc.protobuf.lite.ProtoLiteUtils

M

e

s

s

a

g

e

M

a

r

s

h

a

l

l

e

r

@

e

700

e

b

a

,

s

c

h

e

m

a

D

e

s

c

r

i

p

t

o

r

=

c

o

m

.

a

l

i

b

a

b

a

.

n

a

c

o

s

.

a

p

i

.

g

r

p

c

.

a

u

t

o

.

R

e

q

u

e

s

t

G

r

p

c

MessageMarshaller@e700eba, schemaDescriptor=com.alibaba.nacos.api.grpc.auto.RequestGrpc

MessageMarshaller@e700eba,schemaDescriptor=com.alibaba.nacos.api.grpc.auto.RequestGrpcRequestMethodDescriptorSupplier@6436e181}}}}}]]
at com.alibaba.nacos.shaded.com.google.common.util.concurrent.AbstractFuture.get(AbstractFuture.java:508)
at com.alibaba.nacos.common.remote.client.grpc.GrpcClient.serverCheck(GrpcClient.java:146)
at com.alibaba.nacos.common.remote.client.grpc.GrpcClient.connectToServer(GrpcClient.java:268)
at com.alibaba.nacos.common.remote.client.RpcClient.reconnect(RpcClient.java:528)
at com.alibaba.nacos.common.remote.client.RpcClient

3.

r

u

n

(

R

p

c

C

l

i

e

n

t

.

j

a

v

a

:

373

)

a

t

j

a

v

a

.

u

t

i

l

.

c

o

n

c

u

r

r

e

n

t

.

E

x

e

c

u

t

o

r

s

3.run(RpcClient.java:373) at java.util.concurrent.Executors

3.run(RpcClient.java:373)atjava.util.concurrent.ExecutorsRunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access

201

(

S

c

h

e

d

u

l

e

d

T

h

r

e

a

d

P

o

o

l

E

x

e

c

u

t

o

r

.

j

a

v

a

:

180

)

a

t

j

a

v

a

.

u

t

i

l

.

c

o

n

c

u

r

r

e

n

t

.

S

c

h

e

d

u

l

e

d

T

h

r

e

a

d

P

o

o

l

E

x

e

c

u

t

o

r

201(ScheduledThreadPoolExecutor.java:180) at java.util.concurrent.ScheduledThreadPoolExecutor

201(ScheduledThreadPoolExecutor.java:180)atjava.util.concurrent.ScheduledThreadPoolExecutorScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)

2022-03-16 15:06:21.037 INFO 19224 — [ main] .s.d.r.c.RepositoryConfigurationDelegate : Multiple Spring Data modules found, entering strict repository configuration mode!
2022-03-16 15:06:21.042 INFO 19224 — [ main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data Redis repositories in DEFAULT mode.
2022-03-16 15:06:21.092 INFO 19224 — [ main] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 28ms. Found 0 Redis repository interfaces.
2022-03-16 15:06:21.249 WARN 19224 — [ main] o.s.boot.actuate.endpoint.EndpointId : Endpoint ID ‘service-registry’ contains invalid characters, please migrate to a valid format.
2022-03-16 15:06:21.277 WARN 19224 — [ main] o.s.boot.actuate.endpoint.EndpointId : Endpoint ID ‘hystrix.stream’ contains invalid characters, please migrate to a valid format.
2022-03-16 15:06:21.435 WARN 19224 — [ main] o.m.s.mapper.ClassPathMapperScanner : Skipping MapperFactoryBean with name ‘bladeMapper’ and ‘org.springblade.core.mp.mapper.BladeMapper’ mapperInterface. Bean already defined with the same name!
2022-03-16 15:06:21.620 INFO 19224 — [ main] o.s.cloud.context.scope.GenericScope : BeanFactory id=399ef8a1-48cc-372b-b320-b1e06a5af761
2022-03-16 15:06:21.626 INFO 19224 — [ main] s.c.l.p.BladePropertySourcePostProcessor : BladePropertySourcePostProcessor init.
2022-03-16 15:06:21.626 INFO 19224 — [ main] s.c.l.p.BladePropertySourcePostProcessor : BladePropertySourcePostProcessor process @BladePropertySource bean.
2022-03-16 15:06:23.160 ERROR 19224 — [t.remote.worker] 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 113 milliseconds, 559500 nanoseconds delay) for com.alibaba.nacos.shaded.io.grpc.stub.ClientCallsKaTeX parse error: Expected '}', got 'EOF' at end of input: ….ProtoLiteUtilsMessageMarshaller@58a84a12, responseMarshaller=com.alibaba.nacos.shaded.io.grpc.protobuf.lite.ProtoLiteUtils

M

e

s

s

a

g

e

M

a

r

s

h

a

l

l

e

r

@

e

700

e

b

a

,

s

c

h

e

m

a

D

e

s

c

r

i

p

t

o

r

=

c

o

m

.

a

l

i

b

a

b

a

.

n

a

c

o

s

.

a

p

i

.

g

r

p

c

.

a

u

t

o

.

R

e

q

u

e

s

t

G

r

p

c

MessageMarshaller@e700eba, schemaDescriptor=com.alibaba.nacos.api.grpc.auto.RequestGrpc

MessageMarshaller@e700eba,schemaDescriptor=com.alibaba.nacos.api.grpc.auto.RequestGrpcRequestMethodDescriptorSupplier@6436e181}}}}}]]
at com.alibaba.nacos.shaded.com.google.common.util.concurrent.AbstractFuture.get(AbstractFuture.java:508)
at com.alibaba.nacos.common.remote.client.grpc.GrpcClient.serverCheck(GrpcClient.java:146)
at com.alibaba.nacos.common.remote.client.grpc.GrpcClient.connectToServer(GrpcClient.java:268)
at com.alibaba.nacos.common.remote.client.RpcClient.reconnect(RpcClient.java:528)
at com.alibaba.nacos.common.remote.client.RpcClient

3.

r

u

n

(

R

p

c

C

l

i

e

n

t

.

j

a

v

a

:

373

)

a

t

j

a

v

a

.

u

t

i

l

.

c

o

n

c

u

r

r

e

n

t

.

E

x

e

c

u

t

o

r

s

3.run(RpcClient.java:373) at java.util.concurrent.Executors

3.run(RpcClient.java:373)atjava.util.concurrent.ExecutorsRunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access

201

(

S

c

h

e

d

u

l

e

d

T

h

r

e

a

d

P

o

o

l

E

x

e

c

u

t

o

r

.

j

a

v

a

:

180

)

a

t

j

a

v

a

.

u

t

i

l

.

c

o

n

c

u

r

r

e

n

t

.

S

c

h

e

d

u

l

e

d

T

h

r

e

a

d

P

o

o

l

E

x

e

c

u

t

o

r

201(ScheduledThreadPoolExecutor.java:180) at java.util.concurrent.ScheduledThreadPoolExecutor

201(ScheduledThreadPoolExecutor.java:180)atjava.util.concurrent.ScheduledThreadPoolExecutorScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)

INFO: Sentinel log output type is: file
INFO: Sentinel log charset is: utf-8
INFO: Sentinel log base directory is: C:\Users\Administrator\logs\csp
INFO: Sentinel log name use pid is: false
2022-03-16 15:06:23.879 WARN 19224 — [ main] io.undertow.websockets.jsr : UT026010: Buffer pool was not set on WebSocketDeploymentInfo, the default pool will be used
2022-03-16 15:06:23.942 INFO 19224 — [ main] io.undertow.servlet : Initializing Spring embedded WebApplicationContext
2022-03-16 15:06:23.943 INFO 19224 — [ main] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 5168 ms
2022-03-16 15:06:24.285 WARN 19224 — [ main] c.n.c.sources.URLConfigurationSource : No URLs will be polled as dynamic configuration sources.
2022-03-16 15:06:24.286 INFO 19224 — [ main] c.n.c.sources.URLConfigurationSource : To enable URLs as dynamic configuration sources, define System property archaius.configurationSource.additionalUrls or make config.properties available on classpath.
2022-03-16 15:06:24.305 INFO 19224 — [ main] c.netflix.config.DynamicPropertyFactory : DynamicPropertyFactory is initialized with configuration sources: com.netflix.config.ConcurrentCompositeConfiguration@685e5967
2022-03-16 15:06:24.614 INFO 19224 — [ main] o.s.b.a.e.web.ServletEndpointRegistrar : Registered ‘/actuator/hystrix.stream’ to hystrix.stream-actuator-endpoint
2022-03-16 15:06:25.017 INFO 19224 — [ main] c.a.d.s.b.a.DruidDataSourceAutoConfigure : Init DruidDataSource
2022-03-16 15:06:26.408 ERROR 19224 — [t.remote.worker] 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 455000 nanoseconds delay) for com.alibaba.nacos.shaded.io.grpc.stub.ClientCallsKaTeX parse error: Expected '}', got 'EOF' at end of input: ….ProtoLiteUtilsMessageMarshaller@58a84a12, responseMarshaller=com.alibaba.nacos.shaded.io.grpc.protobuf.lite.ProtoLiteUtils

M

e

s

s

a

g

e

M

a

r

s

h

a

l

l

e

r

@

e

700

e

b

a

,

s

c

h

e

m

a

D

e

s

c

r

i

p

t

o

r

=

c

o

m

.

a

l

i

b

a

b

a

.

n

a

c

o

s

.

a

p

i

.

g

r

p

c

.

a

u

t

o

.

R

e

q

u

e

s

t

G

r

p

c

MessageMarshaller@e700eba, schemaDescriptor=com.alibaba.nacos.api.grpc.auto.RequestGrpc

MessageMarshaller@e700eba,schemaDescriptor=com.alibaba.nacos.api.grpc.auto.RequestGrpcRequestMethodDescriptorSupplier@6436e181}}}}}]]
at com.alibaba.nacos.shaded.com.google.common.util.concurrent.AbstractFuture.get(AbstractFuture.java:508)
at com.alibaba.nacos.common.remote.client.grpc.GrpcClient.serverCheck(GrpcClient.java:146)
at com.alibaba.nacos.common.remote.client.grpc.GrpcClient.connectToServer(GrpcClient.java:268)
at com.alibaba.nacos.common.remote.client.RpcClient.reconnect(RpcClient.java:528)
at com.alibaba.nacos.common.remote.client.RpcClient

3.

r

u

n

(

R

p

c

C

l

i

e

n

t

.

j

a

v

a

:

373

)

a

t

j

a

v

a

.

u

t

i

l

.

c

o

n

c

u

r

r

e

n

t

.

E

x

e

c

u

t

o

r

s

3.run(RpcClient.java:373) at java.util.concurrent.Executors

3.run(RpcClient.java:373)atjava.util.concurrent.ExecutorsRunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access

201

(

S

c

h

e

d

u

l

e

d

T

h

r

e

a

d

P

o

o

l

E

x

e

c

u

t

o

r

.

j

a

v

a

:

180

)

a

t

j

a

v

a

.

u

t

i

l

.

c

o

n

c

u

r

r

e

n

t

.

S

c

h

e

d

u

l

e

d

T

h

r

e

a

d

P

o

o

l

E

x

e

c

u

t

o

r

201(ScheduledThreadPoolExecutor.java:180) at java.util.concurrent.ScheduledThreadPoolExecutor

201(ScheduledThreadPoolExecutor.java:180)atjava.util.concurrent.ScheduledThreadPoolExecutorScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)

启动报错,先用telnet 去拼nacos的ip和端口,看是否通,nacos会平移三个端口
如果通,还是启动报错,本地安装nacos,重启服务,服务能启动成功。证明是本地连接外部nacos异常。
最后定位问题,网卡端口冲突,我安装了一个远程连接公司的工具,貌似网卡被破坏了。卸载之后,多重启几次电脑,问题解决。

相关文章

暂无评论

暂无评论...