-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
logstash stop failed; still running. - logstash-2.3.2 #5427
Comments
I've also tried this but no luck robertd@orion:/~$ echo $KILL_ON_STOP_TIMEOUT
1
robertd@orion:/~$ sudo service logstash stop
Killing logstash (pid 9597) with SIGTERM
Waiting logstash (pid 9597) to die...
Waiting logstash (pid 9597) to die...
Waiting logstash (pid 9597) to die...
Waiting logstash (pid 9597) to die...
Waiting logstash (pid 9597) to die...
Waiting logstash (pid 9597) to die...
Waiting logstash (pid 9597) to die...
Waiting logstash (pid 9597) to die...
Waiting logstash (pid 9597) to die...
/etc/init.d/logstash: 100: [: 0: unexpected operator
logstash stop failed; still running. |
Can you add more details here: Version: |
Version:
Sample data: Beats is sending syslog data from other VM to logstash. @suyograo Let me know if you need anything else. |
I'm seeing this too, the following has fixed the failing to stop when
|
I have the same issue
|
@jjm In OP I've grepped |
There are a couple of things here to see, one is Then there is a second error here and is the usage of KILL_ON_STOP_TIMEOUT that is always set to zero in the init.d script (what is wrong and should be removed), because of this this var is always more or less ignored. See https://github.com/elastic/logstash/blob/2.x/pkg/logstash.sysv#L38 source of it. This problem affects all versions <= 2.x but not the new 5.0 versions where the package system has been rewritten. |
Fixed in #5479 |
Ubuntu: 14.04
robertd@orion:/~$ sudo service logstash stop Killing logstash (pid 9597) with SIGTERM Waiting logstash (pid 9597) to die... Waiting logstash (pid 9597) to die... Waiting logstash (pid 9597) to die... Waiting logstash (pid 9597) to die... Waiting logstash (pid 9597) to die... Waiting logstash (pid 9597) to die... Waiting logstash (pid 9597) to die... Waiting logstash (pid 9597) to die... Waiting logstash (pid 9597) to die... /etc/init.d/logstash: 100: [: 0: unexpected operator logstash stop failed; still running.
Patch landed in #5201 and #5202 but this is still an issue. My logstash instance keeps running...
Related to #4991.
The text was updated successfully, but these errors were encountered: