mongodb - Deploying meteor application throws MongoError: Authentication failed -


the meteor app i'm working on should deployed on in-house redhat server.

i used meteor build <outputdir> --architecture os.linux.86_64 create bundle , uploaded target server, has mongodb 3.2 , nodejs 0.10.40 installed.

the server runs local mongodb on port 27017 user meteor , database myapp. user , db created in following manner.

use myapp db.createuser(  {    user: "meteor",    pwd: "meteor",    roles: [ "readwrite" ]  } ) 

continuing, did readme asked me , ran following commands in untared app bundle.

$ (cd programs/server && npm install) $ export mongo_url='mongodb://meteor:meteor@127.0.0.1:27017/myapp'  

when first exported mongo_url typed port wrong , got mongo error: auth error exception after running node main.js. after correcting mistake exception changed mongo error: authentication failed.

yet, possible connect without problem mongo shell typing mongo -u meteor -p meteor --host 127.0.0.1 --port 27017.

did had same problem , found solution it?


Comments

Popular posts from this blog

Delphi XE2 Indy10 udp client-server interchange using SendBuffer-ReceiveBuffer -

Qt ActiveX WMI QAxBase::dynamicCallHelper: ItemIndex(int): No such property in -

Enable autocomplete or intellisense in Atom editor for PHP -