Closed ghost closed 5 years ago
Hi @dodo4, we detect non-English characters in the issue. This comment is an auto translation by @sofastack-robot to help other users to understand this issue.
We encourage you to describe your issue in English which is more friendly to other users.
The SOFA-RPC integrates with the NACOS registry, and fails according to the official website demo. There is no service in the Nacos service list. Application.properteis configuration: spring.application.name=DemoProvider com.alipay.sofa.rpc.registry.address=nacos://127.0.0.1:8848 nacos.config.server-addr=127.0.0.1:8848 nacos.discovery. Server-addr=127.0.0.1:8848 nacos.config.namespace=Public nacos.config.group=DEFAULT_GROUP ....omide other versions of sofaboot-dependencies: 3.1.4 rpc-sofa-boot-starter version: 6.0.2 nacos Version: 1.1.0 Reference: https://nacos.io/zh-cn/docs/quick-start-spring-boot.html https://yq.aliyun.com/articles/692508 Single application is configured according to this, @NacosValue is not configured, and nacos's service list does not have any services. The application is normally started
@dodo4 It seems that you try to startup nacos server inside your project, please try to startup nacos server standalone, https://nacos.io/zh-cn/docs/quick-start.html , we only test with independent nacos server.
@dodo4 It seems that you try to startup nacos server inside your project, please try to startup nacos server standalone, https://nacos.io/zh-cn/docs/quick-start.html , we only test with independent nacos server.
Modify application.properties: com.alipay.sofa.rpc.registry.address=nacos://192.168.36.8:8848 nacos.config.server-addr=192.168.36.8:8848 nacos.discovery.server-addr=192.168.36.8:8848
The problem what to do next remains unsolved
nacos.config.server-addr=192.168.36.8:8848
nacos.discovery.server-addr=192.168.36.8:8848
SOFA RPC using nacos does not depend on the above configuration. Can you provide a minimum reproducible project?
SOFA RPC using nacos does not depend on the above configuration. Can you provide a minimum reproducible project?
Link #717 , looks like the same issue.
@dodo4 I use your project https://github.com/dodo4/lab.git and comment out nacos related configuration such as @NacosPropertySource
@NacosValue
and change sofa rpc registry config to com.alipay.sofa.rpc.registry.address=nacos://127.0.0.1:8848/public
(nacos console show public namespace service list by default). Then start the project, it works fine.
Using nacos with sofa rpc, you do not really need nacos-discovery-spring-boot-starter
etc.
@dodo4 I use your project https://github.com/dodo4/lab.git and comment out nacos related configuration such as
@NacosPropertySource
@NacosValue
and change sofa rpc registry config tocom.alipay.sofa.rpc.registry.address=nacos://127.0.0.1:8848/public
(nacos console show public namespace service list by default). Then start the project, it works fine.
THKS!!! the problems have now been sorte
@dodo4 I use your project https://github.com/dodo4/lab.git and comment out nacos related configuration such as
@NacosPropertySource
@NacosValue
and change sofa rpc registry config tocom.alipay.sofa.rpc.registry.address=nacos://127.0.0.1:8848/public
(nacos console show public namespace service list by default). Then start the project, it works fine.
but ,create namespace "testNS", nacos service list is empty
SOFA-RPC集成NACOS注册中心失败。 application.properteis配置: spring.application.name=DemoProvider com.alipay.sofa.rpc.registry.address=nacos://127.0.0.1:8848 nacos.config.server-addr=127.0.0.1:8848 nacos.discovery.server-addr=127.0.0.1:8848 nacos.config.namespace=Public nacos.config.group=DEFAULT_GROUP ....省略其它
sofaboot-dependencies版本:3.1.4 rpc-sofa-boot-starter版本:6.0.2 registry-client-all版本:5.2.1 nacos版本:1.1.0 资料参考: https://nacos.io/zh-cn/docs/quick-start-spring-boot.html https://yq.aliyun.com/articles/692508
单应用按此配置,@NacosValue获取不到配置,nacos的服务列表也没有任何服务。应用是正常启动的