marcofognog / heroku-mongo-sync

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

Error with mongo:pull #6

Open gabriel4649 opened 10 years ago

gabriel4649 commented 10 years ago

Thanks for writing such a handy heroku add-on!! Unfortunately I'm getting the following back trace when I try to use it. Any help is appreciated.

P.S. Don't worry about the data on the back trace, I've change them and are not the real values.

 !    DEPRECATED: Heroku::Client#deprecate is deprecated, please use the heroku-api gem.
 !    DEPRECATED: More information available at https://github.com/heroku/heroku.rb
 !    DEPRECATED: Deprecated method called from /usr/local/heroku/lib/heroku/client.rb:129.
Replacing the curioso-mvp db at mongodb://localhost:27017/curioso-mvp with mongodb://heroku_appefsdfwqe_A:xcoTFFFDCejfsdfsafdsfdsfdsfbIQL@fsafdsaf40-a0.mongolab.com:29fdsafds0/heroku_app2fsdfsfds7
 !    DEPRECATED: Heroku::Client#deprecate is deprecated, please use the heroku-api gem.
 !    DEPRECATED: More information available at https://github.com/heroku/heroku.rb
 !    DEPRECATED: Deprecated method called from /usr/local/heroku/lib/heroku/client.rb:129.
 !    Heroku client internal error.
 !    Search for help at: https://help.heroku.com
 !    Or report a bug at: https://github.com/heroku/heroku/issues/new

    Error:       wrong number of arguments(2 for 1) (ArgumentError)
    Backtrace:   /var/lib/gems/1.9.1/gems/bson-1.10.2/lib/bson/bson_c.rb:24:in `deserialize'
                 /var/lib/gems/1.9.1/gems/bson-1.10.2/lib/bson/bson_c.rb:24:in `deserialize'
                 /var/lib/gems/1.9.1/gems/mongo-1.10.2/lib/mongo/networking.rb:236:in `read_documents'
                 /var/lib/gems/1.9.1/gems/mongo-1.10.2/lib/mongo/networking.rb:182:in `receive'
                 /var/lib/gems/1.9.1/gems/mongo-1.10.2/lib/mongo/networking.rb:144:in `receive_message'
                 /var/lib/gems/1.9.1/gems/mongo-1.10.2/lib/mongo/cursor.rb:543:in `block in send_initial_query'
                 /var/lib/gems/1.9.1/gems/mongo-1.10.2/lib/mongo/functional/logging.rb:55:in `block in instrument'
                 /var/lib/gems/1.9.1/gems/mongo-1.10.2/lib/mongo/functional/logging.rb:20:in `instrument'
                 /var/lib/gems/1.9.1/gems/mongo-1.10.2/lib/mongo/functional/logging.rb:54:in `instrument'
                 /var/lib/gems/1.9.1/gems/mongo-1.10.2/lib/mongo/cursor.rb:539:in `send_initial_query'
                 /var/lib/gems/1.9.1/gems/mongo-1.10.2/lib/mongo/cursor.rb:524:in `refresh'
                 /var/lib/gems/1.9.1/gems/mongo-1.10.2/lib/mongo/cursor.rb:136:in `next'
                 /var/lib/gems/1.9.1/gems/mongo-1.10.2/lib/mongo/db.rb:556:in `command'
                 /var/lib/gems/1.9.1/gems/mongo-1.10.2/lib/mongo/mongo_client.rb:547:in `block in check_is_master'
                 /usr/lib/ruby/1.9.1/timeout.rb:69:in `timeout'
                 /var/lib/gems/1.9.1/gems/mongo-1.10.2/lib/mongo/mongo_client.rb:546:in `check_is_master'
                 /var/lib/gems/1.9.1/gems/mongo-1.10.2/lib/mongo/mongo_client.rb:400:in `connect'
                 /var/lib/gems/1.9.1/gems/mongo-1.10.2/lib/mongo/mongo_client.rb:661:in `setup'
                 /var/lib/gems/1.9.1/gems/mongo-1.10.2/lib/mongo/mongo_client.rb:177:in `initialize'
                 /var/lib/gems/1.9.1/gems/mongo-1.10.2/lib/mongo/legacy.rb:52:in `initialize'
                 /home/tatsuhiro/.heroku/plugins/heroku-mongo-sync/lib/heroku/command/mongo.rb:115:in `new'
                 /home/tatsuhiro/.heroku/plugins/heroku-mongo-sync/lib/heroku/command/mongo.rb:115:in `make_connection'
                 /home/tatsuhiro/.heroku/plugins/heroku-mongo-sync/lib/heroku/command/mongo.rb:25:in `transfer'
                 /home/tatsuhiro/.heroku/plugins/heroku-mongo-sync/lib/heroku/command/mongo.rb:20:in `pull'
                 /usr/local/heroku/lib/heroku/command.rb:218:in `run'
                 /usr/local/heroku/lib/heroku/cli.rb:37:in `start'
                 /usr/bin/heroku:25:in `<main>'

    Command:     heroku mongo:pull
    Plugins:     heroku-mongo-sync
    Version:     heroku-toolbelt/3.9.7 (x86_64-linux) ruby/1.9.3
cblavier commented 10 years ago

Same error for me (ruby 2.1.3, rails 4.1.6)

jobinthepast commented 9 years ago

Same here with ruby 2.1.2, heroku 3.8.4