pinxiong removed a comment on issue #9551: URL: https://github.com/apache/dubbo/issues/9551#issuecomment-1009963117
I have reproduce this problem in my local machine. The exception occurred as below: ```java Connected to the target VM, address: '127.0.0.1:56915', transport: 'socket' log4j:WARN No appenders could be found for logger (org.apache.dubbo.test.check.registrycenter.ZookeeperRegistryCenter). log4j:WARN Please initialize the log4j system properly. log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info. Jan 11, 2022 9:10:25 PM org.junit.platform.launcher.core.TestExecutionListenerRegistry lambda$notifyEach$1 WARNING: TestExecutionListener [org.apache.dubbo.test.check.RegistryCenterStarted] threw exception for method: testPlanExecutionStarted(org.junit.platform.launcher.core.InternalTestPlan@553f1d75) java.lang.IllegalStateException: Failed to start zookeeper instance in unit test at org.apache.dubbo.test.check.RegistryCenterStarted.testPlanExecutionStarted(RegistryCenterStarted.java:37) at org.junit.platform.launcher.core.TestExecutionListenerRegistry$CompositeTestExecutionListener.lambda$testPlanExecutionStarted$12(TestExecutionListenerRegistry.java:115) at org.junit.platform.launcher.core.TestExecutionListenerRegistry.lambda$notifyEach$1(TestExecutionListenerRegistry.java:67) at java.util.ArrayList.forEach(ArrayList.java:1259) at org.junit.platform.launcher.core.TestExecutionListenerRegistry.notifyEach(TestExecutionListenerRegistry.java:65) at org.junit.platform.launcher.core.TestExecutionListenerRegistry.access$200(TestExecutionListenerRegistry.java:32) at org.junit.platform.launcher.core.TestExecutionListenerRegistry$CompositeTestExecutionListener.testPlanExecutionStarted(TestExecutionListenerRegistry.java:115) at org.junit.platform.launcher.core.DefaultLauncher.lambda$execute$5(DefaultLauncher.java:200) at org.junit.platform.launcher.core.DefaultLauncher.withInterceptedStreams(DefaultLauncher.java:226) at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:199) at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:132) at com.intellij.junit5.JUnit5IdeaTestRunner.startRunnerWithArgs(JUnit5IdeaTestRunner.java:71) at com.intellij.rt.junit.IdeaTestRunner$Repeater$1.execute(IdeaTestRunner.java:38) at com.intellij.rt.execution.junit.TestsRepeater.repeat(TestsRepeater.java:11) at com.intellij.rt.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:35) at com.intellij.rt.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:235) at com.intellij.rt.junit.JUnitStarter.main(JUnitStarter.java:54) Caused by: java.lang.RuntimeException: Download zookeeper binary archive failed, download url:https://archive.apache.org/dist/zookeeper/zookeeper-3.6.0/apache-zookeeper-3.6.0-bin.tar.gz, file path:/var/folders/qb/c5lkt6s932s1v2gvx702sqx40000gp/T/zookeeper/apache-zookeeper-3.6.0-bin.tar.gz. Or you can do something to avoid this problem as below: 1. Download zookeeper binary archive manually regardless of the version 2. Rename the downloaded file named 'apache-zookeeper-{version}-bin.tar.gz' to 'apache-zookeeper-bin.tar.gz' 3. Put the renamed file in /Users/xxxx/.tmp/zookeeper/apache-zookeeper-bin.tar.gz, you maybe need to create the directory if necessary. at org.apache.dubbo.test.check.registrycenter.initializer.DownloadZookeeperInitializer.doInitialize(DownloadZookeeperInitializer.java:113) at org.apache.dubbo.test.check.registrycenter.initializer.ZookeeperInitializer.initialize(ZookeeperInitializer.java:41) at org.apache.dubbo.test.check.registrycenter.ZookeeperRegistryCenter.startup(ZookeeperRegistryCenter.java:220) at org.apache.dubbo.test.check.registrycenter.GlobalRegistryCenter.startup(GlobalRegistryCenter.java:35) at org.apache.dubbo.test.check.RegistryCenterStarted.testPlanExecutionStarted(RegistryCenterStarted.java:34) ... 16 more Caused by: java.util.concurrent.ExecutionException: java.util.concurrent.TimeoutException: Request timeout to archive.apache.org/138.201.131.134:443 after 30000 ms at java.util.concurrent.CompletableFuture.reportGet(CompletableFuture.java:357) at java.util.concurrent.CompletableFuture.get(CompletableFuture.java:1928) at org.asynchttpclient.netty.NettyResponseFuture.get(NettyResponseFuture.java:206) at org.apache.dubbo.test.check.registrycenter.initializer.DownloadZookeeperInitializer.download(DownloadZookeeperInitializer.java:175) at org.apache.dubbo.test.check.registrycenter.initializer.DownloadZookeeperInitializer.doInitialize(DownloadZookeeperInitializer.java:111) ... 20 more Caused by: java.util.concurrent.TimeoutException: Request timeout to archive.apache.org/138.201.131.134:443 after 30000 ms at org.asynchttpclient.netty.timeout.TimeoutTimerTask.expire(TimeoutTimerTask.java:43) at org.asynchttpclient.netty.timeout.RequestTimeoutTimerTask.run(RequestTimeoutTimerTask.java:50) at io.netty.util.HashedWheelTimer$HashedWheelTimeout.expire(HashedWheelTimer.java:672) at io.netty.util.HashedWheelTimer$HashedWheelBucket.expireTimeouts(HashedWheelTimer.java:747) at io.netty.util.HashedWheelTimer$Worker.run(HashedWheelTimer.java:472) at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30) at java.lang.Thread.run(Thread.java:748) [DubboTestChecker] Project dir: /Users/xxxx/Documents/workspace/java/dubbo/dubbo-registry/dubbo-registry-zookeeper ``` I think you can copy the downloaded zookeeper archive binary file to the specified path where you can find in error info. For example: `/Users/xxxx/.tmp/zookeeper/apache-zookeeper-bin.tar.gz` ```java Caused by: java.lang.RuntimeException: Download zookeeper binary archive failed, download url:https://archive.apache.org/dist/zookeeper/zookeeper-3.6.0/apache-zookeeper-3.6.0-bin.tar.gz, file path:/var/folders/qb/c5lkt6s932s1v2gvx702sqx40000gp/T/zookeeper/apache-zookeeper-3.6.0-bin.tar.gz. Or you can do something to avoid this problem as below: 1. Download zookeeper binary archive manually regardless of the version 2. Rename the downloaded file named 'apache-zookeeper-{version}-bin.tar.gz' to 'apache-zookeeper-bin.tar.gz' 3. Put the renamed file in /Users/xxxx/.tmp/zookeeper/apache-zookeeper-bin.tar.gz, you maybe need to create the directory if necessary. ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
