You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by "Ezi1h (via GitHub)" <gi...@apache.org> on 2023/04/24 08:22:14 UTC

[GitHub] [dubbo] Ezi1h commented on issue #11235: dubbo 3.2.0-beta.2 注册到zk失败 [AbstractServiceDiscovery] - [DUBBO] No valid instance found, stop registering instance address to registry., dubbo version: 3.2.0-beta.2

Ezi1h commented on issue #11235:
URL: https://github.com/apache/dubbo/issues/11235#issuecomment-1519611210

   @ddfeiyu 兄弟你解决了吗,我启动后也有这个警告,不知道什么原因,用3.1.1和3.1.8的版本都有这个警告,但是功能目前看是没有什么影响,debug跟了下,发现下面这里判断的时候host为null和port为0,所以打印了警告
   
   ![image](https://user-images.githubusercontent.com/38790566/233925160-95ee0ea7-b371-4465-831a-00f7bf8d1ddd.png)
   
   有大佬解答下什么原因导致的host和port取不到值吗?是我哪里配置的问题吗,程序跑目前没问题,可以调用到`app2Registry`这个注册中心里的提供者接口
   
   我的配置如下:
   
   ```yml
   dubbo:
     protocol:
       name: dubbo
       port: 20882
       host: 192.168.1.66
     registries:
       app1Registry:
         protocol: zookeeper
         address: 127.0.0.1:2181
         check: false
         default: true
       #下面这个zk是另外一个项目用的,我当前这个项目用到下面zk中的一个dubbo接口了,所以配置了下面的zk,使用不注册配置,register: false
       app2Registry:
         protocol: zookeeper
         address: 192.168.1.2:2181
         check: false
         default: false
         register: false
     application:
       name: dubbo-app1
       metadata-type: remote
       register-mode: interface
   ```
    然后如果只配置一个zk的话,一样也有这个警告,不知道是哪里的问题了


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