You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by GitBox <gi...@apache.org> on 2021/07/15 06:34:29 UTC

[GitHub] [dubbo] wtsoftware opened a new issue #8298: 消费端需要启动两次No provider available for the service

wtsoftware opened a new issue #8298:
URL: https://github.com/apache/dubbo/issues/8298


   - [ ] I have searched the [issues](https://github.com/apache/dubbo/issues) of this repository and believe that this is not a duplicate.
   - [ ] I have checked the [FAQ](https://github.com/apache/dubbo/blob/master/FAQ.md) of this repository and believe that this is not a duplicate.
   
   ### Environment
   
   * Dubbo version: 3.0.2-SNAPSHOT
   * Operating System version: maos
   * Java version: jdk15
   
   ### 复现步骤
   
   1. 先启动服务端
   2. 启动消费端(check=false)
   3. 调用接口消费服务报500错误,停止消费端服务(服务端保持开启)再重新启动 接口又访问正常。我每次服务重启一次,消费端都要这样重启两次才可以。
   ### 配置文件(provider和consumer 的dubbo配置方式相同)
   dubbo:
     consumer:
       check: false
     registry:
       address: nacos://${nacos.host}:${nacos.port}/?username=${nacos.username}&password=${nacos.password}
     application:
       register-mode: instance
       service-discovery:
         migration: FORCE_APPLICATION
       name: userConsumer
   
   
   Pls. provide [GitHub address] to reproduce this issue.
   
   ### Expected Result
   
   What do you expected from the above steps?
   
   ### Actual Result
   
   What actually happens?
   
   消费端异常消息如下:
   
   Failed to invoke the method addUser in the service com.api.study.UserService. No provider available for the service com.api.study.UserService from registry 127.0.0.1:8848 on the consumer 172.16.11.8 using the dubbo version 3.0.2-SNAPSHOT. Please check if the providers have been started and registered.
   Just put your stack trace here!
   ```
   


-- 
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: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] gang0713 commented on issue #8298: 消费端需要启动两次No provider available for the service

Posted by GitBox <gi...@apache.org>.
gang0713 commented on issue #8298:
URL: https://github.com/apache/dubbo/issues/8298#issuecomment-899013914


   @wtsoftware 你的解决了吗?我也遇到了,两个消费端一个前台一个后台,奇怪的是前台要启动两次就可以访问,后台启动一次就可以访问。生产端重启是否会通知消费端。


-- 
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: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] feng996 commented on issue #8298: 消费端需要启动两次No provider available for the service

Posted by GitBox <gi...@apache.org>.
feng996 commented on issue #8298:
URL: https://github.com/apache/dubbo/issues/8298#issuecomment-893486556


   我也是同样的问题,加了registry-type就会,普通的注册不会。消费端需要重启才能正常发现服务。


-- 
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: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] feng996 commented on issue #8298: 消费端需要启动两次No provider available for the service

Posted by GitBox <gi...@apache.org>.
feng996 commented on issue #8298:
URL: https://github.com/apache/dubbo/issues/8298#issuecomment-899015804


   > @feng996 每次都要重启2次好麻烦啊
   
   可以看看nacos,有什么配置修改能让他保持获取实时的配置


-- 
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: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] feng996 commented on issue #8298: 消费端需要启动两次No provider available for the service

Posted by GitBox <gi...@apache.org>.
feng996 commented on issue #8298:
URL: https://github.com/apache/dubbo/issues/8298#issuecomment-904373685


   > @feng996 可以提供一个可测试的 DEMO 项目吗,我在 Dubbo 3.0 分支上无法复现,我使用的是注册中心是 Nacos 2.0.3
   
   [dubbo-samples-feedback.tar.gz](https://github.com/apache/dubbo/files/7037056/dubbo-samples-feedback.tar.gz)
   


-- 
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: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] feng996 commented on issue #8298: 消费端需要启动两次No provider available for the service

Posted by GitBox <gi...@apache.org>.
feng996 commented on issue #8298:
URL: https://github.com/apache/dubbo/issues/8298#issuecomment-904288758


   > > 我也是同样的问题,加了registry-type就会,普通的注册不会。消费端需要重启才能正常发现服务。
   > 
   > 请问你的 `registry-type` 配置是什么?
   
   nacos://127.0.0.1:8848?registry-type=service


-- 
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: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] feng996 commented on issue #8298: 消费端需要启动两次No provider available for the service

Posted by GitBox <gi...@apache.org>.
feng996 commented on issue #8298:
URL: https://github.com/apache/dubbo/issues/8298#issuecomment-904414981


   > @feng996 可以提供一个可测试的 DEMO 项目吗,我在 Dubbo 3.0 分支上无法复现,我使用的是注册中心是 Nacos 2.0.3
   
   之前debug,发现的是,第一次nacos拿到的reversion是旧的,所以找不到服务,重新启动后拿到新的就对了。但刚才试了几次,就复现一次然后复现不了了。。。突然好了就很奇怪。之前几乎是必现(关闭消费者和生产者后,清空nacos配置中心),dubbo版本是3.0.0,nacos是1.4.2


-- 
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: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] feng996 commented on issue #8298: 消费端需要启动两次No provider available for the service

Posted by GitBox <gi...@apache.org>.
feng996 commented on issue #8298:
URL: https://github.com/apache/dubbo/issues/8298#issuecomment-899014829


   > @wtsoftware 你的解决了吗?我也遇到了,两个消费端一个前台一个后台,奇怪的是前台要启动两次才可以访问,后台启动一次就可以访问。
   
   nacos的问题,拿的provider的reversion都是旧的。所以才会找不到,重启消费端就好了。


-- 
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: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] gang0713 commented on issue #8298: 消费端需要启动两次No provider available for the service

Posted by GitBox <gi...@apache.org>.
gang0713 commented on issue #8298:
URL: https://github.com/apache/dubbo/issues/8298#issuecomment-899014972


   @feng996  每次都要重启2次好麻烦啊


-- 
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: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] gang0713 edited a comment on issue #8298: 消费端需要启动两次No provider available for the service

Posted by GitBox <gi...@apache.org>.
gang0713 edited a comment on issue #8298:
URL: https://github.com/apache/dubbo/issues/8298#issuecomment-899013914


   @wtsoftware 你的解决了吗?我也遇到了,两个消费端一个前台一个后台,奇怪的是前台要启动两次才可以访问,后台启动一次就可以访问。


-- 
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: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] plusmancn edited a comment on issue #8298: 消费端需要启动两次No provider available for the service

Posted by GitBox <gi...@apache.org>.
plusmancn edited a comment on issue #8298:
URL: https://github.com/apache/dubbo/issues/8298#issuecomment-904293587


   @feng996 可以提供一个可测试的 DEMO 项目吗,我在 Dubbo 3.0 分支上无法复现。


-- 
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: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] feng996 removed a comment on issue #8298: 消费端需要启动两次No provider available for the service

Posted by GitBox <gi...@apache.org>.
feng996 removed a comment on issue #8298:
URL: https://github.com/apache/dubbo/issues/8298#issuecomment-899014829


   > @wtsoftware 你的解决了吗?我也遇到了,两个消费端一个前台一个后台,奇怪的是前台要启动两次才可以访问,后台启动一次就可以访问。
   
   nacos的问题,拿的provider的reversion都是旧的。所以才会找不到,重启消费端就好了。


-- 
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: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] plusmancn commented on issue #8298: 消费端需要启动两次No provider available for the service

Posted by GitBox <gi...@apache.org>.
plusmancn commented on issue #8298:
URL: https://github.com/apache/dubbo/issues/8298#issuecomment-904436185


   @feng996 无法复现 +1


-- 
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: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] plusmancn edited a comment on issue #8298: 消费端需要启动两次No provider available for the service

Posted by GitBox <gi...@apache.org>.
plusmancn edited a comment on issue #8298:
URL: https://github.com/apache/dubbo/issues/8298#issuecomment-904293587


   @feng996 可以提供一个可测试的 DEMO 项目吗,我在 Dubbo 3.0 分支上无法复现,我使用的是注册中心是 Nacos 2.0.3


-- 
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: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] plusmancn commented on issue #8298: 消费端需要启动两次No provider available for the service

Posted by GitBox <gi...@apache.org>.
plusmancn commented on issue #8298:
URL: https://github.com/apache/dubbo/issues/8298#issuecomment-904283488


   > 我也是同样的问题,加了registry-type就会,普通的注册不会。消费端需要重启才能正常发现服务。
   
   请问你的 `registry-type` 配置是什么?


-- 
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: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] plusmancn commented on issue #8298: 消费端需要启动两次No provider available for the service

Posted by GitBox <gi...@apache.org>.
plusmancn commented on issue #8298:
URL: https://github.com/apache/dubbo/issues/8298#issuecomment-904293587


   @feng996 可以提供一个可测试 DEMO 项目吗,我在 Dubbo 3.0 分支上无法复现。


-- 
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: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] wtsoftware commented on issue #8298: 消费端需要启动两次No provider available for the service

Posted by GitBox <gi...@apache.org>.
wtsoftware commented on issue #8298:
URL: https://github.com/apache/dubbo/issues/8298#issuecomment-880446077


   RouterChain中的buildCache方法会在启动的时候调用两次,而且firstBuildCache参数一都是true.我感觉这是不是有问题 两次的数据都一样  不应该再build了吧


-- 
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: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org