Closed kilian-v closed 1 month ago
Hello, you connected with no credentials ?
Yes, usually I don't need credentials to connect to mongo db.
What's your setup ? docker-compose ? native ?
Can you give me all the steps to reproduce the bug please
I am working on Mac OS, i installd MongoDB with homebrew and WebDB via this command
docker pull webdb/app && \
docker rm -f $(docker ps -a -q --filter ancestor=webdb/app) webdb 2> /dev/null ; \
docker run --name webdb -d \
--restart=always \
--add-host="host.docker.internal:host-gateway" \
-v $HOME/.webdb:/usr/src/app/static/version \
after that i go to the link http://localhost:22071/
it all my databases, psql conection and mysql connection work correctly
Strange, I just redo everything from scratch and it works perfectly Can you try using docker please https://docs.webdb.app/installation/compose
I forgot to precise that i use a replica set
systemLog:
destination: file
path: /opt/homebrew/var/log/mongodb/mongo.log
logAppend: true
storage:
dbPath: /opt/homebrew/var/mongodb
net:
bindIp: 127.0.0.1, ::1
ipv6: true
replication:
replSetName: rs0
but okay i will try to use docker compose
I tried with replica and I can't even connect to it through Compas ... Can you give me the uri you use please
mongodb://localhost:27017
i think you have to connect into mongosh console and do rs.initiate()
Oh, after that everything works fine : compass and webdb Try to update WebDB before trying again, I just updated it
Le jeu. 12 sept. 2024 à 19:35, Kilian Vitou @.***> a écrit :
mongodb://localhost:27017
i think you have to connect into mongosh console and do rs.initiate()
— Reply to this email directly, view it on GitHub https://github.com/WebDB-App/app/issues/43#issuecomment-2346871187, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAZ56RYUSLS6ZDINRUOEZU3ZWHGF3AVCNFSM6AAAAABODOQ3S6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNBWHA3TCMJYG4 . You are receiving this because you commented.Message ID: @.***>
-- Alexandre Biche
Weird i rerun this command to update
docker pull webdb/app && \
docker rm -f $(docker ps -a -q --filter ancestor=webdb/app) webdb 2> /dev/null ; \
docker run --name webdb -d \
--restart=always \
--add-host="host.docker.internal:host-gateway" \
-v $HOME/.webdb:/usr/src/app/static/version \
-p 127.0.0.1:22071:22071 webdb/app
but same error How do.i have to install WebDB ?
You installed it the right way Found it ... Add "directConnection": "true" to params You can remove replicaSet param if you want
I did the update but the problem persists at my level, I may not have understood what to do.
With "docker.internal.host" instead of 127.0.0.1
you mean here don't you ?, or where please
Hello finally it worked thank you very much for your help I think I was putting the wrong address "127.0.0.1"/ "docker.internal.host" instead of "host.docker.internal"
Your welcome =) Don't hesitate to give feedback
Hello, when I try to connect to mongodb it gives me an error, whereas with mongo compass everything works fine.
Here is some logs from mongo.log