-
-
Notifications
You must be signed in to change notification settings - Fork 244
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
upstart: consul info hangs with custom client_addr #355
Comments
This is definitely undesirable - I am assuming that you have changed the client_addr parameter inside of the configuration resource? I would expect that it reads that file prior to running anything. |
Yeah I am using the |
Does |
@johnbellone Further to this, the The condition for consul to start is not a successful |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
In the init script /etc/init/consul.conf created by this template, there is a post-script script:
This runs
consul info
by default with rpc address localhost. However this is problematic when we provide a custom client_addr (for example I want to specify the instance IP itself rather than localhost or 0.0.0.0). Because of this, in the logs, it keeps spitting out the error messageError connecting to Consul agent: dial tcp 127.0.0.1:8400: getsockopt: connection refused
and the script never stops running and continues sleeping for 1 second.If there could be a logic added in /etc/init/consul.conf for
consul info
to be run using the -rpc-addr=<client_addr:8400> parameter when client_addr is not localhost or 0.0.0.0, this could be resolved.The template for /etc/init/consul.conf is here
Thanks!
The text was updated successfully, but these errors were encountered: