Skip to content
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

使用padlocal方式,docker容器启动正常,连接验证通过,但服务启动链接超时 #287

Open
SunShiLiuYe opened this issue Feb 29, 2024 · 3 comments

Comments

@SunShiLiuYe
Copy link

本地docker容器启动正常,https连接验证通过。但程序启动后并未打印出二维码,并且出现连接超时的异常
image
image

2024-02-29 17:03:50.154 [main] INFO org.tydic.webchat.WebchatApplication 55 - Starting WebchatApplication using Java 1.8.0_201 on LAPTOP-TR1B88B3 with PID 29020 (E:\代码\JAVA\webchat\target\classes started by sun_yang in E:\代码\JAVA\webchat)
2024-02-29 17:03:50.159 [main] INFO org.tydic.webchat.WebchatApplication 675 - No active profile set, falling back to default profiles: default
before bot.onScan
before bot.onMessage
before bot.start
2024-02-29 17:03:51.536 [main] INFO io.github.wechaty.user.manager.PuppetManager 23 - PuppetManager resolveInstance({"name":"Wechaty","puppet":"io.github.wechaty.grpc.GrpcPuppet","puppetOptions":{"token":"puppet_padlocal_e478537bfba047f8b7fa2e4b3e75d49c","name":"DEFAULT"}})
2024-02-29 17:03:51.667 [main] INFO org.reflections.Reflections 229 - Reflections took 111 ms to scan 4 urls, producing 159 keys and 1545 values
2024-02-29 17:04:23.163 [main] ERROR io.github.wechaty.grpc.GrpcPuppet 82 - start() rejection:
io.grpc.StatusRuntimeException: UNAVAILABLE: io exception
at io.grpc.stub.ClientCalls.toStatusRuntimeException(ClientCalls.java:244)
at io.grpc.stub.ClientCalls.getUnchecked(ClientCalls.java:225)
at io.grpc.stub.ClientCalls.blockingUnaryCall(ClientCalls.java:142)
at io.github.wechaty.grpc.PuppetGrpc$PuppetBlockingStub.start(PuppetGrpc.java:2744)
at io.github.wechaty.grpc.GrpcPuppet.start(GrpcPuppet.kt:78)
at io.github.wechaty.Wechaty.start(Wechaty.kt:52)
at org.tydic.webchat.WechatStart.run(WechatStart.java:88)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:389)
at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:333)
at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:157)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:422)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1778)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:602)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:524)
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:944)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:918)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:583)
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:144)
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:782)
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:774)
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:439)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:339)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1340)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1329)
at org.tydic.webchat.WebchatApplication.main(WebchatApplication.java:10)
Caused by: io.grpc.netty.shaded.io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection timed out: no further information: /123.14.98.8:8080
Caused by: java.net.ConnectException: Connection timed out: no further information
at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:717)
at io.grpc.netty.shaded.io.netty.channel.socket.nio.NioSocketChannel.doFinishConnect(NioSocketChannel.java:330)
at io.grpc.netty.shaded.io.netty.channel.nio.AbstractNioChannel$AbstractNioUnsafe.finishConnect(AbstractNioChannel.java:334)
at io.grpc.netty.shaded.io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:702)
at io.grpc.netty.shaded.io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:650)
at io.grpc.netty.shaded.io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:576)
at io.grpc.netty.shaded.io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:493)
at io.grpc.netty.shaded.io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:989)
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:748)
2024-02-29 17:04:23.172 [main] INFO io.github.wechaty.Wechaty 58 - start Wechaty
2024-02-29 17:04:25.669 [StartMain-shutdown-hook] WARN io.github.wechaty.grpc.GrpcPuppet 95 - stop() is called on a OFF puppet. await ready(off) and return.
2024-02-29 17:04:25.670 [StartMain-shutdown-hook] INFO io.github.wechaty.Wechaty 411 - wechaty stop
2024-02-29 17:04:26.053 [main] INFO org.tydic.webchat.WebchatApplication 61 - Started WebchatApplication in 36.548 seconds (JVM running for 38.476)

进程已结束,退出代码为 130

@SunShiLiuYe
Copy link
Author

本地容器内的报错,获取二维码超时了image

@He1123
Copy link

He1123 commented Apr 1, 2024

解决了吗

1 similar comment
@qingjiuzys
Copy link

解决了吗

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants