MeteorJS MongoDB部署错误 [英] MeteorJS MongoDB Deploy Error

查看:76
本文介绍了MeteorJS MongoDB部署错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

由于某些原因,当我使用Meteor部署服务器时,会产生以下错误,并且无法访问页面.我遇到以下错误:

For some reason when I use Meteor deploy my server produces the following error and I am unable to access the pages. I'm running into the following error:

警告错误:没有副本集主副本可用于查询 ReadPreference主要

WARNING Error: No replica set primary available for query with ReadPreference PRIMARY

我正在使用Meteor 1.1.0.2并运行meteor deploy x.meteor.com.然后通过流星日志x.meteor.com查询日志.直到最近它一直在工作.

I am using Meteor 1.1.0.2 and run meteor deploy x.meteor.com. The logs are then queried via meteor logs x.meteor.com. It was working up until recently.

任何帮助将不胜感激,完整的流星日志输出如下.

Any help would be appreciated, the full meteor log output is below.

[2015年5月5日星期二20:50:15 GMT + 0000(UTC)]警告 /meteor/dev_bundles/0.4.18/lib/node_modules/fibers/future.js:245 投掷(ex); [2015年5月5日星期二20:50:15 GMT + 0000(UTC)]警告
^ [2015年5月5日星期二20:50:15 GMT + 0000(UTC)]警告错误:无副本 使用ReadPreference PRIMARY将主要对象设置为可用于查询 Object.Future.wait (/流星/dev_bundles/0.4.18/lib/node_modules/fibers/future.js:395:16) 在[对象对象] .MongoConnection._ensureIndex (packages/mongo/mongo_driver.js:733:1)在[object 对象] .Mongo.Collection._ensureIndex (packages/mongo/collection.js:620:1)在Accounts.urls (packages/accounts-base/accounts_server.js:1309:1)在 /meteor/容器/93192c1f-5c41-157d-36a5-dceb494f7e2c/bundle/programs/server/packages/accounts-base.js:1616:4 在 /meteor/容器/93192c1f-5c41-157d-36a5-dceb494f7e2c/bundle/programs/server/packages/accounts-base.js:1659:3 在 /meteor/容器/93192c1f-5c41-157d-36a5-dceb494f7e2c/bundle/programs/server/boot.js:222:10 在Array.forEach(本机)在Function. .each. .forEach (/流星/dev_bundles/0.4.18/lib/node_modules/underscore/underscore.js:79:11) 在 /meteor/容器/93192c1f-5c41-157d-36a5-dceb494f7e2c/bundle/programs/server/boot.js:117:5 在[object Object] .ReplSet.checkoutReader (/meteor/containers/93192c1f-5c41-157d-36a5-dceb494f7e2c/bundle/programs/server/npm/mongo/node_modules/mongodb/lib/mongodb/connection/repl_set/repl_set.js:613:14) 在Cursor.nextObject (/meteor/containers/93192c1f-5c41-157d-36a5-dceb494f7e2c/bundle/programs/server/npm/mongo/node_modules/mongodb/lib/mongodb/cursor.js:748:48) 在Cursor.toArray (/meteor/containers/93192c1f-5c41-157d-36a5-dceb494f7e2c/bundle/programs/server/npm/mongo/node_modules/mongodb/lib/mongodb/cursor.js:169:10) 在Db.indexInformation (/meteor/containers/93192c1f-5c41-157d-36a5-dceb494f7e2c/bundle/programs/server/npm/mongo/node_modules/mongodb/lib/mongodb/db.js:1629:39) 在Db.ensureIndex (/meteor/containers/93192c1f-5c41-157d-36a5-dceb494f7e2c/bundle/programs/server/npm/mongo/node_modules/mongodb/lib/mongodb/db.js:1496:8) 在Collection.ensureIndex (/meteor/containers/93192c1f-5c41-157d-36a5-dceb494f7e2c/bundle/programs/server/npm/mongo/node_modules/mongodb/lib/mongodb/collection/index.js:68:11) 在[对象对象] .MongoConnection._ensureIndex (packages/mongo/mongo_driver.js:732:1)在[object 对象] .Mongo.Collection._ensureIndex (packages/mongo/collection.js:620:1)在Accounts.urls (packages/accounts-base/accounts_server.js:1309:1)在 /meteor/容器/93192c1f-5c41-157d-36a5-dceb494f7e2c/bundle/programs/server/packages/accounts-base.js:1616:4 [2015年5月5日星期二20:50:15 GMT + 0000(UTC)] INFO STATUS正在运行-> 开始时间[2015年5月5日星期二20:50:15 GMT + 0000(UTC)]错误应用 代码损坏:8 [2015年5月5日星期二20:50:15 GMT + 0000(UTC)]注意 在端口23497上启动应用程序[2015年5月5日星期二,格林尼治标准时间+0000 (UTC)]信息状态开始->运行中

[Tue May 05 2015 20:50:15 GMT+0000 (UTC)] WARNING /meteor/dev_bundles/0.4.18/lib/node_modules/fibers/future.js:245 throw(ex); [Tue May 05 2015 20:50:15 GMT+0000 (UTC)] WARNING
^ [Tue May 05 2015 20:50:15 GMT+0000 (UTC)] WARNING Error: No replica set primary available for query with ReadPreference PRIMARY at Object.Future.wait (/meteor/dev_bundles/0.4.18/lib/node_modules/fibers/future.js:395:16) at [object Object].MongoConnection._ensureIndex (packages/mongo/mongo_driver.js:733:1) at [object Object].Mongo.Collection._ensureIndex (packages/mongo/collection.js:620:1) at Accounts.urls (packages/accounts-base/accounts_server.js:1309:1) at /meteor/containers/93192c1f-5c41-157d-36a5-dceb494f7e2c/bundle/programs/server/packages/accounts-base.js:1616:4 at /meteor/containers/93192c1f-5c41-157d-36a5-dceb494f7e2c/bundle/programs/server/packages/accounts-base.js:1659:3 at /meteor/containers/93192c1f-5c41-157d-36a5-dceb494f7e2c/bundle/programs/server/boot.js:222:10 at Array.forEach (native) at Function..each..forEach (/meteor/dev_bundles/0.4.18/lib/node_modules/underscore/underscore.js:79:11) at /meteor/containers/93192c1f-5c41-157d-36a5-dceb494f7e2c/bundle/programs/server/boot.js:117:5 at [object Object].ReplSet.checkoutReader (/meteor/containers/93192c1f-5c41-157d-36a5-dceb494f7e2c/bundle/programs/server/npm/mongo/node_modules/mongodb/lib/mongodb/connection/repl_set/repl_set.js:613:14) at Cursor.nextObject (/meteor/containers/93192c1f-5c41-157d-36a5-dceb494f7e2c/bundle/programs/server/npm/mongo/node_modules/mongodb/lib/mongodb/cursor.js:748:48) at Cursor.toArray (/meteor/containers/93192c1f-5c41-157d-36a5-dceb494f7e2c/bundle/programs/server/npm/mongo/node_modules/mongodb/lib/mongodb/cursor.js:169:10) at Db.indexInformation (/meteor/containers/93192c1f-5c41-157d-36a5-dceb494f7e2c/bundle/programs/server/npm/mongo/node_modules/mongodb/lib/mongodb/db.js:1629:39) at Db.ensureIndex (/meteor/containers/93192c1f-5c41-157d-36a5-dceb494f7e2c/bundle/programs/server/npm/mongo/node_modules/mongodb/lib/mongodb/db.js:1496:8) at Collection.ensureIndex (/meteor/containers/93192c1f-5c41-157d-36a5-dceb494f7e2c/bundle/programs/server/npm/mongo/node_modules/mongodb/lib/mongodb/collection/index.js:68:11) at [object Object].MongoConnection._ensureIndex (packages/mongo/mongo_driver.js:732:1) at [object Object].Mongo.Collection._ensureIndex (packages/mongo/collection.js:620:1) at Accounts.urls (packages/accounts-base/accounts_server.js:1309:1) at /meteor/containers/93192c1f-5c41-157d-36a5-dceb494f7e2c/bundle/programs/server/packages/accounts-base.js:1616:4 [Tue May 05 2015 20:50:15 GMT+0000 (UTC)] INFO STATUS running -> starting [Tue May 05 2015 20:50:15 GMT+0000 (UTC)] ERROR Application crashed with code: 8 [Tue May 05 2015 20:50:15 GMT+0000 (UTC)] NOTICE Starting application on port 23497 [Tue May 05 2015 20:50:15 GMT+0000 (UTC)] INFO STATUS starting -> running

推荐答案

供以后参考:这通常表示MongoDB存在问题,并且驱动程序无法连接.

For future reference: This generally indicates an issue with the MongoDB and the driver being unable to connect.

就在这时,似乎很多人的* .meteor.com应用程序都遇到了这个问题.我会稍等一下然后尝试重新部署.

Right at this very moment is seems numerous people are having this problem with their *.meteor.com applications. I would wait a bit and then try to redeploy.

这篇关于MeteorJS MongoDB部署错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆