Mongodump returns 'command not found'


#1

I’m developing a Meteor application on Cloud9’s IDE. Everything has been great so far, but I can’t get mongodump to run. When I try to dump from my Compose server with -h -u -p flags set, I get “bash: mongodump -h candidate.42.mongolayer.com:10980: command not found”.

which mongodump returns /usr/bin/mongodump, and the command is found when I run mongodump with no flags set.

Anyone know what might be going on?


#2

I got around it for now by installing Mongo on my local environment to execute the mongodump command, and then upload the dump to Cloud9, but this obviously isn’t preferred. mongorestore worked fine.