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

Consul cluster has no elected leader #11912

Open
Yanghsuanming opened this issue Dec 23, 2021 · 3 comments
Open

Consul cluster has no elected leader #11912

Yanghsuanming opened this issue Dec 23, 2021 · 3 comments
Labels
theme/config Relating to Consul Agent configuration, including reloading type/question Not an "enhancement" or "bug". Please post on discuss.hashicorp

Comments

@Yanghsuanming
Copy link

consul ver 1.11.1
lib: java consul-client https://github.com/rickfast/consul-client
when get healthy services header always get "Consul cluster has no elected leader"

but consul 1.10.0 working fine.

any suggestion?

@Amier3
Copy link
Contributor

Amier3 commented Dec 23, 2021

Hey @Xuan-Goldenf ,

Welcome to the consul community!

Would love to help with this, but I'll need a bit more information first. Are you able to access the consul cluster directly? If so, could you provide us with:

  • The error logs showing that there's no elected leader ( this should come up in consul monitor )
  • Your consul agent configuration file

I'll also note that the consul-client library isn't supported by us, so we can't guarantee we can help if this issue is related to the library's configuration. If we find that is the case, i'd recommend making an issue in their repo.

@Amier3 Amier3 added type/question Not an "enhancement" or "bug". Please post on discuss.hashicorp theme/config Relating to Consul Agent configuration, including reloading labels Dec 23, 2021
@blake
Copy link
Contributor

blake commented Dec 31, 2021

Hi @Xuan-Goldenf, this sounds like it may be related to rickfast/consul-client#457. Can you follow the suggestion in that issue about disabling streaming to see if it resolves your issue?

@windonis
Copy link

windonis commented Oct 5, 2022

Yeah this issue related for this header ( X-Consul-KnownLeader )

That is why we use 1.9.0 for java related clients

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
theme/config Relating to Consul Agent configuration, including reloading type/question Not an "enhancement" or "bug". Please post on discuss.hashicorp
Projects
None yet
Development

No branches or pull requests

4 participants