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/08/07 02:48:09 UTC

[GitHub] [dubbo] gang0713 opened a new issue #8440: dubbo3.0.0及3.0.1中register-mode: instance,migration: FORCE_APPLICATION时,服务无法正常访问

gang0713 opened a new issue #8440:
URL: https://github.com/apache/dubbo/issues/8440


   
   当使用如下配置时,报**using the dubbo version 3.0.1. Please check if the providers have been started and registered.**
   只有当设置**register-mode: all**时才能正常
   register-mode: instance
   service-discovery:
       migration: FORCE_APPLICATION
   
   demo:https://github.com/pinxiong/spring-boot-dubbo-nacos-demo
   
   demo中使用的是register-mode: all


-- 
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] xiaoheng1 commented on issue #8440: dubbo3.0.0及3.0.1中register-mode: instance,migration: FORCE_APPLICATION时,服务无法正常访问

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


   没有必要指定协议端口,消费端不用指定,你可以试下,它会从 url 中获取到


-- 
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] xiaoheng1 commented on issue #8440: dubbo3.0.0及3.0.1中register-mode: instance,migration: FORCE_APPLICATION时,服务无法正常访问

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


   ![image](https://user-images.githubusercontent.com/12539730/128602857-ce8c8a86-ea7e-4243-a975-13074a8c8912.png)
   
   In my local test, there is no call failure problem.
   
   log:
   
   2021-08-07 22:01:55  INFO cn.raysonblog.shopserviceconsumer.ShopServiceConsumerApplication$$EnhancerBySpringCGLIB$$ed6f628c:41 - mercyblitz
   2021-08-07 22:02:00  INFO cn.raysonblog.shopserviceconsumer.ShopServiceConsumerApplication$$EnhancerBySpringCGLIB$$ed6f628c:41 - mercyblitz
   2021-08-07 22:02:05  INFO cn.raysonblog.shopserviceconsumer.ShopServiceConsumerApplication$$EnhancerBySpringCGLIB$$ed6f628c:41 - mercyblitz


-- 
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 #8440: dubbo3.0.0及3.0.1中register-mode: instance,migration: FORCE_APPLICATION时,服务无法正常访问

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


   @xiaoheng1 demo里消费端默认是注释掉了的。
   
   我本地消费端打开那个就不行,注释掉就可以访问了,很奇怪,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] gang0713 commented on issue #8440: dubbo3.0.0及3.0.1中register-mode: instance,migration: FORCE_APPLICATION时,服务无法正常访问

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


   @xiaoheng1    下载地址 https://wws.lanzoui.com/iJINZsdadti


-- 
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 #8440: dubbo3.0.0及3.0.1中register-mode: instance,migration: FORCE_APPLICATION时,服务无法正常访问

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


   @xiaoheng1 消费者这边不用设置service-discovery吗?我看是消费者这边设置了就不行,没设置就可以。
   消费端注释下面的就可以了。
       #    service-discovery:
       #      migration: FORCE_APPLICATION


-- 
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] xiaoheng1 commented on issue #8440: dubbo3.0.0及3.0.1中register-mode: instance,migration: FORCE_APPLICATION时,服务无法正常访问

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


   我这边还是没有出现问题。
   
   log:
   
   ```
   2021-08-08 21:41:07  INFO org.springframework.boot.web.embedded.tomcat.TomcatWebServer:220 - Tomcat started on port(s): 9081 (http) with context path ''
   2021-08-08 21:41:09  INFO cn.raysonblog.shopserviceconsumer.ShopServiceConsumerApplication:61 - Started ShopServiceConsumerApplication in 4.815 seconds (JVM running for 10.67)
   2021-08-08 21:41:10  INFO cn.raysonblog.shopserviceconsumer.ShopServiceConsumerApplication$$EnhancerBySpringCGLIB$$5b86e49d:41 - mercyblitz
   2021-08-08 21:41:15  INFO cn.raysonblog.shopserviceconsumer.ShopServiceConsumerApplication$$EnhancerBySpringCGLIB$$5b86e49d:41 - mercyblitz
   2021-08-08 21:41:20  INFO cn.raysonblog.shopserviceconsumer.ShopServiceConsumerApplication$$EnhancerBySpringCGLIB$$5b86e49d:41 - mercyblitz
   ```


-- 
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] xiaoheng1 commented on issue #8440: dubbo3.0.0及3.0.1中register-mode: instance,migration: FORCE_APPLICATION时,服务无法正常访问

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


   let me have a look


-- 
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] xiaoheng1 commented on issue #8440: dubbo3.0.0及3.0.1中register-mode: instance,migration: FORCE_APPLICATION时,服务无法正常访问

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


   消费端加这个也能正常访问吧,在我本机上是如此。
   
   service-discovery 控制的是选择接口级的 invoker 还是应用级的 invoker,而 register-mode 控制的是在服务暴露或引用的时候向几个地址进行注册或订阅。
   
   service-discovery:
   migration: FORCE_APPLICATION


-- 
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 #8440: dubbo3.0.0及3.0.1中register-mode: instance,migration: FORCE_APPLICATION时,服务无法正常访问

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


   @xiaoheng1   下面这个端口有没有必要指定,还是使用默认随机的比较好。如果生产端指定了端口和协议,消费端要不要指定?
     protocol:
       name: dubbo
       port: 12316
       server: netty4


-- 
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 #8440: dubbo3.0.0及3.0.1中register-mode: instance,migration: FORCE_APPLICATION时,服务无法正常访问

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


   奇怪了,我本地就是不行


-- 
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] xiaoheng1 commented on issue #8440: dubbo3.0.0及3.0.1中register-mode: instance,migration: FORCE_APPLICATION时,服务无法正常访问

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


   那个 demo 的消费端没有下面的配置,这个是我自己加入到 consumer 端的配置文件中后,也是可以访问的。
   
   service-discovery:
   migration: FORCE_APPLICATION
   
   你把你测试的工程上传下,我试试。
   


-- 
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 closed issue #8440: dubbo3.0.0及3.0.1中register-mode: instance,migration: FORCE_APPLICATION时,服务无法正常访问

Posted by GitBox <gi...@apache.org>.
gang0713 closed issue #8440:
URL: https://github.com/apache/dubbo/issues/8440


   


-- 
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] xiaoheng1 commented on issue #8440: dubbo3.0.0及3.0.1中register-mode: instance,migration: FORCE_APPLICATION时,服务无法正常访问

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


   好的,我试试


-- 
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