If my app crashes (for whatever reason) or if I deploy a new version, it seems it can no longer connect to mongo at
. The logs give "auth fails" errors. To fix, I've been doing a mongodump, deleting the deployment, deploying again, and then running mongoimport to put the database back.
I'm using a custom CNAME for my url. That might be involved because this just started happening a few days ago after I deployed to a CNAME rather than a meteor subdomain.
Is this happening to anyone else? I though it could have been from deploying code for 0.5.7 (I think), but I upgraded last night to 0.6.0 and it happened again today. Happens about once or twice a day.
Here are some of the logs. Thanks a lot,
Fri Apr 05 2013 20:49:46 GMT+0000 (UTC)] INFO HIT / xxx.xx.xxx.xxx
[Fri Apr 05 2013 20:50:48 GMT+0000 (UTC)] INFO HIT / xxx.xx.xxx.xxx
[Fri Apr 05 2013 20:51:46 GMT+0000 (UTC)] INFO HIT / xxx.xx.xxx.xxx
[Fri Apr 05 2013 20:52:46 GMT+0000 (UTC)] INFO HIT / xxx.xx.xxx.xxx
[Fri Apr 05 2013 20:53:46 GMT+0000 (UTC)] INFO HIT / xxx.xx.xxx.xxx
[Fri Apr 05 2013 20:54:46 GMT+0000 (UTC)] INFO HIT / xxx.xx.xxx.xxx
[Fri Apr 05 2013 20:55:31 GMT+0000 (UTC)] NOTICE Starting application on port 17293
[Fri Apr 05 2013 20:55:31 GMT+0000 (UTC)] INFO STATUS running -> starting
[Fri Apr 05 2013 20:55:31 GMT+0000 (UTC)] ERROR Application crashed with code: 1
[Fri Apr 05 2013 20:55:33 GMT+0000 (UTC)] INFO Failed to receive keepalive! Exiting.
[Fri Apr 05 2013 20:55:34 GMT+0000 (UTC)] INFO STATUS starting -> running
[Fri Apr 05 2013 20:55:42 GMT+0000 (UTC)] ERROR Application crashed with code: 1
[Fri Apr 05 2013 20:55:42 GMT+0000 (UTC)] NOTICE Starting application on port 17293
[Fri Apr 05 2013 20:55:42 GMT+0000 (UTC)] INFO STATUS running -> starting
[Fri Apr 05 2013 20:55:43 GMT+0000 (UTC)] WARNING
/meteor/containers/4055c87e-893c-bb0a-989c-3c81735d0abd/bundle/app/packages/mongo-livedata/node_modules/mongodb/lib/mongodb/connection/server.js:524
throw err;
^
MongoError: auth fails
at Object.exports.toError (/meteor/containers/4055c87e-893c-bb0a-989c-3c81735d0abd/bundle/app/packages/mongo-livedata/node_modules/mongodb/lib/mongodb/utils.js:108:11)
at Db.authenticate (/meteor/containers/4055c87e-893c-bb0a-989c-3c81735d0abd/bundle/app/packages/mongo-livedata/node_modules/mongodb/lib/mongodb/db.js:670:31)
at Db._executeQueryCommand (/meteor/containers/4055c87e-893c-bb0a-989c-3c81735d0abd/bundle/app/packages/mongo-livedata/node_modules/mongodb/lib/mongodb/db.js:1702:5)
at g (events.js:192:14)
at EventEmitter.emit (events.js:126:20)
at Server.Base._callHandler (/meteor/containers/4055c87e-893c-bb0a-989c-3c81735d0abd/bundle/app/packages/mongo-livedata/node_modules/mongodb/lib/mongodb/connection/base.js:130:25)
at Server.connect.connectionPool.on.server._serverState (/meteor/containers/4055c87e-893c-bb0a-989c-3c81735d0abd/bundle/app/packages/mongo-livedata/node_modules/mongodb/lib/mongodb/connection/server.js:517:20)
at MongoReply.parseBody (/meteor/containers/4055c87e-893c-bb0a-989c-3c81735d0abd/bundle/app/packages/mongo-livedata/node_modules/mongodb/lib/mongodb/responses/mongo_reply.js:127:5)
at Server.connect.connectionPool.on.server._serverState (/meteor/containers/4055c87e-893c-bb0a-989c-3c81735d0abd/bundle/app/packages/mongo-livedata/node_modules/mongodb/lib/mongodb/connection/server.js:476:22)
at EventEmitter.emit (events.js:96:17)
[Fri Apr 05 2013 20:55:44 GMT+0000 (UTC)] INFO STATUS starting -> running
[Fri Apr 05 2013 20:55:45 GMT+0000 (UTC)] WARNING /meteor/containers/4055c87e-893c-bb0a-989c-3c81735d0abd/bundle/app/packages/mongo-livedata/node_modules/mongodb/lib/mongodb/connection/server.js:524
[Fri Apr 05 2013 20:55:45 GMT+0000 (UTC)] WARNING throw err;
^
[Fri Apr 05 2013 20:55:45 GMT+0000 (UTC)] WARNING MongoError: auth fails
at Object.exports.toError (/meteor/containers/4055c87e-893c-bb0a-989c-3c81735d0abd/bundle/app/packages/mongo-livedata/node_modules/mongodb/lib/mongodb/utils.js:108:11)
at Db.authenticate (/meteor/containers/4055c87e-893c-bb0a-989c-3c81735d0abd/bundle/app/packages/mongo-livedata/node_modules/mongodb/lib/mongodb/db.js:670:31)
at Db._executeQueryCommand (/meteor/containers/4055c87e-893c-bb0a-989c-3c81735d0abd/bundle/app/packages/mongo-livedata/node_modules/mongodb/lib/mongodb/db.js:1702:5)
at g (events.js:192:14)
at EventEmitter.emit (events.js:126:20)
at Server.Base._callHandler (/meteor/containers/4055c87e-893c-bb0a-989c-3c81735d0abd/bundle/app/packages/mongo-livedata/node_modules/mongodb/lib/mongodb/connection/base.js:130:25)
at Server.connect.connectionPool.on.server._serverState (/meteor/containers/4055c87e-893c-bb0a-989c-3c81735d0abd/bundle/app/packages/mongo-livedata/node_modules/mongodb/lib/mongodb/connection/server.js:517:20)
at MongoReply.parseBody (/meteor/containers/4055c87e-893c-bb0a-989c-3c81735d0abd/bundle/app/packages/mongo-livedata/node_modules/mongodb/lib/mongodb/responses/mongo_reply.js:127:5)
at Server.connect.connectionPool.on.server._serverState (/meteor/containers/4055c87e-893c-bb0a-989c-3c81735d0abd/bundle/app/packages/mongo-livedata/node_modules/mongodb/lib/mongodb/connection/server.js:476:22)
at EventEmitter.emit (events.js:96:17)
[Fri Apr 05 2013 20:55:45 GMT+0000 (UTC)] INFO STATUS running -> waiting
[Fri Apr 05 2013 20:55:45 GMT+0000 (UTC)] ERROR Application crashed with code: 1
[Fri Apr 05 2013 20:55:47 GMT+0000 (UTC)] INFO HIT / 46.165.195.139
[Fri Apr 05 2013 20:55:56 GMT+0000 (UTC)] NOTICE Starting application on port 17293
[Fri Apr 05 2013 20:55:56 GMT+0000 (UTC)] INFO STATUS waiting -> starting
[Fri Apr 05 2013 20:55:56 GMT+0000 (UTC)] INFO STATUS starting -> running
[Fri Apr 05 2013 20:55:57 GMT+0000 (UTC)] WARNING /meteor/containers/4055c87e-893c-bb0a-989c-3c81735d0abd/bundle/app/packages/mongo-livedata/node_modules/mongodb/lib/mongodb/connection/server.js:524
[Fri Apr 05 2013 20:55:57 GMT+0000 (UTC)] WARNING throw err;
^
[Fri Apr 05 2013 20:55:57 GMT+0000 (UTC)] WARNING MongoError: auth fails
at Object.exports.toError (/meteor/containers/4055c87e-893c-bb0a-989c-3c81735d0abd/bundle/app/packages/mongo-livedata/node_modules/mongodb/lib/mongodb/utils.js:108:11)
at Db.authenticate (/meteor/containers/4055c87e-893c-bb0a-989c-3c81735d0abd/bundle/app/packages/mongo-livedata/node_modules/mongodb/lib/mongodb/db.js:670:31)
at Db._executeQueryCommand (/meteor/containers/4055c87e-893c-bb0a-989c-3c81735d0abd/bundle/app/packages/mongo-livedata/node_modules/mongodb/lib/mongodb/db.js:1702:5)
at g (events.js:192:14)
at EventEmitter.emit (events.js:126:20)
at Server.Base._callHandler (/meteor/containers/4055c87e-893c-bb0a-989c-3c81735d0abd/bundle/app/packages/mongo-livedata/node_modules/mongodb/lib/mongodb/connection/base.js:130:25)
at Server.connect.connectionPool.on.server._serverState (/meteor/containers/4055c87e-893c-bb0a-989c-3c81735d0abd/bundle/app/packages/mongo-livedata/node_modules/mongodb/lib/mongodb/connection/server.js:517:20)
at MongoReply.parseBody (/meteor/containers/4055c87e-893c-bb0a-989c-3c81735d0abd/bundle/app/packages/mongo-livedata/node_modules/mongodb/lib/mongodb/responses/mongo_reply.js:127:5)
at Server.connect.connectionPool.on.server._serverState (/meteor/containers/4055c87e-893c-bb0a-989c-3c81735d0abd/bundle/app/packages/mongo-livedata/node_modules/mongodb/lib/mongodb/connection/server.js:476:22)
at EventEmitter.emit (events.js:96:17)
[Fri Apr 05 2013 20:55:57 GMT+0000 (UTC)] ERROR Application crashed with code: 1
[Fri Apr 05 2013 20:55:57 GMT+0000 (UTC)] INFO STATUS running -> waiting
[Fri Apr 05 2013 20:55:57 GMT+0000 (UTC)] INFO HIT / xxx.xx.xxx.xxx
[Fri Apr 05 2013 20:55:58 GMT+0000 (UTC)] INFO HIT / xxx.xx.xxx.xxx
[Fri Apr 05 2013 20:55:58 GMT+0000 (UTC)] INFO HIT / xxx.xx.xxx.xxx
[Fri Apr 05 2013 20:56:26 GMT+0000 (UTC)] NOTICE Starting application on port 17293
[Fri Apr 05 2013 20:56:26 GMT+0000 (UTC)] INFO STATUS waiting -> starting
[Fri Apr 05 2013 20:56:26 GMT+0000 (UTC)] INFO STATUS starting -> running
[Fri Apr 05 2013 20:56:27 GMT+0000 (UTC)] WARNING throw err;
^
[Fri Apr 05 2013 20:56:27 GMT+0000 (UTC)] WARNING /meteor/containers/4055c87e-893c-bb0a-989c-3c81735d0abd/bundle/app/packages/mongo-livedata/node_modules/mongodb/lib/mongodb/connection/server.js:524
[Fri Apr 05 2013 20:56:27 GMT+0000 (UTC)] WARNING MongoError: auth fails
at Object.exports.toError (/meteor/containers/4055c87e-893c-bb0a-989c-3c81735d0abd/bundle/app/packages/mongo-livedata/node_modules/mongodb/lib/mongodb/utils.js:108:11)
at Db.authenticate (/meteor/containers/4055c87e-893c-bb0a-989c-3c81735d0abd/bundle/app/packages/mongo-livedata/node_modules/mongodb/lib/mongodb/db.js:670:31)
at Db._executeQueryCommand (/meteor/containers/4055c87e-893c-bb0a-989c-3c81735d0abd/bundle/app/packages/mongo-livedata/node_modules/mongodb/lib/mongodb/db.js:1702:5)
at g (events.js:192:14)
at EventEmitter.emit (events.js:126:20)
at Server.Base._callHandler (/meteor/containers/4055c87e-893c-bb0a-989c-3c81735d0abd/bundle/app/packages/mongo-livedata/node_modules/mongodb/lib/mongodb/connection/base.js:130:25)
at Server.connect.connectionPool.on.server._serverState (/meteor/containers/4055c87e-893c-bb0a-989c-3c81735d0abd/bundle/app/packages/mongo-livedata/node_modules/mongodb/lib/mongodb/connection/server.js:517:20)
at MongoReply.parseBody (/meteor/containers/4055c87e-893c-bb0a-989c-3c81735d0abd/bundle/app/packages/mongo-livedata/node_modules/mongodb/lib/mongodb/responses/mongo_reply.js:127:5)
at Server.connect.connectionPool.on.server._serverState (/meteor/containers/4055c87e-893c-bb0a-989c-3c81735d0abd/bundle/app/packages/mongo-livedata/node_modules/mongodb/lib/mongodb/connection/server.js:476:22)
at EventEmitter.emit (events.js:96:17)
[Fri Apr 05 2013 20:56:27 GMT+0000 (UTC)] ERROR Application crashed with code: 1
Etc... it continues like this until I delete and deploy again.