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 path to datacenter #7619

Open
rschuntigit opened this issue Apr 8, 2020 · 0 comments
Open

No path to datacenter #7619

rschuntigit opened this issue Apr 8, 2020 · 0 comments
Labels
theme/cli Flags and documentation for the CLI interface type/question Not an "enhancement" or "bug". Please post on discuss.hashicorp

Comments

@rschuntigit
Copy link

We have consul server setup in multi-region in linux servers.Example region1=dc1 and region2=dc2. I am trying to extract the list of nodes from one region/datacenter to another region/datacenter by giving below command I get this message:-
consul catalog nodes -datacenter=dc2
"Error listing nodes: Unexpected response code: 500 (No path to datacenter)"
But when I login to the other cluster node in different datacenter/region i.e. dc2 and give below command:-
consul catalog nodes -datacenter=dc1. (This works fine and returns results)

Basically I need to use this functionality to be able to access(lookup/update) kv store at dc2 from dc1.
I have checked regarding this error here https://learn.hashicorp.com/consul/security-networking/datacenters#inlinecode-no-path-to-datacenter which says below:-
-------------------------------------Details-----------------------------------------
The most likely cause of these errors is that bind_addr is set to a private address preventing the RPC server from accepting connections across the WAN. Setting bind_addr to a public address (or one that can be routed across the WAN) will resolve this issue. Be aware that exposing the RPC server on a public port should only be done after firewall rules have been established.
----------------------------------------end-------------------------------------------------
I have following questions:-

  1. What command on the linux node I need to give to check whether bind_addr is set to private or not
  2. What exact changes I need to do to fix this?
  3. Do I need to perform a restart to get the changes applied?
    Thank you
@jsosulska jsosulska added theme/cli Flags and documentation for the CLI interface type/question Not an "enhancement" or "bug". Please post on discuss.hashicorp labels Jun 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
theme/cli Flags and documentation for the CLI interface type/question Not an "enhancement" or "bug". Please post on discuss.hashicorp
Projects
None yet
Development

No branches or pull requests

2 participants