Meteor MongoDB app connected to Azure DocumentDB database

I am running a Meteor application with an Nginx server top with a separate MongoDB base. In the config file I have set MONGO_URL

as:

"MONGO_URL":"mongodb://user:password@host:port/dbName"

      

I created MongoDB in Mizrosoft Azure as NoSQL DocumentDB. When I run Nginx to run the application, it shows the following error in the log file:

MongoError: connection 0 to HOST:10250 timed out
App 47594 stderr:     at Object.Future.wait (DIRECTORY/bundle/programs/server/node_modules/fibers/future.js:449:15)
App 47594 stderr:     at new MongoConnection (packages/mongo/mongo_driver.js:217:27)
App 47594 stderr:     at new MongoInternals.RemoteCollectionDriver (packages/mongo/remote_collection_driver.js:4:16)
App 47594 stderr:     at Object.<anonymous> (packages/mongo/remote_collection_driver.js:38:10)
App 47594 stderr:     at Object.defaultRemoteCollectionDriver (packages/underscore.js:784:19)
App 47594 stderr:     at new Mongo.Collection (packages/mongo/collection.js:99:40)
App 47594 stderr:     at AccountsServer.AccountsCommon (packages/accounts-base/accounts_common.js:23:18)
App 47594 stderr:     at new AccountsServer (packages/accounts-base/accounts_server.js:18:5)
App 47594 stderr:     at meteorInstall.node_modules.meteor.accounts-base.server_main.js (packages/accounts-base/server_main.js:9:12)
App 47594 stderr:     at fileEvaluate (packages/modules-runtime.js:197:9)
App 47594 stderr:     - - - - -
App 47594 stderr:     at Function.MongoError.create (DIRECTORY/bundle/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb-core/lib/error.js:29:11)
App 47594 stderr:     at Socket.<anonymous> (DIRECTORY/bundle/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb-core/lib/connection/connection.js:184:20)
App 47594 stderr:     at Socket.g (events.js:260:16)
App 47594 stderr:     at emitNone (events.js:67:13)
App 47594 stderr:     at Socket.emit (events.js:166:7)
App 47594 stderr:     at Socket._onTimeout (net.js:333:8)
App 47594 stderr:     at _runOnTimeout (timers.js:537:11)
App 47594 stderr:     at _makeTimerTimeout (timers.js:528:3)
App 47594 stderr:     at Timer.unrefTimeout (timers.js:597:5)

      

Is there a problem with how I defined MONGO_URL?

+1


source to share





All Articles