Strapi : debug ⛔️ Server wasn't able to start properly

前端 未结 5 1785

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         


        
相关标签:
5条回答
  • 2021-01-15 03:24
    1. Check is MongoDB instance is running
    2. Check in the settings that host is correct: ./config/environment/.../database.json. Usually in development is localhost
    0 讨论(0)
  • 2021-01-15 03:25

    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

    0 讨论(0)
  • 2021-01-15 03:41

    If this error happens again, then go with strapi console rather than strapi start

    0 讨论(0)
  • 2021-01-15 03:44

    See the picture

    You should add an entry uri into your ./config/environment/.../database.json

    uri should be mongodb://<host>:<port>/<database name>

    0 讨论(0)
  • 2021-01-15 03:47

    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.

    0 讨论(0)
提交回复
热议问题