Error deploying via modulus

Hello, I’m trying to deploy my app vie modulus and i cannot seem to get it working, really not sure on where my error is!

Here are the modulus logs,

> cave@0.0.1 start /mnt/app
> node main.js


/mnt/app/node_modules/fibers/future.js:245
						throw(ex);
						      ^
Error: MONGO_URL must be set in environment
    at Object.<anonymous> (packages/mongo/remote_collection_driver.js:36:1)
    at Object.defaultRemoteCollectionDriver (packages/underscore/underscore.js:750:1)
    at new Mongo.Collection (packages/mongo/collection.js:98:1)
    at packages/accounts-base/accounts_common.js:141:1
    at /mnt/app/programs/server/packages/accounts-base.js:243:4
    at /mnt/app/programs/server/packages/accounts-base.js:1659:3
    at /mnt/app/programs/server/boot.js:222:10
    at Array.forEach (native)
    at Function._.each._.forEach (/mnt/app/node_modules/underscore/underscore.js:79:11)
    at /mnt/app/programs/server/boot.js:117:5

npm ERR! cave@0.0.1 start: `node main.js`
npm ERR! Exit status 8
npm ERR! 
npm ERR! Failed at the cave@0.0.1 start script.
npm ERR! This is most likely a problem with the cave package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node main.js
npm ERR! You can get their info via:
npm ERR!     npm owner ls cave
npm ERR! There is likely additional logging output above.
npm ERR! System Linux 3.13.0-48-generic
npm ERR! command "/mnt/home/.nvm/v0.10.36/bin/node" "/mnt/home/.nvm/v0.10.36/bin/npm" "start"
npm ERR! cwd /mnt/app
npm ERR! node -v v0.10.36
npm ERR! npm -v 1.4.28
npm ERR! code ELIFECYCLE
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /mnt/app/npm-debug.log
npm ERR! not ok code 0
Found package.json: ./package.json
Start script specified in package.json: node main.js

Here is the url: http://cavespace-49673.onmodulus.net/

As i have no idea what might be causing this i will just post the git repo incase you might know where to look!

= https://github.com/ollieklein/cavespace.co

Thanks a lot for your help in advanced!
Ollie

Hey Ollie!

Error: MONGO_URL must be set in environment

This means that your database URL isn’t set up. On Modulus, if you click on your application and then locate the “Administration” tab on the left, scroll down until you see the Environment Variables table. In there, you will need to add a variable called MONGO_URL with a value equal to the connection string of your database.

If you don’t have a database setup, you can add one on Modulus. Once you do, they will provide you with the connection string that you can place in the table following the instructions above.

Hi, first of all thanks a lot for helping!

Second, i added my external db string in the format of a mongolab db and that error has gone, now i am getting this error, any idea? I have a domain setup and working so I’m guessing it isn’t that,

Error: Must pass options.rootUrl or set ROOT_URL in the server environment
    at Object.Meteor.absoluteUrl (packages/meteor/url_common.js:21:1)
    at bcrypt (packages/accounts-password/email_templates.js:7:1)
    at /mnt/app/programs/server/packages/accounts-password.js:85:4
    at /mnt/app/programs/server/packages/accounts-password.js:895:3
    at /mnt/app/programs/server/boot.js:222:10
    at Array.forEach (native)
    at Function._.each._.forEach (/mnt/app/node_modules/underscore/underscore.js:79:11)
    at /mnt/app/programs/server/boot.js:117:5

Here is what the site http://www.cavespace.co

Thanks again!

Don’t worry, figured that one out, just setup up the ROOT_URL in the environment variables also, all working now! Thanks