-
Notifications
You must be signed in to change notification settings - Fork 580
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
[2.10.2] Director deploy crashes the Icinga service [FreeBSD] #6807
Comments
Can you also reproduce this without Director, by sending SIGHUP to the Icinga process? |
Sounds a bit like #6815, can you test that patch please? :) |
That's a different problem on Windows, you cannot run it in foreground in cmd. That's tracked with #3029. |
I'm experiencing this same issue since updating Icinga2 recently. FreeBSD 11.2 Disabled features: compatlog elasticsearch gelf graphite livestatus opentsdb perfdata statusdata syslog |
I do not use the director, and I have been experiencing the same issue ever since 2.10.0. In the logs, I get:
To mitigate the issue, I changed our internal documentation saying to run |
It is a problem with re-using the sockets and allowing incoming API requests which block on shutdown. Their handling was changed with 2.10. Can only be seen in environments with many parallel requests and reloads. |
Mmmm, I do have ~50 satellites, but I do not reload often. Though, it happens on every reload. |
With Icinga 2.10.2-1 when somebody presses deploy in Icinga director the Icinga2 services fails to start the new process.
Failure: Address already in use on the API socket.
Current Behavior
Use deploy in director and after a couple of seconds the newly created Icinga process will crash with a address in use error.
Possible Solution
Wait a bit longer when starting the new listener of retry when getting the address in use error on reload.
I didn't take the time to see how/when the old process closes the socket so I just added a sleep(1); before creating the primary JSON-RPC listener and that fixed the problem for now. (remote/apilistener.cpp:253)
Steps to Reproduce (for bugs)
Context
Upgraded from 2.8 to 2.10.2-1 and next morning we noticed the bug so I tried to set bind_host and bind_port but that didn't seem to help. I ended up patching the source code a bit.
Your Environment
icinga2 --version
): 2.10.2icinga2 feature list
): api checker command graphite ido-mysql livestatus mainlog notification syslogicinga2 daemon -C
): no problemsThe text was updated successfully, but these errors were encountered: