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

Error retrieving members: 192.168.105.4:8501: connect: connection refused #76

Open
MikaelHashiCorp opened this issue Oct 15, 2024 · 0 comments

Comments

@MikaelHashiCorp
Copy link

PROBLEM:

After following procedures for "Env" (https://github.com/Ranjandas/shikari?tab=readme-ov-file#env), one is confronted with the following error message:

$ consul members

Error retrieving members: Get "https://192.168.105.4:8501/v1/agent/members?segment=_all": dial tcp 192.168.105.4:8501: connect: connection refused

Nomad has the same problem with the http protocol.

CAUSE:

The URL is wrong: https://192.168.105.4:8501.

The address should start with http instead of https and the port should be 8500, not 8501. It should be "http://192.168.105.4:8500`.

SOLUTION:

Change the code and documentation to reflect the correct http protocol and port for both Consul and Nomad:
CONSUL_HTTP_ADDR=http://192.168.105.4:8500
NOMAD_ADDR=http://192.168.105.13:4646

REFERENCES:

Consul Command Reference Environment Variables: https://developer.hashicorp.com/consul/commands#consul_http_addr
Nomad Command Reference Environment Variables: https://developer.hashicorp.com/nomad/docs/commands#nomad_addr

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

1 participant