Can't use 'local' database through mongos' on server
See original GitHub issueSystem 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"}
Issue Analytics
- State:
- Created a year ago
- Comments:7 (4 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Fixed. Now we use database name from URL instead of
local
.Verified