Open jiyidly opened 7 years ago
使用中,没遇到问题,无法解答。请提供详细的环境和日志信息。
请确定:
2.检查mongo的使用,确定不是手动还原
3.监控服务器内存情况,确认是否为内存不足
多做些测试, 你看论坛运行这么久了也没事。
我觉得应该是自己误删了mongodb的数据库
确认是没有人动mongodb,确认config.debug = false,您说的手动还原是在哪里? 内存情况我们正在查,这个问题确实很伤。。。
logs目录下,只有一个日志文件,内容只有 [2017-06-28 11:22:16.731] [ERROR] cheese - connect to mongodb://127.0.0.1/node_club_dev error: connect ECONNREFUSED 127.0.0.1:27017 [2017-06-29 10:53:00.781] [ERROR] cheese - { ForbiddenError: invalid csrf token at verifytoken (/root/deploy/xiniuedu/trunk/server/main/thirdparty/nodeclub/nodeclub/nodeclub/node_modules/csurf/index.js:269:11) at csrf (/root/deploy/xiniuedu/trunk/server/main/thirdparty/nodeclub/nodeclub/nodeclub/node_modules/csurf/index.js:97:7) at /root/deploy/xiniuedu/trunk/server/main/thirdparty/nodeclub/nodeclub/nodeclub/app.js:126:14 at Layer.handle [as handle_request] (/root/deploy/xiniuedu/trunk/server/main/thirdparty/nodeclub/nodeclub/nodeclub/node_modules/express/lib/router/layer.js:95:5) at trim_prefix (/root/deploy/xiniuedu/trunk/server/main/thirdparty/nodeclub/nodeclub/nodeclub/node_modules/express/lib/router/index.js:317:13) at /root/deploy/xiniuedu/trunk/server/main/thirdparty/nodeclub/nodeclub/nodeclub/node_modules/express/lib/router/index.js:284:7 at Function.process_params (/root/deploy/xiniuedu/trunk/server/main/thirdparty/nodeclub/nodeclub/nodeclub/node_modules/express/lib/router/index.js:335:12) at next (/root/deploy/xiniuedu/trunk/server/main/thirdparty/nodeclub/nodeclub/nodeclub/node_modules/express/lib/router/index.js:275:10) at /root/deploy/xiniuedu/trunk/server/main/thirdparty/nodeclub/nodeclub/nodeclub/middlewares/auth.js:43:5
我的数据也全部丢失
mongodb数据库设置是否有问题,不要设置成所有人都可访问,会被别人删除。
很严重的两个问题,1.为什么我按标准流程部署的nodeclub,刚开放使用一周,所有的数据都丢失了?2.并且启动在后台的nodeclub进程会莫名其妙的消失,进程消失的情况出现了好几次!