1

我正在尝试将本地开发的流星应用程序部署到 Galaxy(由流星提供)。我使用了他们推荐的 mongodb 提供程序之一,MongoDB 的 Atlas。我已经克服了几个连接问题,但是我无法弄清楚以下问题的原因。与其关联的用户在 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)
4

1 回答 1

0

这已解决。我改为实现 mlab 并让它静置一段时间。

于 2017-04-17T17:26:56.267 回答