Closed loveshell closed 11 years ago
This issue seems to be environment-dependent. This error didn't occur on my Mac.
Hmm... I'm not familier with 'alternatives'. Does this error occur without 'alternatives'?
Other uses don't hit this problem and no feedback. Probably this issue is not fluent-plugin-mongo problem.
It seems that this library need to be confiugred LOAD_PATH including ' fluent-plugin-mongo/lib'. If you are using rbenv, install rbenv-vars plugin and set RUBYLIB path to ' fluent-plugin-mongo/lib'.
root@linux:/var/lib/gems/1.9.2/gems/fluentd-0.10.28/lib/fluent/plugin# fluentd -v 2012-11-04 00:55:41 +0800: fluent/supervisor.rb:153:supervise: starting fluentd-0.10.28 2012-11-04 00:55:41 +0800: fluent/supervisor.rb:235:read_config: reading config file path="/etc/fluent/fluent.conf" 2012-11-04 00:55:41 +0800: fluent/engine.rb:65:block in configure: adding source type="forward" 2012-11-04 00:55:41 +0800: fluent/engine.rb:81:block in configure: adding match pattern="ff.file" type="mongo" /var/lib/gems/1.9.2/gems/fluent-plugin-mongo-0.6.10/lib/fluent/plugin/out_mongo.rb:7:in
require': no such file to load -- fluent/plugin/mongo_util (LoadError) from /var/lib/gems/1.9.2/gems/fluent-plugin-mongo-0.6.10/lib/fluent/plugin/out_mongo.rb:7:in
class:MongoOutput' from /var/lib/gems/1.9.2/gems/fluent-plugin-mongo-0.6.10/lib/fluent/plugin/out_mongo.rb:4:in<module:Fluent>' from /var/lib/gems/1.9.2/gems/fluent-plugin-mongo-0.6.10/lib/fluent/plugin/out_mongo.rb:1:in
<top (required)>' from /var/lib/gems/1.9.2/gems/fluentd-0.10.28/lib/fluent/plugin.rb:152:inrequire' from /var/lib/gems/1.9.2/gems/fluentd-0.10.28/lib/fluent/plugin.rb:152:in
block in try_load_plugin' from /var/lib/gems/1.9.2/gems/fluentd-0.10.28/lib/fluent/plugin.rb:149:inreverse_each' from /var/lib/gems/1.9.2/gems/fluentd-0.10.28/lib/fluent/plugin.rb:149:in
try_load_plugin' from /var/lib/gems/1.9.2/gems/fluentd-0.10.28/lib/fluent/plugin.rb:97:innew_impl' from /var/lib/gems/1.9.2/gems/fluentd-0.10.28/lib/fluent/plugin.rb:45:in
new_output' from /var/lib/gems/1.9.2/gems/fluentd-0.10.28/lib/fluent/engine.rb:83:inblock in configure' from /var/lib/gems/1.9.2/gems/fluentd-0.10.28/lib/fluent/engine.rb:73:in
each' from /var/lib/gems/1.9.2/gems/fluentd-0.10.28/lib/fluent/engine.rb:73:inconfigure' from /var/lib/gems/1.9.2/gems/fluentd-0.10.28/lib/fluent/engine.rb:51:in
parse_config' from /var/lib/gems/1.9.2/gems/fluentd-0.10.28/lib/fluent/supervisor.rb:247:inrun_configure' from /var/lib/gems/1.9.2/gems/fluentd-0.10.28/lib/fluent/supervisor.rb:88:in
block in start' from /var/lib/gems/1.9.2/gems/fluentd-0.10.28/lib/fluent/supervisor.rb:180:incall' from /var/lib/gems/1.9.2/gems/fluentd-0.10.28/lib/fluent/supervisor.rb:180:in
main_process' from /var/lib/gems/1.9.2/gems/fluentd-0.10.28/lib/fluent/supervisor.rb:155:inblock in supervise' from /var/lib/gems/1.9.2/gems/fluentd-0.10.28/lib/fluent/supervisor.rb:154:in
fork' from /var/lib/gems/1.9.2/gems/fluentd-0.10.28/lib/fluent/supervisor.rb:154:insupervise' from /var/lib/gems/1.9.2/gems/fluentd-0.10.28/lib/fluent/supervisor.rb:83:in
start' from /var/lib/gems/1.9.2/gems/fluentd-0.10.28/lib/fluent/command/fluentd.rb:129:in<top (required)>' from /var/lib/gems/1.9.2/gems/fluentd-0.10.28/bin/fluentd:6:in
require' from /var/lib/gems/1.9.2/gems/fluentd-0.10.28/bin/fluentd:6:in<top (required)>' from /etc/alternatives/gem-bin/fluentd:19:in
load'