I’m running my app on a VPS staging server this way:
RAILS_ENV=staging rails s -p 3000 -b 0.0.0.0
I don’t want to compile the assets just yet, for the sake of testing of testing.
Exception I have:
{"method":"GET","path":"/","format":"html","controller":"HomepageController","action":"index","status":500,"duration":2201.3,"view":0.0,"db":23.98,"params":{},"host":"staging.my_server123.com","community_id":1,"current_user_id":"","user_agent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.87 Safari/537.36","referer":"","forwarded_for":"11.22.33.44","request_uuid":"cf711f02-752c-49a4-865a-835dfedf3bb2"}
ActionView::Template::Error (The asset "sharetribe_icon.png" is not present in the asset pipeline.):
30: - if @current_community.logo?
31: - meta_image = @current_community.logo.url(:original)
32: - else
33: - meta_image = image_path("sharetribe_icon.png")
34:
35: %title= title
36: %meta{ :property => "og:title", :content => title}
app/views/layouts/_marketplace_head.haml:33:in `_app_views_layouts__marketplace_head_haml___3220579217149463426_47226968918480'
app/views/layouts/_head.haml:28:in `_app_views_layouts__head_haml___2109193293915583278_47226970756180'
app/views/layouts/application.haml:1:in `_app_views_layouts_application_haml__4422444801351426485_47226966820640'
app/controllers/homepage_controller.rb:128:in `block in index'
app/services/result.rb:70:in `on_success'
app/controllers/homepage_controller.rb:126:in `index'
lib/rack_middleware/session_context_middleware.rb:15:in `call'
lib/rack_middleware/marketplace_lookup.rb:33:in `call'
lib/rack_middleware/custom_cookie_renamer.rb:11:in `call'
lib/rack_middleware/enforce_ssl.rb:23:in `call'
lib/rack_middleware/health_check.rb:12:in `call'
{"method":"GET","path":"/500","format":"html","controller":"ErrorsController","action":"server_error","status":500,"duration":11.72,"view":0.0,"db":0.05,"params":{},"host":null,"community_id":null,"current_user_id":null,"user_agent":null,"referer":null,"forwarded_for":null,"request_uuid":null}
Error during failsafe response: The asset "favicon.ico" is not present in the asset pipeline.
/home/ubuntu/.gem/ruby/2.3.4/gems/sprockets-rails-3.2.0/lib/sprockets/rails/helper.rb:83:in `compute_asset_path'
/home/ubuntu/.gem/ruby/2.3.4/gems/actionview-5.1.1/lib/action_view/helpers/asset_url_helper.rb:198:in `asset_path'
/home/ubuntu/my_app123/app/models/community.rb:246:in `block in <class:Community>'
/home/ubuntu/.gem/ruby/2.3.4/gems/paperclip-5.2.1/lib/paperclip/url_generator.rb:26:in `default_url'
/home/ubuntu/.gem/ruby/2.3.4/gems/paperclip-5.2.1/lib/paperclip/url_generator.rb:36:in `most_appropriate_url'
/home/ubuntu/.gem/ruby/2.3.4/gems/delayed_paperclip-3.0.1/lib/delayed_paperclip/url_generator.rb:38:in `most_appropriate_url'
/home/ubuntu/.gem/ruby/2.3.4/gems/delayed_paperclip-3.0.1/lib/delayed_paperclip/url_generator.rb:12:in `for'
/home/ubuntu/.gem/ruby/2.3.4/gems/paperclip-5.2.1/lib/paperclip/attachment.rb:148:in `url'
/home/ubuntu/.gem/ruby/2.3.4/gems/paperclip-5.2.1/lib/paperclip/attachment.rb:189:in `to_s'
/home/ubuntu/.gem/ruby/2.3.4/gems/actionview-5.1.1/lib/action_view/buffers.rb:12:in `<<'
/home/ubuntu/my_app123/app/views/layouts/blank_layout.erb:78:in `block in _app_views_layouts_blank_layout_erb__3313845626693810182_47226944981820'
/home/ubuntu/.gem/ruby/2.3.4/gems/possibly-1.0.1/lib/possibly.rb:6:in `each'
/home/ubuntu/.gem/ruby/2.3.4/gems/possibly-1.0.1/lib/possibly.rb:6:in `block (2 levels) in <class:Maybe>'
/home/ubuntu/my_app123/app/views/layouts/blank_layout.erb:77:in `_app_views_layouts_blank_layout_erb__3313845626693810182_47226944981820'
/home/ubuntu/.gem/ruby/2.3.4/gems/actionview-5.1.1/lib/action_view/template.rb:157:in `block in render'
/home/ubuntu/.gem/ruby/2.3.4/gems/activesupport-5.1.1/lib/active_support/notifications.rb:166:in `block in instrument'
/home/ubuntu/.gem/ruby/2.3.4/gems/activesupport-5.1.1/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
/home/ubuntu/.gem/ruby/2.3.4/gems/activesupport-5.1.1/lib/active_support/notifications.rb:166:in `instrument'
/home/ubuntu/.gem/ruby/2.3.4/gems/actionview-5.1.1/lib/action_view/template.rb:352:in `instrument_render_template'
/home/ubuntu/.gem/ruby/2.3.4/gems/actionview-5.1.1/lib/action_view/template.rb:155:in `render'
/home/ubuntu/.gem/ruby/2.3.4/gems/actionview-5.1.1/lib/action_view/renderer/template_renderer.rb:64:in `render_with_layout'
/home/ubuntu/.gem/ruby/2.3.4/gems/actionview-5.1.1/lib/action_view/renderer/template_renderer.rb:50:in `render_template'
/home/ubuntu/.gem/ruby/2.3.4/gems/actionview-5.1.1/lib/action_view/renderer/template_renderer.rb:14:in `render'
/home/ubuntu/.gem/ruby/2.3.4/gems/actionview-5.1.1/lib/action_view/renderer/renderer.rb:42:in `render_template'
/home/ubuntu/.gem/ruby/2.3.4/gems/actionview-5.1.1/lib/action_view/renderer/renderer.rb:23:in `render'
/home/ubuntu/.gem/ruby/2.3.4/gems/actionview-5.1.1/lib/action_view/rendering.rb:103:in `_render_template'
/home/ubuntu/.gem/ruby/2.3.4/gems/actionpack-5.1.1/lib/action_controller/metal/streaming.rb:217:in `_render_template'
/home/ubuntu/.gem/ruby/2.3.4/gems/actionview-5.1.1/lib/action_view/rendering.rb:83:in `render_to_body'
/home/ubuntu/.gem/ruby/2.3.4/gems/actionpack-5.1.1/lib/action_controller/metal/rendering.rb:52:in `render_to_body'
/home/ubuntu/.gem/ruby/2.3.4/gems/actionpack-5.1.1/lib/action_controller/metal/renderers.rb:141:in `render_to_body'
/home/ubuntu/.gem/ruby/2.3.4/gems/actionpack-5.1.1/lib/abstract_controller/rendering.rb:24:in `render'
/home/ubuntu/.gem/ruby/2.3.4/gems/actionpack-5.1.1/lib/action_controller/metal/rendering.rb:36:in `render'
/home/ubuntu/.gem/ruby/2.3.4/gems/actionpack-5.1.1/lib/action_controller/metal/instrumentation.rb:44:in `block (2 levels) in render'
/home/ubuntu/.gem/ruby/2.3.4/gems/activesupport-5.1.1/lib/active_support/core_ext/benchmark.rb:12:in `block in ms'
/home/ubuntu/.rubies/ruby-2.3.4/lib/ruby/2.3.0/benchmark.rb:308:in `realtime'
/home/ubuntu/.gem/ruby/2.3.4/gems/activesupport-5.1.1/lib/active_support/core_ext/benchmark.rb:12:in `ms'
/home/ubuntu/.gem/ruby/2.3.4/gems/actionpack-5.1.1/lib/action_controller/metal/instrumentation.rb:44:in `block in render'
/home/ubuntu/.gem/ruby/2.3.4/gems/actionpack-5.1.1/lib/action_controller/metal/instrumentation.rb:87:in `cleanup_view_runtime'
/home/ubuntu/.gem/ruby/2.3.4/gems/activerecord-5.1.1/lib/active_record/railties/controller_runtime.rb:29:in `cleanup_view_runtime'
/home/ubuntu/.gem/ruby/2.3.4/gems/actionpack-5.1.1/lib/action_controller/metal/instrumentation.rb:43:in `render'
/home/ubuntu/my_app123/app/controllers/errors_controller.rb:10:in `server_error'
/home/ubuntu/.gem/ruby/2.3.4/gems/actionpack-5.1.1/lib/action_controller/metal/basic_implicit_render.rb:4:in `send_action'
/home/ubuntu/.gem/ruby/2.3.4/gems/actionpack-5.1.1/lib/abstract_controller/base.rb:186:in `process_action'
/home/ubuntu/.gem/ruby/2.3.4/gems/actionpack-5.1.1/lib/action_controller/metal/rendering.rb:30:in `process_action'
/home/ubuntu/.gem/ruby/2.3.4/gems/actionpack-5.1.1/lib/abstract_controller/callbacks.rb:20:in `block in process_action'
/home/ubuntu/.gem/ruby/2.3.4/gems/activesupport-5.1.1/lib/active_support/callbacks.rb:131:in `run_callbacks'
/home/ubuntu/.gem/ruby/2.3.4/gems/actionpack-5.1.1/lib/abstract_controller/callbacks.rb:19:in `process_action'
/home/ubuntu/.gem/ruby/2.3.4/gems/actionpack-5.1.1/lib/action_controller/metal/rescue.rb:20:in `process_action'
/home/ubuntu/.gem/ruby/2.3.4/gems/actionpack-5.1.1/lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'
/home/ubuntu/.gem/ruby/2.3.4/gems/activesupport-5.1.1/lib/active_support/notifications.rb:166:in `block in instrument'
/home/ubuntu/.gem/ruby/2.3.4/gems/activesupport-5.1.1/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
/home/ubuntu/.gem/ruby/2.3.4/gems/activesupport-5.1.1/lib/active_support/notifications.rb:166:in `instrument'
/home/ubuntu/.gem/ruby/2.3.4/gems/actionpack-5.1.1/lib/action_controller/metal/instrumentation.rb:30:in `process_action'
/home/ubuntu/.gem/ruby/2.3.4/gems/actionpack-5.1.1/lib/action_controller/metal/params_wrapper.rb:252:in `process_action'
/home/ubuntu/.gem/ruby/2.3.4/gems/activerecord-5.1.1/lib/active_record/railties/controller_runtime.rb:22:in `process_action'
/home/ubuntu/.gem/ruby/2.3.4/gems/actionpack-5.1.1/lib/abstract_controller/base.rb:124:in `process'
/home/ubuntu/.gem/ruby/2.3.4/gems/actionview-5.1.1/lib/action_view/rendering.rb:30:in `process'
/home/ubuntu/.gem/ruby/2.3.4/gems/actionpack-5.1.1/lib/action_controller/metal.rb:189:in `dispatch'
/home/ubuntu/.gem/ruby/2.3.4/gems/actionpack-5.1.1/lib/action_controller/metal.rb:253:in `dispatch'
/home/ubuntu/.gem/ruby/2.3.4/gems/actionpack-5.1.1/lib/action_dispatch/routing/route_set.rb:49:in `dispatch'
/home/ubuntu/.gem/ruby/2.3.4/gems/actionpack-5.1.1/lib/action_dispatch/routing/route_set.rb:31:in `serve'
/home/ubuntu/.gem/ruby/2.3.4/gems/actionpack-5.1.1/lib/action_dispatch/journey/router.rb:46:in `block in serve'
/home/ubuntu/.gem/ruby/2.3.4/gems/actionpack-5.1.1/lib/action_dispatch/journey/router.rb:33:in `each'
/home/ubuntu/.gem/ruby/2.3.4/gems/actionpack-5.1.1/lib/action_dispatch/journey/router.rb:33:in `serve'
/home/ubuntu/.gem/ruby/2.3.4/gems/actionpack-5.1.1/lib/action_dispatch/routing/route_set.rb:832:in `call'
/home/ubuntu/.gem/ruby/2.3.4/gems/actionpack-5.1.1/lib/action_dispatch/middleware/show_exceptions.rb:49:in `render_exception'
/home/ubuntu/.gem/ruby/2.3.4/gems/actionpack-5.1.1/lib/action_dispatch/middleware/show_exceptions.rb:34:in `rescue in call'
/home/ubuntu/.gem/ruby/2.3.4/gems/actionpack-5.1.1/lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
/home/ubuntu/.gem/ruby/2.3.4/gems/newrelic_rpm-4.2.0.334/lib/new_relic/agent/instrumentation/middleware_tracing.rb:92:in `call'
/home/ubuntu/.gem/ruby/2.3.4/gems/lograge-0.5.1/lib/lograge/rails_ext/rack/logger.rb:15:in `call_app'
/home/ubuntu/.gem/ruby/2.3.4/gems/railties-5.1.1/lib/rails/rack/logger.rb:24:in `block in call'
/home/ubuntu/.gem/ruby/2.3.4/gems/activesupport-5.1.1/lib/active_support/tagged_logging.rb:69:in `block in tagged'
/home/ubuntu/.gem/ruby/2.3.4/gems/activesupport-5.1.1/lib/active_support/tagged_logging.rb:26:in `tagged'
/home/ubuntu/.gem/ruby/2.3.4/gems/activesupport-5.1.1/lib/active_support/tagged_logging.rb:69:in `tagged'
/home/ubuntu/.gem/ruby/2.3.4/gems/railties-5.1.1/lib/rails/rack/logger.rb:24:in `call'
/home/ubuntu/.gem/ruby/2.3.4/gems/newrelic_rpm-4.2.0.334/lib/new_relic/agent/instrumentation/middleware_tracing.rb:92:in `call'
/home/ubuntu/.gem/ruby/2.3.4/gems/actionpack-5.1.1/lib/action_dispatch/middleware/remote_ip.rb:79:in `call'
/home/ubuntu/.gem/ruby/2.3.4/gems/newrelic_rpm-4.2.0.334/lib/new_relic/agent/instrumentation/middleware_tracing.rb:92:in `call'
/home/ubuntu/.gem/ruby/2.3.4/gems/request_store-1.3.2/lib/request_store/middleware.rb:9:in `call'
/home/ubuntu/.gem/ruby/2.3.4/gems/newrelic_rpm-4.2.0.334/lib/new_relic/agent/instrumentation/middleware_tracing.rb:92:in `call'
/home/ubuntu/.gem/ruby/2.3.4/gems/actionpack-5.1.1/lib/action_dispatch/middleware/request_id.rb:25:in `call'
/home/ubuntu/.gem/ruby/2.3.4/gems/newrelic_rpm-4.2.0.334/lib/new_relic/agent/instrumentation/middleware_tracing.rb:92:in `call'
/home/ubuntu/.gem/ruby/2.3.4/gems/rack-2.0.5/lib/rack/method_override.rb:22:in `call'
/home/ubuntu/.gem/ruby/2.3.4/gems/newrelic_rpm-4.2.0.334/lib/new_relic/agent/instrumentation/middleware_tracing.rb:92:in `call'
/home/ubuntu/.gem/ruby/2.3.4/gems/rack-2.0.5/lib/rack/runtime.rb:22:in `call'
/home/ubuntu/.gem/ruby/2.3.4/gems/newrelic_rpm-4.2.0.334/lib/new_relic/agent/instrumentation/middleware_tracing.rb:92:in `call'
/home/ubuntu/.gem/ruby/2.3.4/gems/activesupport-5.1.1/lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call'
/home/ubuntu/.gem/ruby/2.3.4/gems/newrelic_rpm-4.2.0.334/lib/new_relic/agent/instrumentation/middleware_tracing.rb:92:in `call'
/home/ubuntu/.gem/ruby/2.3.4/gems/actionpack-5.1.1/lib/action_dispatch/middleware/executor.rb:12:in `call'
/home/ubuntu/.gem/ruby/2.3.4/gems/newrelic_rpm-4.2.0.334/lib/new_relic/agent/instrumentation/middleware_tracing.rb:92:in `call'
/home/ubuntu/.gem/ruby/2.3.4/gems/actionpack-5.1.1/lib/action_dispatch/middleware/static.rb:125:in `call'
/home/ubuntu/.gem/ruby/2.3.4/gems/newrelic_rpm-4.2.0.334/lib/new_relic/agent/instrumentation/middleware_tracing.rb:92:in `call'
/home/ubuntu/.gem/ruby/2.3.4/gems/rack-2.0.5/lib/rack/sendfile.rb:111:in `call'
/home/ubuntu/.gem/ruby/2.3.4/gems/newrelic_rpm-4.2.0.334/lib/new_relic/agent/instrumentation/middleware_tracing.rb:92:in `call'
/home/ubuntu/my_app123/lib/rack_middleware/enforce_ssl.rb:23:in `call'
/home/ubuntu/.gem/ruby/2.3.4/gems/newrelic_rpm-4.2.0.334/lib/new_relic/agent/instrumentation/middleware_tracing.rb:92:in `call'
/home/ubuntu/my_app123/lib/rack_middleware/health_check.rb:12:in `call'
/home/ubuntu/.gem/ruby/2.3.4/gems/newrelic_rpm-4.2.0.334/lib/new_relic/agent/instrumentation/middleware_tracing.rb:92:in `call'
/home/ubuntu/.gem/ruby/2.3.4/gems/railties-5.1.1/lib/rails/engine.rb:522:in `call'
/home/ubuntu/.gem/ruby/2.3.4/gems/railties-5.1.1/lib/rails/railtie.rb:185:in `public_send'
/home/ubuntu/.gem/ruby/2.3.4/gems/railties-5.1.1/lib/rails/railtie.rb:185:in `method_missing'
/home/ubuntu/.gem/ruby/2.3.4/gems/newrelic_rpm-4.2.0.334/lib/new_relic/agent/instrumentation/middleware_tracing.rb:92:in `call'
/home/ubuntu/.gem/ruby/2.3.4/gems/rack-2.0.5/lib/rack/deflater.rb:34:in `call'
/home/ubuntu/.gem/ruby/2.3.4/gems/newrelic_rpm-4.2.0.334/lib/new_relic/agent/instrumentation/middleware_tracing.rb:92:in `call'
/home/ubuntu/.gem/ruby/2.3.4/gems/rack-2.0.5/lib/rack/handler/webrick.rb:86:in `service'
/home/ubuntu/.rubies/ruby-2.3.4/lib/ruby/2.3.0/webrick/httpserver.rb:140:in `service'
/home/ubuntu/.rubies/ruby-2.3.4/lib/ruby/2.3.0/webrick/httpserver.rb:96:in `run'
/home/ubuntu/.rubies/ruby-2.3.4/lib/ruby/2.3.0/webrick/server.rb:296:in `block in start_thread'
127.0.0.1 - - [03/Jul/2018:05:02:59 UTC] "GET / HTTP/1.0" 500 154
How to fix it?