Mongo::Auth::Unauthorized: User user is not authorized to access db


(Palmtown) #1

I am using mongodb as an output, however, I continue getting error Mongo::Auth::Unauthorized: User user is not authorized to access db. However, I verified user and pass is correct by connecting directly.

:backtrace=>["/usr/share/logstash/vendor/bundle/jruby/1.9/gems/mongo-2.0.6/lib/mongo/auth/scram/conversation.rb:445:in validate!'", "/usr/share/logstash/vendor/bundle/jruby/1.9/gems/mongo-2.0.6/lib/mongo/auth/scram/conversation.rb:440:invalidate_first_message!'", "/usr/share/logstash/vendor/bundle/jruby/1.9/gems/mongo-2.0.6/lib/mongo/auth/scram/conversation.rb:112:in continue'", "/usr/share/logstash/vendor/bundle/jruby/1.9/gems/mongo-2.0.6/lib/mongo/auth/scram.rb:59:inlogin'", "/usr/share/logstash/vendor/bundle/jruby/1.9/gems/mongo-2.0.6/lib/mongo/server/connection.rb:64:in connect!'", "/usr/share/logstash/vendor/bundle/jruby/1.9/gems/mongo-2.0.6/lib/mongo/server/connectable.rb:93:inensure_connected'", "/usr/share/logstash/vendor/bundle/jruby/1.9/gems/mongo-2.0.6/lib/mongo/server/connection.rb:130:in write'", "/usr/share/logstash/vendor/bundle/jruby/1.9/gems/mongo-2.0.6/lib/mongo/server/connectable.rb:66:indispatch'", "/usr/share/logstash/vendor/bundle/jruby/1.9/gems/mongo-2.0.6/lib/mongo/loggable.rb:44:in log'", "/usr/share/logstash/vendor/bundle/jruby/1.9/gems/mongo-2.0.6/lib/mongo/loggable.rb:67:inlog_debug'", "/usr/share/logstash/vendor/bundle/jruby/1.9/gems/mongo-2.0.6/lib/mongo/server/connectable.rb:65:in dispatch'", "/usr/share/logstash/vendor/bundle/jruby/1.9/gems/mongo-2.0.6/lib/mongo/operation/executable.rb:35:inexecute'", "/usr/share/logstash/vendor/bundle/jruby/1.9/gems/mongo-2.0.6/lib/mongo/server/connection_pool.rb:99:in with_connection'", "/usr/share/logstash/vendor/bundle/jruby/1.9/gems/mongo-2.0.6/lib/mongo/server/context.rb:63:inwith_connection'", "/usr/share/logstash/vendor/bundle/jruby/1.9/gems/mongo-2.0.6/lib/mongo/operation/executable.rb:34:in execute'", "/usr/share/logstash/vendor/bundle/jruby/1.9/gems/mongo-2.0.6/lib/mongo/operation/write/insert.rb:72:inexecute_write_command'", "/usr/share/logstash/vendor/bundle/jruby/1.9/gems/mongo-2.0.6/lib/mongo/operation/write/insert.rb:62:in execute'", "/usr/share/logstash/vendor/bundle/jruby/1.9/gems/mongo-2.0.6/lib/mongo/collection.rb:190:ininsert_many'", "/usr/share/logstash/vendor/bundle/jruby/1.9/gems/logstash-output-mongodb-3.1.1/lib/logstash/outputs/mongodb.rb:65:in register'", "org/jruby/RubyHash.java:1342:ineach'", "/usr/share/logstash/vendor/bundle/jruby/1.9/gems/logstash-output-mongodb-3.1.1/lib/logstash/outputs/mongodb.rb:63:in register'", "org/jruby/ext/thread/Mutex.java:149:insynchronize'", "/usr/share/logstash/vendor/bundle/jruby/1.9/gems/logstash-output-mongodb-3.1.1/lib/logstash/outputs/mongodb.rb:62:in register'", "org/jruby/RubyKernel.java:1479:inloop'", "/usr/share/logstash/vendor/bundle/jruby/1.9/gems/logstash-output-mongodb-3.1.1/lib/logstash/outputs/mongodb.rb:60:in `register'"]}


(system) #2

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.