Discussions

Ask a Question
Back to All

Cannot push wagon to production instance

Hello,

I was wondering if someone could help me out. I am trying to push a wagon from a staging instance to a production instance but getting an error when dpeloying the wagon. I am getting the following error

root@XXXXXXXXXXX:/home/user/dhr-wagon# bundle exec wagon deploy live -v

Pushing Site
persisting Wagon [failed]
Locomotive::Coal::Error

Error description:

Locomotive::Coal::Error

Backtrace:

    /usr/local/rvm/gems/ruby-2.3.0@wagon/gems/locomotivecms_coal-1.4.0/lib/locomotive/coal/resources/concerns/request.rb:36:in `do_request'
    /usr/local/rvm/gems/ruby-2.3.0@wagon/gems/locomotivecms_coal-1.4.0/lib/locomotive/coal/resources/concerns/request.rb:15:in `put'
    /usr/local/rvm/gems/ruby-2.3.0@wagon/gems/locomotivecms_coal-1.4.0/lib/locomotive/coal/resources/current_site.rb:13:in `update'
    /usr/local/rvm/gems/ruby-2.3.0@wagon/bundler/gems/wagon-ea4c9da847ed/lib/locomotive/wagon/commands/push_sub_commands/push_site_command.rb:27:in `persist'
    /usr/local/rvm/gems/ruby-2.3.0@wagon/bundler/gems/wagon-ea4c9da847ed/lib/locomotive/wagon/commands/push_sub_commands/push_base_command.rb:34:in `block in _push'
    /usr/local/rvm/gems/ruby-2.3.0@wagon/bundler/gems/wagon-ea4c9da847ed/lib/locomotive/wagon/commands/push_sub_commands/push_base_command.rb:30:in `each'
    /usr/local/rvm/gems/ruby-2.3.0@wagon/bundler/gems/wagon-ea4c9da847ed/lib/locomotive/wagon/commands/push_sub_commands/push_base_command.rb:30:in `_push'
    /usr/local/rvm/gems/ruby-2.3.0@wagon/bundler/gems/wagon-ea4c9da847ed/lib/locomotive/wagon/commands/push_sub_commands/push_base_command.rb:25:in `block in _push_with_timezone'
    /usr/local/rvm/gems/ruby-2.3.0@wagon/gems/activesupport-4.2.11/lib/active_support/core_ext/time/zones.rb:48:in `use_zone'
    /usr/local/rvm/gems/ruby-2.3.0@wagon/bundler/gems/wagon-ea4c9da847ed/lib/locomotive/wagon/commands/push_sub_commands/push_base_command.rb:24:in `_push_with_timezone'
    /usr/local/rvm/gems/ruby-2.3.0@wagon/bundler/gems/wagon-ea4c9da847ed/lib/locomotive/wagon/commands/push_sub_commands/push_base_command.rb:18:in `block in push'
    /usr/local/rvm/gems/ruby-2.3.0@wagon/gems/activesupport-4.2.11/lib/active_support/notifications.rb:166:in `instrument'
    /usr/local/rvm/gems/ruby-2.3.0@wagon/bundler/gems/wagon-ea4c9da847ed/lib/locomotive/wagon/commands/push_sub_commands/push_base_command.rb:50:in `instrument'
    /usr/local/rvm/gems/ruby-2.3.0@wagon/bundler/gems/wagon-ea4c9da847ed/lib/locomotive/wagon/commands/push_sub_commands/push_base_command.rb:16:in `push'
    /usr/local/rvm/gems/ruby-2.3.0@wagon/bundler/gems/wagon-ea4c9da847ed/lib/locomotive/wagon/commands/push_sub_commands/push_base_command.rb:12:in `push'
    /usr/local/rvm/gems/ruby-2.3.0@wagon/bundler/gems/wagon-ea4c9da847ed/lib/locomotive/wagon/commands/push_command.rb:55:in `block in _push'
    /usr/local/rvm/gems/ruby-2.3.0@wagon/bundler/gems/wagon-ea4c9da847ed/lib/locomotive/wagon/commands/push_command.rb:84:in `block in each_resource'
    /usr/local/rvm/gems/ruby-2.3.0@wagon/bundler/gems/wagon-ea4c9da847ed/lib/locomotive/wagon/commands/push_command.rb:77:in `each'
    /usr/local/rvm/gems/ruby-2.3.0@wagon/bundler/gems/wagon-ea4c9da847ed/lib/locomotive/wagon/commands/push_command.rb:77:in `each_resource'
    /usr/local/rvm/gems/ruby-2.3.0@wagon/bundler/gems/wagon-ea4c9da847ed/lib/locomotive/wagon/commands/push_command.rb:54:in `_push'
    /usr/local/rvm/gems/ruby-2.3.0@wagon/bundler/gems/wagon-ea4c9da847ed/lib/locomotive/wagon/commands/push_command.rb:41:in `push'
    /usr/local/rvm/gems/ruby-2.3.0@wagon/bundler/gems/wagon-ea4c9da847ed/lib/locomotive/wagon/commands/push_command.rb:31:in `push'
    /usr/local/rvm/gems/ruby-2.3.0@wagon/bundler/gems/wagon-ea4c9da847ed/lib/locomotive/wagon.rb:73:in `push'
    /usr/local/rvm/gems/ruby-2.3.0@wagon/bundler/gems/wagon-ea4c9da847ed/lib/locomotive/wagon/cli.rb:318:in `deploy'
    /usr/local/rvm/gems/ruby-2.3.0@wagon/gems/thor-0.19.4/lib/thor/command.rb:27:in `run'
    /usr/local/rvm/gems/ruby-2.3.0@wagon/gems/thor-0.19.4/lib/thor/invocation.rb:126:in `invoke_command'
    /usr/local/rvm/gems/ruby-2.3.0@wagon/gems/thor-0.19.4/lib/thor.rb:369:in `dispatch'
    /usr/local/rvm/gems/ruby-2.3.0@wagon/gems/thor-0.19.4/lib/thor/base.rb:444:in `start'
    /usr/local/rvm/gems/ruby-2.3.0@wagon/bundler/gems/wagon-ea4c9da847ed/bin/wagon:12:in `<top (required)>'
    /usr/local/rvm/gems/ruby-2.3.0@wagon/bin/wagon:23:in `load'
    /usr/local/rvm/gems/ruby-2.3.0@wagon/bin/wagon:23:in `<main>'
    /usr/local/rvm/gems/ruby-2.3.0@wagon/bin/ruby_executable_hooks:24:in `eval'
    /usr/local/rvm/gems/ruby-2.3.0@wagon/bin/ruby_executable_hooks:24:in `<main>'

Seems like the API on the remote live server is not working properly. How can I check if API access is working?

Thank you for your help,