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

Nomad unable to connect to Consul over unix sockets #2594

Closed
shilov opened this issue Apr 27, 2017 · 5 comments
Closed

Nomad unable to connect to Consul over unix sockets #2594

shilov opened this issue Apr 27, 2017 · 5 comments

Comments

@shilov
Copy link

shilov commented Apr 27, 2017

Nomad is unable to communicate with consul clients over unix sockets.

Nomad version

0.5.6

Operating system and Environment details

MacOS, Debian

Issue

Nomad can't connect to consul over a unix socket because it does not account for addresses starting with unix://

Reproduction steps

Configure the consul agent to listen for client requests on a unix socket, e.g.:

 "addresses": {
     "http": "unix:///tmp/consul/consul.sock"
 }

Use the same value in the consul config address for nomad clients.

Nomad Client logs (if appropriate)

client.consul: error reaping services in consul: Get http://%2Ftmp%2Fconsul%2F%2Fconsul.sock/v1/agent/services: dial tcp: lookup /tmp/consul/consul.sock: no such host

@schmichael
Copy link
Member

Confirmed Nomad isn't able to talk to Consul over a Unix socket in 0.5.6. I'll make sure to get it in for 0.6.

@schmichael
Copy link
Member

Attached is a build with the fix if you're interested in testing.

linux_amd64-lxc.zip

@schmichael
Copy link
Member

And the normal 64bit Linux release:
linux_amd64.zip

@shilov
Copy link
Author

shilov commented May 19, 2017

Confirmed that it's working. Thanks for taking the time to fix this, and for making it easy to test by uploading a dev build.

@github-actions
Copy link

I'm going to lock this issue because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 13, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants