singram / mongo-docker-compose

Fully sharded mongo environment using docker-compose
110 stars 55 forks source link

duplicate key error collection #2

Closed cpapidas closed 7 years ago

cpapidas commented 7 years ago

I have the following error when I am running the initialize.sh script. { "ok" : 0, "errmsg" : "E11000 duplicate key error collection: config.shards index: _id_ dup key: { : \"mongors2\" }", "code" : 11000 }

cpapidas commented 7 years ago

Ensure that you don't have any other container open and set the ${DATA_DIR} variable with absolute path value.