Meteor mongo connection in deployed code


#1

When meteor application try to connect with MongoDB server with $MONGO_URL in Unix server it fails, with be bellow error,
MongoError: Authentication failed.
at Object.Future.wait (/opt/mount1/imo_web/apps/dmo-program-site/bundle/programs/server/node_modules/fibers/future.js:449:15)

i can able to connect with the sever with NoSQLBoster…

Any help would be appreciated, many thanks!


#2

Did you add the username and password to the MONGO_URL connection string?


#3

Thank you so much for your prompt reply
yes i have added username ,password and server details in the following formate

export MONGO_URL=‘mongodb://meteoexample:meteorexample@server.corp.net:27017/imo_web_test’
export MONGO_OPLOG_URL=‘mongodb://oplogger:imo-admin@server.crop.net:27017/local?authSource=admin’
export HTTP_FORWARDED_COUNT=1
export ROOT_URL=http://localhost
export PATH=/usr/local/bin:$PATH

MongoDB server is up and running ,but not sure how MONGO_URL environment variable set and connect to meteor package.

i have created a deployment package that contains an entire Meteor application in a production-ready format, but still it not connect to MongoDB Server…

Many thanks!


#4

Do you also have this typo in your deployment?


#5

thanks for your reply…

yes in deployment i have issue,
Many thanks for your help…


#6

yes in deployment i have issue,
Many thanks for your help…