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

Plugin crash during graceful shutdown #95

Open
fadlinurhasan opened this issue Dec 10, 2021 · 0 comments
Open

Plugin crash during graceful shutdown #95

fadlinurhasan opened this issue Dec 10, 2021 · 0 comments

Comments

@fadlinurhasan
Copy link

fadlinurhasan commented Dec 10, 2021

Hi Team,

We face below errors when try to restart the td-agent. It seems related to the latest changes when @journal set to nil. This issue appear intermittently. Do you have solution for this case?

OS Version: Ubuntu 20.04
td-agent version: 4.3.0-1
fluent-plugin-systemd version: 1.0.5

Thanks

2021-12-10 17:03:35 +0700 [info]: Received graceful stop
2021-12-10 17:03:35 +0700 [info]: Received graceful stop
2021-12-10 17:03:35 +0700 [info]: #0 fluentd worker is now stopping worker=0
2021-12-10 17:03:35 +0700 [info]: #0 shutting down fluentd worker worker=0
2021-12-10 17:03:35 +0700 [info]: #0 shutting down input plugin type=:systemd plugin_id="object:c01c"
2021-12-10 17:03:35 +0700 [error]: #0 Unexpected error raised. Stopping the timer. title=:in_systemd_emit_worker error_class=NoMethodError error="undefined method `cursor' for nil:NilClass"
  2021-12-10 17:03:35 +0700 [error]: #0 /opt/td-agent/lib/ruby/gems/2.7.0/gems/fluent-plugin-systemd-1.0.5/lib/fluent/plugin/in_systemd.rb:151:in `yield_current_entry'
  2021-12-10 17:03:35 +0700 [error]: #0 /opt/td-agent/lib/ruby/gems/2.7.0/gems/fluent-plugin-systemd-1.0.5/lib/fluent/plugin/in_systemd.rb:144:in `watch'
  2021-12-10 17:03:35 +0700 [error]: #0 /opt/td-agent/lib/ruby/gems/2.7.0/gems/fluent-plugin-systemd-1.0.5/lib/fluent/plugin/in_systemd.rb:121:in `run'
  2021-12-10 17:03:35 +0700 [error]: #0 /opt/td-agent/lib/ruby/gems/2.7.0/gems/fluentd-1.14.3/lib/fluent/plugin_helper/timer.rb:80:in `on_timer'
  2021-12-10 17:03:35 +0700 [error]: #0 /opt/td-agent/lib/ruby/gems/2.7.0/gems/cool.io-1.7.1/lib/cool.io/loop.rb:88:in `run_once'
  2021-12-10 17:03:35 +0700 [error]: #0 /opt/td-agent/lib/ruby/gems/2.7.0/gems/cool.io-1.7.1/lib/cool.io/loop.rb:88:in `run'
  2021-12-10 17:03:35 +0700 [error]: #0 /opt/td-agent/lib/ruby/gems/2.7.0/gems/fluentd-1.14.3/lib/fluent/plugin_helper/event_loop.rb:93:in `block in start'
  2021-12-10 17:03:35 +0700 [error]: #0 /opt/td-agent/lib/ruby/gems/2.7.0/gems/fluentd-1.14.3/lib/fluent/plugin_helper/thread.rb:78:in `block in thread_create'
2021-12-10 17:03:35 +0700 [error]: #0 Timer detached. title=:in_systemd_emit_worker
2021-12-10 17:03:35 +0700 [info]: #0 shutting down input plugin type=:systemd plugin_id="object:c008"
2021-12-10 17:03:35 +0700 [info]: #0 shutting down input plugin type=:tail plugin_id="object:bfe0"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant