Unable to create a simple query

Ashwin Jacob shared this question 11 months ago
Answered

Everytime I try to create a simple query, I get the following error:

Error: Cannot read property 'id' of null

Comments (4)

photo
1

Hi Ashwin,


Sorry for the delay in responding, we've been trying to reproduce your error but we are unable to on our local environments.

Could you further help us out by sending us a support bundle so we can attempt to fix up your issue as soon as possible.


You can create a support bundle using the little ! button at the bottom right of the application or by following these instructions:

https://dbkoda.useresponse.com/knowledge-base/article/how-do-i-generate-a-support-bundle


Kind Regards,

Michael from dbKoda

photo
1

I'm getting the same error with simple query or aggregate builder. Other features seem to work. We are currently running 3.2.6. Could this be an issue?

photo
1

I found the following in the log. Looks like those features require a new connection to MongoDB and for some reason that connection is failing.


2018-02-14T15:44:54-05:00 - info: create shell for connection { id: '34a39c80-11c4-11e8-9df4-73706adc85d8' } , provider=primus

2018-02-14T15:44:54-05:00 - info: Mongo Version Cmd: mongoCmd=/usr/local/bin/mongo, mongoVersionCmd="/usr/local/bin/mongo" --version, mongodumpCmd=/usr/local/bin/mongodump, mongorestoreCmd=/usr/local/bin/mongorestore, mongoimportCmd=/usr/local/bin/mongoimport, mongoexportCmd=/usr/local/bin/mongoexport, drillCmd=null, drillControllerCmd=null, showWelcomePageAtStart=true, telemetryEnabled=true, sshCounterInterval=2, sshCounterCmd=vmstat

2018-02-14T15:44:54-05:00 - info: Mongo Cmd: mongoCmd=/usr/local/bin/mongo, mongoVersionCmd="/usr/local/bin/mongo" --version, mongodumpCmd=/usr/local/bin/mongodump, mongorestoreCmd=/usr/local/bin/mongorestore, mongoimportCmd=/usr/local/bin/mongoimport, mongoexportCmd=/usr/local/bin/mongoexport, drillCmd=null, drillControllerCmd=null, showWelcomePageAtStart=true, telemetryEnabled=true, sshCounterInterval=2, sshCounterCmd=vmstat

2018-02-14T15:44:54-05:00 - info: load pre defined scripts /Applications/dbKoda.app/Contents/Resources/app.asar.unpacked/assets/controller/lib/all-in-one.js

2018-02-14T15:44:54-05:00 - info: mongo shell exit 1 false

2018-02-14T15:44:54-05:00 - error: failed to initialize 1 id=34a39c80-11c4-11e8-9df4-73706adc85d8, shellId=e930e560-11c7-11e8-882a-9daa7d3a4b13,, id=34a39c80-11c4-11e8-9df4-73706adc85d8, shellId=e930e560-11c7-11e8-882a-9daa7d3a4b13, output=connecting to: mongodb://EDCMongoTest-RS1-13.delaw, id=34a39c80-11c4-11e8-9df4-73706adc85d8, shellId=e930e560-11c7-11e8-882, id=34a39c80-11c4-11e8-9df4-73706adc85d8, shellId=e930e560-11c7-11e8-882, id=34a39c80-11c4-11e8-9df4-73706adc85d8, shellId=e930e560-11c7-11e8-882a-9daa7d3a4b13, output=2018-02-14T15:44:54.625-0500 E QUERY [thread1] , id=34a39c80-11c4-11e8-9df4-73706adc85d8, shellId=e930e560-11c7-11e8-882a-9daa7d3a4b13, output=DB.prototype._authOrThrow@src/mongo/shell/db.js:14, id=34a39c80-11c4-11e8-9df4-73706adc85d8, shellId=e930e560-11c7-11e8-882, id=34a39c80-11c4-11e8-9df4-73706adc85d8, shellId=e930e560-11c7-11e8-882, id=34a39c80-11c4-11e8-9df4-73706adc85d8, shellId=e930e560-11c7-11e8-882a-9daa7d3a4b13, output=exception: login failed

photo
1

Hi Michael,


Sorry for the very slow reply and thanks for providing more feedback, we've been unable to recreate your issue on Mongo version 3.2 on any platform unfortunately, and we're not exactly sure what the issue is from your logs.

Is there any additional information you might have to help us diagnose the issue, such as;

  • Mongo configuration.
  • Strange network or proxy settings.
  • You can create a support bundle (using the little ! symbol in the bottom right of the application) and send that through for us to analyse.
  • You can also try upgrading your Mongo version and dbKoda version to see if that helps.

Hopefully with some more information we can replicate and resolve your problem.


Kind Regards,

Mike from dbKoda.

photo