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 2022/10/13 11:35:35 UTC
[GitHub] [dubbo] luger1990 opened a new issue, #10747: 3.1.1 使用应用级服务发现一直提示找不到消费者
luger1990 opened a new issue, #10747:
URL: https://github.com/apache/dubbo/issues/10747
生产者配置:
```
server:
port: @server.port@
tomcat:
uri-encoding: UTF-8
servlet:
encoding:
charset: UTF-8
enabled: true
force: true
spring:
application:
name: provider-service
profiles:
active: @profiles.active@
main:
allow-bean-definition-overriding: true
allow-circular-references: true
mvc:
hiddenmethod:
filter:
enabled: true
# cloud:
# nacos:
# discovery:
# server-addr: 192.168.100.121:8848
management:
endpoints:
web:
exposure:
include: "*"
dubbo:
application:
name: ${spring.application.name}
id: ${spring.application.name}
register-mode: instance
protocol:
id: dubbo
name: dubbo
port: -1
registry:
address: nacos://192.168.100.121:8848 #?registry-type=service
config-center:
address: nacos://192.168.100.121:8848
metadata-report:
address: nacos://192.168.100.121:8848
scan:
base-packages: me.luger
```
消费者配置:
```
server:
port: 8886
tomcat:
uri-encoding: UTF-8
servlet:
encoding:
charset: UTF-8
enabled: true
force: true
spring:
application:
name: consumer-service
profiles:
active: test
main:
allow-bean-definition-overriding: true
allow-circular-references: true
mvc:
hiddenmethod:
filter:
enabled: true
# cloud:
# nacos:
# discovery:
# server-addr: 192.168.100.121:8848
management:
endpoints:
web:
exposure:
include: "*"
dubbo:
application:
name: ${spring.application.name}
id: ${spring.application.name}
register-mode: instance
service-discovery:
migration: FORCE_APPLICATION
protocol:
id: dubbo
name: dubbo
port: -1
registry:
address: nacos://192.168.100.121:8848 #?registry-type=service
cloud:
subscribed-services: nct-dubbo-music-service
config-center:
address: nacos://192.168.100.121:8848
metadata-report:
address: nacos://192.168.100.121:8848
scan:
base-packages: me.luger
consumer:
protocol: dubbo
```
去掉应用级服务发现`register-mode: instance`就是可以的. 很奇怪。 是配置哪里不对吗
--
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.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] luger1990 commented on issue #10747: 3.1.1 使用应用级服务发现一直提示找不到消费者
Posted by GitBox <gi...@apache.org>.
luger1990 commented on issue #10747:
URL: https://github.com/apache/dubbo/issues/10747#issuecomment-1277489825
找到问题了。。 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] luger1990 closed issue #10747: 3.1.1 使用应用级服务发现一直提示找不到消费者
Posted by GitBox <gi...@apache.org>.
luger1990 closed issue #10747: 3.1.1 使用应用级服务发现一直提示找不到消费者
URL: https://github.com/apache/dubbo/issues/10747
--
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