首页 > 解决方案 > Strapi - 服务器无法正常启动

问题描述

我正在 Flutter 中构建应用程序。我已将 Strapi 与 Mongodb Atlas 连接起来。一切都很好,直到突然我收到这种错误:

[2020-08-03T17:03:26.651Z] debug ⛔️ Server wasn't able to start properly.
[2020-08-03T17:03:26.652Z] error Error connecting to the Mongo database. Server selection timed out 
after 30000 ms
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! server@0.1.0 develop: `strapi develop`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the server@0.1.0 develop script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:

我的集群已连接,我不知道会出现什么问题。知道我该怎么做吗?

标签: mongodbflutterstrapi

解决方案


显然我的ip已经改变了。所以我要做的就是在mongodb atlas中添加我的新ip。在我的集群 -> 安全 -> 网络访问 - 添加 IP 地址。

这就是它


推荐阅读