You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by "l343765828 (GitHub)" <gi...@apache.org> on 2020/01/09 05:56:06 UTC
[GitHub] [dubbo-spring-boot-project] l343765828 opened issue #657:
zookeeper not connected
zookeeper:3.5.5
dubbo:2.7.5
一直报:java.lang.IllegalStateException: zookeeper not connected
[ Full content available at: https://github.com/apache/dubbo-spring-boot-project/issues/657 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org
[GitHub] [dubbo-spring-boot-project] l343765828 commented on issue
#657: zookeeper not connected
Posted by "l343765828 (GitHub)" <gi...@apache.org>.
@limng06 生产环境 我用的2.7.3 之后的没敢用
[ Full content available at: https://github.com/apache/dubbo-spring-boot-project/issues/657 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org
[GitHub] [dubbo-spring-boot-project] lzf971107 commented on issue
#657: zookeeper not connected
Posted by "lzf971107 (GitHub)" <gi...@apache.org>.
> 还是消费者这边报错 服务没事
加上这个排除试试:
```xml
<!-- 1. brave 对 dubbo 的集成 -->
<dependency>
<groupId>io.zipkin.brave</groupId>
<artifactId>brave-instrumentation-dubbo-rpc</artifactId>
<exclusions>
<exclusion>
<artifactId>dubbo</artifactId>
<groupId>com.alibaba</groupId>
</exclusion>
</exclusions>
</dependency>
```
[ Full content available at: https://github.com/apache/dubbo-spring-boot-project/issues/657 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org
[GitHub] [dubbo-spring-boot-project] l343765828 commented on issue
#657: zookeeper not connected
Posted by "l343765828 (GitHub)" <gi...@apache.org>.
有邮箱吗
[ Full content available at: https://github.com/apache/dubbo-spring-boot-project/issues/657 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org
[GitHub] [dubbo-spring-boot-project] lzf971107 commented on issue
#657: zookeeper not connected
Posted by "lzf971107 (GitHub)" <gi...@apache.org>.
> 需要我发demo吗
需要,只有这点信息可能看不出什么。
[ Full content available at: https://github.com/apache/dubbo-spring-boot-project/issues/657 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org
[GitHub] [dubbo-spring-boot-project] l343765828 commented on issue
#657: zookeeper not connected
Posted by "l343765828 (GitHub)" <gi...@apache.org>.
@lzf971107 已发送
[ Full content available at: https://github.com/apache/dubbo-spring-boot-project/issues/657 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org
[GitHub] [dubbo-spring-boot-project] l343765828 commented on issue
#657: zookeeper not connected
Posted by "l343765828 (GitHub)" <gi...@apache.org>.
@lzf971107 已上传
[ Full content available at: https://github.com/apache/dubbo-spring-boot-project/issues/657 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org
[GitHub] [dubbo-spring-boot-project] l343765828 commented on issue
#657: zookeeper not connected
Posted by "l343765828 (GitHub)" <gi...@apache.org>.
我有个远程的zipkin 您能调吗?
[ Full content available at: https://github.com/apache/dubbo-spring-boot-project/issues/657 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org
[GitHub] [dubbo-spring-boot-project] l343765828 commented on issue
#657: zookeeper not connected
Posted by "l343765828 (GitHub)" <gi...@apache.org>.
需要我发demo吗
[ Full content available at: https://github.com/apache/dubbo-spring-boot-project/issues/657 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org
[GitHub] [dubbo-spring-boot-project] mercyblitz closed issue #657:
zookeeper not connected
Posted by "mercyblitz (GitHub)" <gi...@apache.org>.
[ issue closed by mercyblitz ]
[ Full content available at: https://github.com/apache/dubbo-spring-boot-project/issues/657 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org
[GitHub] [dubbo-spring-boot-project] l343765828 commented on issue
#657: zookeeper not connected
Posted by "l343765828 (GitHub)" <gi...@apache.org>.
@lzf971107
[ Full content available at: https://github.com/apache/dubbo-spring-boot-project/issues/657 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org
[GitHub] [dubbo-spring-boot-project] l343765828 commented on issue
#657: zookeeper not connected
Posted by "l343765828 (GitHub)" <gi...@apache.org>.
There was an unexpected error (type=Internal Server Error, status=500).
Failed to invoke the method sayHello in the service com.testzipkin.inter.DemoService. Tried 3 times of the providers [192.168.3.35:20880] (1/1) from the registry 192.168.3.244:32220 on the consumer 192.168.3.35 using the dubbo version 2.7.5. Last error is: com.alibaba.dubbo.rpc.protocol.dubbo.FutureAdapter.<init>(Lcom/alibaba/dubbo/remoting/exchange/ResponseFuture;)V
我从2.7.3就开始试 到2.7.5一直都报这错呢
[ Full content available at: https://github.com/apache/dubbo-spring-boot-project/issues/657 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org
[GitHub] [dubbo-spring-boot-project] lzf971107 commented on issue
#657: zookeeper not connected
Posted by "lzf971107 (GitHub)" <gi...@apache.org>.
redis作为注册中心,我确实没有使用过,无法给您经验,不过您可以继续打开此问题,等待其余人的答案。
[ Full content available at: https://github.com/apache/dubbo-spring-boot-project/issues/657 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org
[GitHub] [dubbo-spring-boot-project] lzf971107 commented on issue
#657: zookeeper not connected
Posted by "lzf971107 (GitHub)" <gi...@apache.org>.
@l343765828
Hello, 能否给出测试demo
[ Full content available at: https://github.com/apache/dubbo-spring-boot-project/issues/657 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org
[GitHub] [dubbo-spring-boot-project] mizhilong commented on issue
#657: zookeeper not connected
Posted by "mizhilong (GitHub)" <gi...@apache.org>.
> dubbo.config-center.timeout=50000
> dubbo.registry.timeout=40000
> 这俩我同时设置了大数值 然后timeout的时间就取到了配置的值了 取最小的一个
> @mizhilong @mail6562 @lzf971107
真巧,刚误打误撞试验,也发现这个,不过我这里试验是取dubbo.registry.timeout的值,会作为连接zk的时间使用。
[ Full content available at: https://github.com/apache/dubbo-spring-boot-project/issues/657 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org
[GitHub] [dubbo-spring-boot-project] mail6562 commented on issue
#657: zookeeper not connected
Posted by "mail6562 (GitHub)" <gi...@apache.org>.
> > @lzf971107 您发的那个zookeeper项目 我这边还是不行 报的:
> > ```
> > java.lang.IllegalStateException: zookeeper not connected
> > at org.apache.dubbo.remoting.zookeeper.curator.CuratorZookeeperClient.<init>(CuratorZookeeperClient.java:83) ~[dubbo-2.7.5.jar:2.7.5]
> > at org.apache.dubbo.remoting.zookeeper.curator.CuratorZookeeperTransporter.createZookeeperClient(CuratorZookeeperTransporter.java:26) ~[dubbo-2.7.5.jar:2.7.5]
> > at org.apache.dubbo.remoting.zookeeper.support.AbstractZookeeperTransporter.connect(AbstractZookeeperTransporter.java:68) ~[dubbo-2.7.5.jar:2.7.5]
> > at org.apache.dubbo.remoting.zookeeper.ZookeeperTransporter$Adaptive.connect(ZookeeperTransporter$Adaptive.java) ~[dubbo-2.7.5.jar:2.7.5]
> > at org.apache.dubbo.configcenter.support.zookeeper.ZookeeperDynamicConfiguration.<init>(ZookeeperDynamicConfiguration.java:70) ~[dubbo-2.7.5.jar:2.7.5]
> > at org.apache.dubbo.configcenter.support.zookeeper.ZookeeperDynamicConfigurationFactory.createDynamicConfiguration(ZookeeperDynamicConfigurationFactory.java:37) ~[dubbo-2.7.5.jar:2.7.5]
> > at org.apache.dubbo.common.config.configcenter.AbstractDynamicConfigurationFactory.lambda$getDynamicConfiguration$0(AbstractDynamicConfigurationFactory.java:39) ~[dubbo-2.7.5.jar:2.7.5]
> > at java.base/java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1705) ~[na:na]
> > at org.apache.dubbo.common.config.configcenter.AbstractDynamicConfigurationFactory.getDynamicConfiguration(AbstractDynamicConfigurationFactory.java:39) ~[dubbo-2.7.5.jar:2.7.5]
> > at org.apache.dubbo.common.config.configcenter.DynamicConfiguration.getDynamicConfiguration(DynamicConfiguration.java:223) ~[dubbo-2.7.5.jar:2.7.5]
> > at org.apache.dubbo.config.bootstrap.DubboBootstrap.prepareEnvironment(DubboBootstrap.java:815) ~[dubbo-2.7.5.jar:2.7.5]
> > at org.apache.dubbo.config.bootstrap.DubboBootstrap.startConfigCenter(DubboBootstrap.java:560) ~[dubbo-2.7.5.jar:2.7.5]
> > at org.apache.dubbo.config.bootstrap.DubboBootstrap.useRegistryAsConfigCenterIfNecessary(DubboBootstrap.java:624) ~[dubbo-2.7.5.jar:2.7.5]
> > at org.apache.dubbo.config.bootstrap.DubboBootstrap.initialize(DubboBootstrap.java:508) ~[dubbo-2.7.5.jar:2.7.5]
> > at org.apache.dubbo.config.bootstrap.DubboBootstrap.start(DubboBootstrap.java:698) ~[dubbo-2.7.5.jar:2.7.5]
> > at org.apache.dubbo.config.spring.context.DubboBootstrapApplicationListener.onContextRefreshedEvent(DubboBootstrapApplicationListener.java:52) ~[dubbo-2.7.5.jar:2.7.5]
> > at org.apache.dubbo.config.spring.context.DubboBootstrapApplicationListener.onApplicationContextEvent(DubboBootstrapApplicationListener.java:45) ~[dubbo-2.7.5.jar:2.7.5]
> > at org.apache.dubbo.config.spring.context.OneTimeExecutionApplicationContextEventListener.onApplicationEvent(OneTimeExecutionApplicationContextEventListener.java:40) ~[dubbo-2.7.5.jar:2.7.5]
> > at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:172) ~[spring-context-5.2.2.RELEASE.jar:5.2.2.RELEASE]
> > at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:165) ~[spring-context-5.2.2.RELEASE.jar:5.2.2.RELEASE]
> > at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:139) ~[spring-context-5.2.2.RELEASE.jar:5.2.2.RELEASE]
> > at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:403) ~[spring-context-5.2.2.RELEASE.jar:5.2.2.RELEASE]
> > at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:360) ~[spring-context-5.2.2.RELEASE.jar:5.2.2.RELEASE]
> > at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:897) ~[spring-context-5.2.2.RELEASE.jar:5.2.2.RELEASE]
> > at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:553) ~[spring-context-5.2.2.RELEASE.jar:5.2.2.RELEASE]
> > at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:747) ~[spring-boot-2.2.2.RELEASE.jar:2.2.2.RELEASE]
> > at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:397) ~[spring-boot-2.2.2.RELEASE.jar:2.2.2.RELEASE]
> > at org.springframework.boot.SpringApplication.run(SpringApplication.java:315) ~[spring-boot-2.2.2.RELEASE.jar:2.2.2.RELEASE]
> > at org.springframework.boot.SpringApplication.run(SpringApplication.java:1226) ~[spring-boot-2.2.2.RELEASE.jar:2.2.2.RELEASE]
> > at org.springframework.boot.SpringApplication.run(SpringApplication.java:1215) ~[spring-boot-2.2.2.RELEASE.jar:2.2.2.RELEASE]
> > at com.testzipkin.provider.ProviderApplication.main(ProviderApplication.java:11) ~[classes/:na]
> > Caused by: java.lang.IllegalStateException: zookeeper not connected
> > at org.apache.dubbo.remoting.zookeeper.curator.CuratorZookeeperClient.<init>(CuratorZookeeperClient.java:80) ~[dubbo-2.7.5.jar:2.7.5]
> > ... 30 common frames omitted
> > ```
>
> 是否是zookeeper环境问题
我也遇到这个问题,在windows上面能重现,就用网站的例子,只加一个zookeeper的地址就能重现,但是代码在centos上面运行是正常的,在windows idea 的debug模式下,在 org.apache.dubbo.remoting.zookeeper.curator.CuratorZookeeperClient 类内部 this.client.start(); 执行后,断点等一会就运行正常了 。如果不配置dubbo.config-center.timeout , 超时时间是3000,配置后是5000,我感觉是zookeeper客户端的问题,我的zookeeper服务端是3.5.5 。
[ Full content available at: https://github.com/apache/dubbo-spring-boot-project/issues/657 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org
[GitHub] [dubbo-spring-boot-project] l343765828 commented on issue
#657: zookeeper not connected
Posted by "l343765828 (GitHub)" <gi...@apache.org>.
application.yml:
```
# Spring boot application
spring:
application:
name: dubbo-auto-configuration-provider-demo
# Base packages to scan Dubbo Component: @org.apache.dubbo.config.annotation.Service
dubbo:
scan:
base-packages: com.testzipkin.provider.service
# Dubbo Protocol
protocol:
name: dubbo
port: -1
registry:
address: 192.168.3.244:31217
protocol: zookeeper
```
provider pom:
```
<dependency>
<groupId>org.apache.curator</groupId>
<artifactId>curator-framework</artifactId>
<version>4.2.0</version>
<exclusions>
<exclusion>
<groupId>org.apache.zookeeper</groupId>
<artifactId>zookeeper</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.zookeeper</groupId>
<artifactId>zookeeper</artifactId>
<version>3.5.5</version>
</dependency>
<dependency>
<groupId>org.apache.curator</groupId>
<artifactId>curator-recipes</artifactId>
<version>4.2.0</version>
</dependency>
```
[ Full content available at: https://github.com/apache/dubbo-spring-boot-project/issues/657 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org
[GitHub] [dubbo-spring-boot-project] l343765828 commented on issue
#657: zookeeper not connected
Posted by "l343765828 (GitHub)" <gi...@apache.org>.
@lzf971107
[ Full content available at: https://github.com/apache/dubbo-spring-boot-project/issues/657 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org
[GitHub] [dubbo-spring-boot-project] lzf971107 commented on issue
#657: zookeeper not connected
Posted by "lzf971107 (GitHub)" <gi...@apache.org>.
您可以直接将您的 demo 代码上传至 当前 issue中。
点击文本框下面 Attach files by dragging & dropping, selecting or pasting them. 即可上传文件。
[ Full content available at: https://github.com/apache/dubbo-spring-boot-project/issues/657 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org
[GitHub] [dubbo-spring-boot-project] lzf971107 commented on issue
#657: zookeeper not connected
Posted by "lzf971107 (GitHub)" <gi...@apache.org>.
> 不是 2.7.3就没问题
这个的话我这边没有此问题,我不知道该如何向您解释。
[ Full content available at: https://github.com/apache/dubbo-spring-boot-project/issues/657 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org
[GitHub] [dubbo-spring-boot-project] mail6562 commented on issue
#657: zookeeper not connected
Posted by "mail6562 (GitHub)" <gi...@apache.org>.
> > @lzf971107 您发的那个zookeeper项目 我这边还是不行 报的:
> > ```
> > java.lang.IllegalStateException: zookeeper not connected
> > at org.apache.dubbo.remoting.zookeeper.curator.CuratorZookeeperClient.<init>(CuratorZookeeperClient.java:83) ~[dubbo-2.7.5.jar:2.7.5]
> > at org.apache.dubbo.remoting.zookeeper.curator.CuratorZookeeperTransporter.createZookeeperClient(CuratorZookeeperTransporter.java:26) ~[dubbo-2.7.5.jar:2.7.5]
> > at org.apache.dubbo.remoting.zookeeper.support.AbstractZookeeperTransporter.connect(AbstractZookeeperTransporter.java:68) ~[dubbo-2.7.5.jar:2.7.5]
> > at org.apache.dubbo.remoting.zookeeper.ZookeeperTransporter$Adaptive.connect(ZookeeperTransporter$Adaptive.java) ~[dubbo-2.7.5.jar:2.7.5]
> > at org.apache.dubbo.configcenter.support.zookeeper.ZookeeperDynamicConfiguration.<init>(ZookeeperDynamicConfiguration.java:70) ~[dubbo-2.7.5.jar:2.7.5]
> > at org.apache.dubbo.configcenter.support.zookeeper.ZookeeperDynamicConfigurationFactory.createDynamicConfiguration(ZookeeperDynamicConfigurationFactory.java:37) ~[dubbo-2.7.5.jar:2.7.5]
> > at org.apache.dubbo.common.config.configcenter.AbstractDynamicConfigurationFactory.lambda$getDynamicConfiguration$0(AbstractDynamicConfigurationFactory.java:39) ~[dubbo-2.7.5.jar:2.7.5]
> > at java.base/java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1705) ~[na:na]
> > at org.apache.dubbo.common.config.configcenter.AbstractDynamicConfigurationFactory.getDynamicConfiguration(AbstractDynamicConfigurationFactory.java:39) ~[dubbo-2.7.5.jar:2.7.5]
> > at org.apache.dubbo.common.config.configcenter.DynamicConfiguration.getDynamicConfiguration(DynamicConfiguration.java:223) ~[dubbo-2.7.5.jar:2.7.5]
> > at org.apache.dubbo.config.bootstrap.DubboBootstrap.prepareEnvironment(DubboBootstrap.java:815) ~[dubbo-2.7.5.jar:2.7.5]
> > at org.apache.dubbo.config.bootstrap.DubboBootstrap.startConfigCenter(DubboBootstrap.java:560) ~[dubbo-2.7.5.jar:2.7.5]
> > at org.apache.dubbo.config.bootstrap.DubboBootstrap.useRegistryAsConfigCenterIfNecessary(DubboBootstrap.java:624) ~[dubbo-2.7.5.jar:2.7.5]
> > at org.apache.dubbo.config.bootstrap.DubboBootstrap.initialize(DubboBootstrap.java:508) ~[dubbo-2.7.5.jar:2.7.5]
> > at org.apache.dubbo.config.bootstrap.DubboBootstrap.start(DubboBootstrap.java:698) ~[dubbo-2.7.5.jar:2.7.5]
> > at org.apache.dubbo.config.spring.context.DubboBootstrapApplicationListener.onContextRefreshedEvent(DubboBootstrapApplicationListener.java:52) ~[dubbo-2.7.5.jar:2.7.5]
> > at org.apache.dubbo.config.spring.context.DubboBootstrapApplicationListener.onApplicationContextEvent(DubboBootstrapApplicationListener.java:45) ~[dubbo-2.7.5.jar:2.7.5]
> > at org.apache.dubbo.config.spring.context.OneTimeExecutionApplicationContextEventListener.onApplicationEvent(OneTimeExecutionApplicationContextEventListener.java:40) ~[dubbo-2.7.5.jar:2.7.5]
> > at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:172) ~[spring-context-5.2.2.RELEASE.jar:5.2.2.RELEASE]
> > at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:165) ~[spring-context-5.2.2.RELEASE.jar:5.2.2.RELEASE]
> > at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:139) ~[spring-context-5.2.2.RELEASE.jar:5.2.2.RELEASE]
> > at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:403) ~[spring-context-5.2.2.RELEASE.jar:5.2.2.RELEASE]
> > at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:360) ~[spring-context-5.2.2.RELEASE.jar:5.2.2.RELEASE]
> > at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:897) ~[spring-context-5.2.2.RELEASE.jar:5.2.2.RELEASE]
> > at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:553) ~[spring-context-5.2.2.RELEASE.jar:5.2.2.RELEASE]
> > at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:747) ~[spring-boot-2.2.2.RELEASE.jar:2.2.2.RELEASE]
> > at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:397) ~[spring-boot-2.2.2.RELEASE.jar:2.2.2.RELEASE]
> > at org.springframework.boot.SpringApplication.run(SpringApplication.java:315) ~[spring-boot-2.2.2.RELEASE.jar:2.2.2.RELEASE]
> > at org.springframework.boot.SpringApplication.run(SpringApplication.java:1226) ~[spring-boot-2.2.2.RELEASE.jar:2.2.2.RELEASE]
> > at org.springframework.boot.SpringApplication.run(SpringApplication.java:1215) ~[spring-boot-2.2.2.RELEASE.jar:2.2.2.RELEASE]
> > at com.testzipkin.provider.ProviderApplication.main(ProviderApplication.java:11) ~[classes/:na]
> > Caused by: java.lang.IllegalStateException: zookeeper not connected
> > at org.apache.dubbo.remoting.zookeeper.curator.CuratorZookeeperClient.<init>(CuratorZookeeperClient.java:80) ~[dubbo-2.7.5.jar:2.7.5]
> > ... 30 common frames omitted
> > ```
>
> 是否是zookeeper环境问题
我也遇到这个问题,在windows idea 的debug模式下,在 org.apache.dubbo.remoting.zookeeper.curator.CuratorZookeeperClient 类内部 this.client.start(); 执行后,断点等一会就运行正常了 。如果不配置dubbo.config-center.timeout , 超时时间是3000,配置后是5000,我感觉是zookeeper客户端的问题,我的zookeeper服务端是3.5.5 。
[ Full content available at: https://github.com/apache/dubbo-spring-boot-project/issues/657 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org
[GitHub] [dubbo-spring-boot-project] mizhilong commented on issue
#657: zookeeper not connected
Posted by "mizhilong (GitHub)" <gi...@apache.org>.
> dubbo.config-center.timeout=50000
> dubbo.registry.timeout=40000
> 这俩我同时设置了大数值 然后timeout的时间就取到了配置的值了 取最小的一个
> @mizhilong @mail6562 @lzf971107
补充一下,这两个值必须都设置,才会使用dubbo.registry.timeout,单一设置都不会起作用。
[ Full content available at: https://github.com/apache/dubbo-spring-boot-project/issues/657 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org
[GitHub] [dubbo-spring-boot-project] mail6562 commented on issue
#657: zookeeper not connected
Posted by "mail6562 (GitHub)" <gi...@apache.org>.
dubbo.config-center.timeout 只要重写,随便一个值,dubbo.registry.timeout 就会生效,dubbo.registry.timeout 配置时间够长就不会出现链接不上的情况,地址要正确。 @mizhilong @l343765828
感觉是个小bug ,只要zookeeper 在3秒内连接成功,就不会有这个问题
[ Full content available at: https://github.com/apache/dubbo-spring-boot-project/issues/657 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org
[GitHub] [dubbo-spring-boot-project] l343765828 commented on issue
#657: zookeeper not connected
Posted by "l343765828 (GitHub)" <gi...@apache.org>.
还是消费者这边报错 服务没事
[ Full content available at: https://github.com/apache/dubbo-spring-boot-project/issues/657 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org
[GitHub] [dubbo-spring-boot-project] l343765828 commented on issue
#657: zookeeper not connected
Posted by "l343765828 (GitHub)" <gi...@apache.org>.
好的 再问您一下 2.7.5支持zipkin吗?
[ Full content available at: https://github.com/apache/dubbo-spring-boot-project/issues/657 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org
[GitHub] [dubbo-spring-boot-project] l343765828 commented on issue
#657: zookeeper not connected
Posted by "l343765828 (GitHub)" <gi...@apache.org>.
不行 还是报:
```
There was an unexpected error (type=Internal Server Error, status=500).
Failed to invoke the method sayHello in the service com.testzipkin.inter.DemoService. Tried 3 times of the providers [192.168.3.35:20880] (1/1) from the registry 192.168.3.244:32220 on the consumer 192.168.3.35 using the dubbo version 2.7.5. Last error is: com.alibaba.dubbo.rpc.protocol.dubbo.FutureAdapter.<init>(Lcom/alibaba/dubbo/remoting/exchange/ResponseFuture;)V
```
[ Full content available at: https://github.com/apache/dubbo-spring-boot-project/issues/657 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org
[GitHub] [dubbo-spring-boot-project] limng06 commented on issue #657:
zookeeper not connected
Posted by "limng06 (GitHub)" <gi...@apache.org>.
> @limng06 生产环境 我用的2.7.3 之后的没敢用
我看 2.7.6推荐生产来着 最近正好遇到netty起rest服务 not found 正好想一道升级来着 看来还是得切回去了
[ Full content available at: https://github.com/apache/dubbo-spring-boot-project/issues/657 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org
[GitHub] [dubbo-spring-boot-project] l343765828 commented on issue
#657: zookeeper not connected
Posted by "l343765828 (GitHub)" <gi...@apache.org>.
好的 redis集群作为注册中心也不行 @mail6562
[ Full content available at: https://github.com/apache/dubbo-spring-boot-project/issues/657 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org
[GitHub] [dubbo-spring-boot-project] l343765828 commented on issue
#657: zookeeper not connected
Posted by "l343765828 (GitHub)" <gi...@apache.org>.
@mail6562 行吧 那天也是无意间发现的 单机redis可以注册 集群注册不了
[ Full content available at: https://github.com/apache/dubbo-spring-boot-project/issues/657 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org
[GitHub] [dubbo-spring-boot-project] l343765828 commented on issue
#657: zookeeper not connected
Posted by "l343765828 (GitHub)" <gi...@apache.org>.
@lzf971107 k8s中zookeeper用statefulset生成的 然后我把jar包放在k8s中测 zookeeper的地址填pods对应的域名 也不行
[ Full content available at: https://github.com/apache/dubbo-spring-boot-project/issues/657 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org
[GitHub] [dubbo-spring-boot-project] l343765828 commented on issue
#657: zookeeper not connected
Posted by "l343765828 (GitHub)" <gi...@apache.org>.
能受累发个demo回来吗 我刚又测了下redis redis单体可以顺利跑 当我用redis集群做注册中心的时候 消费者找不到提供者 redis集群是三主三从
[ Full content available at: https://github.com/apache/dubbo-spring-boot-project/issues/657 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org
[GitHub] [dubbo-spring-boot-project] l343765828 commented on issue
#657: zookeeper not connected
Posted by "l343765828 (GitHub)" <gi...@apache.org>.
你设置dubbo.config-center.timeout小于dubbo.registry.timeout 试下 我这边哪个小取哪个 太怪了
@mizhilong
[ Full content available at: https://github.com/apache/dubbo-spring-boot-project/issues/657 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org
[GitHub] [dubbo-spring-boot-project] l343765828 commented on issue
#657: zookeeper not connected
Posted by "l343765828 (GitHub)" <gi...@apache.org>.
@lzf971107 您发的那个zookeeper项目 我这边还是不行 报的:
```
java.lang.IllegalStateException: zookeeper not connected
at org.apache.dubbo.remoting.zookeeper.curator.CuratorZookeeperClient.<init>(CuratorZookeeperClient.java:83) ~[dubbo-2.7.5.jar:2.7.5]
at org.apache.dubbo.remoting.zookeeper.curator.CuratorZookeeperTransporter.createZookeeperClient(CuratorZookeeperTransporter.java:26) ~[dubbo-2.7.5.jar:2.7.5]
at org.apache.dubbo.remoting.zookeeper.support.AbstractZookeeperTransporter.connect(AbstractZookeeperTransporter.java:68) ~[dubbo-2.7.5.jar:2.7.5]
at org.apache.dubbo.remoting.zookeeper.ZookeeperTransporter$Adaptive.connect(ZookeeperTransporter$Adaptive.java) ~[dubbo-2.7.5.jar:2.7.5]
at org.apache.dubbo.configcenter.support.zookeeper.ZookeeperDynamicConfiguration.<init>(ZookeeperDynamicConfiguration.java:70) ~[dubbo-2.7.5.jar:2.7.5]
at org.apache.dubbo.configcenter.support.zookeeper.ZookeeperDynamicConfigurationFactory.createDynamicConfiguration(ZookeeperDynamicConfigurationFactory.java:37) ~[dubbo-2.7.5.jar:2.7.5]
at org.apache.dubbo.common.config.configcenter.AbstractDynamicConfigurationFactory.lambda$getDynamicConfiguration$0(AbstractDynamicConfigurationFactory.java:39) ~[dubbo-2.7.5.jar:2.7.5]
at java.base/java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1705) ~[na:na]
at org.apache.dubbo.common.config.configcenter.AbstractDynamicConfigurationFactory.getDynamicConfiguration(AbstractDynamicConfigurationFactory.java:39) ~[dubbo-2.7.5.jar:2.7.5]
at org.apache.dubbo.common.config.configcenter.DynamicConfiguration.getDynamicConfiguration(DynamicConfiguration.java:223) ~[dubbo-2.7.5.jar:2.7.5]
at org.apache.dubbo.config.bootstrap.DubboBootstrap.prepareEnvironment(DubboBootstrap.java:815) ~[dubbo-2.7.5.jar:2.7.5]
at org.apache.dubbo.config.bootstrap.DubboBootstrap.startConfigCenter(DubboBootstrap.java:560) ~[dubbo-2.7.5.jar:2.7.5]
at org.apache.dubbo.config.bootstrap.DubboBootstrap.useRegistryAsConfigCenterIfNecessary(DubboBootstrap.java:624) ~[dubbo-2.7.5.jar:2.7.5]
at org.apache.dubbo.config.bootstrap.DubboBootstrap.initialize(DubboBootstrap.java:508) ~[dubbo-2.7.5.jar:2.7.5]
at org.apache.dubbo.config.bootstrap.DubboBootstrap.start(DubboBootstrap.java:698) ~[dubbo-2.7.5.jar:2.7.5]
at org.apache.dubbo.config.spring.context.DubboBootstrapApplicationListener.onContextRefreshedEvent(DubboBootstrapApplicationListener.java:52) ~[dubbo-2.7.5.jar:2.7.5]
at org.apache.dubbo.config.spring.context.DubboBootstrapApplicationListener.onApplicationContextEvent(DubboBootstrapApplicationListener.java:45) ~[dubbo-2.7.5.jar:2.7.5]
at org.apache.dubbo.config.spring.context.OneTimeExecutionApplicationContextEventListener.onApplicationEvent(OneTimeExecutionApplicationContextEventListener.java:40) ~[dubbo-2.7.5.jar:2.7.5]
at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:172) ~[spring-context-5.2.2.RELEASE.jar:5.2.2.RELEASE]
at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:165) ~[spring-context-5.2.2.RELEASE.jar:5.2.2.RELEASE]
at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:139) ~[spring-context-5.2.2.RELEASE.jar:5.2.2.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:403) ~[spring-context-5.2.2.RELEASE.jar:5.2.2.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:360) ~[spring-context-5.2.2.RELEASE.jar:5.2.2.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:897) ~[spring-context-5.2.2.RELEASE.jar:5.2.2.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:553) ~[spring-context-5.2.2.RELEASE.jar:5.2.2.RELEASE]
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:747) ~[spring-boot-2.2.2.RELEASE.jar:2.2.2.RELEASE]
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:397) ~[spring-boot-2.2.2.RELEASE.jar:2.2.2.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:315) ~[spring-boot-2.2.2.RELEASE.jar:2.2.2.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1226) ~[spring-boot-2.2.2.RELEASE.jar:2.2.2.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1215) ~[spring-boot-2.2.2.RELEASE.jar:2.2.2.RELEASE]
at com.testzipkin.provider.ProviderApplication.main(ProviderApplication.java:11) ~[classes/:na]
Caused by: java.lang.IllegalStateException: zookeeper not connected
at org.apache.dubbo.remoting.zookeeper.curator.CuratorZookeeperClient.<init>(CuratorZookeeperClient.java:80) ~[dubbo-2.7.5.jar:2.7.5]
... 30 common frames omitted
```
[ Full content available at: https://github.com/apache/dubbo-spring-boot-project/issues/657 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org
[GitHub] [dubbo-spring-boot-project] lzf971107 commented on issue
#657: zookeeper not connected
Posted by "lzf971107 (GitHub)" <gi...@apache.org>.
> 加上排除已经过了 但是zipkin里的依赖里 没有数据呢?
可能少了什么配置,这个框架我也不熟,抱歉。
[ Full content available at: https://github.com/apache/dubbo-spring-boot-project/issues/657 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org
[GitHub] [dubbo-spring-boot-project] lzf971107 commented on issue
#657: zookeeper not connected
Posted by "lzf971107 (GitHub)" <gi...@apache.org>.
> 方便留个邮箱么 我发您邮箱 @lzf971107
withthewind_github@aliyun.com
[ Full content available at: https://github.com/apache/dubbo-spring-boot-project/issues/657 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org
[GitHub] [dubbo-spring-boot-project] l343765828 commented on issue
#657: zookeeper not connected
Posted by "l343765828 (GitHub)" <gi...@apache.org>.
application.yml:
```
# Spring boot application
spring:
application:
name: dubbo-auto-configuration-provider-demo
# Base packages to scan Dubbo Component: @org.apache.dubbo.config.annotation.Service
dubbo:
scan:
base-packages: com.testzipkin.provider.service
# Dubbo Protocol
protocol:
name: dubbo
port: -1
registry:
address: 192.168.3.244:31217
protocol: zookeeper
```
provider pom:
<dependency>
<groupId>org.apache.curator</groupId>
<artifactId>curator-framework</artifactId>
<version>4.2.0</version>
<exclusions>
<exclusion>
<groupId>org.apache.zookeeper</groupId>
<artifactId>zookeeper</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.zookeeper</groupId>
<artifactId>zookeeper</artifactId>
<version>3.5.5</version>
</dependency>
<dependency>
<groupId>org.apache.curator</groupId>
<artifactId>curator-recipes</artifactId>
<version>4.2.0</version>
</dependency>
[ Full content available at: https://github.com/apache/dubbo-spring-boot-project/issues/657 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org
[GitHub] [dubbo-spring-boot-project] mail6562 commented on issue
#657: zookeeper not connected
Posted by "mail6562 (GitHub)" <gi...@apache.org>.
@l343765828 我使用2.7.5 在windows上面有问题,但是在linux上面没有问题,我们没有使用容器,是zookeeper 连接还没返回成功就状态,就开始执行状态判断,就直接就退出了,在我本地能重现这个问题,在第一次启动zookeeper连接后,打个断点 暂停一会就能正常使用。也有可能是本地网络的问题。
[ Full content available at: https://github.com/apache/dubbo-spring-boot-project/issues/657 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org
[GitHub] [dubbo-spring-boot-project] mail6562 commented on issue
#657: zookeeper not connected
Posted by "mail6562 (GitHub)" <gi...@apache.org>.
@l343765828 问没有使用过redis做注册中心,一般注册中心不用redis,不过zookeeper改了配置和nacos 1.1.4 做注册中心是可以的、
[ Full content available at: https://github.com/apache/dubbo-spring-boot-project/issues/657 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org
[GitHub] [dubbo-spring-boot-project] l343765828 commented on issue
#657: zookeeper not connected
Posted by "l343765828 (GitHub)" <gi...@apache.org>.
@mail6562 windows和linux 我都试了 zookeeper 就直接报 zookeeper not connected 然后就直接退了 关于您说的 timeout问题 在 2.7.3上配置了dubbo.config-center.timeout 确实解决了连接不上的问题 但是在2.7.5 我觉得已经不是这问题了
[ Full content available at: https://github.com/apache/dubbo-spring-boot-project/issues/657 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org
[GitHub] [dubbo-spring-boot-project] l343765828 commented on issue
#657: zookeeper not connected
Posted by "l343765828 (GitHub)" <gi...@apache.org>.
parent pom
```
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
<exclusions>
<exclusion>
<groupId>org.junit.vintage</groupId>
<artifactId>junit-vintage-engine</artifactId>
</exclusion>
</exclusions>
</dependency>
<!-- Dubbo Spring Boot Starter -->
<dependency>
<groupId>org.apache.dubbo</groupId>
<artifactId>dubbo-spring-boot-starter</artifactId>
<version>${dubbo.version}</version>
</dependency>
<dependency>
<groupId>org.apache.dubbo</groupId>
<artifactId>dubbo</artifactId>
</dependency>
</dependencies>
<dependencyManagement>
<dependencies>
<!-- Spring Boot -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-dependencies</artifactId>
<version>${spring-boot.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<!-- Apache Dubbo -->
<dependency>
<groupId>org.apache.dubbo</groupId>
<artifactId>dubbo-dependencies-bom</artifactId>
<version>${dubbo.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>org.apache.dubbo</groupId>
<artifactId>dubbo</artifactId>
<version>${dubbo.version}</version>
<exclusions>
<exclusion>
<groupId>org.springframework</groupId>
<artifactId>spring</artifactId>
</exclusion>
<exclusion>
<groupId>javax.servlet</groupId>
<artifactId>servlet-api</artifactId>
</exclusion>
<exclusion>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependencies>
</dependencyManagement>
```
[ Full content available at: https://github.com/apache/dubbo-spring-boot-project/issues/657 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org