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

Logstash does not progress and requires reloading for progressing with data #223

Open
anmironov opened this issue Aug 21, 2024 · 4 comments
Assignees

Comments

@anmironov
Copy link

anmironov commented Aug 21, 2024

logstash-input-tcp (6.3.1)
Using bundled JDK: /usr/share/logstash/jdk

[2024-05-15T23:06:04,588][ERROR][logstash.javapipeline    ][name][d1f632ab5f37317b4d81a4bd86c8b71d69714f60f6cdc15ff9d0091a1d86768f] A plugin had an unrecoverable error. Will restart this plugin.
  Pipeline_id:name
  Plugin: <LogStash::Inputs::Tcp mode=>"client", host=>"X.X.X.X", codec=><LogStash::Codecs::Multiline pattern=>"\\<---\\>", what=>"next", id=>"13b4160f-2a02-472e-91f7-cc28c5e78ed9", max_lines=>20, negate=>true, enable_metric=>true, charset=>"UTF-8", multiline_tag=>"multiline", max_bytes=>10485760>, id=>"d1f632ab5f37317b4d81a4bd86c8b71d69714f60f6cdc15ff9d0091a1d86768f", port=>8765, enable_metric=>true, proxy_protocol=>false, ssl_enable=>false, ssl_verify=>true, ssl_key_passphrase=><password>, tcp_keep_alive=>false, dns_reverse_lookup_enabled=>true>
  Error: Connection refused - connect(2) for "10.192.222.6" port 8765
  Exception: Errno::ECONNREFUSED
  Stack: org/jruby/ext/socket/RubyTCPSocket.java:134:in `initialize'
org/jruby/RubyClass.java:911:in `new'
org/jruby/RubyIO.java:868:in `new'
/usr/share/logstash/vendor/bundle/jruby/2.6.0/gems/logstash-input-tcp-6.3.1-java/lib/logstash/inputs/tcp.rb:349:in `new_client_socket'
/usr/share/logstash/vendor/bundle/jruby/2.6.0/gems/logstash-input-tcp-6.3.1-java/lib/logstash/inputs/tcp.rb:217:in `run_client'
/usr/share/logstash/vendor/bundle/jruby/2.6.0/gems/logstash-input-tcp-6.3.1-java/lib/logstash/inputs/tcp.rb:169:in `run'
/usr/share/logstash/logstash-core/lib/logstash/java_pipeline.rb:411:in `inputworker'
/usr/share/logstash/logstash-core/lib/logstash/java_pipeline.rb:402:in `block in start_input'

image

LS restart is a workaround

Possible pain point: tcp-input is missing retry in client mode. When the initial connection fails, it should retry.

@anmironov anmironov added the bug label Aug 21, 2024
@martinotisatec
Copy link

Good afternoon,
This is issue is critically afecting the production service.
Kindly, speed up the resolution process.

Sincerely,

@kaisecheng kaisecheng self-assigned this Aug 21, 2024
@kaisecheng
Copy link
Contributor

@martinotisatec After testing in 7.17 and 8.15, I can see the plugin has restarted, retried and successfully reconnected to server when Errno::ECONNREFUSED.

We need reproducible steps to investigate the issue. Can you provide a smallest possible pipeline and steps to reproduce the problem?

@martinotisatec
Copy link

Good afternoon @kaisecheng,
Please provide the steps to obtain a useful pipeline.
Does it require to run into this issue?

Sincerely,

@kaisecheng
Copy link
Contributor

@martinotisatec This can significantly speed up the investigation and apply the fix, otherwise, I would suggest to create a support case to have a deeper analyst.

@kaisecheng kaisecheng removed the bug label Aug 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants