我正在尝试将本地开发的流星应用程序部署到Galaxy(由meteor提供)。我使用了他们推荐的mongodb提供商之一,Ato by MongoDB。我已经克服了几个连接问题,但是我无法弄清楚下面的原因。与之关联的用户在admin db" @ admin"上有atlasAdmin,dbAdmin,dbAdminAnyDatabase,readWriteAnyDatabase。
/app/bundle/programs/server/node_modules/fibers/future.js:313
throw(ex);
MongoError: not authorized on admin to execute command { listIndexes: "users", cursor: { } }
Object.Future.wait (/app/bundle/programs/server/node_modules/fibers/future.js:449:15)
[object Object].MongoConnection._ensureIndex (packages/mongo/mongo_driver.js:832:10)
[object Object].Mongo.Collection._ensureIndex (packages/mongo/collection.js:677:20)
setupUsersCollection (packages/accounts-base/accounts_server.js:1493:9)
new AccountsServer (packages/accounts-base/accounts_server.js:51:5)
meteorInstall.node_modules.meteor.accounts-base.server_main.js (packages/accounts-base/server_main.js:9:12)
fileEvaluate (packages/modules-runtime.js:197:9)
require (packages/modules-runtime.js:120:16)
/app/bundle/programs/server/packages/accounts-base.js:2031:15
/app/bundle/programs/server/packages/accounts-base.js:2042:3
Function.MongoError.create (/app/bundle/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb-core/lib/error.js:31:11)
queryCallback (/app/bundle/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb-core/lib/cursor.js:197:34)
/app/bundle/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb-core/lib/connection/pool.js:455:18
nextTickCallbackWith0Args (node.js:489:9)
process._tickCallback (node.js:418:13)
答案 0 :(得分:0)
这已经解决了。我实现了mlab,让它静置一段时间。