marcofognog / heroku-mongo-sync

Heroku plugin to add mongo:pull and push commands
MIT License
20 stars 8 forks source link

Mongo connection failure #11

Closed dragoon closed 8 years ago

dragoon commented 8 years ago

Hello, I am experiencing the following error after a first installation of the plugin.

Heroku client internal error. uninitialized constant Mongo::ConnectionFailure

/Users/dragoon/.heroku/plugins/heroku-mongo-sync/lib/heroku/command/mongo.rb:106:in `rescue in make_connection'
/Users/dragoon/.heroku/plugins/heroku-mongo-sync/lib/heroku/command/mongo.rb:102:in `make_connection'
/Users/dragoon/.heroku/plugins/heroku-mongo-sync/lib/heroku/command/mongo.rb:28:in `transfer'
/Users/dragoon/.heroku/plugins/heroku-mongo-sync/lib/heroku/command/mongo.rb:22:in `pull'
/usr/local/Cellar/heroku-toolbelt/3.40.6/libexec/lib/heroku/command.rb:212:in `run'
/usr/local/Cellar/heroku-toolbelt/3.40.6/libexec/lib/heroku/cli.rb:27:in `start'
/usr/local/Cellar/heroku-toolbelt/3.40.6/libexec/bin/heroku:24:in `<main>'
marcofognog commented 8 years ago

Could you please tell us what is your environment? Such as Ruby, Mongo and OS version.

dragoon commented 8 years ago

Thanks, I found the solution, it seems your plugin requires a mongo ruby gem of version 1.x, which current version is 2.x. Probably would be cool to update it.

marcofognog commented 8 years ago

Nice, I would gladly accept your contribution.