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

Error: wrong number of arguments (given 2, expected 0) #33

Open
yangjiel opened this issue Feb 3, 2023 · 0 comments
Open

Error: wrong number of arguments (given 2, expected 0) #33

yangjiel opened this issue Feb 3, 2023 · 0 comments

Comments

@yangjiel
Copy link

yangjiel commented Feb 3, 2023

Hi,

My environment is: td-agent 4.4.1 fluentd 1.15.2 (c32842297ed2c306f1b841a8f6e55bdd0f1cb27f)
My fluentd config is:

<match **>
  @type loggly
  loggly_url https://my_app.loggly.com/inputs/my_api_token
</match>

When I start the fluentd, I got this error immediately:

2023-02-02 19:03:40 -0800 [info]: #0 starting fluentd worker pid=137531 ppid=137518 worker=0
2023-02-02 19:03:40 -0800 [error]: #0 unexpected error error_class=ArgumentError error="wrong number of arguments (given 2, expected 0)"
  2023-02-02 19:03:40 -0800 [error]: #0 /opt/td-agent/lib/ruby/gems/2.7.0/gems/net-http-persistent-4.0.1/lib/net/http/persistent.rb:471:in `initialize'
  2023-02-02 19:03:40 -0800 [error]: #0 /opt/td-agent/lib/ruby/gems/2.7.0/gems/fluent-plugin-loggly-0.0.9/lib/fluent/plugin/out_loggly_buffered.rb:43:in `new'
  2023-02-02 19:03:40 -0800 [error]: #0 /opt/td-agent/lib/ruby/gems/2.7.0/gems/fluent-plugin-loggly-0.0.9/lib/fluent/plugin/out_loggly_buffered.rb:43:in `start'
  2023-02-02 19:03:40 -0800 [error]: #0 /opt/td-agent/lib/ruby/gems/2.7.0/gems/fluentd-1.15.2/lib/fluent/compat/call_super_mixin.rb:42:in `start'
  2023-02-02 19:03:40 -0800 [error]: #0 /opt/td-agent/lib/ruby/gems/2.7.0/gems/fluentd-1.15.2/lib/fluent/root_agent.rb:203:in `block in start'
  2023-02-02 19:03:40 -0800 [error]: #0 /opt/td-agent/lib/ruby/gems/2.7.0/gems/fluentd-1.15.2/lib/fluent/root_agent.rb:192:in `block (2 levels) in lifecycle'
  2023-02-02 19:03:40 -0800 [error]: #0 /opt/td-agent/lib/ruby/gems/2.7.0/gems/fluentd-1.15.2/lib/fluent/root_agent.rb:191:in `each'
  2023-02-02 19:03:40 -0800 [error]: #0 /opt/td-agent/lib/ruby/gems/2.7.0/gems/fluentd-1.15.2/lib/fluent/root_agent.rb:191:in `block in lifecycle'
  2023-02-02 19:03:40 -0800 [error]: #0 /opt/td-agent/lib/ruby/gems/2.7.0/gems/fluentd-1.15.2/lib/fluent/root_agent.rb:178:in `each'
  2023-02-02 19:03:40 -0800 [error]: #0 /opt/td-agent/lib/ruby/gems/2.7.0/gems/fluentd-1.15.2/lib/fluent/root_agent.rb:178:in `lifecycle'
  2023-02-02 19:03:40 -0800 [error]: #0 /opt/td-agent/lib/ruby/gems/2.7.0/gems/fluentd-1.15.2/lib/fluent/root_agent.rb:202:in `start'
  2023-02-02 19:03:40 -0800 [error]: #0 /opt/td-agent/lib/ruby/gems/2.7.0/gems/fluentd-1.15.2/lib/fluent/engine.rb:248:in `start'
  2023-02-02 19:03:40 -0800 [error]: #0 /opt/td-agent/lib/ruby/gems/2.7.0/gems/fluentd-1.15.2/lib/fluent/engine.rb:147:in `run'
  2023-02-02 19:03:40 -0800 [error]: #0 /opt/td-agent/lib/ruby/gems/2.7.0/gems/fluentd-1.15.2/lib/fluent/supervisor.rb:764:in `block in run_worker'
  2023-02-02 19:03:40 -0800 [error]: #0 /opt/td-agent/lib/ruby/gems/2.7.0/gems/fluentd-1.15.2/lib/fluent/supervisor.rb:1037:in `main_process'
  2023-02-02 19:03:40 -0800 [error]: #0 /opt/td-agent/lib/ruby/gems/2.7.0/gems/fluentd-1.15.2/lib/fluent/supervisor.rb:755:in `run_worker'
  2023-02-02 19:03:40 -0800 [error]: #0 /opt/td-agent/lib/ruby/gems/2.7.0/gems/fluentd-1.15.2/lib/fluent/command/fluentd.rb:381:in `<top (required)>'
  2023-02-02 19:03:40 -0800 [error]: #0 /opt/td-agent/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:83:in `require'
  2023-02-02 19:03:40 -0800 [error]: #0 /opt/td-agent/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:83:in `require'
  2023-02-02 19:03:40 -0800 [error]: #0 /opt/td-agent/lib/ruby/gems/2.7.0/gems/fluentd-1.15.2/bin/fluentd:15:in `<top (required)>'
  2023-02-02 19:03:40 -0800 [error]: #0 /opt/td-agent/bin/fluentd:23:in `load'
  2023-02-02 19:03:40 -0800 [error]: #0 /opt/td-agent/bin/fluentd:23:in `<top (required)>'
  2023-02-02 19:03:40 -0800 [error]: #0 /usr/sbin/td-agent:15:in `load'
  2023-02-02 19:03:40 -0800 [error]: #0 /usr/sbin/td-agent:15:in `<main>'
2023-02-02 19:03:40 -0800 [error]: #0 unexpected error error_class=ArgumentError error="wrong number of arguments (given 2, expected 0)"
  2023-02-02 19:03:40 -0800 [error]: #0 suppressed same stacktrace
2023-02-02 19:03:40 -0800 [error]: Worker 0 finished unexpectedly with status 1

I wonder if anyone encounter the same issue or is it my config wrong?

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