Azure / fluentd-plugin-mdsd

Azure Linux monitoring agent (mdsd) output plugin for fluentd
Other
27 stars 16 forks source link

td-agent failed to start with the plugin when changing td-agent.conf #64

Closed sharadkejriwal closed 5 years ago

sharadkejriwal commented 5 years ago

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 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:ininitialize' 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' 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_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:in new_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:inadd_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:in block 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:ineach' 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 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/root_agent.rb:86: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:129: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:103: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:489: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:160:inblock 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:in call' 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:inmain_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:in block 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:infork' 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 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:156:instart' 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:inrequire' 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/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:in load' 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:in load' Apr 04 17:03:34 TestVM3 td-agent[9948]: from /usr/sbin/td-agent:7: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

-- 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'.

sharadkejriwal commented 5 years ago

I am using td-agent version 2.3.6

sharadkejriwal commented 5 years ago

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.