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

unexpected error error="undefined method `router=' for #<Fluent::Plugin::StdoutOutput:…> #1040

Closed
martin21 opened this issue Jun 7, 2016 · 3 comments · Fixed by #1064
Closed
Assignees
Labels
bug Something isn't working v0.14

Comments

@martin21
Copy link

martin21 commented Jun 7, 2016

Masa told me:

This is a bug of out_copy and non-emittable output combination, e.g.
out_stdout. v0.14.1 will fix this problem.

As per his request I open an issue about it.

With

# gem list | grep fluent
fluent-mixin-config-placeholders (0.4.0)
fluent-plugin-elasticsearch (1.5.0)
fluent-plugin-parser (0.6.1)
fluent-plugin-secure-forward (0.4.1)
fluent-plugin-snmptrap (0.0.1)
fluentd (0.14.0, 0.12.24)
fluentd-ui (0.4.3)

and

<match *.**>
  @type copy
  <store>
    @type elasticsearch
    host localhost
    port 9200
    include_tag_key true
    tag_key @log_name
    logstash_format true
    flush_interval 10s
  </store>
  <store>
    @type stdout
  </store>
</match>

I get

2016-06-07 12:52:40 +0200 [info]: reading config file path="/etc/fluent/fluent.conf"
2016-06-07 12:52:40 +0200 [info]: starting fluentd-0.14.0
2016-06-07 12:52:40 +0200 [info]: spawn command to main: /usr/bin/ruby2.1 -Eascii-8bit:ascii-8bit /usr/local/bin/fluentd -c /etc/fluent/fluent.conf --no-super
visor
2016-06-07 12:52:41 +0200 [info]: reading config file path="/etc/fluent/fluent.conf"
2016-06-07 12:52:41 +0200 [info]: starting fluentd-0.14.0 without supervision
2016-06-07 12:52:41 +0200 [info]: gem 'fluent-mixin-config-placeholders' version '0.4.0'
2016-06-07 12:52:41 +0200 [info]: gem 'fluent-plugin-elasticsearch' version '1.5.0'
2016-06-07 12:52:41 +0200 [info]: gem 'fluent-plugin-parser' version '0.6.1'
2016-06-07 12:52:41 +0200 [info]: gem 'fluent-plugin-secure-forward' version '0.4.1'
2016-06-07 12:52:41 +0200 [info]: gem 'fluent-plugin-snmptrap' version '0.0.1'
2016-06-07 12:52:41 +0200 [info]: gem 'fluentd' version '0.14.0'
2016-06-07 12:52:41 +0200 [info]: gem 'fluentd' version '0.12.24'
2016-06-07 12:52:41 +0200 [info]: adding match pattern="system.syslog.mail.info" type="parser"
2016-06-07 12:52:41 +0200 [info]: adding match pattern="debug.**" type="stdout"
2016-06-07 12:52:41 +0200 [info]: adding match pattern="*.**" type="copy"
2016-06-07 12:52:41 +0200 [error]: unexpected error error="undefined method `router=' for #<Fluent::Plugin::StdoutOutput:007ff1bfc1ba48>"
  2016-06-07 12:52:41 +0200 [error]: /var/lib/gems/2.1.0/gems/fluentd-0.14.0/lib/fluent/plugin/out_copy.rb:47:in `block in configure'
  2016-06-07 12:52:41 +0200 [error]: /var/lib/gems/2.1.0/gems/fluentd-0.14.0/lib/fluent/plugin/out_copy.rb:39:in `each'
  2016-06-07 12:52:41 +0200 [error]: /var/lib/gems/2.1.0/gems/fluentd-0.14.0/lib/fluent/plugin/out_copy.rb:39:in `configure'
  2016-06-07 12:52:41 +0200 [error]: /var/lib/gems/2.1.0/gems/fluentd-0.14.0/lib/fluent/agent.rb:135:in `add_match'
  2016-06-07 12:52:41 +0200 [error]: /var/lib/gems/2.1.0/gems/fluentd-0.14.0/lib/fluent/agent.rb:69:in `block in configure'
  2016-06-07 12:52:41 +0200 [error]: /var/lib/gems/2.1.0/gems/fluentd-0.14.0/lib/fluent/agent.rb:63:in `each'
  2016-06-07 12:52:41 +0200 [error]: /var/lib/gems/2.1.0/gems/fluentd-0.14.0/lib/fluent/agent.rb:63:in `configure'
  2016-06-07 12:52:41 +0200 [error]: /var/lib/gems/2.1.0/gems/fluentd-0.14.0/lib/fluent/root_agent.rb:86:in `configure'
  2016-06-07 12:52:41 +0200 [error]: /var/lib/gems/2.1.0/gems/fluentd-0.14.0/lib/fluent/engine.rb:119:in `configure'
  2016-06-07 12:52:41 +0200 [error]: /var/lib/gems/2.1.0/gems/fluentd-0.14.0/lib/fluent/engine.rb:93:in `run_configure'
  2016-06-07 12:52:41 +0200 [error]: /var/lib/gems/2.1.0/gems/fluentd-0.14.0/lib/fluent/supervisor.rb:576:in `run_configure'
  2016-06-07 12:52:41 +0200 [error]: /var/lib/gems/2.1.0/gems/fluentd-0.14.0/lib/fluent/supervisor.rb:381:in `block in run_worker'
  2016-06-07 12:52:41 +0200 [error]: /var/lib/gems/2.1.0/gems/fluentd-0.14.0/lib/fluent/supervisor.rb:509:in `call'
  2016-06-07 12:52:41 +0200 [error]: /var/lib/gems/2.1.0/gems/fluentd-0.14.0/lib/fluent/supervisor.rb:509:in `main_process'
  2016-06-07 12:52:41 +0200 [error]: /var/lib/gems/2.1.0/gems/fluentd-0.14.0/lib/fluent/supervisor.rb:378:in `run_worker'
  2016-06-07 12:52:41 +0200 [error]: /var/lib/gems/2.1.0/gems/fluentd-0.14.0/lib/fluent/command/fluentd.rb:266:in `<top (required)>'
  2016-06-07 12:52:41 +0200 [error]: /usr/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:73:in `require'
  2016-06-07 12:52:41 +0200 [error]: /usr/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:73:in `require'
  2016-06-07 12:52:41 +0200 [error]: /var/lib/gems/2.1.0/gems/fluentd-0.14.0/bin/fluentd:5:in `<top (required)>'
  2016-06-07 12:52:41 +0200 [error]: /usr/local/bin/fluentd:23:in `load'
  2016-06-07 12:52:41 +0200 [error]: /usr/local/bin/fluentd:23:in `<main>'
2016-06-07 12:52:42 +0200 [info]: Worker 0 finished unexpectedly with status 1
@tagomoris tagomoris added bug Something isn't working v0.14 labels Jun 7, 2016
@zacharynevin
Copy link

+1 I'm getting this issue as well

@repeatedly
Copy link
Member

@tagomoris How about the progress of this?

@tagomoris
Copy link
Member

I created #1064 to solve this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working v0.14
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants