-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Control process not returned to systemd #7137
Comments
I have the same issue, did you resolve it? |
I figure it out, as in the service definition file, there is an option Type under [service] seciton:
notify means the service should send a notification message to systemd when it has finished starting up, otherwise systemd will not proceed, see systemd document for details. for consul, it just send the notification after a LAN join has completed, see consul agent:
but our configuration is to set up a single node agent (bootstrap_expect = 1, no retry_join), so LAN join will not complete ever, this is why systemd get timeout. we can solve this by set Type option to "exec", systemd will proceed after consul process started. but I have other problem, when I run systemctl stop consul, the log always show that consul exits with error:
it seems that consul does not gracefully stop. still don't know why... |
Indeed solved the problem. Thank you. And yes I also see this error when stopping consul. |
I found a workaround solution. Add these two configurations in your Consul Server config file:
This can work fine with |
@Anricx , @PMacho , @iotdog the issue should now be fixed in the learn platform and the new version is live at https://learn.hashicorp.com/consul/datacenter-deploy/deployment-guide#configure-systemd. We are closing this issue. In case you still get issues with the systemd configuration feel free to re-open this ticket. |
I think |
Overview of the Issue
I just tried the nice documentation on https://learn.hashicorp.com/consul/datacenter-deploy/deployment-guide. However, systemd can start consul and everything locks fine but the startup process never returns and thus finally systemd runs in a timeout.
Reproduction Steps
Exactly like shown on https://learn.hashicorp.com/consul/datacenter-deploy/deployment-guide
This is for test purposes so I just configured
bootstrap_expect = 1
, noretry_join
, performance or metrics.Consul info for both Client and Server
Server info
Operating system and Environment details
4.15.0-54-generic #58-Ubuntu SMP Mon Jun 24 10:55:24 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
Log Fragments
The text was updated successfully, but these errors were encountered: