My ruby on rails app breaks when making a new user deployed to production.
User seems to be created according to logs yet email is not actually delivered and web app breaks.
Only thing I can come up with is that the host/mail server is closing my connection when the mailer tries to sign in.
Any suggestions ? I am going to try to use "send grid" and see if that makes it go away however their approval process is taking longer than expected in the meantime i'd like to see if I can solve this without having to use "send grid".
I am using devise for authentication and devise mailer to mail a welcome email upon user creation.
I am using a privateemail.com email account with my custom domain to send the email.
I have checked my credentials and they are correct.
The settings for the mailer are as follows. I used the suggested smtp settings from namecheap.com.
ActionMailer::Base.delivery_method = :smtp
ActionMailer::Base.perform_deliveries = true
ActionMailer::Base.raise_delivery_errors = true
ActionMailer::Base.smtp_settings = {
:enable_starttls_auto => true,
:address => 'mail.privateemail.com',
:port => 465,
:tls => false,
:domain => 'customdomain.com',
:authentication => :plain,
:user_name => ENV['EMAIL_USERNAME'],
:password => ENV['EMAIL_PASSWORD']
}
# config.action_mailer_host
config.action_mailer.default_url_options = { host: 'customdomain.com'}
2022-06-30T06:42:37.359757+00:00 app[web.1]: I, [2022-06-30T06:42:37.359677 #8] INFO -- : [0b4db766-b2d9-401d-b8f3-5f46759967ff] Delivered mail 62bd45d32e788_865e059762#08b9bfd2-c02f-4379-9217-508e97422a06.mail (10171.1ms)
2022-06-30T06:42:37.360082+00:00 app[web.1]: I, [2022-06-30T06:42:37.360036 #8] INFO -- : [0b4db766-b2d9-401d-b8f3-5f46759967ff] Completed 500 Internal Server Error in 10514ms (ActiveRecord: 26.8ms | Allocations: 14371)
2022-06-30T06:42:37.361221+00:00 app[web.1]: F, [2022-06-30T06:42:37.361158 #8] FATAL -- : [0b4db766-b2d9-401d-b8f3-5f46759967ff]
2022-06-30T06:42:37.361222+00:00 app[web.1]: [0b4db766-b2d9-401d-b8f3-5f46759967ff] Errno::ECONNRESET (Connection reset by peer):
2022-06-30T06:42:37.361223+00:00 app[web.1]: [0b4db766-b2d9-401d-b8f3-5f46759967ff]
2022-06-30T06:42:37.361223+00:00 app[web.1]: [0b4db766-b2d9-401d-b8f3-5f46759967ff] vendor/ruby-3.0.1/lib/ruby/3.0.0/socket.rb:452:in `__read_nonblock'
2022-06-30T06:42:37.361223+00:00 app[web.1]: [0b4db766-b2d9-401d-b8f3-5f46759967ff] vendor/ruby-3.0.1/lib/ruby/3.0.0/socket.rb:452:in `read_nonblock'
2022-06-30T06:42:37.361224+00:00 app[web.1]: [0b4db766-b2d9-401d-b8f3-5f46759967ff] vendor/ruby-3.0.1/lib/ruby/3.0.0/net/protocol.rb:212:in `rbuf_fill'
2022-06-30T06:42:37.361224+00:00 app[web.1]: [0b4db766-b2d9-401d-b8f3-5f46759967ff] vendor/ruby-3.0.1/lib/ruby/3.0.0/net/protocol.rb:193:in `readuntil'
2022-06-30T06:42:37.361224+00:00 app[web.1]: [0b4db766-b2d9-401d-b8f3-5f46759967ff] vendor/ruby-3.0.1/lib/ruby/3.0.0/net/protocol.rb:203:in `readline'
2022-06-30T06:42:37.361225+00:00 app[web.1]: [0b4db766-b2d9-401d-b8f3-5f46759967ff] vendor/ruby-3.0.1/lib/ruby/3.0.0/net/smtp.rb:984:in `recv_response'
2022-06-30T06:42:37.361225+00:00 app[web.1]: [0b4db766-b2d9-401d-b8f3-5f46759967ff] vendor/ruby-3.0.1/lib/ruby/3.0.0/net/smtp.rb:592:in `block in do_start'
2022-06-30T06:42:37.361225+00:00 app[web.1]: [0b4db766-b2d9-401d-b8f3-5f46759967ff] vendor/ruby-3.0.1/lib/ruby/3.0.0/net/smtp.rb:994:in `critical'
2022-06-30T06:42:37.361225+00:00 app[web.1]: [0b4db766-b2d9-401d-b8f3-5f46759967ff] vendor/ruby-3.0.1/lib/ruby/3.0.0/net/smtp.rb:592:in `do_start'
2022-06-30T06:42:37.361226+00:00 app[web.1]: [0b4db766-b2d9-401d-b8f3-5f46759967ff] vendor/ruby-3.0.1/lib/ruby/3.0.0/net/smtp.rb:557:in `start'
2022-06-30T06:42:37.361226+00:00 app[web.1]: [0b4db766-b2d9-401d-b8f3-5f46759967ff] mail (2.7.1) lib/mail/network/delivery_methods/smtp.rb:109:in `start_smtp_session'
2022-06-30T06:42:37.361226+00:00 app[web.1]: [0b4db766-b2d9-401d-b8f3-5f46759967ff] mail (2.7.1) lib/mail/network/delivery_methods/smtp.rb:100:in `deliver!'
2022-06-30T06:42:37.361227+00:00 app[web.1]: [0b4db766-b2d9-401d-b8f3-5f46759967ff] mail (2.7.1) lib/mail/message.rb:2159:in `do_delivery'
2022-06-30T06:42:37.361227+00:00 app[web.1]: [0b4db766-b2d9-401d-b8f3-5f46759967ff] mail (2.7.1) lib/mail/message.rb:260:in `block in deliver'
2022-06-30T06:42:37.361227+00:00 app[web.1]: [0b4db766-b2d9-401d-b8f3-5f46759967ff] actionmailer (6.1.4) lib/action_mailer/base.rb:559:in `block in deliver_mail'
2022-06-30T06:42:37.361228+00:00 app[web.1]: [0b4db766-b2d9-401d-b8f3-5f46759967ff] activesupport (6.1.4) lib/active_support/notifications.rb:203:in `block in instrument'
2022-06-30T06:42:37.361228+00:00 app[web.1]: [0b4db766-b2d9-401d-b8f3-5f46759967ff] activesupport (6.1.4) lib/active_support/notifications/instrumenter.rb:24:in `instrument'
2022-06-30T06:42:37.361229+00:00 app[web.1]: [0b4db766-b2d9-401d-b8f3-5f46759967ff] activesupport (6.1.4) lib/active_support/notifications.rb:203:in `instrument'
2022-06-30T06:42:37.361229+00:00 app[web.1]: [0b4db766-b2d9-401d-b8f3-5f46759967ff] actionmailer (6.1.4) lib/action_mailer/base.rb:557:in `deliver_mail'
2022-06-30T06:42:37.361229+00:00 app[web.1]: [0b4db766-b2d9-401d-b8f3-5f46759967ff] mail (2.7.1) lib/mail/message.rb:260:in `deliver'
2022-06-30T06:42:37.361229+00:00 app[web.1]: [0b4db766-b2d9-401d-b8f3-5f46759967ff] actionmailer (6.1.4) lib/action_mailer/message_delivery.rb:119:in `block in deliver_now'
2022-06-30T06:42:37.361230+00:00 app[web.1]: [0b4db766-b2d9-401d-b8f3-5f46759967ff] actionmailer (6.1.4) lib/action_mailer/rescuable.rb:17:in `handle_exceptions'
2022-06-30T06:42:37.361230+00:00 app[web.1]: [0b4db766-b2d9-401d-b8f3-5f46759967ff] actionmailer (6.1.4) lib/action_mailer/message_delivery.rb:118:in `deliver_now'
2022-06-30T06:42:37.361231+00:00 app[web.1]: [0b4db766-b2d9-401d-b8f3-5f46759967ff] devise (4.8.0) lib/devise/models/authenticatable.rb:204:in `send_devise_notification'
2022-06-30T06:42:37.361231+00:00 app[web.1]: [0b4db766-b2d9-401d-b8f3-5f46759967ff] devise (4.8.0) lib/devise/models/confirmable.rb:121:in `send_confirmation_instructions'
2022-06-30T06:42:37.361231+00:00 app[web.1]: [0b4db766-b2d9-401d-b8f3-5f46759967ff] devise (4.8.0) lib/devise/models/confirmable.rb:183:in `send_on_create_confirmation_instructions'
2022-06-30T06:42:37.361232+00:00 app[web.1]: [0b4db766-b2d9-401d-b8f3-5f46759967ff] activesupport (6.1.4) lib/active_support/callbacks.rb:427:in `block in make_lambda'
2022-06-30T06:42:37.361232+00:00 app[web.1]: [0b4db766-b2d9-401d-b8f3-5f46759967ff] activesupport (6.1.4) lib/active_support/callbacks.rb:260:in `block in conditional'
2022-06-30T06:42:37.361232+00:00 app[web.1]: [0b4db766-b2d9-401d-b8f3-5f46759967ff] activesupport (6.1.4) lib/active_support/callbacks.rb:516:in `block in invoke_after'
2022-06-30T06:42:37.361232+00:00 app[web.1]: [0b4db766-b2d9-401d-b8f3-5f46759967ff] activesupport (6.1.4) lib/active_support/callbacks.rb:516:in `each'
2022-06-30T06:42:37.361232+00:00 app[web.1]: [0b4db766-b2d9-401d-b8f3-5f46759967ff] activesupport (6.1.4) lib/active_support/callbacks.rb:516:in `invoke_after'
2022-06-30T06:42:37.361233+00:00 app[web.1]: [0b4db766-b2d9-401d-b8f3-5f46759967ff] activesupport (6.1.4) lib/active_support/callbacks.rb:107:in `run_callbacks'
2022-06-30T06:42:37.361233+00:00 app[web.1]: [0b4db766-b2d9-401d-b8f3-5f46759967ff] activesupport (6.1.4) lib/active_support/callbacks.rb:824:in `_run_commit_callbacks'
2022-06-30T06:42:37.361233+00:00 app[web.1]: [0b4db766-b2d9-401d-b8f3-5f46759967ff] activerecord (6.1.4) lib/active_record/transactions.rb:321:in `committed!'
2022-06-30T06:42:37.361237+00:00 app[web.1]: [0b4db766-b2d9-401d-b8f3-5f46759967ff] activerecord (6.1.4) lib/active_record/connection_adapters/abstract/transaction.rb:155:in `commit_records'
2022-06-30T06:42:37.361238+00:00 app[web.1]: [0b4db766-b2d9-401d-b8f3-5f46759967ff] activerecord (6.1.4) lib/active_record/connection_adapters/abstract/transaction.rb:304:in `block in commit_transaction'
2022-06-30T06:42:37.361239+00:00 app[web.1]: [0b4db766-b2d9-401d-b8f3-5f46759967ff] activesupport (6.1.4) lib/active_support/concurrency/load_interlock_aware_monitor.rb:26:in `block (2 levels) in synchronize'
2022-06-30T06:42:37.361239+00:00 app[web.1]: [0b4db766-b2d9-401d-b8f3-5f46759967ff] activesupport (6.1.4) lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in `handle_interrupt'
2022-06-30T06:42:37.361239+00:00 app[web.1]: [0b4db766-b2d9-401d-b8f3-5f46759967ff] activesupport (6.1.4) lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in `block in synchronize'
2022-06-30T06:42:37.361240+00:00 app[web.1]: [0b4db766-b2d9-401d-b8f3-5f46759967ff] activesupport (6.1.4) lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in `handle_interrupt'
2022-06-30T06:42:37.361240+00:00 app[web.1]: [0b4db766-b2d9-401d-b8f3-5f46759967ff] activesupport (6.1.4) lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in `synchronize'
2022-06-30T06:42:37.361240+00:00 app[web.1]: [0b4db766-b2d9-401d-b8f3-5f46759967ff] activerecord (6.1.4) lib/active_record/connection_adapters/abstract/transaction.rb:294:in `commit_transaction'
2022-06-30T06:42:37.361241+00:00 app[web.1]: [0b4db766-b2d9-401d-b8f3-5f46759967ff] activerecord (6.1.4) lib/active_record/connection_adapters/abstract/transaction.rb:351:in `block in within_new_transaction'
2022-06-30T06:42:37.361241+00:00 app[web.1]: [0b4db766-b2d9-401d-b8f3-5f46759967ff] activesupport (6.1.4) lib/active_support/concurrency/load_interlock_aware_monitor.rb:26:in `block (2 levels) in synchronize'
2022-06-30T06:42:37.361241+00:00 app[web.1]: [0b4db766-b2d9-401d-b8f3-5f46759967ff] activesupport (6.1.4) lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in `handle_interrupt'
2022-06-30T06:42:37.361241+00:00 app[web.1]: [0b4db766-b2d9-401d-b8f3-5f46759967ff] activesupport (6.1.4) lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in `block in synchronize'
2022-06-30T06:42:37.361242+00:00 app[web.1]: [0b4db766-b2d9-401d-b8f3-5f46759967ff] activesupport (6.1.4) lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in `handle_interrupt'
2022-06-30T06:42:37.361242+00:00 app[web.1]: [0b4db766-b2d9-401d-b8f3-5f46759967ff] activesupport (6.1.4) lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in `synchronize'
2022-06-30T06:42:37.361243+00:00 app[web.1]: [0b4db766-b2d9-401d-b8f3-5f46759967ff] activerecord (6.1.4) lib/active_record/connection_adapters/abstract/transaction.rb:317:in `within_new_transaction'
2022-06-30T06:42:37.361243+00:00 app[web.1]: [0b4db766-b2d9-401d-b8f3-5f46759967ff] activerecord (6.1.4) lib/active_record/connection_adapters/abstract/database_statements.rb:320:in `transaction'
2022-06-30T06:42:37.361243+00:00 app[web.1]: [0b4db766-b2d9-401d-b8f3-5f46759967ff] activerecord (6.1.4) lib/active_record/transactions.rb:350:in `with_transaction_returning_status'
2022-06-30T06:42:37.361244+00:00 app[web.1]: [0b4db766-b2d9-401d-b8f3-5f46759967ff] activerecord (6.1.4) lib/active_record/transactions.rb:298:in `save'
2022-06-30T06:42:37.361244+00:00 app[web.1]: [0b4db766-b2d9-401d-b8f3-5f46759967ff] activerecord (6.1.4) lib/active_record/suppressor.rb:44:in `save'
2022-06-30T06:42:37.361244+00:00 app[web.1]: [0b4db766-b2d9-401d-b8f3-5f46759967ff] devise (4.8.0) app/controllers/devise/registrations_controller.rb:19:in `create'
2022-06-30T06:42:37.361244+00:00 app[web.1]: [0b4db766-b2d9-401d-b8f3-5f46759967ff] actionpack (6.1.4) lib/action_controller/metal/basic_implicit_render.rb:6:in `send_action'
2022-06-30T06:42:37.361245+00:00 app[web.1]: [0b4db766-b2d9-401d-b8f3-5f46759967ff] actionpack (6.1.4) lib/abstract_controller/base.rb:228:in `process_action'
2022-06-30T06:42:37.361245+00:00 app[web.1]: [0b4db766-b2d9-401d-b8f3-5f46759967ff] actionpack (6.1.4) lib/action_controller/metal/rendering.rb:30:in `process_action'
2022-06-30T06:42:37.361245+00:00 app[web.1]: [0b4db766-b2d9-401d-b8f3-5f46759967ff] actionpack (6.1.4) lib/abstract_controller/callbacks.rb:42:in `block in process_action'
2022-06-30T06:42:37.361245+00:00 app[web.1]: [0b4db766-b2d9-401d-b8f3-5f46759967ff] activesupport (6.1.4) lib/active_support/callbacks.rb:117:in `block in run_callbacks'
2022-06-30T06:42:37.361246+00:00 app[web.1]: [0b4db766-b2d9-401d-b8f3-5f46759967ff] actiontext (6.1.4) lib/action_text/rendering.rb:20:in `with_renderer'
2022-06-30T06:42:37.361246+00:00 app[web.1]: [0b4db766-b2d9-401d-b8f3-5f46759967ff] actiontext (6.1.4) lib/action_text/engine.rb:59:in `block (4 levels) in <class:Engine>'
2022-06-30T06:42:37.361246+00:00 app[web.1]: [0b4db766-b2d9-401d-b8f3-5f46759967ff] activesupport (6.1.4) lib/active_support/callbacks.rb:126:in `instance_exec'
2022-06-30T06:42:37.361246+00:00 app[web.1]: [0b4db766-b2d9-401d-b8f3-5f46759967ff] activesupport (6.1.4) lib/active_support/callbacks.rb:126:in `block in run_callbacks'
2022-06-30T06:42:37.361249+00:00 app[web.1]: [0b4db766-b2d9-401d-b8f3-5f46759967ff] activesupport (6.1.4) lib/active_support/callbacks.rb:137:in `run_callbacks'
2022-06-30T06:42:37.361249+00:00 app[web.1]: [0b4db766-b2d9-401d-b8f3-5f46759967ff] actionpack (6.1.4) lib/abstract_controller/callbacks.rb:41:in `process_action'
2022-06-30T06:42:37.361249+00:00 app[web.1]: [0b4db766-b2d9-401d-b8f3-5f46759967ff] actionpack (6.1.4) lib/action_controller/metal/rescue.rb:22:in `process_action'
2022-06-30T06:42:37.361250+00:00 app[web.1]: [0b4db766-b2d9-401d-b8f3-5f46759967ff] actionpack (6.1.4) lib/action_controller/metal/instrumentation.rb:34:in `block in process_action'
2022-06-30T06:42:37.361250+00:00 app[web.1]: [0b4db766-b2d9-401d-b8f3-5f46759967ff] activesupport (6.1.4) lib/active_support/notifications.rb:203:in `block in instrument'
2022-06-30T06:42:37.361250+00:00 app[web.1]: [0b4db766-b2d9-401d-b8f3-5f46759967ff] activesupport (6.1.4) lib/active_support/notifications/instrumenter.rb:24:in `instrument'
2022-06-30T06:42:37.361251+00:00 app[web.1]: [0b4db766-b2d9-401d-b8f3-5f46759967ff] activesupport (6.1.4) lib/active_support/notifications.rb:203:in `instrument'
2022-06-30T06:42:37.361251+00:00 app[web.1]: [0b4db766-b2d9-401d-b8f3-5f46759967ff] actionpack (6.1.4) lib/action_controller/metal/instrumentation.rb:33:in `process_action'
2022-06-30T06:42:37.361251+00:00 app[web.1]: [0b4db766-b2d9-401d-b8f3-5f46759967ff] actionpack (6.1.4) lib/action_controller/metal/params_wrapper.rb:249:in `process_action'
2022-06-30T06:42:37.361251+00:00 app[web.1]: [0b4db766-b2d9-401d-b8f3-5f46759967ff] activerecord (6.1.4) lib/active_record/railties/controller_runtime.rb:27:in `process_action'
2022-06-30T06:42:37.361252+00:00 app[web.1]: [0b4db766-b2d9-401d-b8f3-5f46759967ff] actionpack (6.1.4) lib/abstract_controller/base.rb:165:in `process'
2022-06-30T06:42:37.361252+00:00 app[web.1]: [0b4db766-b2d9-401d-b8f3-5f46759967ff] actionview (6.1.4) lib/action_view/rendering.rb:39:in `process'
2022-06-30T06:42:37.361252+00:00 app[web.1]: [0b4db766-b2d9-401d-b8f3-5f46759967ff] actionpack (6.1.4) lib/action_controller/metal.rb:190:in `dispatch'
2022-06-30T06:42:37.361253+00:00 app[web.1]: [0b4db766-b2d9-401d-b8f3-5f46759967ff] actionpack (6.1.4) lib/action_controller/metal.rb:254:in `dispatch'
2022-06-30T06:42:37.361253+00:00 app[web.1]: [0b4db766-b2d9-401d-b8f3-5f46759967ff] actionpack (6.1.4) lib/action_dispatch/routing/route_set.rb:50:in `dispatch'
2022-06-30T06:42:37.361253+00:00 app[web.1]: [0b4db766-b2d9-401d-b8f3-5f46759967ff] actionpack (6.1.4) lib/action_dispatch/routing/route_set.rb:33:in `serve'
2022-06-30T06:42:37.361254+00:00 app[web.1]: [0b4db766-b2d9-401d-b8f3-5f46759967ff] actionpack (6.1.4) lib/action_dispatch/routing/mapper.rb:19:in `block in <class:Constraints>'
2022-06-30T06:42:37.361254+00:00 app[web.1]: [0b4db766-b2d9-401d-b8f3-5f46759967ff] actionpack (6.1.4) lib/action_dispatch/routing/mapper.rb:49:in `serve'
2022-06-30T06:42:37.361254+00:00 app[web.1]: [0b4db766-b2d9-401d-b8f3-5f46759967ff] actionpack (6.1.4) lib/action_dispatch/journey/router.rb:50:in `block in serve'
2022-06-30T06:42:37.361255+00:00 app[web.1]: [0b4db766-b2d9-401d-b8f3-5f46759967ff] actionpack (6.1.4) lib/action_dispatch/journey/router.rb:32:in `each'
2022-06-30T06:42:37.361255+00:00 app[web.1]: [0b4db766-b2d9-401d-b8f3-5f46759967ff] actionpack (6.1.4) lib/action_dispatch/journey/router.rb:32:in `serve'
2022-06-30T06:42:37.361255+00:00 app[web.1]: [0b4db766-b2d9-401d-b8f3-5f46759967ff] actionpack (6.1.4) lib/action_dispatch/routing/route_set.rb:842:in `call'
2022-06-30T06:42:37.361256+00:00 app[web.1]: [0b4db766-b2d9-401d-b8f3-5f46759967ff] warden (1.2.9) lib/warden/manager.rb:36:in `block in call'
2022-06-30T06:42:37.361256+00:00 app[web.1]: [0b4db766-b2d9-401d-b8f3-5f46759967ff] warden (1.2.9) lib/warden/manager.rb:34:in `catch'
2022-06-30T06:42:37.361256+00:00 app[web.1]: [0b4db766-b2d9-401d-b8f3-5f46759967ff] warden (1.2.9) lib/warden/manager.rb:34:in `call'
2022-06-30T06:42:37.361257+00:00 app[web.1]: [0b4db766-b2d9-401d-b8f3-5f46759967ff] rack (2.2.3) lib/rack/tempfile_reaper.rb:15:in `call'
2022-06-30T06:42:37.361257+00:00 app[web.1]: [0b4db766-b2d9-401d-b8f3-5f46759967ff] rack (2.2.3) lib/rack/etag.rb:27:in `call'
2022-06-30T06:42:37.361257+00:00 app[web.1]: [0b4db766-b2d9-401d-b8f3-5f46759967ff] rack (2.2.3) lib/rack/conditional_get.rb:40:in `call'
2022-06-30T06:42:37.361258+00:00 app[web.1]: [0b4db766-b2d9-401d-b8f3-5f46759967ff] rack (2.2.3) lib/rack/head.rb:12:in `call'
2022-06-30T06:42:37.361258+00:00 app[web.1]: [0b4db766-b2d9-401d-b8f3-5f46759967ff] actionpack (6.1.4) lib/action_dispatch/http/permissions_policy.rb:22:in `call'
2022-06-30T06:42:37.361258+00:00 app[web.1]: [0b4db766-b2d9-401d-b8f3-5f46759967ff] actionpack (6.1.4) lib/action_dispatch/http/content_security_policy.rb:18:in `call'
2022-06-30T06:42:37.361259+00:00 app[web.1]: [0b4db766-b2d9-401d-b8f3-5f46759967ff] rack (2.2.3) lib/rack/session/abstract/id.rb:266:in `context'
2022-06-30T06:42:37.361259+00:00 app[web.1]: [0b4db766-b2d9-401d-b8f3-5f46759967ff] rack (2.2.3) lib/rack/session/abstract/id.rb:260:in `call'
2022-06-30T06:42:37.361259+00:00 app[web.1]: [0b4db766-b2d9-401d-b8f3-5f46759967ff] actionpack (6.1.4) lib/action_dispatch/middleware/cookies.rb:689:in `call'
2022-06-30T06:42:37.361259+00:00 app[web.1]: [0b4db766-b2d9-401d-b8f3-5f46759967ff] actionpack (6.1.4) lib/action_dispatch/middleware/callbacks.rb:27:in `block in call'
2022-06-30T06:42:37.361260+00:00 app[web.1]: [0b4db766-b2d9-401d-b8f3-5f46759967ff] activesupport (6.1.4) lib/active_support/callbacks.rb:98:in `run_callbacks'
2022-06-30T06:42:37.361262+00:00 app[web.1]: [0b4db766-b2d9-401d-b8f3-5f46759967ff] actionpack (6.1.4) lib/action_dispatch/middleware/callbacks.rb:26:in `call'
2022-06-30T06:42:37.361263+00:00 app[web.1]: [0b4db766-b2d9-401d-b8f3-5f46759967ff] actionpack (6.1.4) lib/action_dispatch/middleware/actionable_exceptions.rb:18:in `call'
2022-06-30T06:42:37.361263+00:00 app[web.1]: [0b4db766-b2d9-401d-b8f3-5f46759967ff] actionpack (6.1.4) lib/action_dispatch/middleware/debug_exceptions.rb:29:in `call'
2022-06-30T06:42:37.361263+00:00 app[web.1]: [0b4db766-b2d9-401d-b8f3-5f46759967ff] actionpack (6.1.4) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call'
2022-06-30T06:42:37.361263+00:00 app[web.1]: [0b4db766-b2d9-401d-b8f3-5f46759967ff] railties (6.1.4) lib/rails/rack/logger.rb:37:in `call_app'
2022-06-30T06:42:37.361264+00:00 app[web.1]: [0b4db766-b2d9-401d-b8f3-5f46759967ff] railties (6.1.4) lib/rails/rack/logger.rb:26:in `block in call'
2022-06-30T06:42:37.361264+00:00 app[web.1]: [0b4db766-b2d9-401d-b8f3-5f46759967ff] activesupport (6.1.4) lib/active_support/tagged_logging.rb:99:in `block in tagged'
2022-06-30T06:42:37.361264+00:00 app[web.1]: [0b4db766-b2d9-401d-b8f3-5f46759967ff] activesupport (6.1.4) lib/active_support/tagged_logging.rb:37:in `tagged'
2022-06-30T06:42:37.361264+00:00 app[web.1]: [0b4db766-b2d9-401d-b8f3-5f46759967ff] activesupport (6.1.4) lib/active_support/tagged_logging.rb:99:in `tagged'
2022-06-30T06:42:37.361265+00:00 app[web.1]: [0b4db766-b2d9-401d-b8f3-5f46759967ff] railties (6.1.4) lib/rails/rack/logger.rb:26:in `call'
2022-06-30T06:42:37.361265+00:00 app[web.1]: [0b4db766-b2d9-401d-b8f3-5f46759967ff] actionpack (6.1.4) lib/action_dispatch/middleware/remote_ip.rb:81:in `call'
2022-06-30T06:42:37.361265+00:00 app[web.1]: [0b4db766-b2d9-401d-b8f3-5f46759967ff] actionpack (6.1.4) lib/action_dispatch/middleware/request_id.rb:26:in `call'
2022-06-30T06:42:37.361266+00:00 app[web.1]: [0b4db766-b2d9-401d-b8f3-5f46759967ff] rack (2.2.3) lib/rack/method_override.rb:24:in `call'
2022-06-30T06:42:37.361266+00:00 app[web.1]: [0b4db766-b2d9-401d-b8f3-5f46759967ff] rack (2.2.3) lib/rack/runtime.rb:22:in `call'
2022-06-30T06:42:37.361266+00:00 app[web.1]: [0b4db766-b2d9-401d-b8f3-5f46759967ff] activesupport (6.1.4) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call'
2022-06-30T06:42:37.361266+00:00 app[web.1]: [0b4db766-b2d9-401d-b8f3-5f46759967ff] actionpack (6.1.4) lib/action_dispatch/middleware/executor.rb:14:in `call'
2022-06-30T06:42:37.361267+00:00 app[web.1]: [0b4db766-b2d9-401d-b8f3-5f46759967ff] actionpack (6.1.4) lib/action_dispatch/middleware/static.rb:24:in `call'
2022-06-30T06:42:37.361267+00:00 app[web.1]: [0b4db766-b2d9-401d-b8f3-5f46759967ff] rack (2.2.3) lib/rack/sendfile.rb:110:in `call'
2022-06-30T06:42:37.361267+00:00 app[web.1]: [0b4db766-b2d9-401d-b8f3-5f46759967ff] actionpack (6.1.4) lib/action_dispatch/middleware/ssl.rb:77:in `call'
2022-06-30T06:42:37.361267+00:00 app[web.1]: [0b4db766-b2d9-401d-b8f3-5f46759967ff] actionpack (6.1.4) lib/action_dispatch/middleware/host_authorization.rb:92:in `call'
2022-06-30T06:42:37.361268+00:00 app[web.1]: [0b4db766-b2d9-401d-b8f3-5f46759967ff] railties (6.1.4) lib/rails/engine.rb:539:in `call'
2022-06-30T06:42:37.361268+00:00 app[web.1]: [0b4db766-b2d9-401d-b8f3-5f46759967ff] puma (5.3.2) lib/puma/configuration.rb:249:in `call'
2022-06-30T06:42:37.361268+00:00 app[web.1]: [0b4db766-b2d9-401d-b8f3-5f46759967ff] puma (5.3.2) lib/puma/request.rb:77:in `block in handle_request'
2022-06-30T06:42:37.361269+00:00 app[web.1]: [0b4db766-b2d9-401d-b8f3-5f46759967ff] puma (5.3.2) lib/puma/thread_pool.rb:338:in `with_force_shutdown'
2022-06-30T06:42:37.361269+00:00 app[web.1]: [0b4db766-b2d9-401d-b8f3-5f46759967ff] puma (5.3.2) lib/puma/request.rb:76:in `handle_request'
2022-06-30T06:42:37.361269+00:00 app[web.1]: [0b4db766-b2d9-401d-b8f3-5f46759967ff] puma (5.3.2) lib/puma/server.rb:438:in `process_client'
2022-06-30T06:42:37.361269+00:00 app[web.1]: [0b4db766-b2d9-401d-b8f3-5f46759967ff] puma (5.3.2) lib/puma/thread_pool.rb:145:in `block in spawn_thread'
I am a newbie and just started to learn coding with RailsTutorial. I use AWS C9 Ubuntu as is instructed.
At the end of chapter 13, there is an instruction for AWS S3 and I'm supposed to be able to upload image from my own app using S3 bucket. Yet, after uploading image, all I can see is the blank image icon whose link reads like,
"my-app-name.herokuapp.com/rails/active_storage/representations/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBDUT09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--6e6a44c62e3827d7e210d52630982c8828a73e4b/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCam9VY21WemFYcGxYM1J2WDJ4cGJXbDBXd2RwQXZRQmFRTDBBUT09IiwiZXhwIjpudWxsLCJwdXIiOiJ2YXJpYXRpb24ifX0=--1644d67e3b1971d7c6c2be43c754947f51bc334d/img_6627-copy.jpg"
The uploaded image fails to show on the web page
The heroku log reads as shown below and there is an error saying "ArgumentError (wrong number of arguments (given 1, expected 0)):" I changed the image name to be all lowercase since I saw someone pointed it out on the net, yet without avail.
$ heroku logs --tail
`2022-05-13T01:08:16.860200+00:00 app[web.1]: I, [2022-05-13T01:08:16.860119 #20] INFO -- : [06d02bd8-1ebc-4015-8925-63ec84d35cfd] Started GET "/rails/active_storage/representations/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBDUT09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--6e6a44c62e3827d7e210d52630982c8828a73e4b/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCam9VY21WemFYcGxYM1J2WDJ4cGJXbDBXd2RwQXZRQmFRTDBBUT09IiwiZXhwIjpudWxsLCJwdXIiOiJ2YXJpYXRpb24ifX0=--1644d67e3b1971d7c6c2be43c754947f51bc334d/img_6627-copy.jpg" for 218.110.232.237 at 2022-05-13 01:08:16 +0000
2022-05-13T01:08:16.861399+00:00 app[web.1]: I, [2022-05-13T01:08:16.861328 #20] INFO -- : [06d02bd8-1ebc-4015-8925-63ec84d35cfd] Processing by ActiveStorage::RepresentationsController#show as JPEG
2022-05-13T01:08:16.861455+00:00 app[web.1]: I, [2022-05-13T01:08:16.861423 #20] INFO -- : [06d02bd8-1ebc-4015-8925-63ec84d35cfd] Parameters: {"signed_blob_id"=>"eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBDUT09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--6e6a44c62e3827d7e210d52630982c8828a73e4b", "variation_key"=>"eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCam9VY21WemFYcGxYM1J2WDJ4cGJXbDBXd2RwQXZRQmFRTDBBUT09IiwiZXhwIjpudWxsLCJwdXIiOiJ2YXJpYXRpb24ifX0=--1644d67e3b1971d7c6c2be43c754947f51bc334d", "filename"=>"img_6627-copy"}
2022-05-13T01:08:16.895691+00:00 app[web.1]: D, [2022-05-13T01:08:16.895633 #20] DEBUG -- : [06d02bd8-1ebc-4015-8925-63ec84d35cfd] ActiveStorage::Blob Load (1.0ms) SELECT "active_storage_blobs".* FROM "active_storage_blobs" WHERE "active_storage_blobs"."id" = $1 LIMIT $2 [["id", 4], ["LIMIT", 1]]
2022-05-13T01:08:17.505057+00:00 app[web.1]: D, [2022-05-13T01:08:17.504803 #20] DEBUG -- : [06d02bd8-1ebc-4015-8925-63ec84d35cfd] S3 Storage (608.5ms) Checked if file exists at key: variants/d6gum4prxe21jwhticu2jln53k6a/091909a1e0588062e474bcd888ce6b2f4b4c7cc1d762361dbec3cd8025387706 (no)
2022-05-13T01:08:18.349762+00:00 heroku[router]: at=info method=GET path="/rails/active_storage/representations/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBDUT09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--6e6a44c62e3827d7e210d52630982c8828a73e4b/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCam9VY21WemFYcGxYM1J2WDJ4cGJXbDBXd2RwQXZRQmFRTDBBUT09IiwiZXhwIjpudWxsLCJwdXIiOiJ2YXJpYXRpb24ifX0=--1644d67e3b1971d7c6c2be43c754947f51bc334d/img_6627-copy.jpg" host=rt-sample-appp.herokuapp.com request_id=06d02bd8-1ebc-4015-8925-63ec84d35cfd fwd="218.110.232.237" dyno=web.1 connect=0ms service=1617ms status=500 bytes=1891 protocol=https
2022-05-13T01:08:18.472939+00:00 app[web.1]: I, [2022-05-13T01:08:18.472865 #20] INFO -- : [06d02bd8-1ebc-4015-8925-63ec84d35cfd] S3 Storage (967.2ms) Downloaded file from key: d6gum4prxe21jwhticu2jln53k6a
2022-05-13T01:08:18.473979+00:00 app[web.1]: I, [2022-05-13T01:08:18.473941 #20] INFO -- : [06d02bd8-1ebc-4015-8925-63ec84d35cfd] Completed 500 Internal Server Error in 1612ms (ActiveRecord: 11.9ms | Allocations: 10440)
2022-05-13T01:08:18.475294+00:00 app[web.1]: F, [2022-05-13T01:08:18.475036 #20] FATAL -- : [06d02bd8-1ebc-4015-8925-63ec84d35cfd]
2022-05-13T01:08:18.475294+00:00 app[web.1]: [06d02bd8-1ebc-4015-8925-63ec84d35cfd] ArgumentError (wrong number of arguments (given 1, expected 0)):
2022-05-13T01:08:18.475295+00:00 app[web.1]: [06d02bd8-1ebc-4015-8925-63ec84d35cfd]
2022-05-13T01:08:18.475295+00:00 app[web.1]: [06d02bd8-1ebc-4015-8925-63ec84d35cfd] image_processing (1.9.3) lib/image_processing/chainable.rb:66:in `branch'
2022-05-13T01:08:18.475296+00:00 app[web.1]: [06d02bd8-1ebc-4015-8925-63ec84d35cfd] image_processing (1.9.3) lib/image_processing/chainable.rb:62:in `call'
2022-05-13T01:08:18.475297+00:00 app[web.1]: [06d02bd8-1ebc-4015-8925-63ec84d35cfd] activestorage (6.0.4) lib/active_storage/transformers/image_processing_transformer.rb:15:in `process'
2022-05-13T01:08:18.475298+00:00 app[web.1]: [06d02bd8-1ebc-4015-8925-63ec84d35cfd] activestorage (6.0.4) lib/active_storage/transformers/transformer.rb:25:in `transform'
2022-05-13T01:08:18.475298+00:00 app[web.1]: [06d02bd8-1ebc-4015-8925-63ec84d35cfd] activestorage (6.0.4) app/models/active_storage/variation.rb:52:in `block in transform'
2022-05-13T01:08:18.475298+00:00 app[web.1]: [06d02bd8-1ebc-4015-8925-63ec84d35cfd] activesupport (6.0.4) lib/active_support/notifications.rb:182:in `instrument'
2022-05-13T01:08:18.475298+00:00 app[web.1]: [06d02bd8-1ebc-4015-8925-63ec84d35cfd] activestorage (6.0.4) app/models/active_storage/variation.rb:51:in `transform'
2022-05-13T01:08:18.475299+00:00 app[web.1]: [06d02bd8-1ebc-4015-8925-63ec84d35cfd] activestorage (6.0.4) app/models/active_storage/variant.rb:105:in `transform'
2022-05-13T01:08:18.475299+00:00 app[web.1]: [06d02bd8-1ebc-4015-8925-63ec84d35cfd] activestorage (6.0.4) app/models/active_storage/variant.rb:100:in `block in process'
2022-05-13T01:08:18.475299+00:00 app[web.1]: [06d02bd8-1ebc-4015-8925-63ec84d35cfd] activestorage (6.0.4) lib/active_storage/downloader.rb:15:in `block in open'
2022-05-13T01:08:18.475299+00:00 app[web.1]: [06d02bd8-1ebc-4015-8925-63ec84d35cfd] activestorage (6.0.4) lib/active_storage/downloader.rb:24:in `open_tempfile'
2022-05-13T01:08:18.475299+00:00 app[web.1]: [06d02bd8-1ebc-4015-8925-63ec84d35cfd] activestorage (6.0.4) lib/active_storage/downloader.rb:12:in `open'
2022-05-13T01:08:18.475300+00:00 app[web.1]: [06d02bd8-1ebc-4015-8925-63ec84d35cfd] activestorage (6.0.4) lib/active_storage/service.rb:87:in `open'
2022-05-13T01:08:18.475300+00:00 app[web.1]: [06d02bd8-1ebc-4015-8925-63ec84d35cfd] activestorage (6.0.4) app/models/active_storage/blob.rb:217:in `open'
2022-05-13T01:08:18.475300+00:00 app[web.1]: [06d02bd8-1ebc-4015-8925-63ec84d35cfd] activestorage (6.0.4) app/models/active_storage/variant.rb:99:in `process'
2022-05-13T01:08:18.475300+00:00 app[web.1]: [06d02bd8-1ebc-4015-8925-63ec84d35cfd] activestorage (6.0.4) app/models/active_storage/variant.rb:67:in `processed'
2022-05-13T01:08:18.475300+00:00 app[web.1]: [06d02bd8-1ebc-4015-8925-63ec84d35cfd] activestorage (6.0.4) app/controllers/active_storage/representations_controller.rb:12:in `show'
2022-05-13T01:08:18.475301+00:00 app[web.1]: [06d02bd8-1ebc-4015-8925-63ec84d35cfd] actionpack (6.0.4) lib/action_controller/metal/basic_implicit_render.rb:6:in `send_action'
2022-05-13T01:08:18.475301+00:00 app[web.1]: [06d02bd8-1ebc-4015-8925-63ec84d35cfd] actionpack (6.0.4) lib/abstract_controller/base.rb:195:in `process_action'
2022-05-13T01:08:18.475312+00:00 app[web.1]: [06d02bd8-1ebc-4015-8925-63ec84d35cfd] actionpack (6.0.4) lib/action_controller/metal/rendering.rb:30:in `process_action'
2022-05-13T01:08:18.475313+00:00 app[web.1]: [06d02bd8-1ebc-4015-8925-63ec84d35cfd] actionpack (6.0.4) lib/abstract_controller/callbacks.rb:42:in `block in process_action'
2022-05-13T01:08:18.475313+00:00 app[web.1]: [06d02bd8-1ebc-4015-8925-63ec84d35cfd] activesupport (6.0.4) lib/active_support/callbacks.rb:135:in `run_callbacks'
2022-05-13T01:08:18.475313+00:00 app[web.1]: [06d02bd8-1ebc-4015-8925-63ec84d35cfd] actionpack (6.0.4) lib/abstract_controller/callbacks.rb:41:in `process_action'
2022-05-13T01:08:18.475313+00:00 app[web.1]: [06d02bd8-1ebc-4015-8925-63ec84d35cfd] actionpack (6.0.4) lib/action_controller/metal/rescue.rb:22:in `process_action'
2022-05-13T01:08:18.475313+00:00 app[web.1]: [06d02bd8-1ebc-4015-8925-63ec84d35cfd] actionpack (6.0.4) lib/action_controller/metal/instrumentation.rb:33:in `block in process_action'
2022-05-13T01:08:18.475314+00:00 app[web.1]: [06d02bd8-1ebc-4015-8925-63ec84d35cfd] activesupport (6.0.4) lib/active_support/notifications.rb:180:in `block in instrument'
2022-05-13T01:08:18.475314+00:00 app[web.1]: [06d02bd8-1ebc-4015-8925-63ec84d35cfd] activesupport (6.0.4) lib/active_support/notifications/instrumenter.rb:24:in `instrument'
2022-05-13T01:08:18.475314+00:00 app[web.1]: [06d02bd8-1ebc-4015-8925-63ec84d35cfd] activesupport (6.0.4) lib/active_support/notifications.rb:180:in `instrument'
2022-05-13T01:08:18.475314+00:00 app[web.1]: [06d02bd8-1ebc-4015-8925-63ec84d35cfd] actionpack (6.0.4) lib/action_controller/metal/instrumentation.rb:32:in `process_action'
2022-05-13T01:08:18.475314+00:00 app[web.1]: [06d02bd8-1ebc-4015-8925-63ec84d35cfd] actionpack (6.0.4) lib/action_controller/metal/params_wrapper.rb:245:in `process_action'
2022-05-13T01:08:18.475315+00:00 app[web.1]: [06d02bd8-1ebc-4015-8925-63ec84d35cfd] activerecord (6.0.4) lib/active_record/railties/controller_runtime.rb:27:in `process_action'
2022-05-13T01:08:18.475315+00:00 app[web.1]: [06d02bd8-1ebc-4015-8925-63ec84d35cfd] actionpack (6.0.4) lib/abstract_controller/base.rb:136:in `process'
2022-05-13T01:08:18.475317+00:00 app[web.1]: [06d02bd8-1ebc-4015-8925-63ec84d35cfd] actionview (6.0.4) lib/action_view/rendering.rb:39:in `process'
2022-05-13T01:08:18.475317+00:00 app[web.1]: [06d02bd8-1ebc-4015-8925-63ec84d35cfd] actionpack (6.0.4) lib/action_controller/metal.rb:190:in `dispatch'
2022-05-13T01:08:18.475318+00:00 app[web.1]: [06d02bd8-1ebc-4015-8925-63ec84d35cfd] actionpack (6.0.4) lib/action_controller/metal.rb:254:in `dispatch'
2022-05-13T01:08:18.475318+00:00 app[web.1]: [06d02bd8-1ebc-4015-8925-63ec84d35cfd] actionpack (6.0.4) lib/action_dispatch/routing/route_set.rb:50:in `dispatch'
2022-05-13T01:08:18.475318+00:00 app[web.1]: [06d02bd8-1ebc-4015-8925-63ec84d35cfd] actionpack (6.0.4) lib/action_dispatch/routing/route_set.rb:33:in `serve'
2022-05-13T01:08:18.475318+00:00 app[web.1]: [06d02bd8-1ebc-4015-8925-63ec84d35cfd] actionpack (6.0.4) lib/action_dispatch/journey/router.rb:49:in `block in serve'
2022-05-13T01:08:18.475319+00:00 app[web.1]: [06d02bd8-1ebc-4015-8925-63ec84d35cfd] actionpack (6.0.4) lib/action_dispatch/journey/router.rb:32:in `each'
2022-05-13T01:08:18.475319+00:00 app[web.1]: [06d02bd8-1ebc-4015-8925-63ec84d35cfd] actionpack (6.0.4) lib/action_dispatch/journey/router.rb:32:in `serve'
2022-05-13T01:08:18.475319+00:00 app[web.1]: [06d02bd8-1ebc-4015-8925-63ec84d35cfd] actionpack (6.0.4) lib/action_dispatch/routing/route_set.rb:834:in `call'
2022-05-13T01:08:18.475319+00:00 app[web.1]: [06d02bd8-1ebc-4015-8925-63ec84d35cfd] rack (2.2.3) lib/rack/tempfile_reaper.rb:15:in `call'
2022-05-13T01:08:18.475320+00:00 app[web.1]: [06d02bd8-1ebc-4015-8925-63ec84d35cfd] rack (2.2.3) lib/rack/etag.rb:27:in `call'
2022-05-13T01:08:18.475320+00:00 app[web.1]: [06d02bd8-1ebc-4015-8925-63ec84d35cfd] rack (2.2.3) lib/rack/conditional_get.rb:27:in `call'
2022-05-13T01:08:18.475320+00:00 app[web.1]: [06d02bd8-1ebc-4015-8925-63ec84d35cfd] rack (2.2.3) lib/rack/head.rb:12:in `call'
2022-05-13T01:08:18.475320+00:00 app[web.1]: [06d02bd8-1ebc-4015-8925-63ec84d35cfd] actionpack (6.0.4) lib/action_dispatch/http/content_security_policy.rb:18:in `call'
2022-05-13T01:08:18.475320+00:00 app[web.1]: [06d02bd8-1ebc-4015-8925-63ec84d35cfd] rack (2.2.3) lib/rack/session/abstract/id.rb:266:in `context'
2022-05-13T01:08:18.475321+00:00 app[web.1]: [06d02bd8-1ebc-4015-8925-63ec84d35cfd] rack (2.2.3) lib/rack/session/abstract/id.rb:260:in `call'
2022-05-13T01:08:18.475321+00:00 app[web.1]: [06d02bd8-1ebc-4015-8925-63ec84d35cfd] actionpack (6.0.4) lib/action_dispatch/middleware/cookies.rb:654:in `call'
2022-05-13T01:08:18.475321+00:00 app[web.1]: [06d02bd8-1ebc-4015-8925-63ec84d35cfd] actionpack (6.0.4) lib/action_dispatch/middleware/callbacks.rb:27:in `block in call'
2022-05-13T01:08:18.475321+00:00 app[web.1]: [06d02bd8-1ebc-4015-8925-63ec84d35cfd] activesupport (6.0.4) lib/active_support/callbacks.rb:101:in `run_callbacks'
2022-05-13T01:08:18.475321+00:00 app[web.1]: [06d02bd8-1ebc-4015-8925-63ec84d35cfd] actionpack (6.0.4) lib/action_dispatch/middleware/callbacks.rb:26:in `call'
2022-05-13T01:08:18.475321+00:00 app[web.1]: [06d02bd8-1ebc-4015-8925-63ec84d35cfd] actionpack (6.0.4) lib/action_dispatch/middleware/actionable_exceptions.rb:18:in `call'
2022-05-13T01:08:18.475321+00:00 app[web.1]: [06d02bd8-1ebc-4015-8925-63ec84d35cfd] actionpack (6.0.4) lib/action_dispatch/middleware/debug_exceptions.rb:32:in `call'
2022-05-13T01:08:18.475321+00:00 app[web.1]: [06d02bd8-1ebc-4015-8925-63ec84d35cfd] actionpack (6.0.4) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call'
2022-05-13T01:08:18.475322+00:00 app[web.1]: [06d02bd8-1ebc-4015-8925-63ec84d35cfd] railties (6.0.4) lib/rails/rack/logger.rb:37:in `call_app'
2022-05-13T01:08:18.475322+00:00 app[web.1]: [06d02bd8-1ebc-4015-8925-63ec84d35cfd] railties (6.0.4) lib/rails/rack/logger.rb:26:in `block in call'
2022-05-13T01:08:18.475322+00:00 app[web.1]: [06d02bd8-1ebc-4015-8925-63ec84d35cfd] activesupport (6.0.4) lib/active_support/tagged_logging.rb:80:in `block in tagged'
2022-05-13T01:08:18.475322+00:00 app[web.1]: [06d02bd8-1ebc-4015-8925-63ec84d35cfd] activesupport (6.0.4) lib/active_support/tagged_logging.rb:28:in `tagged'
2022-05-13T01:08:18.475322+00:00 app[web.1]: [06d02bd8-1ebc-4015-8925-63ec84d35cfd] activesupport (6.0.4) lib/active_support/tagged_logging.rb:80:in `tagged'
2022-05-13T01:08:18.475322+00:00 app[web.1]: [06d02bd8-1ebc-4015-8925-63ec84d35cfd] railties (6.0.4) lib/rails/rack/logger.rb:26:in `call'
2022-05-13T01:08:18.475322+00:00 app[web.1]: [06d02bd8-1ebc-4015-8925-63ec84d35cfd] actionpack (6.0.4) lib/action_dispatch/middleware/remote_ip.rb:81:in `call'
2022-05-13T01:08:18.475323+00:00 app[web.1]: [06d02bd8-1ebc-4015-8925-63ec84d35cfd] actionpack (6.0.4) lib/action_dispatch/middleware/request_id.rb:27:in `call'
2022-05-13T01:08:18.475323+00:00 app[web.1]: [06d02bd8-1ebc-4015-8925-63ec84d35cfd] rack (2.2.3) lib/rack/method_override.rb:24:in `call'
2022-05-13T01:08:18.475323+00:00 app[web.1]: [06d02bd8-1ebc-4015-8925-63ec84d35cfd] rack (2.2.3) lib/rack/runtime.rb:22:in `call'
2022-05-13T01:08:18.475323+00:00 app[web.1]: [06d02bd8-1ebc-4015-8925-63ec84d35cfd] activesupport (6.0.4) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call'
2022-05-13T01:08:18.475323+00:00 app[web.1]: [06d02bd8-1ebc-4015-8925-63ec84d35cfd] actionpack (6.0.4) lib/action_dispatch/middleware/executor.rb:14:in `call'
2022-05-13T01:08:18.475323+00:00 app[web.1]: [06d02bd8-1ebc-4015-8925-63ec84d35cfd] actionpack (6.0.4) lib/action_dispatch/middleware/static.rb:126:in `call'
2022-05-13T01:08:18.475324+00:00 app[web.1]: [06d02bd8-1ebc-4015-8925-63ec84d35cfd] rack (2.2.3) lib/rack/sendfile.rb:110:in `call'
2022-05-13T01:08:18.475325+00:00 app[web.1]: [06d02bd8-1ebc-4015-8925-63ec84d35cfd] actionpack (6.0.4) lib/action_dispatch/middleware/ssl.rb:74:in `call'
2022-05-13T01:08:18.475325+00:00 app[web.1]: [06d02bd8-1ebc-4015-8925-63ec84d35cfd] actionpack (6.0.4) lib/action_dispatch/middleware/host_authorization.rb:76:in `call'
2022-05-13T01:08:18.475325+00:00 app[web.1]: [06d02bd8-1ebc-4015-8925-63ec84d35cfd] railties (6.0.4) lib/rails/engine.rb:527:in `call'
2022-05-13T01:08:18.475326+00:00 app[web.1]: [06d02bd8-1ebc-4015-8925-63ec84d35cfd] puma (4.3.6) lib/puma/configuration.rb:228:in `call'
2022-05-13T01:08:18.475326+00:00 app[web.1]: [06d02bd8-1ebc-4015-8925-63ec84d35cfd] puma (4.3.6) lib/puma/server.rb:713:in `handle_request'
2022-05-13T01:08:18.475326+00:00 app[web.1]: [06d02bd8-1ebc-4015-8925-63ec84d35cfd] puma (4.3.6) lib/puma/server.rb:472:in `process_client'
2022-05-13T01:08:18.475326+00:00 app[web.1]: [06d02bd8-1ebc-4015-8925-63ec84d35cfd] puma (4.3.6) lib/puma/server.rb:328:in `block in run'
2022-05-13T01:08:18.475326+00:00 app[web.1]: [06d02bd8-1ebc-4015-8925-63ec84d35cfd] puma (4.3.6) lib/puma/thread_pool.rb:134:in `block in spawn_thread'`
Besides, I can see the uploaded image on the AWS S3 bucket page. So I suppose my setup relating to the Access Key, Secret Key, region and bucket name should be working fine. And yes, I did set the master key as well as credentials just in case.
When I clicked the link of the image on S3 bucket page, I can see it without problem. The image was successfully uploaded to the S3 bucket but I have problem showing it on my app's website.
As to the S3 setup, I copied & pasted shown below from someone's. So, I guess it's correctly setup as "public" as I unchecked the "Block Public Access" box also.
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "PublicReadAllowed",
"Effect": "Allow",
"Principal": "*",
"Action": [
"s3:GetObject",
"s3:GetObjectVersion"
],
"Resource": "arn:aws:s3:::my-bucket-name/*"
}
]
}
As to the CORS, I also copied & pasted someone's setup as below.
[
{
"AllowedHeaders": [
""
],
"AllowedMethods": [
"GET",
"HEAD"
],
"AllowedOrigins": [
"my-app-name.herokuapp.com"
],
"ExposeHeaders": [],
"MaxAgeSeconds": 3000
}
]
I tried ACL to check "read" for public access also but it didn't work either. I guess ACL doesn't have anything to do with my problem.
For days, I have been scouring the net for any helpful information but unable to find the solution. If anyone could give me some idea, instruction or direction to solve the problem, it'll be much appreciated. Thank you!
------my code---------------------------------------------------------------
models/micropost.rb
class Micropost < ApplicationRecord
belongs_to :user
has_one_attached :image
default_scope -> { self.order(created_at: :desc) }
validates :user_id, presence: true
validates :content, presence: true, length: { maximum: 140 }
validates :image, content_type: { in: %w[image/jpeg image/gif
image/png],
message: "must be a valid image format" },
size: { less_than: 5.megabytes,
message: "should be less than 5MB" }
def display_image
image.variant(resize_to_limit: [500, 500])
end
end
views/microposts/_micropost.html.erb
<li id="micropost-<%= micropost.id %>">
<%= link_to gravatar_for(micropost.user, size: 50),micropost.user%>
<span class="user"><%= link_to micropost.user.name,micropost.user%>
</span>
<span class="content">
<%= micropost.content %>
<%= image_tag micropost.display_image if
micropost.image.attached? %>
</span>
<span class="timestamp">
Posted <%= time_ago_in_words(micropost.created_at) %> ago.
<% if current_user?(micropost.user) %>
<%= link_to "delete", micropost, method: :delete,
data: { confirm: "You sure?" } %>
<% end %>
</span>
</li>
controllers/microposts_controller.rb
class MicropostsController < ApplicationController
before_action :logged_in_user, only: [:create, :destroy]
before_action :correct_user, only: :destroy
# POST /microposts
def create
#micropost = current_user.microposts.build(micropost_params)
#micropost.image.attach(params[:micropost][:image])
if #micropost.save
flash[:success] = "Micropost created!"
redirect_to root_url
else
#feed_items = current_user.feed.paginate(page: params[:page])
render 'static_pages/home'
end
end
# DELETE /microposts/:id
def destroy
#micropost.destroy
flash[:success] = "Micropost deleted"
redirect_to request.referrer || root_url
end
private
def micropost_params
params.require(:micropost).permit(:content, :image)
end
def correct_user
#micropost = current_user.microposts.find_by(id: params[:id])
redirect_to root_url if #micropost.nil?
end
end
Try to change
def display_image
image.variant(resize_to_limit: [500, 500]).processed
end
and call it using image_tag micropost.display_image.url
I am trying to make an app with Rails 4.
I am trying (desperately) to setup devise (I have been trying, unsuccessfully for the past 3 years).
My app is on heroku.
When i am logged in, I try to press the sign out button. I get an error message telling me to check the logs.
The log output is:
2016-01-02T00:52:17.660202+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/devise-3.4.1/lib/devise/controllers/sign_in_out.rb:57:in `sign_out'
2016-01-02T00:52:17.660208+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:505:in `call'
2016-01-02T00:52:17.660195+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/devise-3.4.1/lib/devise/controllers/rememberable.rb:23:in `forget_me'
2016-01-02T00:52:17.660201+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/devise-3.4.1/lib/devise/controllers/sign_in_out.rb:75:in `sign_out_all_scopes'
2016-01-02T00:52:17.660208+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:505:in `call'
2016-01-02T00:52:17.660198+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/warden-1.2.3/lib/warden/hooks.rb:9:in `_run_callbacks'
2016-01-02T00:52:17.660205+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal/rendering.rb:10:in `process_action'
2016-01-02T00:52:17.660200+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/warden-1.2.3/lib/warden/proxy.rb:262:in `block in logout'
2016-01-02T00:52:17.660206+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:117:in `call'
2016-01-02T00:52:17.660201+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/warden-1.2.3/lib/warden/proxy.rb:260:in `logout'
2016-01-02T00:52:17.660207+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile'
2016-01-02T00:52:17.660199+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/warden-1.2.3/lib/warden/manager.rb:53:in `_run_callbacks'
2016-01-02T00:52:17.660205+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.4/lib/abstract_controller/callbacks.rb:20:in `block in process_action'
2016-01-02T00:52:17.660198+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/warden-1.2.3/lib/warden/hooks.rb:9:in `each'
2016-01-02T00:52:17.660204+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.4/lib/abstract_controller/base.rb:198:in `process_action'
2016-01-02T00:52:17.660210+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:81:in `run_callbacks'
2016-01-02T00:52:17.660165+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.4/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `block in transaction'
2016-01-02T00:52:17.660196+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/warden-1.2.3/lib/warden/hooks.rb:14:in `call'
2016-01-02T00:52:17.660203+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/devise-3.4.1/app/controllers/devise/sessions_controller.rb:25:in `destroy'
2016-01-02T00:52:17.660209+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:92:in `__run_callbacks__'
2016-01-02T00:52:17.660174+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.4/lib/active_record/transactions.rb:285:in `save'
2016-01-02T00:52:17.660200+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/warden-1.2.3/lib/warden/proxy.rb:260:in `each'
2016-01-02T00:52:17.660207+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:117:in `call'
2016-01-02T00:52:17.660167+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.4/lib/active_record/transactions.rb:220:in `transaction'
2016-01-02T00:52:17.660197+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/warden-1.2.3/lib/warden/hooks.rb:14:in `block in _run_callbacks'
2016-01-02T00:52:17.660203+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal/implicit_render.rb:4:in `send_action'
2016-01-02T00:52:17.660210+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks'
2016-01-02T00:52:17.660215+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal/instrumentation.rb:30:in `process_action'
2016-01-02T00:52:17.660214+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.4/lib/active_support/notifications.rb:164:in `instrument'
2016-01-02T00:52:17.660224+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'
2016-01-02T00:52:17.660211+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.4/lib/abstract_controller/callbacks.rb:19:in `process_action'
2016-01-02T00:52:17.660218+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.4/lib/abstract_controller/base.rb:137:in `process'
2016-01-02T00:52:17.660212+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'
2016-01-02T00:52:17.660214+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.4/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
2016-01-02T00:52:17.660224+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal.rb:237:in `block in action'
2016-01-02T00:52:17.660212+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal/rescue.rb:29:in `process_action'
2016-01-02T00:52:17.660217+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.4/lib/active_record/railties/controller_runtime.rb:18:in `process_action'
2016-01-02T00:52:17.660225+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/routing/route_set.rb:76:in `dispatch'
2016-01-02T00:52:17.660216+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal/params_wrapper.rb:250:in `process_action'
2016-01-02T00:52:17.660225+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/routing/route_set.rb:76:in `call'
2016-01-02T00:52:17.660213+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.4/lib/active_support/notifications.rb:164:in `block in instrument'
2016-01-02T00:52:17.660223+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal.rb:196:in `dispatch'
2016-01-02T00:52:17.660227+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/routing/mapper.rb:49:in `serve'
2016-01-02T00:52:17.660219+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionview-4.2.4/lib/action_view/rendering.rb:30:in `process'
2016-01-02T00:52:17.660228+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/journey/router.rb:30:in `serve'
2016-01-02T00:52:17.660216+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/searchkick-1.1.2/lib/searchkick/logging.rb:108:in `process_action'
2016-01-02T00:52:17.660227+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/journey/router.rb:43:in `block in serve'
2016-01-02T00:52:17.660226+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/routing/route_set.rb:45:in `serve'
2016-01-02T00:52:17.660228+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/journey/router.rb:30:in `each'
2016-01-02T00:52:17.660232+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/omniauth-1.2.2/lib/omniauth/strategy.rb:164:in `call'
2016-01-02T00:52:17.660229+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/routing/route_set.rb:821:in `call'
2016-01-02T00:52:17.660231+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/omniauth-1.2.2/lib/omniauth/strategy.rb:186:in `call!'
2016-01-02T00:52:17.660230+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/omniauth-1.2.2/lib/omniauth/strategy.rb:186:in `call!'
2016-01-02T00:52:17.660235+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/omniauth-1.2.2/lib/omniauth/strategy.rb:164:in `call'
2016-01-02T00:52:17.660234+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/omniauth-1.2.2/lib/omniauth/strategy.rb:186:in `call!'
2016-01-02T00:52:17.660235+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/warden-1.2.3/lib/warden/manager.rb:35:in `block in call'
2016-01-02T00:52:17.660230+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/omniauth-1.2.2/lib/omniauth/strategy.rb:164:in `call'
2016-01-02T00:52:17.660239+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/params_parser.rb:27:in `call'
2016-01-02T00:52:17.660232+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/omniauth-1.2.2/lib/omniauth/strategy.rb:186:in `call!'
2016-01-02T00:52:17.660241+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/flash.rb:260:in `call'
2016-01-02T00:52:17.660233+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/omniauth-1.2.2/lib/omniauth/strategy.rb:164:in `call'
2016-01-02T00:52:17.660241+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/rack-1.6.4/lib/rack/session/abstract/id.rb:225:in `context'
2016-01-02T00:52:17.660242+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/cookies.rb:560:in `call'
2016-01-02T00:52:17.660239+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/rack-1.6.4/lib/rack/head.rb:13:in `call'
2016-01-02T00:52:17.660244+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:778:in `_run_call_callbacks'
2016-01-02T00:52:17.660242+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/rack-1.6.4/lib/rack/session/abstract/id.rb:220:in `call'
2016-01-02T00:52:17.660236+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/warden-1.2.3/lib/warden/manager.rb:34:in `catch'
2016-01-02T00:52:17.660243+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.4/lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call'
2016-01-02T00:52:17.660237+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/rack-1.6.4/lib/rack/etag.rb:24:in `call'
2016-01-02T00:52:17.660244+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
2016-01-02T00:52:17.660238+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/rack-1.6.4/lib/rack/conditionalget.rb:38:in `call'
2016-01-02T00:52:17.660244+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:88:in `__run_callbacks__'
2016-01-02T00:52:17.660237+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/warden-1.2.3/lib/warden/manager.rb:34:in `call'
2016-01-02T00:52:17.660242+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.4/lib/active_record/query_cache.rb:36:in `call'
2016-01-02T00:52:17.660247+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/railties-4.2.4/lib/rails/rack/logger.rb:38:in `call_app'
2016-01-02T00:52:17.660246+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
2016-01-02T00:52:17.660253+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/rack-1.6.4/lib/rack/runtime.rb:18:in `call'
2016-01-02T00:52:17.660251+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.4/lib/active_support/tagged_logging.rb:68:in `tagged'
2016-01-02T00:52:17.660259+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/railties-4.2.4/lib/rails/engine.rb:518:in `call'
2016-01-02T00:52:17.660246+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
2016-01-02T00:52:17.660252+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/rack-1.6.4/lib/rack/methodoverride.rb:22:in `call'
2016-01-02T00:52:17.660250+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.4/lib/active_support/tagged_logging.rb:68:in `block in tagged'
2016-01-02T00:52:17.660258+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/rack-1.6.4/lib/rack/sendfile.rb:113:in `call'
2016-01-02T00:52:17.660250+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/railties-4.2.4/lib/rails/rack/logger.rb:20:in `block in call'
2016-01-02T00:52:17.660257+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.4/lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call'
2016-01-02T00:52:17.660251+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.4/lib/active_support/tagged_logging.rb:26:in `tagged'
2016-01-02T00:52:17.660259+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/railties-4.2.4/lib/rails/application.rb:165:in `call'
2016-01-02T00:52:17.660245+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:81:in `run_callbacks'
2016-01-02T00:52:17.660252+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/railties-4.2.4/lib/rails/rack/logger.rb:20:in `call'
2016-01-02T00:52:17.660260+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/rack-1.6.4/lib/rack/content_length.rb:15:in `call'
2016-01-02T00:52:17.660245+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/callbacks.rb:27:in `call'
2016-01-02T00:52:17.660262+00:00 app[web.1]: vendor/ruby-2.2.2/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run'
2016-01-02T00:52:17.660246+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/remote_ip.rb:78:in `call'
2016-01-02T00:52:17.660252+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/request_id.rb:21:in `call'
2016-01-02T00:52:17.660260+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/rack-1.6.4/lib/rack/lock.rb:17:in `call'
2016-01-02T00:52:17.660258+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/static.rb:116:in `call'
2016-01-02T00:52:17.660263+00:00 app[web.1]:
2016-01-02T00:52:17.660261+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/rack-1.6.4/lib/rack/handler/webrick.rb:88:in `service'
2016-01-02T00:52:17.660263+00:00 app[web.1]:
2016-01-02T00:52:17.660261+00:00 app[web.1]: vendor/ruby-2.2.2/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service'
2016-01-02T00:52:17.660262+00:00 app[web.1]: vendor/ruby-2.2.2/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread'
I don't understand a word of this message. Can anyone decipher what it means?
My routes are:
devise_for :users, #class_name: 'FormUser',
:controllers => {
:registrations => "users/registrations",
# :omniauth_callbacks => "users/authentications"
:omniauth_callbacks => 'users/omniauth_callbacks'
}
# get '/auth/:provider/callback' => 'users/authentications#create'
# get '/authentications/sign_out', :to => 'users/authentications#destroy'
# PER SOURCEY TUTORIAL ----------
match '/users/:id/finish_signup' => 'users#finish_signup', via: [:get, :patch], :as => :finish_signup
I don't have a specific sign out path defined in the routes. The sourcey tutorial I'm following doesnt use one and I understood this was part of the devise gem functionality.
My rake routes shows:
destroy_user_session DELETE /users/sign_out(.:format) devise/sessions#destroy
The nav bar has a sign out link as:
<%= link_to "Sign out", destroy_user_session_path, :method => :delete %>
I want to upload product images in my online shop via cloudinary and carrierwave.
I followed the instructions on the cloudinary official web site and i was able to upload images in development environment. But after I pushed it on heroku, I tried to create new product with product picture, but i got error "If you are the application owner check the logs for more information."
I couldn't find specific error(s) in heroku logs:
2015-01-09T17:40:00.955232+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/bundler/gems/activeadmin-7414104d41e5/lib/active_admin/resource_controller/data_access.rb:138:in `build_new_resource'
2015-01-09T17:40:00.955231+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activerecord-4.2.0.rc3/lib/active_record/inheritance.rb:61:in `new'
2015-01-09T17:40:00.949065+00:00 app[web.1]: AdminUser Load (1.7ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = $1 ORDER BY "admin_users"."id" ASC LIMIT 1 [["id", 1]]
2015-01-09T17:40:00.955222+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.2.0.rc3/lib/action_controller/metal/strong_parameters.rb:188:in `each_pair'
2015-01-09T17:40:00.955234+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/bundler/gems/activeadmin-7414104d41e5/lib/active_admin/resource_controller/data_access.rb:121:in `build_resource'
2015-01-09T17:40:00.955247+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.2.0.rc3/lib/action_controller/metal/implicit_render.rb:4:in `send_action'
2015-01-09T17:40:00.955185+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/carrierwave-0.10.0/lib/carrierwave/orm/activerecord.rb:38:in `image='
2015-01-09T17:40:00.955249+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.2.0.rc3/lib/abstract_controller/base.rb:198:in `process_action'
2015-01-09T17:40:00.955225+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activerecord-4.2.0.rc3/lib/active_record/core.rb:557:in `init_attributes'
2015-01-09T17:40:00.955264+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.2.0.rc3/lib/abstract_controller/callbacks.rb:20:in `block in process_action'
2015-01-09T17:40:00.955274+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.2
.0.rc3/lib/active_support/callbacks.rb:169:in `call'
2015-01-09T17:40:00.955266+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.0.rc3/lib/active_support/callbacks.rb:117:in `call'
2015-01-09T17:40:00.955268+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.0.rc3/lib/active_support/callbacks.rb:117:in `call'
2015-01-09T17:40:00.955187+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activerecord-4.2.0.rc3/lib/active_record/attribute_assignment.rb:54:in `public_send'
2015-01-09T17:40:00.955271+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.0.rc3/lib/active_support/callbacks.rb:169:in `call'
2015-01-09T17:40:00.955286+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.0.rc3/lib/active_support/callbacks.rb:169:in `call'
2015-01-09T17:40:00.955301+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.0.rc3/lib/active_support/callbacks.rb:92:in `call'
2015-01-09T17:40:00.955278+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.0.rc3/lib/active_support/callbacks.rb:234:in `call'
2015-01-09T17:40:00.955227+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activerecord-4.2.0.rc3/lib/active_record/core.rb:280:in `initialize'
2015-01-09T17:40:00.955306+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.0.rc3/lib/active_support/callbacks.rb:81:in `run_callbacks'
2015-01-09T17:40:00.955321+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activerecord-4.2.0.rc3/lib/active_record/railties/controller_runtime.rb:18:in `process_action'
2015-01-09T17:40:00.955320+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.2.0.rc3/lib/action_controller/metal/params_wrapper.rb:250:in `process_action'
2015-01-09T17:40:00.955236+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/bundler/gems/inherited_resources-9e4c7576b48e/lib/inherited_resources/actions.rb:31:in `create'
2015-01-09T17:40:00.955251+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.2.0.rc3/lib/action_controller/metal/rendering.rb:10:in `process_action'
2015-01-09T17:40:00.955334+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.2.0.rc3/lib/action_dispatch/routing/route_set.rb:42:in `serve'
2015-01-09T17:40:00.955336+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.2.0.rc3/lib/action_dispatch/journey/router.rb:43:in `block in serve'
2015-01-09T17:40:00.955318+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.2.0.rc3/lib/action_controller/metal/instrumentation.rb:30:in `process_action'
2015-01-09T17:40:00.955283+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.0.rc3/lib/active_support/callbacks.rb:234:in `call'
2015-01-09T17:40:00.955229+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activerecord-4.2.0.rc3/lib/active_record/inheritance.rb:61:in `new'
2015-01-09T17:40:00.955292+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.0.rc3/lib/active_support/callbacks.rb:169:in `call'
2015-01-09T17:40:00.955289+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.0.rc3/lib/active_support/callbacks.rb:169:in `call'
2015-01-09T17:40:00.955276+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.0.rc3/lib/active_support/callbacks.rb:169:in `block in halting'
2015-01-09T17:40:00.955273+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.0.rc3/lib/active_support/callbacks.rb:169:in `block in halting'
2015-01-09T17:40:00.955324+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionview-4.2.0.rc3/lib/action_view/rendering.rb:30:in `process'
2015-01-09T17:40:00.955303+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.0.rc3/lib/active_support/callbacks.rb:92:in `_run_callbacks'
2015-01-09T17:40:00.955288+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.0.rc3/lib/active_support/callbacks.rb:169:in `block in halting'
2015-01-09T17:40:00.955308+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.2.0.rc3/lib/abstract_controller/callbacks.rb:19:in `process_action'
2015-01-09T17:40:00.955310+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.2.0.rc3/lib/action_controller/metal/rescue.rb:29:in `process_action'
2015-01-09T17:40:00.955353+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.6.0.beta2/lib/rack/conditionalget.rb:38:in `call'
2015-01-09T17:40:00.955358+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.2.0.rc3/lib/action_dispatch/middleware/flash.rb:260:in `call'
2015-01-09T17:40:00.955331+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.2.0.rc3/lib/action_dispatch/routing/route_set.rb:73:in `call'
2015-01-09T17:40:00.955342+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.2.0.rc3/lib/action_dispatch/journey/router.rb:30:in `each'
2015-01-09T17:40:00.955269+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.0.rc3/lib/active_support/callbacks.rb:169:in `block in halting'
2015-01-09T17:40:00.955300+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.0.rc3/lib/active_support/callbacks.rb:169:in `block in halting'
2015-01-09T17:40:00.955313+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.0.rc3/lib/active_support/notifications.rb:164:in `block in instrument'
2015-01-09T17:40:00.955346+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/warden-1.2.3/lib/warden/manager.rb:35:in `block in call'
2015-01-09T17:40:00.955323+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.2.0.rc3/lib/abstract_controller/base.rb:137:in `process'
2015-01-09T17:40:00.955355+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.6.0.beta2/lib/rack/head.rb:13:in `call'
2015-01-09T17:40:00.955281+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.0.rc3/lib/active_support/callbacks.rb:234:in `block in halting'
2015-01-09T17:40:00.955332+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.2.0.rc3/lib/action_dispatch/routing/route_set.rb:73:in `dispatch'
2015-01-09T17:40:00.955356+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.2.0.rc3/lib/action_dispatch/middleware/params_parser.rb:27:in `call'
2015-01-09T17:40:00.955378+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.0.rc3/lib/active_support/callbacks.rb:734:in `_run_call_callbacks'
2015-01-09T17:40:00.955343+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.2.0.rc3/lib/action_dispatch/journey/router.rb:30:in `serve'
2015-01-09T17:40:00.955315+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.0.rc3/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
2015-01-09T17:40:00.955284+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.0.rc3/lib/active_support/callbacks.rb:234:in `block in halting'
2015-01-09T17:40:00.955326+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.2.0.rc3/lib/action_controller/metal.rb:195:in `dispatch'
2015-01-09T17:40:00.955374+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.0.rc3/lib/active_support/callbacks.rb:88:in `call'
2015-01-09T17:40:00.955381+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.2.0.rc3/lib/action_dispatch/middleware/callbacks.rb:27:in `call'
2015-01-09T17:40:00.955379+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.0.rc3/lib/active_support/callbacks.rb:81:in `run_callbacks'
2015-01-09T17:40:00.955316+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.0.rc3/lib/active_support/notifications.rb:164:in `instrument'
2015-01-09T17:40:00.955385+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.2.0.rc3/lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
2015-01-09T17:40:00.955291+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.0.rc3/lib/active_support/callbacks.rb:169:in `block in halting'
2015-01-09T17:40:00.955359+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.6.0.beta2/lib/rack/session/abstract/id.rb:225:in `context'
2015-01-09T17:40:00.955329+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.2.0.rc3/lib/action_controller/metal.rb:236:in `block in action'
2015-01-09T17:40:00.955348+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/warden-1.2.3/lib/warden/manager.rb:34:in `catch'
2015-01-09T17:40:00.955364+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.2.0.rc3/lib/action_dispatch/middleware/cookies.rb:560:in `call'
2015-01-09T17:40:00.955390+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.0.rc3/lib/active_support/tagged_logging.rb:68:in `block in tagged'
2015-01-09T17:40:00.955350+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/warden-1.2.3/lib/warden/manager.rb:34:in `call'
2015-01-09T17:40:00.955411+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.6.0.beta2/lib/rack/methodoverride.rb:22:in `call'
2015-01-09T17:40:00.955409+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.2.0.rc3/lib/action_dispatch/middleware/request_id.rb:21:in `call'
2015-01-09T17:40:00.955305+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.0.rc3/lib/active_support/callbacks.rb:734:in `_run_process_action_callbacks'
2015-01-09T17:40:00.955352+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.6.0.beta2/lib/rack/etag.rb:24:in `call'
2015-01-09T17:40:00.955365+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activerecord-4.2.0.rc3/lib/active_record/query_cache.rb:36:in `call'
2015-01-09T17:40:00.955376+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.0.rc3/lib/active_support/callbacks.rb:88:in `_run_callbacks'
2015-01-09T17:40:00.955388+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/railties-4.2.0.rc3/lib/rails/rack/logger.rb:20:in `block in call'
2015-01-09T17:40:00.955431+00:00 app[web.1]: vendor/ruby-2.0.0/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread'
2015-01-09T17:40:00.955394+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/railties-4.2.0.rc3/lib/rails/rack/logger.rb:20:in `call'
2015-01-09T17:40:00.955418+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.6.0.beta2/lib/rack/sendfile.rb:113:in `call'
2015-01-09T17:40:00.955387+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/railties-4.2.0.rc3/lib/rails/rack/logger.rb:38:in `call_app'
2015-01-09T17:40:00.955413+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.6.0.beta2/lib/rack/runtime.rb:18:in `call'
2015-01-09T17:40:00.955373+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.2.0.rc3/lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
2015-01-09T17:40:00.955362+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.6.0.beta2/lib/rack/session/abstract/id.rb:220:in `call'
2015-01-09T17:40:00.955393+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.0.rc3/lib/active_support/tagged_logging.rb:68:in `tagged'
2015-01-09T17:40:00.955416+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.2.0.rc3/lib/action_dispatch/middleware/static.rb:113:in `call'
2015-01-09T17:40:00.955423+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.6.0.beta2/lib/rack/lock.rb:17:in `call'
2015-01-09T17:40:00.955311+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.2.0.rc3/lib/action_controller/metal/instrumentation.rb:31:in `block in process_action'
2015-01-09T17:40:00.955414+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.0.rc3/lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call'
2015-01-09T17:40:00.955428+00:00 app[web.1]: vendor/ruby-2.0.0/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service'
2015-01-09T17:40:00.955421+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/railties-4.2.0.rc3/lib/rails/application.rb:164:in `call'
2015-01-09T17:40:00.955433+00:00 app[web.1]:
2015-01-09T17:40:00.955419+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/railties-4.2.0.rc3/lib/rails/engine.rb:518:in `call'
2015-01-09T17:40:00.955391+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.0.rc3/lib/active_support/tagged_logging.rb:26:in `tagged'
2015-01-09T17:40:00.955425+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.6.0.beta2/lib/rack/content_length.rb:15:in `call'
2015-01-09T17:40:00.955382+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.2.0.rc3/lib/action_dispatch/middleware/remote_ip.rb:78:in `call'
2015-01-09T17:40:00.955327+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.2.0.rc3/lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'
2015-01-09T17:40:00.955426+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.6.0.beta2/lib/rack/handler/webrick.rb:89:in `service'
2015-01-09T17:40:00.955434+00:00 app[web.1]:
2015-01-09T17:40:00.955430+00:00 app[web.1]: vendor/ruby-2.0.0/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run'
2015-01-09T17:40:00.955345+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.2.0.rc3/lib/action_dispatch/routing/route_set.rb:802:in `call'
2015-01-09T17:40:00.955371+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activerecord-4.2.0.rc3/lib/active_record/connection_adapters/abstract/connection_pool.rb:647:in `call'
2015-01-09T17:40:00.955384+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.2.0.rc3/lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
Form:
form(:html => { :multipart => true }) do |f|
f.inputs 'New product' do
...
f.file_field :image, label: 'Image'
f.submit
end
end
Uploader:
class ImageUploader < CarrierWave::Uploader::Base
include Cloudinary::CarrierWave
end
Model:
class Product < ActiveRecord::Base
...
mount_uploader :image, ImageUploader
...
end
Controller:
def create
#product = Product.new(product_params)
respond_to do |format|
if #product.save
format.html { redirect_to #product }
else
format.html { render :new, notice: 'Errors.' }
end
end
end
def product_params
params.require(:product).permit(:title, :short_description, :description, :image, :price)
end
I have Rails 4.2.0
I am getting the infamous "We're sorry, but something went wrong." error. Googling it it points to Omniauth problem - but I havent changed much (if any) of the omniauth stuff, and had it working last time I deployed it to heroku.
I have it deployed on a cedar stack btw.
Any ideas what the problem could be?
Heroku logs:
2012-04-28T18:26:06+00:00 heroku[router]: GET myapp.herokuapp.com/ dyno=web.1 queue=0 wait=0ms service=13ms status=500 bytes=643
2012-04-28T18:26:06+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.2/lib/action_controller/metal.rb:203:in `dispatch'
2012-04-28T18:26:06+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.2/lib/action_dispatch/routing/route_set.rb:67:in `call'
2012-04-28T18:26:06+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.2/lib/action_dispatch/routing/route_set.rb:67:in `dispatch'
2012-04-28T18:26:06+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.2/lib/action_dispatch/routing/route_set.rb:30:in `call'
2012-04-28T18:26:06+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/journey-1.0.3/lib/journey/router.rb:68:in `block in call'
2012-04-28T18:26:06+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/journey-1.0.3/lib/journey/router.rb:56:in `each'
2012-04-28T18:26:06+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/journey-1.0.3/lib/journey/router.rb:56:in `call'
2012-04-28T18:26:06+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/omniauth-1.0.3/lib/omniauth/strategy.rb:168:in `call!'
2012-04-28T18:26:06+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.2/lib/action_dispatch/routing/route_set.rb:594:in `call'
2012-04-28T18:26:06+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/omniauth-1.0.3/lib/omniauth/strategy.rb:148:in `call'
2012-04-28T18:26:06+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/warden-1.1.1/lib/warden/manager.rb:35:in `block in call'
2012-04-28T18:26:06+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/warden-1.1.1/lib/warden/manager.rb:34:in `catch'
2012-04-28T18:26:06+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.2/lib/action_dispatch/middleware/best_standards_support.rb:17:in `call'
2012-04-28T18:26:06+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/conditionalget.rb:25:in `call'
2012-04-28T18:26:06+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/warden-1.1.1/lib/warden/manager.rb:34:in `call'
2012-04-28T18:26:06+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/etag.rb:23:in `call'
2012-04-28T18:26:06+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.2/lib/action_dispatch/middleware/head.rb:14:in `call'
2012-04-28T18:26:06+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.2/lib/action_dispatch/middleware/params_parser.rb:21:in `call'
2012-04-28T18:26:06+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.2/lib/action_dispatch/middleware/flash.rb:242:in `call'
2012-04-28T18:26:06+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/session/abstract/id.rb:205:in `context'
2012-04-28T18:26:06+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.2/lib/action_dispatch/middleware/cookies.rb:338:in `call'
2012-04-28T18:26:06+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.2/lib/active_record/query_cache.rb:64:in `call'
2012-04-28T18:26:06+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/session/abstract/id.rb:200:in `call'
2012-04-28T18:26:06+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.2/lib/action_dispatch/middleware/callbacks.rb:28:in `block in call'
2012-04-28T18:26:06+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:405:in `_run__2587592208680042819__call__3254396045512618553__callbacks'
2012-04-28T18:26:06+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:443:in `call'
2012-04-28T18:26:06+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:405:in `__run_callback'
2012-04-28T18:26:06+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:81:in `run_callbacks'
2012-04-28T18:26:06+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.2/lib/action_dispatch/middleware/remote_ip.rb:31:in `call'
2012-04-28T18:26:06+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.2/lib/action_dispatch/middleware/callbacks.rb:27:in `call'
2012-04-28T18:26:06+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:385:in `_run_call_callbacks'
2012-04-28T18:26:06+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.2/lib/action_dispatch/middleware/debug_exceptions.rb:16:in `call'
2012-04-28T18:26:06+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.2/lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
2012-04-28T18:26:06+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/railties-3.2.2/lib/rails/rack/logger.rb:26:in `call_app'
2012-04-28T18:26:06+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/railties-3.2.2/lib/rails/rack/logger.rb:16:in `call'
2012-04-28T18:26:06+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.2/lib/action_dispatch/middleware/request_id.rb:22:in `call'
2012-04-28T18:26:06+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/runtime.rb:17:in `call'
2012-04-28T18:26:06+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.2/lib/active_support/cache/strategy/local_cache.rb:72:in `call'
2012-04-28T18:26:06+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/methodoverride.rb:21:in `call'
2012-04-28T18:26:06+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/lock.rb:15:in `call'
2012-04-28T18:26:06+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.2/lib/action_dispatch/middleware/static.rb:61:in `call'
2012-04-28T18:26:06+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/rack-cache-1.2/lib/rack/cache/context.rb:245:in `fetch'
2012-04-28T18:26:06+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/rack-cache-1.2/lib/rack/cache/context.rb:136:in `forward'
2012-04-28T18:26:06+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/rack-cache-1.2/lib/rack/cache/context.rb:66:in `call!'
2012-04-28T18:26:06+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/rack-cache-1.2/lib/rack/cache/context.rb:185:in `lookup'
2012-04-28T18:26:06+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/railties-3.2.2/lib/rails/engine.rb:479:in `call'
2012-04-28T18:26:06+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/rack-cache-1.2/lib/rack/cache/context.rb:51:in `call'
2012-04-28T18:26:06+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/content_length.rb:14:in `call'
2012-04-28T18:26:06+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/handler/webrick.rb:59:in `service'
2012-04-28T18:26:06+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/railties-3.2.2/lib/rails/application.rb:220:in `call'
2012-04-28T18:26:06+00:00 app[web.1]: /usr/local/lib/ruby/1.9.1/webrick/httpserver.rb:111:in `service'
2012-04-28T18:26:06+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/railties-3.2.2/lib/rails/rack/log_tailer.rb:14:in `call'
2012-04-28T18:26:06+00:00 app[web.1]: /usr/local/lib/ruby/1.9.1/webrick/httpserver.rb:70:in `run'
2012-04-28T18:26:06+00:00 app[web.1]:
2012-04-28T18:26:06+00:00 app[web.1]:
2012-04-28T18:26:06+00:00 app[web.1]: /usr/local/lib/ruby/1.9.1/webrick/server.rb:183:in `block in start_thread'
2012-04-28T18:26:06+00:00 app[web.1]: cache: [GET /] miss
I also noticed the following:
2012-04-28T18:26:06+00:00 app[web.1]: * "/app/app/views"
2012-04-28T18:26:06+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.2/lib/action_view/renderer/renderer.rb:36:in `render_template'
2012-04-28T18:26:06+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.2/lib/action_view/renderer/template_renderer.rb:10:in `render'
2012-04-28T18:26:06+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.2/lib/action_view/renderer/template_renderer.rb:29:in `determine_template'
2012-04-28T18:26:06+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.2/lib/abstract_controller/rendering.rb:109:in `_render_template'
2012-04-28T18:26:06+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.2/lib/action_view/renderer/renderer.rb:17:in `render'
2012-04-28T18:26:06+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.2/lib/action_controller/metal/streaming.rb:225:in `_render_template'
2012-04-28T18:26:06+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.2/lib/abstract_controller/rendering.rb:103:in `render_to_body'
2012-04-28T18:26:06+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.2/lib/action_controller/metal/renderers.rb:28:in `render_to_body'
2012-04-28T18:26:06+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.2/lib/action_controller/metal/compatibility.rb:50:in `render_to_body'
2012-04-28T18:26:06+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.2/lib/action_controller/metal/rendering.rb:16:in `render'
2012-04-28T18:26:06+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.2/lib/abstract_controller/rendering.rb:88:in `render'
2012-04-28T18:26:06+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.2/lib/active_support/core_ext/benchmark.rb:5:in `block in ms'
2012-04-28T18:26:06+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.2/lib/action_controller/metal/instrumentation.rb:40:in `block (2 levels) in render'
2012-04-28T18:26:06+00:00 app[web.1]: /usr/local/lib/ruby/1.9.1/benchmark.rb:310:in `realtime'
2012-04-28T18:26:06+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.2/lib/active_support/core_ext/benchmark.rb:5:in `ms'
2012-04-28T18:26:06+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.2/lib/action_controller/metal/instrumentation.rb:40:in `block in render'
2012-04-28T18:26:06+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.2/lib/action_controller/metal/instrumentation.rb:83:in `cleanup_view_runtime'
2012-04-28T18:26:06+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.2/lib/active_record/railties/controller_runtime.rb:24:in `cleanup_view_runtime'
2012-04-28T18:26:06+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.2/lib/action_controller/metal/instrumentation.rb:39:in `render'
2012-04-28T18:26:06+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.2/lib/action_controller/metal/implicit_render.rb:10:in `default_render'
2012-04-28T18:26:06+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.2/lib/action_controller/metal/implicit_render.rb:5:in `send_action'
2012-04-28T18:26:06+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.2/lib/abstract_controller/base.rb:167:in `process_action'
2012-04-28T18:26:06+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.2/lib/action_controller/metal/rendering.rb:10:in `process_action'
2012-04-28T18:26:06+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.2/lib/abstract_controller/callbacks.rb:18:in `block in process_action'
2012-04-28T18:26:06+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:405:in `__run_callback'
2012-04-28T18:26:06+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:414:in `_run__3927484994384413162__process_action__1065190525946390676__callbacks'
2012-04-28T18:26:06+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:81:in `run_callbacks'
2012-04-28T18:26:06+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.2/lib/abstract_controller/callbacks.rb:17:in `process_action'
2012-04-28T18:26:06+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:385:in `_run_process_action_callbacks'
2012-04-28T18:26:06+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.2/lib/action_controller/metal/rescue.rb:29:in `process_action'
2012-04-28T18:26:06+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.2/lib/action_controller/metal/instrumentation.rb:30:in `block in process_action'
2012-04-28T18:26:06+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.2/lib/active_support/notifications.rb:123:in `block in instrument'
2012-04-28T18:26:06+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.2/lib/action_controller/metal/instrumentation.rb:29:in `process_action'
2012-04-28T18:26:06+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.2/lib/active_support/notifications.rb:123:in `instrument'
2012-04-28T18:26:06+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.2/lib/action_controller/metal/params_wrapper.rb:205:in `process_action'
2012-04-28T18:26:06+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.2/lib/abstract_controller/rendering.rb:45:in `process'
2012-04-28T18:26:06+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.2/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
2012-04-28T18:26:06+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.2/lib/active_record/railties/controller_runtime.rb:18:in `process_action'
2012-04-28T18:26:06+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.2/lib/abstract_controller/base.rb:121:in `process'
2012-04-28T18:26:06+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.2/lib/action_controller/metal/rack_delegation.rb:14:in `dispatch'
2012-04-28T18:26:06+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.2/lib/action_controller/metal.rb:246:in `block in action'
This seems really out of the blue, but what fixed my problem was having the haml gem within the assets group. I took it out from that particular group, and it fixed my problem. Not sure why.