Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No provider available of the service xxx #2162

Closed
bobtthp opened this issue Dec 15, 2022 · 2 comments
Closed

No provider available of the service xxx #2162

bobtthp opened this issue Dec 15, 2022 · 2 comments

Comments

@bobtthp
Copy link
Contributor

bobtthp commented Dec 15, 2022

What happened:

dubbogo version:v3.0.4-rc1
注册中心: nacos
协议: triple
注册类型: service

应用级服务发现有两个 provider 实现相同接口,consumer 启动时会一定几率启动失败( No provider available of the service xxx)

2022-12-15T13:49:06.410+0800 ERROR config/consumer_config.go:158 No provider available of the service com.apache.dubbo.sample.basic.IGreeter.please check configuration.
dubbo.apache.org/dubbo-go/v3/config.(*ConsumerConfig).Load
/Users/bobtthp/go/pkg/mod/dubbo.apache.org/dubbo-go/v3@v3.0.4-rc1/config/consumer_config.go:158
dubbo.apache.org/dubbo-go/v3/config.(*RootConfig).Start.func1
/Users/bobtthp/go/pkg/mod/dubbo.apache.org/dubbo-go/v3@v3.0.4-rc1/config/root_config.go:205
sync.(*Once).doSlow
/usr/local/go/src/sync/once.go:68
sync.(*Once).Do
/usr/local/go/src/sync/once.go:59
dubbo.apache.org/dubbo-go/v3/config.(*RootConfig).Start
/Users/bobtthp/go/pkg/mod/dubbo.apache.org/dubbo-go/v3@v3.0.4-rc1/config/root_config.go:203
dubbo.apache.org/dubbo-go/v3/config.(*RootConfig).Init
/Users/bobtthp/go/pkg/mod/dubbo.apache.org/dubbo-go/v3@v3.0.4-rc1/config/root_config.go:198
main.main
/Users/bobtthp/Desktop/bob/dev/test/dubbo-go-test/consumer-app/cmd/client.go:94
runtime.main
/usr/local/go/src/runtime/proc.go:255
panic: No provider available of the service com.apache.dubbo.sample.basic.IGreeter.please check configuration.

image

@justxuewei
Copy link
Member

Please try the latest version of the Dubbo-go, which contains this pull request. Or please sleep 3 seconds after the Dubbo-go launched.

@bobtthp
Copy link
Contributor Author

bobtthp commented Dec 15, 2022

@bobtthp bobtthp closed this as completed Dec 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants