rails, devise send confirmation email - ruby

I am trying to setup devise registration and login with either email or facebook from a modal. I figure that out but now I'm trying to add confirmation email that requires uses to confirm their email before they can sign in. It works locally but I am having trouble setting getting it to work in production. If oud this quesitons on here and followed the steps from the answer but my model just hands up when I try to register.
How do I set up email confirmation with Devise?
The user is being added to the database but ehan when it gets to the sending email part it just give me an error.
Here is the log:
the-mat-house | 2021-01-01 22:45:33 D, [2021-01-02T05:45:33.954550 #1] DEBUG -- : [33aeba17-bc52-4b8c-be9a-76b1bb608cae] (1.6ms) COMMIT
the-mat-house | 2021-01-01 22:45:33 I, [2021-01-02T05:45:33.964848 #1] INFO -- : [33aeba17-bc52-4b8c-be9a-76b1bb608cae] Rendering devise/mailer/confirmation_instructions.html.erb
the-mat-house | 2021-01-01 22:45:33 I, [2021-01-02T05:45:33.967839 #1] INFO -- : [33aeba17-bc52-4b8c-be9a-76b1bb608cae] Rendered devise/mailer/confirmation_instructions.html.erb (Duration: 2.6ms | Allocations: 224)
the-mat-house | 2021-01-01 22:45:33 D, [2021-01-02T05:45:33.969026 #1] DEBUG -- : [33aeba17-bc52-4b8c-be9a-76b1bb608cae] Devise::Mailer#confirmation_instructions: processed outbound mail in 13.1ms
the-mat-house | 2021-01-01 22:46:03 I, [2021-01-02T05:46:03.977560 #1] INFO -- : [33aeba17-bc52-4b8c-be9a-76b1bb608cae] Delivered mail 5ff0087ded45a_1718449fd#the-mat-house-c478cc659-dkl8z.mail (30008.1ms)
the-mat-house | 2021-01-01 22:46:03 D, [2021-01-02T05:46:03.977988 #1] DEBUG -- : [33aeba17-bc52-4b8c-be9a-76b1bb608cae] Date: Sat, 02 Jan 2021 05:45:33 +0000
the-mat-house | 2021-01-01 22:46:03 From: info#themathouse.com
the-mat-house | 2021-01-01 22:46:03 Reply-To: info#themathouse.com
the-mat-house | 2021-01-01 22:46:03 To: scott#allaboutjudo.com
the-mat-house | 2021-01-01 22:46:03 Message-ID: <5ff0087ded45a_1718449fd#the-mat-house-c478cc659-dkl8z.mail>
the-mat-house | 2021-01-01 22:46:03 Subject: Confirmation instructions
the-mat-house | 2021-01-01 22:46:03 Mime-Version: 1.0
the-mat-house | 2021-01-01 22:46:03 Content-Type: text/html;
the-mat-house | 2021-01-01 22:46:03 charset=UTF-8
the-mat-house | 2021-01-01 22:46:03 Content-Transfer-Encoding: 7bit
the-mat-house | 2021-01-01 22:46:03
the-mat-house | 2021-01-01 22:46:03 <p>Welcome scott#allaboutjudo.com!</p>
the-mat-house | 2021-01-01 22:46:03
the-mat-house | 2021-01-01 22:46:03 <p>Thank you for registering at TheMatHouse.com. You've been registered successfully!</p>
the-mat-house | 2021-01-01 22:46:03 <p>Please click on the link below to activate your accouint.</p>
the-mat-house | 2021-01-01 22:46:03
the-mat-house | 2021-01-01 22:46:03 <p>Confirm my account</p>
the-mat-house | 2021-01-01 22:46:03
the-mat-house | 2021-01-01 22:46:03 I, [2021-01-02T05:46:03.980919 #1] INFO -- : [33aeba17-bc52-4b8c-be9a-76b1bb608cae] Completed 500 Internal Server Error in 30441ms (ActiveRecord: 17.6ms | Allocations: 8718)
the-mat-house | 2021-01-01 22:46:03 F, [2021-01-02T05:46:03.990499 #1] FATAL -- : [33aeba17-bc52-4b8c-be9a-76b1bb608cae]
the-mat-house | 2021-01-01 22:46:03 [33aeba17-bc52-4b8c-be9a-76b1bb608cae] Net::OpenTimeout (execution expired):
the-mat-house | 2021-01-01 22:46:03 [33aeba17-bc52-4b8c-be9a-76b1bb608cae]
the-mat-house | 2021-01-01 22:46:03 [33aeba17-bc52-4b8c-be9a-76b1bb608cae] /layers/heroku_ruby/ruby/vendor/ruby-2.7.2/lib/ruby/2.7.0/net/smtp.rb:539:in `initialize'
the-mat-house | 2021-01-01 22:46:03 [33aeba17-bc52-4b8c-be9a-76b1bb608cae] /layers/heroku_ruby/ruby/vendor/ruby-2.7.2/lib/ruby/2.7.0/net/smtp.rb:539:in `open'
the-mat-house | 2021-01-01 22:46:03 [33aeba17-bc52-4b8c-be9a-76b1bb608cae] /layers/heroku_ruby/ruby/vendor/ruby-2.7.2/lib/ruby/2.7.0/net/smtp.rb:539:in `tcp_socket'
the-mat-house | 2021-01-01 22:46:03 [33aeba17-bc52-4b8c-be9a-76b1bb608cae] /layers/heroku_ruby/ruby/vendor/ruby-2.7.2/lib/ruby/2.7.0/net/smtp.rb:549:in `block in do_start'
the-mat-house | 2021-01-01 22:46:03 [33aeba17-bc52-4b8c-be9a-76b1bb608cae] /layers/heroku_ruby/ruby/vendor/ruby-2.7.2/lib/ruby/2.7.0/timeout.rb:105:in `timeout'
the-mat-house | 2021-01-01 22:46:03 [33aeba17-bc52-4b8c-be9a-76b1bb608cae] /layers/heroku_ruby/ruby/vendor/ruby-2.7.2/lib/ruby/2.7.0/net/smtp.rb:548:in `do_start'
the-mat-house | 2021-01-01 22:46:03 [33aeba17-bc52-4b8c-be9a-76b1bb608cae] /layers/heroku_ruby/ruby/vendor/ruby-2.7.2/lib/ruby/2.7.0/net/smtp.rb:518:in `start'
the-mat-house | 2021-01-01 22:46:03 [33aeba17-bc52-4b8c-be9a-76b1bb608cae] mail (2.7.1) lib/mail/network/delivery_methods/smtp.rb:109:in `start_smtp_session'
the-mat-house | 2021-01-01 22:46:03 [33aeba17-bc52-4b8c-be9a-76b1bb608cae] mail (2.7.1) lib/mail/network/delivery_methods/smtp.rb:100:in `deliver!'
the-mat-house | 2021-01-01 22:46:03 [33aeba17-bc52-4b8c-be9a-76b1bb608cae] mail (2.7.1) lib/mail/message.rb:2159:in `do_delivery'
the-mat-house | 2021-01-01 22:46:03 [33aeba17-bc52-4b8c-be9a-76b1bb608cae] mail (2.7.1) lib/mail/message.rb:260:in `block in deliver'
the-mat-house | 2021-01-01 22:46:03 [33aeba17-bc52-4b8c-be9a-76b1bb608cae] actionmailer (6.0.3.4) lib/action_mailer/base.rb:589:in `block in deliver_mail'
the-mat-house | 2021-01-01 22:46:03 [33aeba17-bc52-4b8c-be9a-76b1bb608cae] activesupport (6.0.3.4) lib/active_support/notifications.rb:180:in `block in instrument'
the-mat-house | 2021-01-01 22:46:03 [33aeba17-bc52-4b8c-be9a-76b1bb608cae] activesupport (6.0.3.4) lib/active_support/notifications/instrumenter.rb:24:in `instrument'
the-mat-house | 2021-01-01 22:46:03 [33aeba17-bc52-4b8c-be9a-76b1bb608cae] activesupport (6.0.3.4) lib/active_support/notifications.rb:180:in `instrument'
the-mat-house | 2021-01-01 22:46:03 [33aeba17-bc52-4b8c-be9a-76b1bb608cae] actionmailer (6.0.3.4) lib/action_mailer/base.rb:587:in `deliver_mail'
the-mat-house | 2021-01-01 22:46:03 [33aeba17-bc52-4b8c-be9a-76b1bb608cae] mail (2.7.1) lib/mail/message.rb:260:in `deliver'
the-mat-house | 2021-01-01 22:46:03 [33aeba17-bc52-4b8c-be9a-76b1bb608cae] actionmailer (6.0.3.4) lib/action_mailer/message_delivery.rb:115:in `block in deliver_now'
the-mat-house | 2021-01-01 22:46:03 [33aeba17-bc52-4b8c-be9a-76b1bb608cae] actionmailer (6.0.3.4) lib/action_mailer/rescuable.rb:17:in `handle_exceptions'
the-mat-house | 2021-01-01 22:46:03 [33aeba17-bc52-4b8c-be9a-76b1bb608cae] actionmailer (6.0.3.4) lib/action_mailer/message_delivery.rb:114:in `deliver_now'
the-mat-house | 2021-01-01 22:46:03 [33aeba17-bc52-4b8c-be9a-76b1bb608cae] devise (4.7.3) lib/devise/models/authenticatable.rb:200:in `send_devise_notification'
the-mat-house | 2021-01-01 22:46:03 [33aeba17-bc52-4b8c-be9a-76b1bb608cae] devise (4.7.3) lib/devise/models/confirmable.rb:121:in `send_confirmation_instructions'
the-mat-house | 2021-01-01 22:46:03 [33aeba17-bc52-4b8c-be9a-76b1bb608cae] devise (4.7.3) lib/devise/models/confirmable.rb:183:in `send_on_create_confirmation_instructions'
the-mat-house | 2021-01-01 22:46:03 [33aeba17-bc52-4b8c-be9a-76b1bb608cae] activesupport (6.0.3.4) lib/active_support/callbacks.rb:428:in `block in make_lambda'
the-mat-house | 2021-01-01 22:46:03 [33aeba17-bc52-4b8c-be9a-76b1bb608cae] activesupport (6.0.3.4) lib/active_support/callbacks.rb:263:in `block in conditional'
the-mat-house | 2021-01-01 22:46:03 [33aeba17-bc52-4b8c-be9a-76b1bb608cae] activesupport (6.0.3.4) lib/active_support/callbacks.rb:517:in `block in invoke_after'
the-mat-house | 2021-01-01 22:46:03 [33aeba17-bc52-4b8c-be9a-76b1bb608cae] activesupport (6.0.3.4) lib/active_support/callbacks.rb:517:in `each'
the-mat-house | 2021-01-01 22:46:03 [33aeba17-bc52-4b8c-be9a-76b1bb608cae] activesupport (6.0.3.4) lib/active_support/callbacks.rb:517:in `invoke_after'
the-mat-house | 2021-01-01 22:46:03 [33aeba17-bc52-4b8c-be9a-76b1bb608cae] activesupport (6.0.3.4) lib/active_support/callbacks.rb:136:in `run_callbacks'
the-mat-house | 2021-01-01 22:46:03 [33aeba17-bc52-4b8c-be9a-76b1bb608cae] activesupport (6.0.3.4) lib/active_support/callbacks.rb:825:in `_run_commit_callbacks'
the-mat-house | 2021-01-01 22:46:03 [33aeba17-bc52-4b8c-be9a-76b1bb608cae] activerecord (6.0.3.4) lib/active_record/transactions.rb:339:in `committed!'
the-mat-house | 2021-01-01 22:46:03 [33aeba17-bc52-4b8c-be9a-76b1bb608cae] activerecord (6.0.3.4) lib/active_record/connection_adapters/abstract/transaction.rb:127:in `commit_records'
the-mat-house | 2021-01-01 22:46:03 [33aeba17-bc52-4b8c-be9a-76b1bb608cae] activerecord (6.0.3.4) lib/active_record/connection_adapters/abstract/transaction.rb:265:in `block in commit_transaction'
the-mat-house | 2021-01-01 22:46:03 [33aeba17-bc52-4b8c-be9a-76b1bb608cae] activesupport (6.0.3.4) lib/active_support/concurrency/load_interlock_aware_monitor.rb:26:in `block (2 levels) in synchronize'
the-mat-house | 2021-01-01 22:46:03 [33aeba17-bc52-4b8c-be9a-76b1bb608cae] activesupport (6.0.3.4) lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in `handle_interrupt'
the-mat-house | 2021-01-01 22:46:03 [33aeba17-bc52-4b8c-be9a-76b1bb608cae] activesupport (6.0.3.4) lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in `block in synchronize'
the-mat-house | 2021-01-01 22:46:03 [33aeba17-bc52-4b8c-be9a-76b1bb608cae] activesupport (6.0.3.4) lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in `handle_interrupt'
the-mat-house | 2021-01-01 22:46:03 [33aeba17-bc52-4b8c-be9a-76b1bb608cae] activesupport (6.0.3.4) lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in `synchronize'
the-mat-house | 2021-01-01 22:46:03 [33aeba17-bc52-4b8c-be9a-76b1bb608cae] activerecord (6.0.3.4) lib/active_record/connection_adapters/abstract/transaction.rb:255:in `commit_transaction'
the-mat-house | 2021-01-01 22:46:03 [33aeba17-bc52-4b8c-be9a-76b1bb608cae] activerecord (6.0.3.4) lib/active_record/connection_adapters/abstract/transaction.rb:293:in `block in within_new_transaction'
the-mat-house | 2021-01-01 22:46:03 [33aeba17-bc52-4b8c-be9a-76b1bb608cae] activesupport (6.0.3.4) lib/active_support/concurrency/load_interlock_aware_monitor.rb:26:in `block (2 levels) in synchronize'
the-mat-house | 2021-01-01 22:46:03 [33aeba17-bc52-4b8c-be9a-76b1bb608cae] activesupport (6.0.3.4) lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in `handle_interrupt'
the-mat-house | 2021-01-01 22:46:03 [33aeba17-bc52-4b8c-be9a-76b1bb608cae] activesupport (6.0.3.4) lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in `block in synchronize'
the-mat-house | 2021-01-01 22:46:03 [33aeba17-bc52-4b8c-be9a-76b1bb608cae] activesupport (6.0.3.4) lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in `handle_interrupt'
the-mat-house | 2021-01-01 22:46:03 [33aeba17-bc52-4b8c-be9a-76b1bb608cae] activesupport (6.0.3.4) lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in `synchronize'
the-mat-house | 2021-01-01 22:46:03 [33aeba17-bc52-4b8c-be9a-76b1bb608cae] activerecord (6.0.3.4) lib/active_record/connection_adapters/abstract/transaction.rb:278:in `within_new_transaction'
the-mat-house | 2021-01-01 22:46:03 [33aeba17-bc52-4b8c-be9a-76b1bb608cae] activerecord (6.0.3.4) lib/active_record/connection_adapters/abstract/database_statements.rb:280:in `transaction'
the-mat-house | 2021-01-01 22:46:03 [33aeba17-bc52-4b8c-be9a-76b1bb608cae] activerecord (6.0.3.4) lib/active_record/transactions.rb:212:in `transaction'
the-mat-house | 2021-01-01 22:46:03 [33aeba17-bc52-4b8c-be9a-76b1bb608cae] activerecord (6.0.3.4) lib/active_record/transactions.rb:366:in `with_transaction_returning_status'
the-mat-house | 2021-01-01 22:46:03 [33aeba17-bc52-4b8c-be9a-76b1bb608cae] activerecord (6.0.3.4) lib/active_record/transactions.rb:314:in `save'
the-mat-house | 2021-01-01 22:46:03 [33aeba17-bc52-4b8c-be9a-76b1bb608cae] activerecord (6.0.3.4) lib/active_record/suppressor.rb:44:in `save'
the-mat-house | 2021-01-01 22:46:03 [33aeba17-bc52-4b8c-be9a-76b1bb608cae] devise (4.7.3) app/controllers/devise/registrations_controller.rb:19:in `create'
the-mat-house | 2021-01-01 22:46:03 [33aeba17-bc52-4b8c-be9a-76b1bb608cae] actionpack (6.0.3.4) lib/action_controller/metal/basic_implicit_render.rb:6:in `send_action'
the-mat-house | 2021-01-01 22:46:03 [33aeba17-bc52-4b8c-be9a-76b1bb608cae] actionpack (6.0.3.4) lib/abstract_controller/base.rb:195:in `process_action'
the-mat-house | 2021-01-01 22:46:03 [33aeba17-bc52-4b8c-be9a-76b1bb608cae] actionpack (6.0.3.4) lib/action_controller/metal/rendering.rb:30:in `process_action'
the-mat-house | 2021-01-01 22:46:03 [33aeba17-bc52-4b8c-be9a-76b1bb608cae] actionpack (6.0.3.4) lib/abstract_controller/callbacks.rb:42:in `block in process_action'
the-mat-house | 2021-01-01 22:46:03 [33aeba17-bc52-4b8c-be9a-76b1bb608cae] activesupport (6.0.3.4) lib/active_support/callbacks.rb:135:in `run_callbacks'
the-mat-house | 2021-01-01 22:46:03 [33aeba17-bc52-4b8c-be9a-76b1bb608cae] actionpack (6.0.3.4) lib/abstract_controller/callbacks.rb:41:in `process_action'
the-mat-house | 2021-01-01 22:46:03 [33aeba17-bc52-4b8c-be9a-76b1bb608cae] actionpack (6.0.3.4) lib/action_controller/metal/rescue.rb:22:in `process_action'
the-mat-house | 2021-01-01 22:46:03 [33aeba17-bc52-4b8c-be9a-76b1bb608cae] actionpack (6.0.3.4) lib/action_controller/metal/instrumentation.rb:33:in `block in process_action'
the-mat-house | 2021-01-01 22:46:03 [33aeba17-bc52-4b8c-be9a-76b1bb608cae] activesupport (6.0.3.4) lib/active_support/notifications.rb:180:in `block in instrument'
the-mat-house | 2021-01-01 22:46:03 [33aeba17-bc52-4b8c-be9a-76b1bb608cae] activesupport (6.0.3.4) lib/active_support/notifications/instrumenter.rb:24:in `instrument'
the-mat-house | 2021-01-01 22:46:03 [33aeba17-bc52-4b8c-be9a-76b1bb608cae] activesupport (6.0.3.4) lib/active_support/notifications.rb:180:in `instrument'
the-mat-house | 2021-01-01 22:46:03 [33aeba17-bc52-4b8c-be9a-76b1bb608cae] actionpack (6.0.3.4) lib/action_controller/metal/instrumentation.rb:32:in `process_action'
the-mat-house | 2021-01-01 22:46:03 [33aeba17-bc52-4b8c-be9a-76b1bb608cae] actionpack (6.0.3.4) lib/action_controller/metal/params_wrapper.rb:245:in `process_action'
the-mat-house | 2021-01-01 22:46:03 [33aeba17-bc52-4b8c-be9a-76b1bb608cae] activerecord (6.0.3.4) lib/active_record/railties/controller_runtime.rb:27:in `process_action'
the-mat-house | 2021-01-01 22:46:03 [33aeba17-bc52-4b8c-be9a-76b1bb608cae] actionpack (6.0.3.4) lib/abstract_controller/base.rb:136:in `process'
the-mat-house | 2021-01-01 22:46:03 [33aeba17-bc52-4b8c-be9a-76b1bb608cae] actionview (6.0.3.4) lib/action_view/rendering.rb:39:in `process'
the-mat-house | 2021-01-01 22:46:03 [33aeba17-bc52-4b8c-be9a-76b1bb608cae] actionpack (6.0.3.4) lib/action_controller/metal.rb:190:in `dispatch'
the-mat-house | 2021-01-01 22:46:03 [33aeba17-bc52-4b8c-be9a-76b1bb608cae] actionpack (6.0.3.4) lib/action_controller/metal.rb:254:in `dispatch'
the-mat-house | 2021-01-01 22:46:03 [33aeba17-bc52-4b8c-be9a-76b1bb608cae] actionpack (6.0.3.4) lib/action_dispatch/routing/route_set.rb:50:in `dispatch'
the-mat-house | 2021-01-01 22:46:03 [33aeba17-bc52-4b8c-be9a-76b1bb608cae] actionpack (6.0.3.4) lib/action_dispatch/routing/route_set.rb:33:in `serve'
the-mat-house | 2021-01-01 22:46:03 [33aeba17-bc52-4b8c-be9a-76b1bb608cae] actionpack (6.0.3.4) lib/action_dispatch/routing/mapper.rb:18:in `block in <class:Constraints>'
the-mat-house | 2021-01-01 22:46:03 [33aeba17-bc52-4b8c-be9a-76b1bb608cae] actionpack (6.0.3.4) lib/action_dispatch/routing/mapper.rb:48:in `serve'
the-mat-house | 2021-01-01 22:46:03 [33aeba17-bc52-4b8c-be9a-76b1bb608cae] actionpack (6.0.3.4) lib/action_dispatch/journey/router.rb:49:in `block in serve'
the-mat-house | 2021-01-01 22:46:03 [33aeba17-bc52-4b8c-be9a-76b1bb608cae] actionpack (6.0.3.4) lib/action_dispatch/journey/router.rb:32:in `each'
the-mat-house | 2021-01-01 22:46:03 [33aeba17-bc52-4b8c-be9a-76b1bb608cae] actionpack (6.0.3.4) lib/action_dispatch/journey/router.rb:32:in `serve'
the-mat-house | 2021-01-01 22:46:03 [33aeba17-bc52-4b8c-be9a-76b1bb608cae] actionpack (6.0.3.4) lib/action_dispatch/routing/route_set.rb:834:in `call'
the-mat-house | 2021-01-01 22:46:03 [33aeba17-bc52-4b8c-be9a-76b1bb608cae] omniauth (1.9.1) lib/omniauth/strategy.rb:192:in `call!'
the-mat-house | 2021-01-01 22:46:03 [33aeba17-bc52-4b8c-be9a-76b1bb608cae] omniauth (1.9.1) lib/omniauth/strategy.rb:169:in `call'
the-mat-house | 2021-01-01 22:46:03 [33aeba17-bc52-4b8c-be9a-76b1bb608cae] warden (1.2.9) lib/warden/manager.rb:36:in `block in call'
the-mat-house | 2021-01-01 22:46:03 [33aeba17-bc52-4b8c-be9a-76b1bb608cae] warden (1.2.9) lib/warden/manager.rb:34:in `catch'
the-mat-house | 2021-01-01 22:46:03 [33aeba17-bc52-4b8c-be9a-76b1bb608cae] warden (1.2.9) lib/warden/manager.rb:34:in `call'
the-mat-house | 2021-01-01 22:46:03 [33aeba17-bc52-4b8c-be9a-76b1bb608cae] rack (2.2.3) lib/rack/tempfile_reaper.rb:15:in `call'
the-mat-house | 2021-01-01 22:46:03 [33aeba17-bc52-4b8c-be9a-76b1bb608cae] rack (2.2.3) lib/rack/etag.rb:27:in `call'
the-mat-house | 2021-01-01 22:46:03 [33aeba17-bc52-4b8c-be9a-76b1bb608cae] rack (2.2.3) lib/rack/conditional_get.rb:40:in `call'
the-mat-house | 2021-01-01 22:46:03 [33aeba17-bc52-4b8c-be9a-76b1bb608cae] rack (2.2.3) lib/rack/head.rb:12:in `call'
the-mat-house | 2021-01-01 22:46:03 [33aeba17-bc52-4b8c-be9a-76b1bb608cae] actionpack (6.0.3.4) lib/action_dispatch/http/content_security_policy.rb:18:in `call'
the-mat-house | 2021-01-01 22:46:03 [33aeba17-bc52-4b8c-be9a-76b1bb608cae] rack (2.2.3) lib/rack/session/abstract/id.rb:266:in `context'
the-mat-house | 2021-01-01 22:46:03 [33aeba17-bc52-4b8c-be9a-76b1bb608cae] rack (2.2.3) lib/rack/session/abstract/id.rb:260:in `call'
the-mat-house | 2021-01-01 22:46:03 [33aeba17-bc52-4b8c-be9a-76b1bb608cae] actionpack (6.0.3.4) lib/action_dispatch/middleware/cookies.rb:648:in `call'
the-mat-house | 2021-01-01 22:46:03 [33aeba17-bc52-4b8c-be9a-76b1bb608cae] actionpack (6.0.3.4) lib/action_dispatch/middleware/callbacks.rb:27:in `block in call'
the-mat-house | 2021-01-01 22:46:03 [33aeba17-bc52-4b8c-be9a-76b1bb608cae] activesupport (6.0.3.4) lib/active_support/callbacks.rb:101:in `run_callbacks'
the-mat-house | 2021-01-01 22:46:03 [33aeba17-bc52-4b8c-be9a-76b1bb608cae] actionpack (6.0.3.4) lib/action_dispatch/middleware/callbacks.rb:26:in `call'
the-mat-house | 2021-01-01 22:46:03 [33aeba17-bc52-4b8c-be9a-76b1bb608cae] actionpack (6.0.3.4) lib/action_dispatch/middleware/actionable_exceptions.rb:18:in `call'
the-mat-house | 2021-01-01 22:46:03 [33aeba17-bc52-4b8c-be9a-76b1bb608cae] actionpack (6.0.3.4) lib/action_dispatch/middleware/debug_exceptions.rb:32:in `call'
the-mat-house | 2021-01-01 22:46:03 [33aeba17-bc52-4b8c-be9a-76b1bb608cae] actionpack (6.0.3.4) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call'
the-mat-house | 2021-01-01 22:46:03 [33aeba17-bc52-4b8c-be9a-76b1bb608cae] railties (6.0.3.4) lib/rails/rack/logger.rb:37:in `call_app'
the-mat-house | 2021-01-01 22:46:03 [33aeba17-bc52-4b8c-be9a-76b1bb608cae] railties (6.0.3.4) lib/rails/rack/logger.rb:26:in `block in call'
the-mat-house | 2021-01-01 22:46:03 [33aeba17-bc52-4b8c-be9a-76b1bb608cae] activesupport (6.0.3.4) lib/active_support/tagged_logging.rb:80:in `block in tagged'
the-mat-house | 2021-01-01 22:46:03 [33aeba17-bc52-4b8c-be9a-76b1bb608cae] activesupport (6.0.3.4) lib/active_support/tagged_logging.rb:28:in `tagged'
the-mat-house | 2021-01-01 22:46:03 [33aeba17-bc52-4b8c-be9a-76b1bb608cae] activesupport (6.0.3.4) lib/active_support/tagged_logging.rb:80:in `tagged'
the-mat-house | 2021-01-01 22:46:03 [33aeba17-bc52-4b8c-be9a-76b1bb608cae] railties (6.0.3.4) lib/rails/rack/logger.rb:26:in `call'
the-mat-house | 2021-01-01 22:46:03 [33aeba17-bc52-4b8c-be9a-76b1bb608cae] actionpack (6.0.3.4) lib/action_dispatch/middleware/remote_ip.rb:81:in `call'
the-mat-house | 2021-01-01 22:46:03 [33aeba17-bc52-4b8c-be9a-76b1bb608cae] actionpack (6.0.3.4) lib/action_dispatch/middleware/request_id.rb:27:in `call'
the-mat-house | 2021-01-01 22:46:03 [33aeba17-bc52-4b8c-be9a-76b1bb608cae] rack (2.2.3) lib/rack/method_override.rb:24:in `call'
the-mat-house | 2021-01-01 22:46:03 [33aeba17-bc52-4b8c-be9a-76b1bb608cae] rack (2.2.3) lib/rack/runtime.rb:22:in `call'
the-mat-house | 2021-01-01 22:46:03 [33aeba17-bc52-4b8c-be9a-76b1bb608cae] activesupport (6.0.3.4) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call'
the-mat-house | 2021-01-01 22:46:03 [33aeba17-bc52-4b8c-be9a-76b1bb608cae] actionpack (6.0.3.4) lib/action_dispatch/middleware/executor.rb:14:in `call'
the-mat-house | 2021-01-01 22:46:03 [33aeba17-bc52-4b8c-be9a-76b1bb608cae] actionpack (6.0.3.4) lib/action_dispatch/middleware/static.rb:126:in `call'
the-mat-house | 2021-01-01 22:46:03 [33aeba17-bc52-4b8c-be9a-76b1bb608cae] rack (2.2.3) lib/rack/sendfile.rb:110:in `call'
the-mat-house | 2021-01-01 22:46:03 [33aeba17-bc52-4b8c-be9a-76b1bb608cae] actionpack (6.0.3.4) lib/action_dispatch/middleware/host_authorization.rb:76:in `call'
the-mat-house | 2021-01-01 22:46:03 [33aeba17-bc52-4b8c-be9a-76b1bb608cae] railties (6.0.3.4) lib/rails/engine.rb:527:in `call'
the-mat-house | 2021-01-01 22:46:03 [33aeba17-bc52-4b8c-be9a-76b1bb608cae] puma (4.3.7) lib/puma/configuration.rb:228:in `call'
the-mat-house | 2021-01-01 22:46:03 [33aeba17-bc52-4b8c-be9a-76b1bb608cae] puma (4.3.7) lib/puma/server.rb:713:in `handle_request'
the-mat-house | 2021-01-01 22:46:03 [33aeba17-bc52-4b8c-be9a-76b1bb608cae] puma (4.3.7) lib/puma/server.rb:472:in `process_client'
the-mat-house | 2021-01-01 22:46:03 [33aeba17-bc52-4b8c-be9a-76b1bb608cae] puma (4.3.7) lib/puma/server.rb:328:in `block in run'
the-mat-house | 2021-01-01 22:46:03 [33aeba17-bc52-4b8c-be9a-76b1bb608cae] puma (4.3.7) lib/puma/thread_pool.rb:134:in `block in spawn_thread'
I had to leave out the modal code with the forms because it put me over the post limit. If you need to see it let me kow and I'll add it in an answer.
This is my enviroment.rb file:
# Load the Rails application.
require_relative 'application'
# Initialize the Rails application.
Rails.application.initialize!
ActionMailer::Base.delivery_method = :smtp
ActionMailer::Base.smtp_settings = {
:tls => true,
:address => "smtpout.secureserver.net",
:port => 25,
:domain => "themathouse.com",
:authentication => :login,
:user_name => "username",
:password => "password"
}
And here is my enviroments/production.rb code:
config.action_mailer.default_url_options = {:host => 'smtpout.secureserver.net'}
config.action_mailer.delivery_method = :smtp
config.action_mailer.smtp_settings = {
:address => "68.178.213.243",
:port => 25,
:domain => 'themathouse.com'
}
Thanks

in my personal project, I have email sent from Devise, using the following configuration (I'm using SendGrid and Heroku for production):
production.rb
config.action_mailer.default_url_options = { host: 'webserver.com' }
config.action_mailer.delivery_method = :smtp
ActionMailer::Base.smtp_settings = {
address: 'smtp.sendgrid.net',
port: 587,
user_name: 'apikey',
password: ENV['SENDGRID_API_KEY'],
domain: ENV['SENDGRID_DOMAIN'],
authentication: :plain,
enable_starttls_auto: true
}
devise.rb
config.mailer_sender = 'app#webserver.com'
I don't have any configuration in my environment.rb file
P.S. I use "Letter Opener" https://github.com/ryanb/letter_opener for development.

I figured it out. My domain is hosted somewhere else but it's being managed for my app by digitalocean so I had to setup the MX records for my email at digitalocean and I guess I had a mistake so I deleted them and started over.
I also updated the production.rb file:
config.action_mailer.default_url_options = {:host => 'mydomain.com'}
config.action_mailer.delivery_method = :smtp
config.action_mailer.smtp_settings = {
:address => "mysmtpout.host",
:port => 25,
:domain => 'mydomain.com'
}

Related

rake aborted! NoMethodError: undefined method `alias_method_chain' for ActiveRecord::SchemaDumper:Class

when i added the foreigner gem in gemfile this occur and i am upgrading rails 4.1 to 6.1:
any solution anyone have fast post otherwise you can mail to santu.essence#gmail.com
/usr/local/bundle/bundler/gems/foreigner-0496762a6c0a/lib/foreigner/schema_dumper.rb:6:in block in <module:SchemaDumper>' /usr/local/bundle/gems/activesupport-6.1.4.1/lib/active_support/concern.rb:136:in class_eval'
/usr/local/bundle/gems/activesupport-6.1.4.1/lib/active_support/concern.rb:136:in append_features' /usr/local/bundle/bundler/gems/foreigner-0496762a6c0a/lib/foreigner/loader.rb:9:in include'
/usr/local/bundle/bundler/gems/foreigner-0496762a6c0a/lib/foreigner/loader.rb:9:in block in load' /usr/local/bundle/bundler/gems/foreigner-0496762a6c0a/lib/foreigner/loader.rb:8:in class_eval'
/usr/local/bundle/bundler/gems/foreigner-0496762a6c0a/lib/foreigner/loader.rb:8:in load' /usr/local/bundle/bundler/gems/foreigner-0496762a6c0a/lib/foreigner/railtie.rb:5:in block (2 levels) in class:Railtie'
/usr/local/bundle/gems/activesupport-6.1.4.1/lib/active_support/lazy_load_hooks.rb:71:in class_eval' /usr/local/bundle/gems/activesupport-6.1.4.1/lib/active_support/lazy_load_hooks.rb:71:in block in execute_hook'
/usr/local/bundle/gems/activesupport-6.1.4.1/lib/active_support/lazy_load_hooks.rb:61:in with_execution_control' /usr/local/bundle/gems/activesupport-6.1.4.1/lib/active_support/lazy_load_hooks.rb:66:in execute_hook'
/usr/local/bundle/gems/activesupport-6.1.4.1/lib/active_support/lazy_load_hooks.rb:52:in block in run_load_hooks' /usr/local/bundle/gems/activesupport-6.1.4.1/lib/active_support/lazy_load_hooks.rb:51:in each'
/usr/local/bundle/gems/activesupport-6.1.4.1/lib/active_support/lazy_load_hooks.rb:51:in run_load_hooks' /usr/local/bundle/gems/activerecord-6.1.4.1/lib/active_record/base.rb:315:in module:ActiveRecord'
/usr/local/bundle/gems/activerecord-6.1.4.1/lib/active_record/base.rb:15:in <top (required)>' worker_1 | /usr/local/bundle/gems/zeitwerk-2.5.1/lib/zeitwerk/kernel.rb:35:in require'
worker_1 | /usr/local/bundle/gems/zeitwerk-2.5.1/lib/zeitwerk/kernel.rb:35:in require' worker_1 | /usr/local/bundle/gems/activerecord-6.1.4.1/lib/active_record/railtie.rb:132:in block (3 levels) in class:Railtie'
worker_1 | /usr/local/bundle/gems/activesupport-6.1.4.1/lib/active_support/lazy_load_hooks.rb:71:in class_eval' worker_1 | /usr/local/bundle/gems/activesupport-6.1.4.1/lib/active_support/lazy_load_hooks.rb:71:in block in execute_hook'
worker_1 | /usr/local/bundle/gems/activesupport-6.1.4.1/lib/active_support/lazy_load_hooks.rb:61:in with_execution_control' worker_1 | /usr/local/bundle/gems/activesupport-6.1.4.1/lib/active_support/lazy_load_hooks.rb:66:in execute_hook'
worker_1 | /usr/local/bundle/gems/activesupport-6.1.4.1/lib/active_support/lazy_load_hooks.rb:43:in block in on_load' worker_1 | /usr/local/bundle/gems/activesupport-6.1.4.1/lib/active_support/lazy_load_hooks.rb:42:in each'
worker_1 | /usr/local/bundle/gems/activesupport-6.1.4.1/lib/active_support/lazy_load_hooks.rb:42:in on_load' worker_1 | /usr/local/bundle/gems/activerecord-6.1.4.1/lib/active_record/railtie.rb:131:in block (2 levels) in class:Railtie'
worker_1 | /usr/local/bundle/gems/activesupport-6.1.4.1/lib/active_support/lazy_load_hooks.rb:68:in block in execute_hook' worker_1 | /usr/local/bundle/gems/activesupport-6.1.4.1/lib/active_support/lazy_load_hooks.rb:61:in with_execution_control'
worker_1 | /usr/local/bundle/gems/activesupport-6.1.4.1/lib/active_support/lazy_load_hooks.rb:66:in execute_hook' worker_1 | /usr/local/bundle/gems/activesupport-6.1.4.1/lib/active_support/lazy_load_hooks.rb:52:in block in run_load_hooks'
worker_1 | /usr/local/bundle/gems/activesupport-6.1.4.1/lib/active_support/lazy_load_hooks.rb:51:in each' worker_1 | /usr/local/bundle/gems/activesupport-6.1.4.1/lib/active_support/lazy_load_hooks.rb:51:in run_load_hooks'
worker_1 | /usr/local/bundle/gems/railties-6.1.4.1/lib/rails/application/finisher.rb:140:in block in <module:Finisher>' worker_1 | /usr/local/bundle/gems/railties-6.1.4.1/lib/rails/initializable.rb:32:in instance_exec'
worker_1 | /usr/local/bundle/gems/railties-6.1.4.1/lib/rails/initializable.rb:32:in run' worker_1 | /usr/local/bundle/gems/railties-6.1.4.1/lib/rails/initializable.rb:61:in block in run_initializers'
worker_1 | /usr/local/bundle/gems/railties-6.1.4.1/lib/rails/initializable.rb:60:in run_initializers' worker_1 | /usr/local/bundle/gems/railties-6.1.4.1/lib/rails/application.rb:391:in initialize!'
worker_1 | /usr/src/app/config/environment.rb:4:in <top (required)>' worker_1 | /usr/local/bundle/gems/zeitwerk-2.5.1/lib/zeitwerk/kernel.rb:35:in require'
worker_1 | /usr/local/bundle/gems/zeitwerk-2.5.1/lib/zeitwerk/kernel.rb:35:in require' worker_1 | /usr/local/bundle/gems/activesupport-6.1.4.1/lib/active_support/dependencies.rb:332:in block in require'
worker_1 | /usr/local/bundle/gems/activesupport-6.1.4.1/lib/active_support/dependencies.rb:299:in load_dependency' worker_1 | /usr/local/bundle/gems/activesupport-6.1.4.1/lib/active_support/dependencies.rb:332:in require'
worker_1 | /usr/local/bundle/gems/railties-6.1.4.1/lib/rails/application.rb:367:in require_environment!' worker_1 | /usr/local/bundle/gems/railties-6.1.4.1/lib/rails/application.rb:533:in block in run_tasks_blocks'
worker_1 | /usr/local/bundle/gems/rake-13.0.6/exe/rake:27:in `<top (required)>'
worker_1 | Tasks: TOP => resque:work => resque:preload => resque:setup => environment
worker_1 | (See full trace by running task with --trace)

How can I install yarn on the docker environment?

Now, I am trying to create the environment for Ruby on rails on docker.
I read the documents and some blogs some people wrote and tried.
But I got errors and couldn't go through with it.
It seems like that I have to install yarn in the docker environment but I don't know if I did it in a right way or not.
If anyone knows anything, please tell me.
what I wrote so far is something like this.
Dockerfile
FROM ruby:3.0.2
RUN apt-get update -qq && apt-get install -y nodejs postgresql-client
RUN mkdir /docker-test2
WORKDIR /docker-test2
COPY Gemfile /docker-test2/Gemfile
COPY Gemfile.lock /docker-test2/Gemfile.lock
RUN bundle install
COPY . /docker-test2
# Add a script to be executed every time the container starts.
COPY entrypoint.sh /usr/bin/
RUN chmod +x /usr/bin/entrypoint.sh
ENTRYPOINT ["entrypoint.sh"]
EXPOSE 3000
# Start the main process.
CMD ["rails", "server", "-b", "0.0.0.0"]
docker-compose.yml
version: "3.9"
services:
db:
image: postgres
volumes:
- ./tmp/db:/var/lib/postgresql/data
environment:
POSTGRES_PASSWORD: password
web:
build: .
command: bash -c "rm -f tmp/pids/server.pid && bundle exec rails s -p 3000 -b '0.0.0.0'"
volumes:
- .:/docker-test2
ports:
- "3000:3000"
depends_on:
- db
entrypoint.sh
#!/bin/bash
set -e
# Remove a potentially pre-existing server.pid for Rails.
rm -f /docker-test2/tmp/pids/server.pid
# Then exec the container's main process (what's set as CMD in the Dockerfile).
exec "$#"
when I tried docker-compose run the error says something like this.
Attaching to docker-test2_db_1, docker-test2_web_1
db_1 | The files belonging to this database system will be owned by user "postgres".
db_1 | This user must also own the server process.
db_1 |
db_1 | The database cluster will be initialized with locale "en_US.utf8".
db_1 | The default database encoding has accordingly been set to "UTF8".
db_1 | The default text search configuration will be set to "english".
db_1 |
db_1 | Data page checksums are disabled.
db_1 |
db_1 | fixing permissions on existing directory /var/lib/postgresql/data ... ok
db_1 | creating subdirectories ... ok
db_1 | selecting dynamic shared memory implementation ... posix
db_1 | selecting default max_connections ... 100
db_1 | selecting default shared_buffers ... 128MB
db_1 | selecting default time zone ... Etc/UTC
db_1 | creating configuration files ... ok
db_1 | running bootstrap script ... ok
db_1 | performing post-bootstrap initialization ... ok
db_1 | syncing data to disk ... ok
db_1 |
db_1 |
db_1 | Success. You can now start the database server using:
db_1 | initdb: warning: enabling "trust" authentication for local connections
db_1 | You can change this by editing pg_hba.conf or using the option -A, or
db_1 | --auth-local and --auth-host, the next time you run initdb.
db_1 |
db_1 | pg_ctl -D /var/lib/postgresql/data -l logfile start
db_1 |
db_1 | waiting for server to start....2021-08-30 09:03:01.284 UTC [47] LOG: starting PostgreSQL 13.4 (Debian 13.4-1.pgdg100+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 8.3.0-6) 8.3.0, 64-bit
db_1 | 2021-08-30 09:03:01.285 UTC [47] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
db_1 | 2021-08-30 09:03:01.299 UTC [48] LOG: database system was shut down at 2021-08-30 09:02:59 UTC
db_1 | 2021-08-30 09:03:01.322 UTC [47] LOG: database system is ready to accept connections
db_1 | done
db_1 | server started
db_1 |
db_1 | /usr/local/bin/docker-entrypoint.sh: ignoring /docker-entrypoint-initdb.d/*
db_1 |
db_1 | 2021-08-30 09:03:01.497 UTC [47] LOG: received fast shutdown request
db_1 | waiting for server to shut down....2021-08-30 09:03:01.498 UTC [47] LOG: aborting any active transactions
db_1 | 2021-08-30 09:03:01.500 UTC [47] LOG: background worker "logical replication launcher" (PID 54) exited with exit code 1
db_1 | 2021-08-30 09:03:01.500 UTC [49] LOG: shutting down
db_1 | 2021-08-30 09:03:01.544 UTC [47] LOG: database system is shut down
db_1 | done
db_1 | server stopped
db_1 |
db_1 | PostgreSQL init process complete; ready for start up.
db_1 |
db_1 | 2021-08-30 09:03:01.627 UTC [1] LOG: starting PostgreSQL 13.4 (Debian 13.4-1.pgdg100+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 8.3.0-6) 8.3.0, 64-bit
db_1 | 2021-08-30 09:03:01.627 UTC [1] LOG: listening on IPv4 address "0.0.0.0", port 5432
db_1 | 2021-08-30 09:03:01.627 UTC [1] LOG: listening on IPv6 address "::", port 5432
db_1 | 2021-08-30 09:03:01.631 UTC [1] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
db_1 | 2021-08-30 09:03:01.652 UTC [66] LOG: database system was shut down at 2021-08-30 09:03:01 UTC
db_1 | 2021-08-30 09:03:01.671 UTC [1] LOG: database system is ready to accept connections
db_1 |
db_1 | PostgreSQL Database directory appears to contain a database; Skipping initialization
db_1 |
db_1 | 2021-08-30 09:04:33.607 UTC [1] LOG: starting PostgreSQL 13.4 (Debian 13.4-1.pgdg100+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 8.3.0-6) 8.3.0, 64-bit
db_1 | 2021-08-30 09:04:33.607 UTC [1] LOG: listening on IPv4 address "0.0.0.0", port 5432
db_1 | 2021-08-30 09:04:33.607 UTC [1] LOG: listening on IPv6 address "::", port 5432
db_1 | 2021-08-30 09:04:33.611 UTC [1] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
db_1 | 2021-08-30 09:04:33.659 UTC [27] LOG: database system was interrupted; last known up at 2021-08-30 09:03:01 UTC
db_1 | 2021-08-30 09:04:34.659 UTC [27] LOG: database system was not properly shut down; automatic recovery in progress
db_1 | 2021-08-30 09:04:34.676 UTC [27] LOG: redo starts at 0/15C6DD8
db_1 | 2021-08-30 09:04:34.676 UTC [27] LOG: invalid record length at 0/15C6E10: wanted 24, got 0
db_1 | 2021-08-30 09:04:34.676 UTC [27] LOG: redo done at 0/15C6DD8
db_1 | 2021-08-30 09:04:34.694 UTC [1] LOG: database system is ready to accept connections
db_1 |
db_1 | PostgreSQL Database directory appears to contain a database; Skipping initialization
db_1 |
db_1 | 2021-08-30 09:11:48.053 UTC [1] LOG: starting PostgreSQL 13.4 (Debian 13.4-1.pgdg100+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 8.3.0-6) 8.3.0, 64-bit
db_1 | 2021-08-30 09:11:48.053 UTC [1] LOG: listening on IPv4 address "0.0.0.0", port 5432
db_1 | 2021-08-30 09:11:48.053 UTC [1] LOG: listening on IPv6 address "::", port 5432
db_1 | 2021-08-30 09:11:48.056 UTC [1] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
db_1 | 2021-08-30 09:11:48.105 UTC [27] LOG: database system was interrupted; last known up at 2021-08-30 09:04:34 UTC
db_1 | 2021-08-30 09:11:49.433 UTC [27] LOG: database system was not properly shut down; automatic recovery in progress
db_1 | 2021-08-30 09:11:49.436 UTC [27] LOG: redo starts at 0/15C6E88
db_1 | 2021-08-30 09:11:49.436 UTC [27] LOG: invalid record length at 0/15C6EC0: wanted 24, got 0
db_1 | 2021-08-30 09:11:49.436 UTC [27] LOG: redo done at 0/15C6E88
db_1 | 2021-08-30 09:11:49.454 UTC [1] LOG: database system is ready to accept connections
web_1 | => Booting Puma
web_1 | => Rails 6.1.4.1 application starting in development
web_1 | => Run `bin/rails server --help` for more startup options
web_1 | Exiting
web_1 | /usr/local/bundle/gems/webpacker-5.4.2/lib/webpacker/configuration.rb:103:in `rescue in load': Webpacker configuration file not found /docker-test2/config/webpacker.yml. Please run rails webpacker:install Error: No such file or directory # rb_sysopen - /docker-test2/config/webpacker.yml (RuntimeError)
web_1 | from /usr/local/bundle/gems/webpacker-5.4.2/lib/webpacker/configuration.rb:95:in `load'
web_1 | from /usr/local/bundle/gems/webpacker-5.4.2/lib/webpacker/configuration.rb:92:in `data'
web_1 | from /usr/local/bundle/gems/webpacker-5.4.2/lib/webpacker/configuration.rb:88:in `fetch'
web_1 | from /usr/local/bundle/gems/webpacker-5.4.2/lib/webpacker/configuration.rb:43:in `public_path'
web_1 | from /usr/local/bundle/gems/webpacker-5.4.2/lib/webpacker/configuration.rb:47:in `public_output_path'
web_1 | from /usr/local/bundle/gems/webpacker-5.4.2/lib/webpacker/configuration.rb:51:in `public_manifest_path'
web_1 | from /usr/local/bundle/gems/webpacker-5.4.2/lib/webpacker/manifest.rb:83:in `load'
web_1 | from /usr/local/bundle/gems/webpacker-5.4.2/lib/webpacker/manifest.rb:18:in `refresh'
web_1 | from /usr/local/bundle/gems/webpacker-5.4.2/lib/webpacker/commands.rb:47:in `bootstrap'
web_1 | from /usr/local/bundle/gems/webpacker-5.4.2/lib/webpacker.rb:35:in `bootstrap'
web_1 | from /usr/local/bundle/gems/webpacker-5.4.2/lib/webpacker/railtie.rb:41:in `block in <class:Engine>'
web_1 | from /usr/local/bundle/gems/railties-6.1.4.1/lib/rails/initializable.rb:32:in `instance_exec'
web_1 | from /usr/local/bundle/gems/railties-6.1.4.1/lib/rails/initializable.rb:32:in `run'
web_1 | from /usr/local/bundle/gems/railties-6.1.4.1/lib/rails/initializable.rb:61:in `block in run_initializers'
web_1 | from /usr/local/lib/ruby/3.0.0/tsort.rb:228:in `block in tsort_each'
web_1 | from /usr/local/lib/ruby/3.0.0/tsort.rb:350:in `block (2 levels) in each_strongly_connected_component'
web_1 | from /usr/local/lib/ruby/3.0.0/tsort.rb:431:in `each_strongly_connected_component_from'
web_1 | from /usr/local/lib/ruby/3.0.0/tsort.rb:349:in `block in each_strongly_connected_component'
web_1 | from /usr/local/lib/ruby/3.0.0/tsort.rb:347:in `each'
web_1 | from /usr/local/lib/ruby/3.0.0/tsort.rb:347:in `call'
web_1 | from /usr/local/lib/ruby/3.0.0/tsort.rb:347:in `each_strongly_connected_component'
web_1 | from /usr/local/lib/ruby/3.0.0/tsort.rb:226:in `tsort_each'
web_1 | from /usr/local/lib/ruby/3.0.0/tsort.rb:205:in `tsort_each'
web_1 | from /usr/local/bundle/gems/railties-6.1.4.1/lib/rails/initializable.rb:60:in `run_initializers'
web_1 | from /usr/local/bundle/gems/railties-6.1.4.1/lib/rails/application.rb:391:in `initialize!'
web_1 | from /docker-test2/config/environment.rb:5:in `<main>'
web_1 | from /usr/local/bundle/gems/bootsnap-1.8.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
web_1 | from /usr/local/bundle/gems/bootsnap-1.8.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
web_1 | from /usr/local/bundle/gems/bootsnap-1.8.1/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
web_1 | from /usr/local/bundle/gems/bootsnap-1.8.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
web_1 | from /usr/local/bundle/gems/bootsnap-1.8.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
web_1 | from /usr/local/bundle/gems/zeitwerk-2.4.2/lib/zeitwerk/kernel.rb:34:in `require'
web_1 | from /usr/local/bundle/gems/activesupport-6.1.4.1/lib/active_support/dependencies.rb:332:in `block in require'
web_1 | from /usr/local/bundle/gems/activesupport-6.1.4.1/lib/active_support/dependencies.rb:299:in `load_dependency'
web_1 | from /usr/local/bundle/gems/activesupport-6.1.4.1/lib/active_support/dependencies.rb:332:in `require'
web_1 | from /usr/local/bundle/gems/bootsnap-1.8.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:54:in `require_relative'
web_1 | from config.ru:3:in `block in <main>'
web_1 | from /usr/local/bundle/gems/rack-2.2.3/lib/rack/builder.rb:116:in `eval'
web_1 | from /usr/local/bundle/gems/rack-2.2.3/lib/rack/builder.rb:116:in `new_from_string'
web_1 | from /usr/local/bundle/gems/rack-2.2.3/lib/rack/builder.rb:105:in `load_file'
web_1 | from /usr/local/bundle/gems/rack-2.2.3/lib/rack/builder.rb:66:in `parse_file'
web_1 | from /usr/local/bundle/gems/rack-2.2.3/lib/rack/server.rb:349:in `build_app_and_options_from_config'
web_1 | from /usr/local/bundle/gems/rack-2.2.3/lib/rack/server.rb:249:in `app'
web_1 | from /usr/local/bundle/gems/rack-2.2.3/lib/rack/server.rb:422:in `wrapped_app'
web_1 | from /usr/local/bundle/gems/railties-6.1.4.1/lib/rails/commands/server/server_command.rb:77:in `log_to_stdout'
web_1 | from /usr/local/bundle/gems/railties-6.1.4.1/lib/rails/commands/server/server_command.rb:37:in `start'
web_1 | from /usr/local/bundle/gems/railties-6.1.4.1/lib/rails/commands/server/server_command.rb:144:in `block in perform'
web_1 | from <internal:kernel>:90:in `tap'
web_1 | from /usr/local/bundle/gems/railties-6.1.4.1/lib/rails/commands/server/server_command.rb:135:in `perform'
web_1 | from /usr/local/bundle/gems/thor-1.1.0/lib/thor/command.rb:27:in `run'
web_1 | from /usr/local/bundle/gems/thor-1.1.0/lib/thor/invocation.rb:127:in `invoke_command'
web_1 | from /usr/local/bundle/gems/thor-1.1.0/lib/thor.rb:392:in `dispatch'
web_1 | from /usr/local/bundle/gems/railties-6.1.4.1/lib/rails/command/base.rb:69:in `perform'
web_1 | from /usr/local/bundle/gems/railties-6.1.4.1/lib/rails/command.rb:48:in `invoke'
web_1 | from /usr/local/bundle/gems/railties-6.1.4.1/lib/rails/commands.rb:18:in `<main>'
web_1 | from /usr/local/bundle/gems/bootsnap-1.8.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
web_1 | from /usr/local/bundle/gems/bootsnap-1.8.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
web_1 | from /usr/local/bundle/gems/bootsnap-1.8.1/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
web_1 | from /usr/local/bundle/gems/bootsnap-1.8.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
web_1 | from /usr/local/bundle/gems/bootsnap-1.8.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
web_1 | from /docker-test2/bin/rails:5:in `<top (required)>'
web_1 | from /usr/local/bundle/gems/spring-2.1.1/lib/spring/client/rails.rb:28:in `load'
web_1 | from /usr/local/bundle/gems/spring-2.1.1/lib/spring/client/rails.rb:28:in `call'
web_1 | from /usr/local/bundle/gems/spring-2.1.1/lib/spring/client/command.rb:7:in `call'
web_1 | from /usr/local/bundle/gems/spring-2.1.1/lib/spring/client.rb:30:in `run'
web_1 | from /usr/local/bundle/gems/spring-2.1.1/bin/spring:49:in `<top (required)>'
web_1 | from /usr/local/bundle/gems/spring-2.1.1/lib/spring/binstub.rb:11:in `load'
web_1 | from /usr/local/bundle/gems/spring-2.1.1/lib/spring/binstub.rb:11:in `<top (required)>'
web_1 | from /docker-test2/bin/spring:10:in `require'
web_1 | from /docker-test2/bin/spring:10:in `block in <top (required)>'
web_1 | from <internal:kernel>:90:in `tap'
web_1 | from /docker-test2/bin/spring:7:in `<top (required)>'
web_1 | from bin/rails:2:in `load'
web_1 | from bin/rails:2:in `<main>'
web_1 | /usr/local/lib/ruby/3.0.0/psych.rb:581:in `initialize': No such file or directory # rb_sysopen - /docker-test2/config/webpacker.yml (Errno::ENOENT)
web_1 | from /usr/local/lib/ruby/3.0.0/psych.rb:581:in `open'
web_1 | from /usr/local/lib/ruby/3.0.0/psych.rb:581:in `load_file'
web_1 | from /usr/local/bundle/gems/bootsnap-1.8.1/lib/bootsnap/compile_cache/yaml.rb:124:in `load_file'
web_1 | from /usr/local/bundle/gems/webpacker-5.4.2/lib/webpacker/configuration.rb:97:in `load'
web_1 | from /usr/local/bundle/gems/webpacker-5.4.2/lib/webpacker/configuration.rb:92:in `data'
web_1 | from /usr/local/bundle/gems/webpacker-5.4.2/lib/webpacker/configuration.rb:88:in `fetch'
web_1 | from /usr/local/bundle/gems/webpacker-5.4.2/lib/webpacker/configuration.rb:43:in `public_path'
web_1 | from /usr/local/bundle/gems/webpacker-5.4.2/lib/webpacker/configuration.rb:47:in `public_output_path'
web_1 | from /usr/local/bundle/gems/webpacker-5.4.2/lib/webpacker/configuration.rb:51:in `public_manifest_path'
web_1 | from /usr/local/bundle/gems/webpacker-5.4.2/lib/webpacker/manifest.rb:83:in `load'
web_1 | from /usr/local/bundle/gems/webpacker-5.4.2/lib/webpacker/manifest.rb:18:in `refresh'
web_1 | from /usr/local/bundle/gems/webpacker-5.4.2/lib/webpacker/commands.rb:47:in `bootstrap'
web_1 | from /usr/local/bundle/gems/webpacker-5.4.2/lib/webpacker.rb:35:in `bootstrap'
web_1 | from /usr/local/bundle/gems/webpacker-5.4.2/lib/webpacker/railtie.rb:41:in `block in <class:Engine>'
web_1 | from /usr/local/bundle/gems/railties-6.1.4.1/lib/rails/initializable.rb:32:in `instance_exec'
web_1 | from /usr/local/bundle/gems/railties-6.1.4.1/lib/rails/initializable.rb:32:in `run'
web_1 | from /usr/local/bundle/gems/railties-6.1.4.1/lib/rails/initializable.rb:61:in `block in run_initializers'
web_1 | from /usr/local/lib/ruby/3.0.0/tsort.rb:228:in `block in tsort_each'
web_1 | from /usr/local/lib/ruby/3.0.0/tsort.rb:350:in `block (2 levels) in each_strongly_connected_component'
web_1 | from /usr/local/lib/ruby/3.0.0/tsort.rb:431:in `each_strongly_connected_component_from'
web_1 | from /usr/local/lib/ruby/3.0.0/tsort.rb:349:in `block in each_strongly_connected_component'
web_1 | from /usr/local/lib/ruby/3.0.0/tsort.rb:347:in `each'
web_1 | from /usr/local/lib/ruby/3.0.0/tsort.rb:347:in `call'
web_1 | from /usr/local/lib/ruby/3.0.0/tsort.rb:347:in `each_strongly_connected_component'
web_1 | from /usr/local/lib/ruby/3.0.0/tsort.rb:226:in `tsort_each'
web_1 | from /usr/local/lib/ruby/3.0.0/tsort.rb:205:in `tsort_each'
web_1 | from /usr/local/bundle/gems/railties-6.1.4.1/lib/rails/initializable.rb:60:in `run_initializers'
web_1 | from /usr/local/bundle/gems/railties-6.1.4.1/lib/rails/application.rb:391:in `initialize!'
web_1 | from /docker-test2/config/environment.rb:5:in `<main>'
web_1 | from /usr/local/bundle/gems/bootsnap-1.8.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
web_1 | from /usr/local/bundle/gems/bootsnap-1.8.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
web_1 | from /usr/local/bundle/gems/bootsnap-1.8.1/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
web_1 | from /usr/local/bundle/gems/bootsnap-1.8.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
web_1 | from /usr/local/bundle/gems/bootsnap-1.8.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
web_1 | from /usr/local/bundle/gems/zeitwerk-2.4.2/lib/zeitwerk/kernel.rb:34:in `require'
web_1 | from /usr/local/bundle/gems/activesupport-6.1.4.1/lib/active_support/dependencies.rb:332:in `block in require'
web_1 | from /usr/local/bundle/gems/activesupport-6.1.4.1/lib/active_support/dependencies.rb:299:in `load_dependency'
web_1 | from /usr/local/bundle/gems/activesupport-6.1.4.1/lib/active_support/dependencies.rb:332:in `require'
web_1 | from /usr/local/bundle/gems/bootsnap-1.8.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:54:in `require_relative'
web_1 | from config.ru:3:in `block in <main>'
web_1 | from /usr/local/bundle/gems/rack-2.2.3/lib/rack/builder.rb:116:in `eval'
web_1 | from /usr/local/bundle/gems/rack-2.2.3/lib/rack/builder.rb:116:in `new_from_string'
web_1 | from /usr/local/bundle/gems/rack-2.2.3/lib/rack/builder.rb:105:in `load_file'
web_1 | from /usr/local/bundle/gems/rack-2.2.3/lib/rack/builder.rb:66:in `parse_file'
web_1 | from /usr/local/bundle/gems/rack-2.2.3/lib/rack/server.rb:349:in `build_app_and_options_from_config'
web_1 | from /usr/local/bundle/gems/rack-2.2.3/lib/rack/server.rb:249:in `app'
web_1 | from /usr/local/bundle/gems/rack-2.2.3/lib/rack/server.rb:422:in `wrapped_app'
web_1 | from /usr/local/bundle/gems/railties-6.1.4.1/lib/rails/commands/server/server_command.rb:77:in `log_to_stdout'
web_1 | from /usr/local/bundle/gems/railties-6.1.4.1/lib/rails/commands/server/server_command.rb:37:in `start'
web_1 | from /usr/local/bundle/gems/railties-6.1.4.1/lib/rails/commands/server/server_command.rb:144:in `block in perform'
web_1 | from <internal:kernel>:90:in `tap'
web_1 | from /usr/local/bundle/gems/railties-6.1.4.1/lib/rails/commands/server/server_command.rb:135:in `perform'
web_1 | from /usr/local/bundle/gems/thor-1.1.0/lib/thor/command.rb:27:in `run'
web_1 | from /usr/local/bundle/gems/thor-1.1.0/lib/thor/invocation.rb:127:in `invoke_command'
web_1 | from /usr/local/bundle/gems/thor-1.1.0/lib/thor.rb:392:in `dispatch'
web_1 | from /usr/local/bundle/gems/railties-6.1.4.1/lib/rails/command/base.rb:69:in `perform'
web_1 | from /usr/local/bundle/gems/railties-6.1.4.1/lib/rails/command.rb:48:in `invoke'
web_1 | from /usr/local/bundle/gems/railties-6.1.4.1/lib/rails/commands.rb:18:in `<main>'
web_1 | from /usr/local/bundle/gems/bootsnap-1.8.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
web_1 | from /usr/local/bundle/gems/bootsnap-1.8.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
web_1 | from /usr/local/bundle/gems/bootsnap-1.8.1/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
web_1 | from /usr/local/bundle/gems/bootsnap-1.8.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
web_1 | from /usr/local/bundle/gems/bootsnap-1.8.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
web_1 | from /docker-test2/bin/rails:5:in `<top (required)>'
web_1 | from /usr/local/bundle/gems/spring-2.1.1/lib/spring/client/rails.rb:28:in `load'
web_1 | from /usr/local/bundle/gems/spring-2.1.1/lib/spring/client/rails.rb:28:in `call'
web_1 | from /usr/local/bundle/gems/spring-2.1.1/lib/spring/client/command.rb:7:in `call'
web_1 | from /usr/local/bundle/gems/spring-2.1.1/lib/spring/client.rb:30:in `run'
web_1 | from /usr/local/bundle/gems/spring-2.1.1/bin/spring:49:in `<top (required)>'
web_1 | from /usr/local/bundle/gems/spring-2.1.1/lib/spring/binstub.rb:11:in `load'
web_1 | from /usr/local/bundle/gems/spring-2.1.1/lib/spring/binstub.rb:11:in `<top (required)>'
web_1 | from /docker-test2/bin/spring:10:in `require'
web_1 | from /docker-test2/bin/spring:10:in `block in <top (required)>'
web_1 | from <internal:kernel>:90:in `tap'
web_1 | from /docker-test2/bin/spring:7:in `<top (required)>'
web_1 | from bin/rails:2:in `load'
web_1 | from bin/rails:2:in `<main>'
docker-test2_web_1 exited with code 1
I found someone saying that I have to install webpacker first so I tried something like this. docker-compose run web bundle exec rails webpacker:install and errors says
Yarn not installed. Please download and install Yarn from https://yarnpkg.com/lang/en/docs/install/ Exiting!
I thought I should install yarn in the image so I also tried docker run web sh and apt-get install yarn but nothing has changed.
I would really appreciate it if you help me.
Thank you.
Replace line 2 of your Dockerfile with the following
RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -
RUN echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list
RUN apt-get update -qq && apt-get install -y nodejs postgresql-client yarn
docker-compose build
docker-compose run --no-deps web rails webpacker:install
I added RUN yarn install in Dockerfile and it worked, I still have problem though.

ActionCable disconnects from redis server after 5 minutes

I have a Rails API that has Redis as an adapter of ActionCable.
I only use ActionCable for a simple chat as a part of the whole system.
Everything works perfect, I can subscribe, send messages, receive messages. The problem comes after 5 minutes the server has started, I get an ECONNRESET error in redis gem: Connection lost (ECONNRESET) (Redis::ConnectionError)
It's been 3 days since i've started trying to solve this issue, i've tried changing redis-server configuration, i've tried changing the way redis initializes on the rails app, i've tried changing the cable.yml configuration, i've tried changing actioncable config and nothing seems to solve this issue, i'm running out of ideas.
I also can't rescue this exception, it just breaks the whole rails app, thats another thing I couldn't solve that's so frustrating.
Btw I am testing in development environment.
This is my cable config:
production:
adapter: redis
url: redis://192.168.1.6:6379
development:
adapter: redis
url: redis://192.168.1.5:6379
channel_prefix: ChatChannel
timeout: 30
max_conns: 8000
max_persistent_conns: 8000
test:
adapter: async
This is my redis initializer:
require 'redis'
## Added rescue condition if Redis connection is failed
begin
puts "CREATING NEW INSTANCE OF REDIS"
$redis = Redis.new(
:host => "192.168.1.5",
:port => 6379,
:reconnect_attempts => 10,
:reconnect_delay => 1.5,
:reconnect_delay_max => 10.0
)
$redis.ping
rescue Errno::ECONNRESET => e
puts "THERE WAS AN ERROR"
puts e
end
This is the output of the rails app:
web_1 | Exiting
web_1 | #<Thread:0x0000559ee244b1d8 /usr/local/bundle/gems/actioncable-6.0.3.1/lib/action_cable/subscription_adapter/redis.rb:151 run> terminated with exception (report_on_exception is true):
web_1 | /usr/local/bundle/gems/redis-4.2.5/lib/redis/client.rb:275:in `rescue in io': Connection lost (ECONNRESET) (Redis::ConnectionError)
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis/client.rb:267:in `io'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis/client.rb:279:in `read'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis/client.rb:147:in `block (3 levels) in call_loop'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis/client.rb:146:in `loop'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis/client.rb:146:in `block (2 levels) in call_loop'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis/client.rb:248:in `block (2 levels) in process'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis/client.rb:389:in `ensure_connected'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis/client.rb:238:in `block in process'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis/client.rb:325:in `logging'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis/client.rb:237:in `process'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis/client.rb:145:in `block in call_loop'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis/client.rb:300:in `with_socket_timeout'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis/client.rb:144:in `call_loop'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis/subscribe.rb:44:in `subscription'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis/subscribe.rb:14:in `subscribe'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis.rb:3507:in `_subscription'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis.rb:2326:in `block in subscribe'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis.rb:69:in `block in synchronize'
web_1 | from /usr/local/lib/ruby/2.7.0/monitor.rb:202:in `synchronize'
web_1 | from /usr/local/lib/ruby/2.7.0/monitor.rb:202:in `mon_synchronize'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis.rb:69:in `synchronize'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis.rb:2325:in `subscribe'
web_1 | from /usr/local/bundle/gems/actioncable-6.0.3.1/lib/action_cable/subscription_adapter/redis.rb:84:in `block in listen'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis/client.rb:313:in `with_reconnect'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis.rb:75:in `block in with_reconnect'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis.rb:69:in `block in synchronize'
web_1 | from /usr/local/lib/ruby/2.7.0/monitor.rb:202:in `synchronize'
web_1 | from /usr/local/lib/ruby/2.7.0/monitor.rb:202:in `mon_synchronize'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis.rb:69:in `synchronize'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis.rb:74:in `with_reconnect'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis.rb:81:in `without_reconnect'
web_1 | from /usr/local/bundle/gems/actioncable-6.0.3.1/lib/action_cable/subscription_adapter/redis.rb:81:in `listen'
web_1 | from /usr/local/bundle/gems/actioncable-6.0.3.1/lib/action_cable/subscription_adapter/redis.rb:155:in `block in ensure_listener_running'
web_1 | /usr/local/bundle/gems/redis-4.2.5/lib/redis/connection/ruby.rb:63:in `block in _read_from_socket': Connection reset by peer (Errno::ECONNRESET)
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis/connection/ruby.rb:52:in `loop'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis/connection/ruby.rb:52:in `_read_from_socket'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis/connection/ruby.rb:45:in `gets'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis/connection/ruby.rb:378:in `read'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis/client.rb:280:in `block in read'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis/client.rb:268:in `io'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis/client.rb:279:in `read'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis/client.rb:147:in `block (3 levels) in call_loop'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis/client.rb:146:in `loop'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis/client.rb:146:in `block (2 levels) in call_loop'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis/client.rb:248:in `block (2 levels) in process'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis/client.rb:389:in `ensure_connected'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis/client.rb:238:in `block in process'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis/client.rb:325:in `logging'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis/client.rb:237:in `process'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis/client.rb:145:in `block in call_loop'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis/client.rb:300:in `with_socket_timeout'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis/client.rb:144:in `call_loop'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis/subscribe.rb:44:in `subscription'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis/subscribe.rb:14:in `subscribe'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis.rb:3507:in `_subscription'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis.rb:2326:in `block in subscribe'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis.rb:69:in `block in synchronize'
web_1 | from /usr/local/lib/ruby/2.7.0/monitor.rb:202:in `synchronize'
web_1 | from /usr/local/lib/ruby/2.7.0/monitor.rb:202:in `mon_synchronize'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis.rb:69:in `synchronize'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis.rb:2325:in `subscribe'
web_1 | from /usr/local/bundle/gems/actioncable-6.0.3.1/lib/action_cable/subscription_adapter/redis.rb:84:in `block in listen'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis/client.rb:313:in `with_reconnect'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis.rb:75:in `block in with_reconnect'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis.rb:69:in `block in synchronize'
web_1 | from /usr/local/lib/ruby/2.7.0/monitor.rb:202:in `synchronize'
web_1 | from /usr/local/lib/ruby/2.7.0/monitor.rb:202:in `mon_synchronize'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis.rb:69:in `synchronize'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis.rb:74:in `with_reconnect'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis.rb:81:in `without_reconnect'
web_1 | from /usr/local/bundle/gems/actioncable-6.0.3.1/lib/action_cable/subscription_adapter/redis.rb:81:in `listen'
web_1 | from /usr/local/bundle/gems/actioncable-6.0.3.1/lib/action_cable/subscription_adapter/redis.rb:155:in `block in ensure_listener_running'
web_1 | /usr/local/bundle/gems/redis-4.2.5/lib/redis/client.rb:275:in `rescue in io': Connection lost (ECONNRESET) (Redis::ConnectionError)
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis/client.rb:267:in `io'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis/client.rb:279:in `read'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis/client.rb:147:in `block (3 levels) in call_loop'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis/client.rb:146:in `loop'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis/client.rb:146:in `block (2 levels) in call_loop'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis/client.rb:248:in `block (2 levels) in process'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis/client.rb:389:in `ensure_connected'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis/client.rb:238:in `block in process'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis/client.rb:325:in `logging'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis/client.rb:237:in `process'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis/client.rb:145:in `block in call_loop'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis/client.rb:300:in `with_socket_timeout'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis/client.rb:144:in `call_loop'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis/subscribe.rb:44:in `subscription'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis/subscribe.rb:14:in `subscribe'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis.rb:3507:in `_subscription'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis.rb:2326:in `block in subscribe'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis.rb:69:in `block in synchronize'
web_1 | from /usr/local/lib/ruby/2.7.0/monitor.rb:202:in `synchronize'
web_1 | from /usr/local/lib/ruby/2.7.0/monitor.rb:202:in `mon_synchronize'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis.rb:69:in `synchronize'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis.rb:2325:in `subscribe'
web_1 | from /usr/local/bundle/gems/actioncable-6.0.3.1/lib/action_cable/subscription_adapter/redis.rb:84:in `block in listen'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis/client.rb:313:in `with_reconnect'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis.rb:75:in `block in with_reconnect'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis.rb:69:in `block in synchronize'
web_1 | from /usr/local/lib/ruby/2.7.0/monitor.rb:202:in `synchronize'
web_1 | from /usr/local/lib/ruby/2.7.0/monitor.rb:202:in `mon_synchronize'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis.rb:69:in `synchronize'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis.rb:74:in `with_reconnect'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis.rb:81:in `without_reconnect'
web_1 | from /usr/local/bundle/gems/actioncable-6.0.3.1/lib/action_cable/subscription_adapter/redis.rb:81:in `listen'
web_1 | from /usr/local/bundle/gems/actioncable-6.0.3.1/lib/action_cable/subscription_adapter/redis.rb:155:in `block in ensure_listener_running'
web_1 | /usr/local/bundle/gems/redis-4.2.5/lib/redis/connection/ruby.rb:63:in `block in _read_from_socket': Connection reset by peer (Errno::ECONNRESET)
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis/connection/ruby.rb:52:in `loop'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis/connection/ruby.rb:52:in `_read_from_socket'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis/connection/ruby.rb:45:in `gets'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis/connection/ruby.rb:378:in `read'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis/client.rb:280:in `block in read'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis/client.rb:268:in `io'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis/client.rb:279:in `read'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis/client.rb:147:in `block (3 levels) in call_loop'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis/client.rb:146:in `loop'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis/client.rb:146:in `block (2 levels) in call_loop'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis/client.rb:248:in `block (2 levels) in process'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis/client.rb:389:in `ensure_connected'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis/client.rb:238:in `block in process'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis/client.rb:325:in `logging'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis/client.rb:237:in `process'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis/client.rb:145:in `block in call_loop'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis/client.rb:300:in `with_socket_timeout'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis/client.rb:144:in `call_loop'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis/subscribe.rb:44:in `subscription'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis/subscribe.rb:14:in `subscribe'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis.rb:3507:in `_subscription'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis.rb:2326:in `block in subscribe'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis.rb:69:in `block in synchronize'
web_1 | from /usr/local/lib/ruby/2.7.0/monitor.rb:202:in `synchronize'
web_1 | from /usr/local/lib/ruby/2.7.0/monitor.rb:202:in `mon_synchronize'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis.rb:69:in `synchronize'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis.rb:2325:in `subscribe'
web_1 | from /usr/local/bundle/gems/actioncable-6.0.3.1/lib/action_cable/subscription_adapter/redis.rb:84:in `block in listen'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis/client.rb:313:in `with_reconnect'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis.rb:75:in `block in with_reconnect'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis.rb:69:in `block in synchronize'
web_1 | from /usr/local/lib/ruby/2.7.0/monitor.rb:202:in `synchronize'
web_1 | from /usr/local/lib/ruby/2.7.0/monitor.rb:202:in `mon_synchronize'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis.rb:69:in `synchronize'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis.rb:74:in `with_reconnect'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis.rb:81:in `without_reconnect'
web_1 | from /usr/local/bundle/gems/actioncable-6.0.3.1/lib/action_cable/subscription_adapter/redis.rb:81:in `listen'
web_1 | from /usr/local/bundle/gems/actioncable-6.0.3.1/lib/action_cable/subscription_adapter/redis.rb:155:in `block in ensure_listener_running'
nulimit-web_web_1 exited with code 1
This is the output of the redis-server:
1:M 08 Dec 2020 20:03:00.438 - Client closed connection

bundle install gives Bundler::Dsl::DSLError

bundle install is giving Bundler::Dsl::DSLError error
bundle install
/usr/share/rvm/rubies/ruby-2.2.10/lib/ruby/site_ruby/2.2.0/bundler/shared_helpers.rb:120:in `rescue in filesystem_access': Bundler::Dsl::DSLError
from /usr/share/rvm/rubies/ruby-2.2.10/lib/ruby/site_ruby/2.2.0/bundler/shared_helpers.rb:118:in `filesystem_access'
from /usr/share/rvm/rubies/ruby-2.2.10/lib/ruby/site_ruby/2.2.0/bundler.rb:430:in `read_file'
from /usr/share/rvm/rubies/ruby-2.2.10/lib/ruby/site_ruby/2.2.0/bundler/dsl.rb:46:in `eval_gemfile'
from /usr/share/rvm/rubies/ruby-2.2.10/lib/ruby/site_ruby/2.2.0/bundler/plugin.rb:60:in `gemfile_install'
from /usr/share/rvm/rubies/ruby-2.2.10/lib/ruby/site_ruby/2.2.0/bundler/cli/install.rb:60:in `run'
from /usr/share/rvm/rubies/ruby-2.2.10/lib/ruby/site_ruby/2.2.0/bundler/cli.rb:235:in `block in install'
from /usr/share/rvm/rubies/ruby-2.2.10/lib/ruby/site_ruby/2.2.0/bundler/settings.rb:143:in `temporary'
from /usr/share/rvm/rubies/ruby-2.2.10/lib/ruby/site_ruby/2.2.0/bundler/cli.rb:234:in `install'
from /usr/share/rvm/rubies/ruby-2.2.10/lib/ruby/site_ruby/2.2.0/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
from /usr/share/rvm/rubies/ruby-2.2.10/lib/ruby/site_ruby/2.2.0/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command'
from /usr/share/rvm/rubies/ruby-2.2.10/lib/ruby/site_ruby/2.2.0/bundler/vendor/thor/lib/thor.rb:387:in `dispatch'
from /usr/share/rvm/rubies/ruby-2.2.10/lib/ruby/site_ruby/2.2.0/bundler/cli.rb:27:in `dispatch'
from /usr/share/rvm/rubies/ruby-2.2.10/lib/ruby/site_ruby/2.2.0/bundler/vendor/thor/lib/thor/base.rb:466:in `start'
from /usr/share/rvm/rubies/ruby-2.2.10/lib/ruby/site_ruby/2.2.0/bundler/cli.rb:18:in `start'
from /usr/share/rvm/rubies/ruby-2.2.10/bin/bundle:30:in `block in <main>'
from /usr/share/rvm/rubies/ruby-2.2.10/lib/ruby/site_ruby/2.2.0/bundler/friendly_errors.rb:124:in `with_friendly_errors'
from /usr/share/rvm/rubies/ruby-2.2.10/bin/bundle:22:in `<main>'
from /home/kiprosh/.rvm/gems/ruby-2.2.10/bin/ruby_executable_hooks:24:in `eval'
from /home/kiprosh/.rvm/gems/ruby-2.2.10/bin/ruby_executable_hooks:24:in `<main>'
I am using Windows 10 machine with Ubuntu 18.04 LTS app
Any idea how to fix?
I am using Ubuntu 18.04 with WSL on windows. Sometimes I open the application directory with an editor on Windows. When doing so, the permissions are changing on the ubuntu side.
Traceback (most recent call last):
21: from /home/omfaer/.rbenv/versions/2.5.3/bin/bundle:23:in `<main>'
20: from /home/omfaer/.rbenv/versions/2.5.3/bin/bundle:23:in `load'
19: from /home/omfaer/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/bundler-2.1.4/exe/bundle:34:in `<top (required)>'
18: from /home/omfaer/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/bundler-2.1.4/lib/bundler/friendly_errors.rb:123:in `with_friendly_errors'
17: from /home/omfaer/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/bundler-2.1.4/exe/bundle:46:in `block in <top (required)>'
16: from /home/omfaer/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/bundler-2.1.4/lib/bundler/cli.rb:24:in `start'
15: from /home/omfaer/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/bundler-2.1.4/lib/bundler/vendor/thor/lib/thor/base.rb:476:in `start'
14: from /home/omfaer/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/bundler-2.1.4/lib/bundler/cli.rb:30:in `dispatch'
13: from /home/omfaer/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/bundler-2.1.4/lib/bundler/vendor/thor/lib/thor.rb:399:in `dispatch'
12: from /home/omfaer/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/bundler-2.1.4/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command'
11: from /home/omfaer/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/bundler-2.1.4/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
10: from /home/omfaer/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/bundler-2.1.4/lib/bundler/cli.rb:255:in `install'
9: from /home/omfaer/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/bundler-2.1.4/lib/bundler/settings.rb:124:in `temporary'
8: from /home/omfaer/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/bundler-2.1.4/lib/bundler/cli.rb:256:in `block in install'
7: from /home/omfaer/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/bundler-2.1.4/lib/bundler/cli/install.rb:61:in `run'
6: from /home/omfaer/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/bundler-2.1.4/lib/bundler/plugin.rb:76:in `gemfile_install'
5: from /home/omfaer/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/bundler-2.1.4/lib/bundler/settings.rb:124:in `temporary'
4: from /home/omfaer/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/bundler-2.1.4/lib/bundler/plugin.rb:81:in `block in gemfile_install'
3: from /home/omfaer/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/bundler-2.1.4/lib/bundler/dsl.rb:46:in `eval_gemfile'
2: from /home/omfaer/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/bundler-2.1.4/lib/bundler.rb:534:in `read_file'
1: from /home/omfaer/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/bundler-2.1.4/lib/bundler/shared_helpers.rb:102:in `filesystem_access'
/home/omfaer/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/bundler-2.1.4/lib/bundler/shared_helpers.rb:105:in `rescue in filesystem_access': Bundler::Dsl::DSLError
The permissions of the Gemfile file have changed.
-rw-r--r-- 1 omfaer omfaer 691 May 28 2019 .gitignore
---------- 1 omfaer omfaer 1583 Feb 28 11:47 Gemfile
-rw-r--r-- 1 omfaer omfaer 185 May 28 2019 README.md
-rw-r--r-- 1 omfaer omfaer 227 May 28 2019 Rakefile
I fixed the permissions and the problem is resolved.
$ chmod 644 Gemfile
I hope this helps you.

Sinatra - downstream app not set

I'm getting this strange error: downstream app not set
However my app is responding and working well.
I've checked - and I've not found any requests to undefined routes.
(Maybe there is some tools to debug that)
Checked Google too.
Please help - how to remove this error.
Log:
00:52:51 web.1 | started with pid 13052
00:52:59 web.1 | 127.0.0.1 - - [01/Feb/2013 00:52:59] "GET /manage HTTP/1.1" 200 5046 0.3123
00:52:59 web.1 | 127.0.0.1 - - [01/Feb/2013 00:52:59] "GET /javascripts/jquery.imagesloaded.min.js HTTP/1.1" 304 - 0.0138
00:52:59 web.1 | 127.0.0.1 - - [01/Feb/2013 00:52:59] "GET /javascripts/jquery.masonry.min.js HTTP/1.1" 304 - 0.0121
00:52:59 web.1 | 127.0.0.1 - - [01/Feb/2013 00:52:59] "GET /javascripts/jquery.capty.custom.js HTTP/1.1" 304 - 0.0075
00:52:59 web.1 | 127.0.0.1 - - [01/Feb/2013 00:52:59] "GET /stylesheets/articles_grid.css HTTP/1.1" 304 - 0.0131
00:52:59 web.1 | 127.0.0.1 - - [01/Feb/2013 00:52:59] "GET /javascripts/articles_grid.js HTTP/1.1" 304 - 0.0008
00:53:05 web.1 | RuntimeError - downstream app not set:
00:53:05 web.1 | /home/blacktea/.rvm/gems/ruby-1.9.3-p194/gems/sinatra-1.2.6/lib/sinatra/base.rb:688:in `forward'
00:53:05 web.1 | /home/blacktea/.rvm/gems/ruby-1.9.3-p194/gems/sinatra-1.2.6/lib/sinatra/base.rb:772:in `route_missing'
00:53:05 web.1 | /home/blacktea/.rvm/gems/ruby-1.9.3-p194/gems/sinatra-1.2.6/lib/sinatra/base.rb:719:in `route!'
00:53:05 web.1 | /home/blacktea/.rvm/gems/ruby-1.9.3-p194/gems/sinatra-1.2.6/lib/sinatra/base.rb:715:in `route!'
00:53:05 web.1 | /home/blacktea/.rvm/gems/ruby-1.9.3-p194/gems/sinatra-1.2.6/lib/sinatra/base.rb:715:in `route!'
00:53:05 web.1 | /home/blacktea/.rvm/gems/ruby-1.9.3-p194/gems/sinatra-1.2.6/lib/sinatra/base.rb:843:in `dispatch!'
00:53:05 web.1 | /home/blacktea/.rvm/gems/ruby-1.9.3-p194/gems/sinatra-1.2.6/lib/sinatra/base.rb:644:in `block in call!'
00:53:05 web.1 | /home/blacktea/.rvm/gems/ruby-1.9.3-p194/gems/sinatra-1.2.6/lib/sinatra/base.rb:808:in `instance_eval'
00:53:05 web.1 | /home/blacktea/.rvm/gems/ruby-1.9.3-p194/gems/sinatra-1.2.6/lib/sinatra/base.rb:808:in `block in invoke'
00:53:05 web.1 | /home/blacktea/.rvm/gems/ruby-1.9.3-p194/gems/sinatra-1.2.6/lib/sinatra/base.rb:808:in `catch'
00:53:05 web.1 | /home/blacktea/.rvm/gems/ruby-1.9.3-p194/gems/sinatra-1.2.6/lib/sinatra/base.rb:808:in `invoke'
00:53:05 web.1 | /home/blacktea/.rvm/gems/ruby-1.9.3-p194/gems/sinatra-1.2.6/lib/sinatra/base.rb:644:in `call!'
00:53:05 web.1 | /home/blacktea/.rvm/gems/ruby-1.9.3-p194/gems/sinatra-1.2.6/lib/sinatra/base.rb:629:in `call'
00:53:05 web.1 | /home/blacktea/Projects/*******************/app.rb:22:in `call'
00:53:05 web.1 | /home/blacktea/.rvm/gems/ruby-1.9.3-p194/gems/rack-1.3.2/lib/rack/session/abstract/id.rb:195:in `context'
00:53:05 web.1 | /home/blacktea/.rvm/gems/ruby-1.9.3-p194/gems/rack-1.3.2/lib/rack/session/abstract/id.rb:190:in `call'
00:53:05 web.1 | /home/blacktea/.rvm/gems/ruby-1.9.3-p194/gems/rack-1.3.2/lib/rack/head.rb:9:in `call'
00:53:05 web.1 | /home/blacktea/.rvm/gems/ruby-1.9.3-p194/gems/rack-1.3.2/lib/rack/commonlogger.rb:20:in `call'
00:53:05 web.1 | /home/blacktea/.rvm/gems/ruby-1.9.3-p194/gems/sinatra-1.2.6/lib/sinatra/showexceptions.rb:21:in `call'
00:53:05 web.1 | /home/blacktea/.rvm/gems/ruby-1.9.3-p194/gems/rack-1.3.2/lib/rack/methodoverride.rb:24:in `call'
00:53:05 web.1 | /home/blacktea/.rvm/gems/ruby-1.9.3-p194/gems/thin-1.2.11/lib/thin/connection.rb:84:in `block in pre_process'
00:53:05 web.1 | /home/blacktea/.rvm/gems/ruby-1.9.3-p194/gems/thin-1.2.11/lib/thin/connection.rb:82:in `catch'
00:53:05 web.1 | /home/blacktea/.rvm/gems/ruby-1.9.3-p194/gems/thin-1.2.11/lib/thin/connection.rb:82:in `pre_process'
00:53:05 web.1 | /home/blacktea/.rvm/gems/ruby-1.9.3-p194/gems/thin-1.2.11/lib/thin/connection.rb:57:in `process'
00:53:05 web.1 | /home/blacktea/.rvm/gems/ruby-1.9.3-p194/gems/thin-1.2.11/lib/thin/connection.rb:42:in `receive_data'
00:53:05 web.1 | /home/blacktea/.rvm/gems/ruby-1.9.3-p194/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in `run_machine'
00:53:05 web.1 | /home/blacktea/.rvm/gems/ruby-1.9.3-p194/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in `run'
00:53:05 web.1 | /home/blacktea/.rvm/gems/ruby-1.9.3-p194/gems/thin-1.2.11/lib/thin/backends/base.rb:61:in `start'
00:53:05 web.1 | /home/blacktea/.rvm/gems/ruby-1.9.3-p194/gems/thin-1.2.11/lib/thin/server.rb:159:in `start'
00:53:05 web.1 | /home/blacktea/.rvm/gems/ruby-1.9.3-p194/gems/thin-1.2.11/lib/thin/controllers/controller.rb:86:in `start'
00:53:05 web.1 | /home/blacktea/.rvm/gems/ruby-1.9.3-p194/gems/thin-1.2.11/lib/thin/runner.rb:185:in `run_command'
00:53:05 web.1 | /home/blacktea/.rvm/gems/ruby-1.9.3-p194/gems/thin-1.2.11/lib/thin/runner.rb:151:in `run!'
00:53:05 web.1 | /home/blacktea/.rvm/gems/ruby-1.9.3-p194/gems/thin-1.2.11/bin/thin:6:in `'
00:53:05 web.1 | /home/blacktea/.rvm/gems/ruby-1.9.3-p194/bin/thin:19:in `load'
00:53:05 web.1 | /home/blacktea/.rvm/gems/ruby-1.9.3-p194/bin/thin:19:in `'
00:53:05 web.1 | /home/blacktea/.rvm/gems/ruby-1.9.3-p194/bin/ruby_noexec_wrapper:14:in `eval'
00:53:05 web.1 | /home/blacktea/.rvm/gems/ruby-1.9.3-p194/bin/ruby_noexec_wrapper:14:in `'
Here is layout.haml
!!!
%html
%head
%meta{:content => "text/html; charset=UTF-8", "http-equiv" => "content-type"}
%title The Project
%script{:src => "https://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js", :type => "text/javascript"}
%script{:src => "/javascripts/jquery.imagesloaded.min.js", :type => "text/javascript"}
%script{:src => "/javascripts/jquery.masonry.min.js", :type => "text/javascript"}
%script{:src => "/javascripts/jquery.capty.custom.js", :type => "text/javascript"}
%link{:rel => :stylesheet, :href => "/stylesheets/articles_grid.css", :type => "text/css"}
%script{:src => "/javascripts/articles_grid.js", :type => "text/javascript"}
%body{:onload => "framesetsize(800, 1000)", :style => "overlflow: hidden;"}
%script{:src => "http://connect.facebook.net/en_US/all.js", :type => "text/javascript"}
:javascript
FB.init({
appId : '#{ #app['id'] }',
cookie : true
});
=yield
It seems my dev browsers (Chrome) was constantly requesting for /favicon.ico
get "/favicon.ico" do
end
Solved the problem

Resources