2015-07-02 115 views
0

試圖通過命令行登錄到數據庫MongoLab在UbuntuMongoLab MongoDB的登錄失敗的錯誤

> 2015-07-02T13:44:05.682-0400 I NETWORK DBClientCursor::init call() failed 
>2015-07-02T13:44:05.694-0400 E QUERY Error: error doing query: failed 
at DBQuery._exec (src/mongo/shell/query.js:83:36) 
at DBQuery.hasNext (src/mongo/shell/query.js:240:10) 
at DBCollection.findOne (src/mongo/shell/collection.js:187:19) 
at DB.runCommand (src/mongo/shell/db.js:58:41) 
at DB.isMaster (src/mongo/shell/db.js:680:51) 
at DB._getDefaultAuthenticationMechanism (src/mongo/shell/db.js:1227:27) 
at DB._authOrThrow (src/mongo/shell/db.js:1252:33) 
at (auth):6:8 
at (auth):7:2 at src/mongo/shell/query.js:83 
exception: login failed 

回答

0

仔細檢查您的客戶端支持你的服務器運行的MongoDB的版本,當我得到這個錯誤。如果您使用我們的一個實驗數據庫,最近他們將其新的SCRAM-SHA-1認證機制升級到了MongoDB 3.0版。連接到這些數據庫現在需要3.0 Mongo shell或支持SCRAM-SHA-1的驅動程序。

http://docs.mongodb.org/manual/release-notes/3.0-scram/#upgrade-drivers

如果您有任何疑問,請隨時[email protected]與我們聯繫,我們很樂意提供幫助。

問候,

賈裏德