Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/heroku/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/meteor/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Heroku上的Meteor应用程序会随着时间的推移而失败_Heroku_Meteor_Mlab - Fatal编程技术网

Heroku上的Meteor应用程序会随着时间的推移而失败

Heroku上的Meteor应用程序会随着时间的推移而失败,heroku,meteor,mlab,Heroku,Meteor,Mlab,我在Heroku上使用MongoLab附加组件(所有免费计划)托管我的meteor应用程序。随着时间的推移,应用程序将失败。我将无法登录(使用帐户包),继续收到内部服务器错误作为响应,没有其他有用的消息。要解决这个问题,我需要用heroku ps:restart重新启动dyno 但是在服务器端,这些错误会被记录下来 2013-05-10 01:27:13.530748+00:00 app web.1 - - Exception in queued task: Error: failed to c

我在Heroku上使用MongoLab附加组件(所有免费计划)托管我的meteor应用程序。随着时间的推移,应用程序将失败。我将无法登录(使用帐户包),继续收到
内部服务器错误
作为响应,没有其他有用的消息。要解决这个问题,我需要用heroku ps:restart重新启动dyno

但是在服务器端,这些错误会被记录下来

2013-05-10 01:27:13.530748+00:00 app web.1 - - Exception in queued task: Error: failed to connect to [xxx.mongolab.com:41357] at Object.Future.wait (/app/.meteor/local/build/server/node_modules/fibers/future.js:322:15) at _.extend._nextObject (app/packages/mongo-livedata/mongo_driver.js:485:47) at _.extend.forEach (app/packages/mongo-livedata/mongo_driver.js:506:22) at _.extend.getRawObjects (app/packages/mongo-livedata/mongo_driver.js:550:12) at _.extend._pollMongo (app/packages/mongo-livedata/mongo_driver.js:821:46) at Object._.extend._unthrottledEnsurePollIsScheduled [as task] (app/packages/mongo-livedata/mongo_driver.js:765:12) at _.extend._run (app/packages/meteor/fiber_helpers.js:126:18) at _.extend._scheduleRun (app/packages/meteor/fiber_helpers.js:104:14) EXCEPT
2013-05-10 01:27:13.530748+00:00 app web.1 - - - - - - - Heroku/auction-app
2013-05-10 01:27:13.531106+00:00 app web.1 - - at Server.connect.connectionPool.on.server._serverState (/app/.meteor/local/build/server/node_modules/mongodb/lib/mongodb/connection/server.js:564:74)
2013-05-10 01:27:13.531106+00:00 app web.1 - - at EventEmitter.emit (events.js:126:20)
2013-05-10 01:27:13.531106+00:00 app web.1 - - at connection.on._self._poolState (/app/.meteor/local/build/server/node_modules/mongodb/lib/mongodb/connection/connection_pool.js:124:15)
2013-05-10 01:27:13.531106+00:00 app web.1 - - at EventEmitter.emit (events.js:99:17)
2013-05-10 01:27:13.531106+00:00 app web.1 - - at Socket.errorHandler (/app/.meteor/local/build/server/node_modules/mongodb/lib/mongodb/connection/connection.js:465:10)
2013-05-10 01:27:13.531106+00:00 app web.1 - - at Socket.EventEmitter.emit (events.js:96:17)
2013-05-10 01:27:13.531106+00:00 app web.1 - - at Socket._destroy.self.errorEmitted (net.js:329:14)
2013-05-10 01:27:13.531106+00:00 app web.1 - - at process.startup.processNextTick.process._tickCallback (node.js:244:9)
2013-05-10 01:27:13.531106+00:00 app web.1 - - at Server.connect.connectionPool.on.server._serverState (/app/.meteor/local/build/server/node_modules/mongodb/lib/mongodb/connection/server.js:564:74) Heroku/auction-app Context
2013-05-10 01:27:13.531106+00:00 app web.1 - - at EventEmitter.emit (events.js:126:20) Heroku/auction-app Context
2013-05-10 01:27:13.531106+00:00 app web.1 - - at connection.on._self._poolState (/app/.meteor/local/build/server/node_modules/mongodb/lib/mongodb/connection/connection_pool.js:124:15) Heroku/auction-app Context
2013-05-10 01:27:13.531106+00:00 app web.1 - - at EventEmitter.emit (events.js:99:17) Heroku/auction-app Context
2013-05-10 01:27:13.531106+00:00 app web.1 - - at Socket.errorHandler (/app/.meteor/local/build/server/node_modules/mongodb/lib/mongodb/connection/connection.js:465:10) Heroku/auction-app Context
2013-05-10 01:27:13.531106+00:00 app web.1 - - at Socket.EventEmitter.emit (events.js:96:17) Heroku/auction-app Context
2013-05-10 01:27:13.531106+00:00 app web.1 - - at Socket._destroy.self.errorEmitted (net.js:329:14) Heroku/auction-app Context
2013-05-10 01:27:13.531106+00:00 app web.1 - - at process.startup.processNextTick.process._tickCallback (node.js:244:9) Heroku/auction-app

错误似乎是由于未能连接到数据库造成的。但这并不能解释为什么我必须重新启动应用程序,而不是数据库(在MongoLab)。

尝试从你的电脑连接到ML。你可能会在连接字符串中出错,或者服务已关闭。连接字符串是正确的。过了一段时间它才停止工作。数据库从未关闭,我可以手动访问它。我需要重新启动heroku以使其再次工作。在这种情况下,只有服务支持可以帮助您。