question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't use 'local' database through mongos' on server

See original GitHub issue

System information:

  • Operating system (distribution) and version: Windows 11
  • DBeaver version: Version 22.1.0.202206131757

Connection specification:

  • Driver name: C:\Program Files\DBeaverEE\plugins\org.jkiss.bundle.mongodb_4.5.1\lib\mongodb-driver-core-4.5.1.jar
  • Do you use tunnels or proxies (SSH, SOCKS, etc)? No

Describe the problem you’re observing:

As a follow up to the new driver being implemented from issue: https://github.com/dbeaver/dbeaver/issues/16168#issuecomment-1098847982 Now when trying to connect to a MongoDB Atlas server instance the following error is received:

Error connecting to MongoDB instance [localhost]
  Command failed with error 20 (IllegalOperation): 'Can't use 'local' database through mongos' on server. The full response is {"ok": 0, "errmsg": "Can't use 'local' database through mongos", "code": 20, "codeName": "IllegalOperation"}

image

image

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
serge-ridercommented, Aug 2, 2022

Fixed. Now we use database name from URL instead of local.

0reactions
Matvey16commented, Aug 3, 2022

Verified

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error tailing oplog entries: Can't use 'local' database through ...
Accessing the oplog is only possible on a mongod connection not through a mongos connection. Therefore, what monstache requires in this case is...
Read more >
Why change streams cannot be used with local database?
Change streams can't be opened on the local database because it is an internal system database (as per the error message). You cannot...
Read more >
Unable to backup sharded mongodb cluster: $err: "can't use ...
Unable to backup sharded mongodb cluster: $err: "can't use 'local' database through mongos", code: 13644 ... Anyone has a clue what is going...
Read more >
Unable to backup sharded mongodb cluster: $err: “can't use ...
Unable to backup sharded mongodb cluster: $err: “can't use 'local' database through mongos”, code: 13644. 561 views. Skip to first unread message.
Read more >
Connecting to MongoDB databases | Prisma's Data Guide
One of the warnings from the MongoDB server indicates that access control is not enabled currently. This is the reason we were able...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found