![]() How to information is available, will be given on request if anybody using Robomongo in windows. So, wrapping up I have a working example I can now back-port to the project for which I need to replace vagrant. Go to Robomongo, create connection with localhost:27018 (Note: No need to enable SSH on Robomongo, ssh tunneling is enabled and handled by MAC terminal.) Workaround Solution for Windows: Putty can be used to do SSH with port forwarding. Maybe I’ll find a way to fix Robo, if so, will post here. Will learn how to use MongoExpress for this Docker based project instead. Yes, I know, Robo 3T is an older, buggy piece of software, but it works for other servers, even over SSH, so I’m not about to swap it out. The error now is different though Cannot connect to the MongoDB at localhost:27017.įailed to execute "listdatabases" command. ![]() I can access MongoExpress from “host” so that exposed port works, but I still cannot access the mongo database using Robo 3T. ![]() Would love to learn how to fix this, but this is out of scope and not required for a development environment, so for now I disabled authentication by removing the environment-variable definitions for it and now I have a running mongoDB (accessible from php) and mongo express runs also and can connect to mongo, so internally everything is o.k. Error: Network error while attempting to run command saslStart on host 127.0.0.1:27017 open localhost:8081 in browser, or 127.0.0. Query Code is the code generation feature in Studio 3T that converts MongoDB, aggregation, and SQL queries. then open Robo 3T and connect to localhost:27017 or 127.0.0.1:27017, error response: Cannot connect to the MongoDB at 127.0.0.1:27017. The “SCRAM-SHA-1” authentication mechanism requires libmongoc built with -enable-ssl Error Failed to execute listdatabases command. The example given at docker hub for mongo doesn’t work, at least, not out of the box, not without modifications to the php container. And with that, I got the impulse to recheck other stuff I – in fact – took for granted and I have been able to get a little further I’m running Docker on a Mac, macOS 10.15, Docker Desktop version 3.4.0, cli version 20.10.7.Įven an empty response is a response, Here we learnt on how to connect locally running mongodb server with Robo3T which is a GUI tool. Hopefully anyone can point me to my mistake. This is the first video on short tutorial series on MongoDB. The mongo data store is getting filled, so I know the software is running, or at least ran once and when I enter the container with docker exec -it mongodb /bin/bash and ps -A | grep mongo I see the process running.Īs you might suspect, I’m a total noob with Docker but I’m trying to learn. I noticed the exposed verses internal port difference (the working ones have different host and client ports and the not working ones have identical ports) so I did already try with alternate ports (27018 for mongo and 8181 for mongoExpress) which did not help. The php74 (web) container is working perfectly, why shouldn’t the mongo and me containers? Also, the mariadb container is working perfectly both from the php74 container and with SequelPro on its exposed port. $ curl -I returns: “empty response from server”ĭocker container ls reports the containers running and ports exposed. Network error while attempting to run command 'saslStart' on host '127.0.0.1:27017' Then open Robo 3T and connect to localhost:27017 or 127.0.0.1:27017, error response: Cannot connect to the MongoDB at 127.0.0.1:27017. I have the DAMP stack working, but the mongo and mongo-express web-client have me boggled.Īccess mongo on exposed port 27017 using Robo 3TĪccess mongo-express as alternative to Robo on exposed port 8081 I’m trying to migrate from vagrant to docker, and for a legacy project I need a set-up with Apache/PHP/MySQL and MongoDB The full response is: |_.I must be doing something wrong, I hope I can get some help here. (AuthenticationFailed): 'Authentication failed.' on server ![]() (MongoCommandException): Command failed with error 18 When tried to do so, I got an error stating:ĭatabase error (MongoSecurityException): Exception authenticating I can't able to figure out why this is happening. I don't have a previous DB connection and this is the new one that I am trying to create it. I tried to create a new connection with Studio 3T for Mongo DB. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |