fluent / fluent-plugin-mongo

MongoDB input and output plugin for Fluentd
https://docs.fluentd.org/output/mongo
173 stars 61 forks source link

Unable to activate fluent-plugin-mongo-1.3.0 #126

Closed s-shubh closed 5 years ago

s-shubh commented 5 years ago

While working with this plugin; I got this error.

/opt/td-agent/embedded/lib/ruby/site_ruby/2.4.0/rubygems/specification.rb:2290:in `raise_if_conflicts': Unable to activate fluent-plugin-mongo-1.3.0, because mongo-2.9.0 conflicts with mongo (~> 2.6.0) (Gem::ConflictError)

Tried to update gems but it could not be resolved.

Using td-agent of fluentd in Cent7.

repeatedly commented 5 years ago

Maybe, you install mongo 2.9.0. Please remove mongo 2.9.0. mongo 1.3.0 requires mongo 2.6.x serise.

s-shubh commented 5 years ago

I have uninstalled it. and my system does not have mongodb installed.

repeatedly commented 5 years ago

I mean mongo gem. You can use -v option to specify version.

gem install mongo -v 2.6.4

s-shubh commented 5 years ago

I have already uninstalled mongo 2.9.0 and installed 2.6.4 but no success. still got similar logs

repeatedly commented 5 years ago

Could you show me the result of /usr/sbin/td-agent-gem list ?

s-shubh commented 5 years ago

Hey, Thank you for your time.... I tried to reinstall mongo 2.6.4 and then uninstalled mongo 2.8.0. Then Issue seems resolved.

repeatedly commented 5 years ago

Ok. Closed.