chefsplate / mongo-shard-docker-compose

100 stars 66 forks source link

SocketException #5

Closed vacagonzalo closed 4 years ago

vacagonzalo commented 4 years ago

after docker-compose up -d, I stated the init.sh script but it returned the following error:

ERROR: No container found for config01_1 ERROR: No container found for shard01a_1 ERROR: No container found for shard02a_1 ERROR: No container found for shard03a_1 MongoDB shell version v4.2.8 connecting to: mongodb://127.0.0.1:27017/?compressors=disabled&gssapiServiceName=mongodb 2020-09-14T03:18:11.882+0000 E QUERY [js] Error: couldn't connect to server 127.0.0.1:27017, connection attempt failed: SocketException: Error connecting to 127.0.0.1:27017 :: caused by :: Connection refused : connect@src/mongo/shell/mongo.js:341:17 @(connect):2:6 2020-09-14T03:18:11.884+0000 F - [main] exception: connect failed 2020-09-14T03:18:11.884+0000 E - [main] exiting with code 1