-
Notifications
You must be signed in to change notification settings - Fork 116
Open
Description
On my engine I have 2 versions of a site:
- production
- Test
Deploying my code to the test site works without issue, however when I try to deploy to the live site I get this error in wagon:
bundle exec wagon deploy prod -v
Pushing Sections
persisting Logos [done]
persisting Software [failed]
Locomotive Back-office error. Contact your administrator or check your application logs.
# Error description:
undefined method `<' for nil:NilClass
# Backtrace:
/Users/donkoko/.rvm/gems/ruby-2.7.7/gems/locomotivecms_coal-1.6.0/lib/locomotive/coal/resources/concerns/request.rb:54:in `do_request'
/Users/donkoko/.rvm/gems/ruby-2.7.7/gems/locomotivecms_coal-1.6.0/lib/locomotive/coal/resources/concerns/request.rb:7:in `get'
/Users/donkoko/.rvm/gems/ruby-2.7.7/gems/locomotivecms_coal-1.6.0/lib/locomotive/coal/resources/base.rb:17:in `index'
/Users/donkoko/.rvm/gems/ruby-2.7.7/bundler/gems/wagon-2c4391ae63e6/lib/locomotive/wagon/commands/push_sub_commands/push_content_assets_command.rb:46:in `block in remote_entities'
/Users/donkoko/.rvm/gems/ruby-2.7.7/bundler/gems/wagon-2c4391ae63e6/lib/locomotive/wagon/commands/push_sub_commands/push_content_assets_command.rb:45:in `tap'
/Users/donkoko/.rvm/gems/ruby-2.7.7/bundler/gems/wagon-2c4391ae63e6/lib/locomotive/wagon/commands/push_sub_commands/push_content_assets_command.rb:45:in `remote_entities'
/Users/donkoko/.rvm/gems/ruby-2.7.7/bundler/gems/wagon-2c4391ae63e6/lib/locomotive/wagon/commands/push_sub_commands/push_content_assets_command.rb:39:in `remote_entity'
/Users/donkoko/.rvm/gems/ruby-2.7.7/bundler/gems/wagon-2c4391ae63e6/lib/locomotive/wagon/commands/push_sub_commands/push_content_assets_command.rb:18:in `persist'
/Users/donkoko/.rvm/gems/ruby-2.7.7/bundler/gems/wagon-2c4391ae63e6/lib/locomotive/wagon/decorators/concerns/persist_assets_concern.rb:11:in `block in replace_with_content_assets!'
/Users/donkoko/.rvm/gems/ruby-2.7.7/bundler/gems/wagon-2c4391ae63e6/lib/locomotive/wagon/decorators/concerns/persist_assets_concern.rb:10:in `gsub'
/Users/donkoko/.rvm/gems/ruby-2.7.7/bundler/gems/wagon-2c4391ae63e6/lib/locomotive/wagon/decorators/concerns/persist_assets_concern.rb:10:in `replace_with_content_assets!'
/Users/donkoko/.rvm/gems/ruby-2.7.7/bundler/gems/wagon-2c4391ae63e6/lib/locomotive/wagon/decorators/section_decorator.rb:29:in `definition'
/Users/donkoko/.rvm/gems/ruby-2.7.7/bundler/gems/wagon-2c4391ae63e6/lib/locomotive/wagon/decorators/concerns/to_hash_concern.rb:10:in `public_send'
/Users/donkoko/.rvm/gems/ruby-2.7.7/bundler/gems/wagon-2c4391ae63e6/lib/locomotive/wagon/decorators/concerns/to_hash_concern.rb:10:in `block (2 levels) in to_hash'
/Users/donkoko/.rvm/gems/ruby-2.7.7/bundler/gems/wagon-2c4391ae63e6/lib/locomotive/wagon/decorators/concerns/to_hash_concern.rb:9:in `each'
/Users/donkoko/.rvm/gems/ruby-2.7.7/bundler/gems/wagon-2c4391ae63e6/lib/locomotive/wagon/decorators/concerns/to_hash_concern.rb:9:in `block in to_hash'
/Users/donkoko/.rvm/gems/ruby-2.7.7/bundler/gems/wagon-2c4391ae63e6/lib/locomotive/wagon/decorators/concerns/to_hash_concern.rb:8:in `tap'
/Users/donkoko/.rvm/gems/ruby-2.7.7/bundler/gems/wagon-2c4391ae63e6/lib/locomotive/wagon/decorators/concerns/to_hash_concern.rb:8:in `to_hash'
/Users/donkoko/.rvm/gems/ruby-2.7.7/bundler/gems/wagon-2c4391ae63e6/lib/locomotive/wagon/commands/push_sub_commands/push_sections_command.rb:14:in `persist'
/Users/donkoko/.rvm/gems/ruby-2.7.7/bundler/gems/wagon-2c4391ae63e6/lib/locomotive/wagon/commands/push_sub_commands/push_base_command.rb:34:in `block in _push'
/Users/donkoko/.rvm/rubies/ruby-2.7.7/lib/ruby/2.7.0/forwardable.rb:235:in `each'
/Users/donkoko/.rvm/rubies/ruby-2.7.7/lib/ruby/2.7.0/forwardable.rb:235:in `each'
/Users/donkoko/.rvm/gems/ruby-2.7.7/bundler/gems/wagon-2c4391ae63e6/lib/locomotive/wagon/commands/push_sub_commands/push_base_command.rb:30:in `_push'
/Users/donkoko/.rvm/gems/ruby-2.7.7/bundler/gems/wagon-2c4391ae63e6/lib/locomotive/wagon/commands/push_sub_commands/push_base_command.rb:25:in `block in _push_with_timezone'
/Users/donkoko/.rvm/gems/ruby-2.7.7/gems/activesupport-5.2.6/lib/active_support/core_ext/time/zones.rb:66:in `use_zone'
/Users/donkoko/.rvm/gems/ruby-2.7.7/bundler/gems/wagon-2c4391ae63e6/lib/locomotive/wagon/commands/push_sub_commands/push_base_command.rb:24:in `_push_with_timezone'
/Users/donkoko/.rvm/gems/ruby-2.7.7/bundler/gems/wagon-2c4391ae63e6/lib/locomotive/wagon/commands/push_sub_commands/push_base_command.rb:18:in `block in push'
/Users/donkoko/.rvm/gems/ruby-2.7.7/gems/activesupport-5.2.6/lib/active_support/notifications.rb:170:in `instrument'
/Users/donkoko/.rvm/gems/ruby-2.7.7/bundler/gems/wagon-2c4391ae63e6/lib/locomotive/wagon/commands/push_sub_commands/push_base_command.rb:50:in `instrument'
/Users/donkoko/.rvm/gems/ruby-2.7.7/bundler/gems/wagon-2c4391ae63e6/lib/locomotive/wagon/commands/push_sub_commands/push_base_command.rb:16:in `push'
/Users/donkoko/.rvm/gems/ruby-2.7.7/bundler/gems/wagon-2c4391ae63e6/lib/locomotive/wagon/commands/push_sub_commands/push_base_command.rb:12:in `push'
/Users/donkoko/.rvm/gems/ruby-2.7.7/bundler/gems/wagon-2c4391ae63e6/lib/locomotive/wagon/commands/push_command.rb:65:in `block in _push'
/Users/donkoko/.rvm/gems/ruby-2.7.7/bundler/gems/wagon-2c4391ae63e6/lib/locomotive/wagon/commands/push_command.rb:94:in `block in each_resource'
/Users/donkoko/.rvm/gems/ruby-2.7.7/bundler/gems/wagon-2c4391ae63e6/lib/locomotive/wagon/commands/push_command.rb:87:in `each'
/Users/donkoko/.rvm/gems/ruby-2.7.7/bundler/gems/wagon-2c4391ae63e6/lib/locomotive/wagon/commands/push_command.rb:87:in `each_resource'
/Users/donkoko/.rvm/gems/ruby-2.7.7/bundler/gems/wagon-2c4391ae63e6/lib/locomotive/wagon/commands/push_command.rb:64:in `_push'
/Users/donkoko/.rvm/gems/ruby-2.7.7/bundler/gems/wagon-2c4391ae63e6/lib/locomotive/wagon/commands/push_command.rb:51:in `push'
/Users/donkoko/.rvm/gems/ruby-2.7.7/bundler/gems/wagon-2c4391ae63e6/lib/locomotive/wagon/commands/push_command.rb:31:in `push'
/Users/donkoko/.rvm/gems/ruby-2.7.7/bundler/gems/wagon-2c4391ae63e6/lib/locomotive/wagon.rb:74:in `push'
/Users/donkoko/.rvm/gems/ruby-2.7.7/bundler/gems/wagon-2c4391ae63e6/lib/locomotive/wagon/cli.rb:352:in `deploy'
/Users/donkoko/.rvm/gems/ruby-2.7.7/gems/thor-0.20.3/lib/thor/command.rb:27:in `run'
/Users/donkoko/.rvm/gems/ruby-2.7.7/gems/thor-0.20.3/lib/thor/invocation.rb:126:in `invoke_command'
/Users/donkoko/.rvm/gems/ruby-2.7.7/gems/thor-0.20.3/lib/thor.rb:387:in `dispatch'
/Users/donkoko/.rvm/gems/ruby-2.7.7/gems/thor-0.20.3/lib/thor/base.rb:466:in `start'
/Users/donkoko/.rvm/gems/ruby-2.7.7/bundler/gems/wagon-2c4391ae63e6/bin/wagon:73:in `<top (required)>'
/Users/donkoko/.rvm/gems/ruby-2.7.7/bin/wagon:23:in `load'
/Users/donkoko/.rvm/gems/ruby-2.7.7/bin/wagon:23:in `<main>'
/Users/donkoko/.rvm/gems/ruby-2.7.7/bin/ruby_executable_hooks:22:in `eval'
/Users/donkoko/.rvm/gems/ruby-2.7.7/bin/ruby_executable_hooks:22:in `<main>'
And in the engine logs I can see:
2023-03-20T11:13:42.545157+00:00 app[web.1]: caught error of type NoMethodError in after callback inside Grape::Middleware::Formatter : undefined method `<' for nil:NilClass
I think its important to note that the error happens when deploying a section that doesn't really have changes in it.
Metadata
Metadata
Assignees
Labels
No labels