是否有人在将监控和分析添加为服务并导致#bluemix应用程序崩溃时遇到问题?我有一个NodeJS应用程序,只要我添加M & A,应用程序将不再加载。监测和分析导致应用程序崩溃
谢谢。
它看起来像是因为猫鼬在POST中发生错误而崩溃。我现在正在查看它是否只是猫鼬或Bluemix如何处理错误。我发现了几个github上的讨论:
https://github.com/Automattic/mongoose/issues/3391 Error: invalid json with multer and body-parser
2015-11-12T15:35:02.722-0500[App/0]ERR/home/vcap/app/node_modules/mongoose/node_modules/hooks-fixed/hooks.js:58
2015-11-12T15:35:02.722-0500[App/0]ERR at model._next (/home/vcap/app/node_modules/mongoose/node_modules/hooks-fixed/hooks.js:58:23)
2015-11-12T15:35:02.722-0500[App/0]ERR at /home/vcap/app/node_modules/mongoose/lib/document.js:1721:23
2015-11-12T15:35:02.722-0500[App/0]ERR throw new Error("Your pre must have a next argument -- e.g., f
2015-11-12T15:35:02.722-0500[App/0]ERR^
2015-11-12T15:35:02.722-0500[App/0]ERR at /home/vcap/app/node_modules/mongoose/node_modules/kareem/index.js:177:19
2015-11-12T15:35:02.722-0500[App/0]ERR at model.proto.(anonymous function) [as $__original_save] (/home/vcap/app/node_modules/mongoose/node_modules/hooks-fixed/hooks.js:108:20)
2015-11-12T15:35:02.722-0500[App/0]ERRError: Your pre must have a next argument -- e.g., function (next, ...)
2015-11-12T15:35:02.722-0500[App/0]ERR at model.wrappedPointCut [as save] (/home/vcap/app/node_modules/mongoose/lib/document.js:1703:14)
2015-11-12T15:35:02.722-0500[App/0]ERR at Query.<anonymous> (/home/vcap/app/controllers/users.js:173:18)
2015-11-12T15:35:02.722-0500[App/0]ERR at /home/vcap/app/node_modules/mongoose/node_modules/kareem/index.js:109:16
2015-11-12T15:35:02.722-0500[App/0]ERR at new Promise.ES6 (/home/vcap/app/node_modules/mongoose/lib/promise.js:45:3)
2015-11-12T15:35:02.722-0500[App/0]ERR at process._tickDomainCallback (node.js:381:11)
我不知道这应该是崩溃的整个实例。 Bluemix不应该更有弹性吗?
您可以粘贴$ cf日志APP_NAME命令的输出吗? –
欢迎来到Stackoverflow,即使你的问题不是一个坏问题,我建议这种类型的问题和情况要问官方网站上的问题/错误或谷歌团体 – diegoaguilar
请报告你的应用程序日志:你可以检索这些使用cf日志(appname ) - 最近。 否则,我建议您按照您在这里找到的说明ng.bluemix.net/docs/troubleshoot/getting_customer_support.html寻求对Bluemix支持团队的支持。 系统会要求您提供应用程序日志,与我建议在此处报告的相同 –