Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't connect on local #1

Open
martinratinaud opened this issue Sep 28, 2021 · 0 comments
Open

Can't connect on local #1

martinratinaud opened this issue Sep 28, 2021 · 0 comments

Comments

@martinratinaud
Copy link

martinratinaud commented Sep 28, 2021

Hi and thanks for this repo as I've tested many and this is the closest to what I'm aiming at

I tried to launch the docker-compose with this .env file

RS=rs0
HOST=127.0.0.1
PORT=27018

I do not think I need database cloning (or should I)

port 27018 to be able to make a first test without messing with my actual version.

I get the following

rsc             | MongoDB shell version v4.4.9
rsc             | connecting to: mongodb://rs0:27018/?compressors=disabled&gssapiServiceName=mongodb
rsc             | Error: couldn't connect to server rs0:27018, connection attempt failed: SocketException: Error connecting to rs0:27018 (172.21.0.2:27018) :: caused by :: Connection refused :
rsc             | connect@src/mongo/shell/mongo.js:374:17
rsc             | @(connect):2:6
rsc             | exception: connect failed
rsc             | exiting with code 1
rsc             | Server seems down retrying
rsc             | MongoDB shell version v4.4.9
rsc             | connecting to: mongodb://rs0:27018/?compressors=disabled&gssapiServiceName=mongodb
rsc             | Implicit session: session { "id" : UUID("39b20f3e-ed7f-4b50-a714-7a5bc1ea0d16") }
rsc             | MongoDB server version: 4.4.9

But in the end it seems to be launched

Nevertheless, I can't connect with mongodb://127.0.0.1:27018

Do you have any idea ?

PS: my goal is to replace my standalone server running on 27017 by the replica set (3 instances on the same machine)

Thanks

@martinratinaud martinratinaud changed the title Can't launch on local Can't connect on local Sep 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant