2017-04-14 55 views
1

我試圖在Galaxy上部署本地開發的流星應用程序(由流星提供)。我已經使用了他們推薦的mongodb提供商之一,MongoDB的Atlas。我已經克服了幾個連接問題,但我無法弄清楚下面的原因。與之關聯的用戶在管理數據庫「@admin」上具有atlasAdmin,dbAdmin,dbAdminAnyDatabase和readWriteAnyDatabase。接收流星Galaxy部署的標題爲:MongoError:未授權管理員執行命令

/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

這已解決。我實現了mlab,只是讓它坐了一會兒。

相關問題