Please fix my problem.
It works when I try more than 50 times. Now it does not work I try 100+ times.
I start this -> strapi new server
� S
host
is correct: ./config/environment/.../database.json
. Usually in development is localhost
Please make sure your MongoDB is running with the settings you set in your ./config/environment/.../database.json
I think your host have ans issue, @
is not needed.
I suggest you to follow the Strapi doc about Mongo Atlas docs. That work with clusters. https://strapi.io/documentation/3.0.0-beta.x/guides/databases.html#install-on-atlas-mongodb-atlas
If this error happens again, then go with strapi console rather than strapi start
See the picture
You should add an entry uri
into your ./config/environment/.../database.json
uri
should be mongodb://<host>:<port>/<database name>
If you face this error while working with docker,
Adding --network=host
solves this problem. Keep in mind, use this solution only locally.
As described by docker itself,
--network="host" gives the container full access to local system services such as D-bus and is therefore considered insecure.