Comments (13)
Or the SRV method:
mongodb+srv://user:[email protected]/admin
from mongoku.
Works for us, but we're gonna look into it, cc @n1t0
can you paste an example of the format string you try to use?
from mongoku.
mongodb://user:[email protected]:27017,replica2.gcp.mongodb.net:27017,replica3.gcp.mongodb.net:27017/admin
from mongoku.
Don't have srv method unfortunately, lousy cloud.
My connection string goes like this
mongodb://us3r:[email protected]:3223,192.168.100.38:3223,192.168.100.155:3223/cool_prod_db?replicaSet=replica
I know it's quite an obscure way to connect, but this case would benefit at least 40 devs and testers.
from mongoku.
I just published a new version that is more permissive with the URL format. As long as the mongodb driver accepts it, it should work fine. Let me know
from mongoku.
I'm still having trouble connecting to a replica set on MongoDB Atlas.
[Mongoku] listening on port 3100 [obfuscated.gcp.mongodb.net] Connected to obfuscated.gcp.mongodb.net Error while connecting to obfuscated.gcp.mongodb.net: undefined Server does not exist (node:14136) UnhandledPromiseRejectionWarning: MongoError: user is not allowed to do action [collStats] on [admin.system.roles] at Connection.<anonymous> (C:\Users\Frederic Houle\AppData\Roaming\npm\node_modules\mongoku\node_modules\mongodb-core\lib\connection\pool.js:443:61) at Connection.emit (events.js:197:13) at processMessage (C:\Users\Frederic Houle\AppData\Roaming\npm\node_modules\mongoku\node_modules\mongodb-core\lib\connection\connection.js:364:10) at TLSSocket.<anonymous> (C:\Users\Frederic Houle\AppData\Roaming\npm\node_modules\mongoku\node_modules\mongodb-core\lib\connection\connection.js:533:15) at TLSSocket.emit (events.js:197:13) at addChunk (_stream_readable.js:288:12) at readableAddChunk (_stream_readable.js:269:11) at TLSSocket.Readable.push (_stream_readable.js:224:10) at TLSWrap.onStreamRead [as onread] (internal/stream_base_commons.js:145:17) (node:14136) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 4) (node:14136) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
from mongoku.
This seems to be an error related to the permissions your user has. As you can see in your error message, it first connects, and then when it tries to issue a collStats
command, you get this error.
Can you try using the same URL but without the /admin
part?
from mongoku.
You can also try what we discussed here: #3
Let me know how it works. If it doesn't, can you give me more information about the roles of your user, mongo version your server is running, etc...
from mongoku.
So.
I pulled latest image. It now allows me to add server with that monstrous string. But it shows only first host of the set and Authentication failed.
Credentials are fine of course.
from mongoku.
@n1t0 You could possibly spin up a free MongoDB Atlas replica set, and see by yourself? We're using the free one, without any customization. Tried without the /admin at the end of the URL, without success.
This seems to be an error related to the permissions your user has. As you can see in your error message, it first connects, and then when it tries to issue a
collStats
command, you get this error.Can you try using the same URL but without the
/admin
part?
from mongoku.
Awesome thank you! I'll have a look
from mongoku.
This should now be fixed in the new release
from mongoku.
Fixed indeed. Thank you!
from mongoku.
Related Issues (20)
- Security concern while using mongoku in docker HOT 1
- It's showing error
- Add an authentication Page
- Mongoku causes a crash of MongoDB cluster with 700GB of data
- Issue saving a document HOT 1
- Docker amd64 only image
- Node 14: reports of circular dependencies inside dependencies HOT 1
- Taking a minute to get the first page when Mongoku is served in closed network
- Misc: Is the product named after Son Goku? HOT 1
- Mongoku blocking when JSON object too large ( ~ 30Mb )
- Querying - how? HOT 6
- [bug?] MONGOKU_DEFAULT_HOST - Not able to set it correctly HOT 2
- Does Mongoku is working with clusters ?
- pm2 or forever not working HOT 1
- Document Link Missing HREF
- Mongoku + DocumentDB HOT 1
- Auto-link ObjectIds to their referenced elements in the same DB HOT 2
- Switch to Svelte(Kit?)
- Slow response time
- failed to connect to server
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mongoku.