Mysql 为什么nodejs应用程序在bluemix上部署后会崩溃?
我在Mysql 为什么nodejs应用程序在bluemix上部署后会崩溃?,mysql,node.js,authentication,express,ibm-cloud,Mysql,Node.js,Authentication,Express,Ibm Cloud,我在nodejs上使用express和passport模块进行用户身份验证。代码在本地运行良好。但当上传到bluemix服务器时,它会运行两个登录实例或一段时间超时,随后服务器崩溃。以下是bluemix的日志: Warning: connect.session() MemoryStore is not 2016-02-29T15:03:22.974+0530[App/0] ERRmemory, and will not scale past a single process. 2016-02-2
nodejs
上使用express和passport模块进行用户身份验证。代码在本地运行良好。但当上传到bluemix服务器时,它会运行两个登录实例或一段时间超时,随后服务器崩溃。以下是bluemix的日志:
Warning: connect.session() MemoryStore is not
2016-02-29T15:03:22.974+0530[App/0] ERRmemory, and will not scale past a single process.
2016-02-29T15:03:22.974+0530[App/0] ERRdesigned for a production environment, as it will leak
2016-02-29T15:03:22.985+0530[App/0] OUTServer is running @ http://localhost:64134
2016-02-29T15:04:23.173+0530[App/0] ERRError: Quit inactivity timeout
2016-02-29T15:04:23.173+0530[App/0] ERR throw er; // Unhandled 'error' event
2016-02-29T15:04:23.173+0530[App/0] ERR at Quit.emit (events.js:166:7)
2016-02-29T15:04:23.173+0530[App/0] ERRevents.js:141
2016-02-29T15:04:23.173+0530[App/0] ERR ^
2016-02-29T15:04:23.173+0530[App/0] ERR at Timer.listOnTimeout (timers.js:92:15)
2016-02-29T15:04:23.173+0530[App/0] ERR at Quit. (/home/vcap/app/node_modules/mysql/lib/protocol/Protocol.js:160:17)
2016-02-29T15:04:23.173+0530[App/0] ERR at emitNone (events.js:67:13)
2016-02-29T15:04:23.173+0530[App/0] ERR at Quit._onTimeout
(/home/vcap/app/node_modules/mysql/lib/protocol/sequences/Sequence.js:116:8) 2016-02-29T15:04:23.856+0530[API/9]OUTApp instance exited with guid caa03cfb-bf79-43e1-997d-4d76d50a41a7 payload: {"cc_partition"=>"default", "droplet"=>"caa03cfb-bf79-43e1-997d-4d76d50a41a7", "version"=>"0000dfe2-af05-4f9a-b244-3902edb3d5ff", "instance"=>"88586613847b4d098601a29ffad5d390", "index"=>0, "reason"=>"CRASHED", "exit_status"=>1, "exit_description"=>"app instance exited", "crash_timestamp"=>1456738463}
这个问题可能有助于。。。或者这个。通过从节点v4.2.0升级到v4.2.2解决了问题。如果这些都没有帮助,请说明您正在使用哪个buildpack以及您正在使用哪个版本的node.js?