Closed sharadkejriwal closed 5 years ago
I am using td-agent version 2.3.6
This worked with plugin version 0.1.6(https://github.com/Azure/fluentd-plugin-mdsd/releases/download/0.1.6/fluent-plugin-mdsd-0.1.6.master.54-td.amd64.gem) and not 0.1.9. But, plugin compatability with td-agent version whould be mentioned somewhere.
After changin td-agent.conf as described at https://genevamondocs.azurewebsites.net/collect/instrument/linux/fluentd.html , on starting td-agent getting the below error:
-- Unit td-agent.service has begun starting up. Starting td-agent: /opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/fluent-plugin-mdsd-0.1.9.pre.build.master.71/lib/fluent/plugin/out_mdsd.rb:16:in'
Apr 04 17:03:34 TestVM3 td-agent[9948]: * td-agent
Apr 04 17:03:34 TestVM3 systemd[1]: td-agent.service: Control process exited, code=exited status=1
Apr 04 17:03:34 TestVM3 systemd[1]: Failed to start LSB: data collector for Treasure Data.
-- Subject: Unit td-agent.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
require_relative': /opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/fluent-plugin-mdsd-0.1.9.pre.build.master.71/lib/fluent/plugin/Liboutmdsdrb.so: undefined symbol: rb_str_new_static - /opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/fluent-plugin-mdsd-0.1.9.pre.build.master.71/lib/fluent/plugin/Liboutmdsdrb.so (LoadError) Apr 04 17:03:34 TestVM3 td-agent[9948]: from /opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/fluent-plugin-mdsd-0.1.9.pre.build.master.71/lib/fluent/plugin/out_mdsd.rb:16:in
initialize' Apr 04 17:03:34 TestVM3 td-agent[9948]: from /opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/fluentd-0.12.40/lib/fluent/plugin.rb:132:innew' Apr 04 17:03:34 TestVM3 td-agent[9948]: from /opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/fluentd-0.12.40/lib/fluent/plugin.rb:132:in
new_impl' Apr 04 17:03:34 TestVM3 td-agent[9948]: from /opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/fluentd-0.12.40/lib/fluent/plugin.rb:59:innew_output' Apr 04 17:03:34 TestVM3 td-agent[9948]: from /opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/fluentd-0.12.40/lib/fluent/agent.rb:131:in
add_match' Apr 04 17:03:34 TestVM3 td-agent[9948]: from /opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/fluentd-0.12.40/lib/fluent/agent.rb:64:inblock in configure' Apr 04 17:03:34 TestVM3 td-agent[9948]: from /opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/fluentd-0.12.40/lib/fluent/agent.rb:57:in
each' Apr 04 17:03:34 TestVM3 td-agent[9948]: from /opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/fluentd-0.12.40/lib/fluent/agent.rb:57:inconfigure' Apr 04 17:03:34 TestVM3 td-agent[9948]: from /opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/fluentd-0.12.40/lib/fluent/root_agent.rb:86:in
configure' Apr 04 17:03:34 TestVM3 td-agent[9948]: from /opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/fluentd-0.12.40/lib/fluent/engine.rb:129:inconfigure' Apr 04 17:03:34 TestVM3 td-agent[9948]: from /opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/fluentd-0.12.40/lib/fluent/engine.rb:103:in
run_configure' Apr 04 17:03:34 TestVM3 td-agent[9948]: from /opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/fluentd-0.12.40/lib/fluent/supervisor.rb:489:inrun_configure' Apr 04 17:03:34 TestVM3 td-agent[9948]: from /opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/fluentd-0.12.40/lib/fluent/supervisor.rb:160:in
block in start' Apr 04 17:03:34 TestVM3 td-agent[9948]: from /opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/fluentd-0.12.40/lib/fluent/supervisor.rb:366:incall' Apr 04 17:03:34 TestVM3 td-agent[9948]: from /opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/fluentd-0.12.40/lib/fluent/supervisor.rb:366:in
main_process' Apr 04 17:03:34 TestVM3 td-agent[9948]: from /opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/fluentd-0.12.40/lib/fluent/supervisor.rb:339:inblock in supervise' Apr 04 17:03:34 TestVM3 td-agent[9948]: from /opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/fluentd-0.12.40/lib/fluent/supervisor.rb:338:in
fork' Apr 04 17:03:34 TestVM3 td-agent[9948]: from /opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/fluentd-0.12.40/lib/fluent/supervisor.rb:338:insupervise' Apr 04 17:03:34 TestVM3 td-agent[9948]: from /opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/fluentd-0.12.40/lib/fluent/supervisor.rb:156:in
start' Apr 04 17:03:34 TestVM3 td-agent[9948]: from /opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/fluentd-0.12.40/lib/fluent/command/fluentd.rb:173:in<top (required)>' Apr 04 17:03:34 TestVM3 td-agent[9948]: from /opt/td-agent/embedded/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in
require' Apr 04 17:03:34 TestVM3 td-agent[9948]: from /opt/td-agent/embedded/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:inrequire' Apr 04 17:03:34 TestVM3 td-agent[9948]: from /opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/fluentd-0.12.40/bin/fluentd:5:in
<top (required)>' Apr 04 17:03:34 TestVM3 td-agent[9948]: from /opt/td-agent/embedded/bin/fluentd:23:inload' Apr 04 17:03:34 TestVM3 td-agent[9948]: from /opt/td-agent/embedded/bin/fluentd:23:in
<top (required)>' Apr 04 17:03:34 TestVM3 td-agent[9948]: from /usr/sbin/td-agent:7:inload' Apr 04 17:03:34 TestVM3 td-agent[9948]: from /usr/sbin/td-agent:7:in
-- Unit td-agent.service has failed.
-- The result is failed. Apr 04 17:03:34 TestVM3 systemd[1]: td-agent.service: Unit entered failed state. Apr 04 17:03:34 TestVM3 systemd[1]: td-agent.service: Failed with result 'exit-code'.