Giter VIP home page Giter VIP logo

mongo-dynamic-indexer's People

Contributors

genixpro avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

swittk

mongo-dynamic-indexer's Issues

not authorized on database to execute

Hi,
got

  • mongodb shell: 3.2.22
  • mongodb-core: 2.1.20

with password. Sets profiling level to 1 manually. Then

mongodynamicindexer -d mongodb://user:pass@localhost:27017/database -c --simple

{ MongoError: not authorized on database to execute command { profile: 2 }
    at Function.MongoError.create (.../lib/node_modules/mongo-dynamic-indexer/node_modules/mongodb-core/lib/error.js:31:11)
    at .../lib/node_modules/mongo-dynamic-indexer/node_modules/mongodb-core/lib/connection/pool.js:497:72
    at authenticateStragglers (.../lib/node_modules/mongo-dynamic-indexer/node_modules/mongodb-core/lib/connection/pool.js:443:16)
    at Connection.messageHandler (.../lib/node_modules/mongo-dynamic-indexer/node_modules/mongodb-core/lib/connection/pool.js:477:5)
    at Socket.<anonymous> (.../lib/node_modules/mongo-dynamic-indexer/node_modules/mongodb-core/lib/connection/connection.js:333:22)
    at emitOne (events.js:116:13)
    at Socket.emit (events.js:211:7)
    at addChunk (_stream_readable.js:263:12)
    at readableAddChunk (_stream_readable.js:250:11)
    at Socket.Readable.push (_stream_readable.js:208:10)
  name: 'MongoError',
  message: 'not authorized on database to execute command { profile: 2 }',
  ok: 0,
  errmsg: 'not authorized on database to execute command { profile: 2 }',
  code: 13 }

in mongodb.log:

2022-11-17T16:53:20.630+0300 I ACCESS   [conn3439] Unauthorized: not authorized on database to execute command { profile: 2 }

but

mongo -u user -p pass --authenticationDatabase=database

is OK.

What's wrong?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.