MongoDB ConnectionFailure Exception

Description

java -jar /usr/local/bin/logstash.jar agent -e 'output { mongodb { host => localhost database => logstash collection => logstash user => logstash password => logstash} }'
** Notice: The BSON extension was not loaded. ** For optimal performance, use of the BSON extension is recommended. To enable the extension make sure ENV['BSON_EXT_DISABLED'] is not set. Exception in thread "LogStash::Runner" org.jruby.exceptions.RaiseException: (ConnectionFailure) Failed to connect to a master node at localhost:27017 at RUBY.connect(file:/usr/local/bin/logstash.jar!/mongo/mongo_client.rb:479) at RUBY.setup(file:/usr/local/bin/logstash.jar!/mongo/mongo_client.rb:631) at RUBY.initialize(file:/usr/local/bin/logstash.jar!/mongo/mongo_client.rb:147) at RUBY.initialize(file:/usr/local/bin/logstash.jar!/mongo/legacy.rb:56) at RUBY.register(file:/usr/local/bin/logstash.jar!/logstash/outputs/mongodb.rb:34) at RUBY.run_output(file:/usr/local/bin/logstash.jar!/logstash/agent.rb:749) at org.jruby.ext.thread.Mutex.synchronize(org/jruby/ext/thread/Mutex.java:149) at RUBY.run_output(file:/usr/local/bin/logstash.jar!/logstash/agent.rb:749) at RUBY.start_output(file:/usr/local/bin/logstash.jar!/logstash/agent.rb:379)

Note : The user and password are good when I test with irb.

Gliffy Diagrams

Activity

Show:

Duy Long April 17, 2013 at 12:33 PM

The last version resolve my problem but I have still a notice :

** Notice: The BSON extension was not loaded. ** For optimal performance, use of the BSON extension is recommended. To enable the extension make sure ENV['BSON_EXT_DISABLED'] is not set.
Fixed

Details

Assignee

Reporter

Fix versions

Affects versions

Created February 26, 2013 at 11:08 AM
Updated October 3, 2013 at 7:20 AM
Resolved October 3, 2013 at 7:20 AM