Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

203
Views
mongodb authorization exception in JMeter : code13

In MongoDB 3.2 I've setup a user with rights:

db.createUser(
  {
    user: "username",
    pwd: "pass",
    roles: [ { role: "readWrite", db: "dbname" }]

     }
)

db.auth("username", "pass" )

When I use the JMeter(2.13) to connect to the database (using Jmeter's elements MongoDB Source Config , MongoDB Script) and run a query like this:

db.mycollectionname.find()

I get this error:

error: { "$err" : "not authorized on dbname to execute command { $eval: \"db.mycollectionname.find()\", args: [] }" , "code" : 13}

While I have provided all the necessary details Server Address List , Database , User , Password to Jmeter's MongoDB Source Config , MongoDB Script respectively.

Any ideas what can be happening?

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

I had the same issue. I had to set up a user with eval permissions even though this is not recommended (even the admin user does not have these permissions).

Try that and change you script to look at the new user and it should work.

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!