2

MongoLab アドオン (すべて無料プラン) を使用して、Heroku で meteor アプリをホストしています。時間が経つにつれて、アプリは失敗します。(アカウント パッケージを使用して) ログインできずInternal server error、応答として取得し続け、他の役立つメッセージは表示されません。これを修正するには、dyno を で再起動する必要がありheroku ps:restartます。

ただし、サーバー側ではこれらのエラーがログに記録されます

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 で)。

4

0 に答える 0