Skip to content

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

@MikaelHashiCorp

Description

@MikaelHashiCorp

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions