2017-10-16 80 views
1

我最近用我的應用程序實現了載波,所以帖子可以有圖片,但是當我嘗試登錄到我的應用程序時,我遇到了錯誤。下面是運行heroku logs當結果:用Heroku設計新會話問題

2017-10-16T20:14:41.944943+00:00 app[web.1]: [4e6c03b3-5414-44a7-883b-b0ba34b62b6a] vendor/bundle/ruby/2.3.0/gems/mail-2.6.6/lib/mail/message.rb:2149:in `do_delivery' 
2017-10-16T20:14:41.944943+00:00 app[web.1]: [4e6c03b3-5414-44a7-883b-b0ba34b62b6a] vendor/bundle/ruby/2.3.0/gems/mail-2.6.6/lib/mail/message.rb:237:in `block in deliver' 
2017-10-16T20:14:41.944944+00:00 app[web.1]: [4e6c03b3-5414-44a7-883b-b0ba34b62b6a] vendor/bundle/ruby/2.3.0/gems/actionmailer-5.1.4/lib/action_mailer/base.rb:558:in `block in deliver_mail' 
2017-10-16T20:14:41.944944+00:00 app[web.1]: [4e6c03b3-5414-44a7-883b-b0ba34b62b6a] vendor/bundle/ruby/2.3.0/gems/activesupport-5.1.4/lib/active_support/notifications.rb:166:in `block in instrument' 
2017-10-16T20:14:41.944945+00:00 app[web.1]: [4e6c03b3-5414-44a7-883b-b0ba34b62b6a] vendor/bundle/ruby/2.3.0/gems/activesupport-5.1.4/lib/active_support/notifications/instrumenter.rb:21:in `instrument' 
2017-10-16T20:14:41.944945+00:00 app[web.1]: [4e6c03b3-5414-44a7-883b-b0ba34b62b6a] vendor/bundle/ruby/2.3.0/gems/activesupport-5.1.4/lib/active_support/notifications.rb:166:in `instrument' 
2017-10-16T20:14:41.944945+00:00 app[web.1]: [4e6c03b3-5414-44a7-883b-b0ba34b62b6a] vendor/bundle/ruby/2.3.0/gems/actionmailer-5.1.4/lib/action_mailer/base.rb:556:in `deliver_mail' 
2017-10-16T20:14:41.944946+00:00 app[web.1]: [4e6c03b3-5414-44a7-883b-b0ba34b62b6a] vendor/bundle/ruby/2.3.0/gems/mail-2.6.6/lib/mail/message.rb:237:in `deliver' 
2017-10-16T20:14:41.944946+00:00 app[web.1]: [4e6c03b3-5414-44a7-883b-b0ba34b62b6a] vendor/bundle/ruby/2.3.0/gems/actionmailer-5.1.4/lib/action_mailer/message_delivery.rb:96:in `block in deliver_now' 
2017-10-16T20:14:41.944947+00:00 app[web.1]: [4e6c03b3-5414-44a7-883b-b0ba34b62b6a] vendor/bundle/ruby/2.3.0/gems/actionmailer-5.1.4/lib/action_mailer/rescuable.rb:15:in `handle_exceptions' 
2017-10-16T20:14:41.944947+00:00 app[web.1]: [4e6c03b3-5414-44a7-883b-b0ba34b62b6a] vendor/bundle/ruby/2.3.0/gems/actionmailer-5.1.4/lib/action_mailer/message_delivery.rb:95:in `deliver_now' 
2017-10-16T20:14:41.944948+00:00 app[web.1]: [4e6c03b3-5414-44a7-883b-b0ba34b62b6a] vendor/bundle/ruby/2.3.0/gems/devise-4.3.0/lib/devise/models/authenticatable.rb:191:in `send_devise_notification' 
2017-10-16T20:14:41.944948+00:00 app[web.1]: [4e6c03b3-5414-44a7-883b-b0ba34b62b6a] vendor/bundle/ruby/2.3.0/gems/devise-4.3.0/lib/devise/models/confirmable.rb:119:in `send_confirmation_instructions' 
2017-10-16T20:14:41.944948+00:00 app[web.1]: [4e6c03b3-5414-44a7-883b-b0ba34b62b6a] vendor/bundle/ruby/2.3.0/gems/devise-4.3.0/lib/devise/models/confirmable.rb:126:in `send_reconfirmation_instructions' 
2017-10-16T20:14:41.944949+00:00 app[web.1]: [4e6c03b3-5414-44a7-883b-b0ba34b62b6a] vendor/bundle/ruby/2.3.0/gems/activesupport-5.1.4/lib/active_support/callbacks.rb:413:in `block in make_lambda' 
2017-10-16T20:14:41.944949+00:00 app[web.1]: [4e6c03b3-5414-44a7-883b-b0ba34b62b6a] vendor/bundle/ruby/2.3.0/gems/activesupport-5.1.4/lib/active_support/callbacks.rb:260:in `block in conditional' 
2017-10-16T20:14:41.944950+00:00 app[web.1]: [4e6c03b3-5414-44a7-883b-b0ba34b62b6a] vendor/bundle/ruby/2.3.0/gems/activesupport-5.1.4/lib/active_support/callbacks.rb:511:in `block in invoke_after' 
2017-10-16T20:14:41.944950+00:00 app[web.1]: [4e6c03b3-5414-44a7-883b-b0ba34b62b6a] vendor/bundle/ruby/2.3.0/gems/activesupport-5.1.4/lib/active_support/callbacks.rb:511:in `each' 
2017-10-16T20:14:41.944951+00:00 app[web.1]: [4e6c03b3-5414-44a7-883b-b0ba34b62b6a] vendor/bundle/ruby/2.3.0/gems/activesupport-5.1.4/lib/active_support/callbacks.rb:132:in `run_callbacks' 
2017-10-16T20:14:41.944950+00:00 app[web.1]: [4e6c03b3-5414-44a7-883b-b0ba34b62b6a] vendor/bundle/ruby/2.3.0/gems/activesupport-5.1.4/lib/active_support/callbacks.rb:511:in `invoke_after' 
2017-10-16T20:14:41.944966+00:00 app[web.1]: [4e6c03b3-5414-44a7-883b-b0ba34b62b6a] vendor/bundle/ruby/2.3.0/gems/activesupport-5.1.4/lib/active_support/callbacks.rb:827:in `_run_commit_callbacks' 
2017-10-16T20:14:41.944967+00:00 app[web.1]: [4e6c03b3-5414-44a7-883b-b0ba34b62b6a] vendor/bundle/ruby/2.3.0/gems/activerecord-5.1.4/lib/active_record/transactions.rb:343:in `committed!' 
2017-10-16T20:14:41.944968+00:00 app[web.1]: [4e6c03b3-5414-44a7-883b-b0ba34b62b6a] vendor/bundle/ruby/2.3.0/gems/activerecord-5.1.4/lib/active_record/connection_adapters/abstract/transaction.rb:86:in `commit_records' 
2017-10-16T20:14:41.944969+00:00 app[web.1]: [4e6c03b3-5414-44a7-883b-b0ba34b62b6a] vendor/bundle/ruby/2.3.0/gems/activerecord-5.1.4/lib/active_record/connection_adapters/abstract/transaction.rb:178:in `block in commit_transaction' 
2017-10-16T20:14:41.944970+00:00 app[web.1]: [4e6c03b3-5414-44a7-883b-b0ba34b62b6a] vendor/bundle/ruby/2.3.0/gems/activerecord-5.1.4/lib/active_record/connection_adapters/abstract/transaction.rb:168:in `commit_transaction' 
2017-10-16T20:14:41.944969+00:00 app[web.1]: [4e6c03b3-5414-44a7-883b-b0ba34b62b6a] vendor/ruby-2.3.4/lib/ruby/2.3.0/monitor.rb:214:in `mon_synchronize' 
2017-10-16T20:14:41.944970+00:00 app[web.1]: [4e6c03b3-5414-44a7-883b-b0ba34b62b6a] vendor/bundle/ruby/2.3.0/gems/activerecord-5.1.4/lib/active_record/connection_adapters/abstract/transaction.rb:207:in `block in within_new_transaction' 
2017-10-16T20:14:41.944971+00:00 app[web.1]: [4e6c03b3-5414-44a7-883b-b0ba34b62b6a] vendor/ruby-2.3.4/lib/ruby/2.3.0/monitor.rb:214:in `mon_synchronize' 
2017-10-16T20:14:41.944972+00:00 app[web.1]: [4e6c03b3-5414-44a7-883b-b0ba34b62b6a] vendor/bundle/ruby/2.3.0/gems/activerecord-5.1.4/lib/active_record/connection_adapters/abstract/transaction.rb:191:in `within_new_transaction' 
2017-10-16T20:14:41.944972+00:00 app[web.1]: [4e6c03b3-5414-44a7-883b-b0ba34b62b6a] vendor/bundle/ruby/2.3.0/gems/activerecord-5.1.4/lib/active_record/connection_adapters/abstract/database_statements.rb:235:in `transaction' 
2017-10-16T20:14:41.944973+00:00 app[web.1]: [4e6c03b3-5414-44a7-883b-b0ba34b62b6a] vendor/bundle/ruby/2.3.0/gems/activerecord-5.1.4/lib/active_record/transactions.rb:381:in `with_transaction_returning_status' 
2017-10-16T20:14:41.944974+00:00 app[web.1]: [4e6c03b3-5414-44a7-883b-b0ba34b62b6a] vendor/bundle/ruby/2.3.0/gems/activerecord-5.1.4/lib/active_record/transactions.rb:308:in `block in save' 
2017-10-16T20:14:41.944973+00:00 app[web.1]: [4e6c03b3-5414-44a7-883b-b0ba34b62b6a] vendor/bundle/ruby/2.3.0/gems/activerecord-5.1.4/lib/active_record/transactions.rb:210:in `transaction' 
2017-10-16T20:14:41.944975+00:00 app[web.1]: [4e6c03b3-5414-44a7-883b-b0ba34b62b6a] vendor/bundle/ruby/2.3.0/gems/activerecord-5.1.4/lib/active_record/transactions.rb:323:in `rollback_active_record_state!' 
2017-10-16T20:14:41.944975+00:00 app[web.1]: [4e6c03b3-5414-44a7-883b-b0ba34b62b6a] vendor/bundle/ruby/2.3.0/gems/activerecord-5.1.4/lib/active_record/transactions.rb:307:in `save' 
2017-10-16T20:14:41.944976+00:00 app[web.1]: [4e6c03b3-5414-44a7-883b-b0ba34b62b6a] vendor/bundle/ruby/2.3.0/gems/activerecord-5.1.4/lib/active_record/suppressor.rb:42:in `save' 
2017-10-16T20:14:41.944977+00:00 app[web.1]: [4e6c03b3-5414-44a7-883b-b0ba34b62b6a] vendor/bundle/ruby/2.3.0/gems/devise-4.3.0/lib/devise/models/recoverable.rb:92:in `set_reset_password_token' 
2017-10-16T20:14:41.944977+00:00 app[web.1]: [4e6c03b3-5414-44a7-883b-b0ba34b62b6a] vendor/bundle/ruby/2.3.0/gems/devise-4.3.0/lib/devise/models/recoverable.rb:49:in `send_reset_password_instructions' 
2017-10-16T20:14:41.944980+00:00 app[web.1]: [4e6c03b3-5414-44a7-883b-b0ba34b62b6a] vendor/bundle/ruby/2.3.0/gems/actionpack-5.1.4/lib/abstract_controller/base.rb:186:in `process_action' 
2017-10-16T20:14:41.944978+00:00 app[web.1]: [4e6c03b3-5414-44a7-883b-b0ba34b62b6a] vendor/bundle/ruby/2.3.0/gems/devise-4.3.0/lib/devise/models/recoverable.rb:134:in `send_reset_password_instructions' 
2017-10-16T20:14:41.944980+00:00 app[web.1]: [4e6c03b3-5414-44a7-883b-b0ba34b62b6a] vendor/bundle/ruby/2.3.0/gems/actionpack-5.1.4/lib/action_controller/metal/rendering.rb:30:in `process_action' 
2017-10-16T20:14:41.944979+00:00 app[web.1]: [4e6c03b3-5414-44a7-883b-b0ba34b62b6a] vendor/bundle/ruby/2.3.0/gems/actionpack-5.1.4/lib/action_controller/metal/basic_implicit_render.rb:4:in `send_action' 
2017-10-16T20:14:41.944978+00:00 app[web.1]: [4e6c03b3-5414-44a7-883b-b0ba34b62b6a] vendor/bundle/ruby/2.3.0/gems/devise-4.3.0/app/controllers/devise/passwords_controller.rb:13:in `create' 

我想知道我的錯誤是在這裏什麼,或者如果任何人有方向,以什麼我應該尋找解決?我不知道如何解決這個問題。花了幾個小時的谷歌搜索,但沒有發現任何類似的東西。

回答

0

我結束了剛剛重置整個數據庫來解決它(我仍在開發中,所以這不是什麼大問題)。如果您在製作過程中遇到問題,我建議您使用rails console來手動重置您的用戶密碼。這應該有助於解決問題。由於我的ISP阻止5000端口能夠運行heroku run rails console,所以我也遇到了連接到Heroku的問題。

1

它看起來像這個問題是密碼被更改,並制定是想發封郵件,並有一個與郵件

登錄一個免費的Heroku郵件插件的問題,對其進行設置,配置制定以發送電子郵件,並重新啓動您的DYNO

郵件問題

vendor/bundle/ruby/2.3.0/gems/mail-2.6.6/lib/mail/message.rb:2149:in `do_delivery' 
vendor/bundle/ruby/2.3.0/gems/mail-2.6.6/lib/mail/message.rb:237:in `block in deliver' 
vendor/bundle/ruby/2.3.0/gems/actionmailer-5.1.4/lib/action_mailer/base.rb:558:in `block in deliver_mail' 

設計觸發

vendor/bundle/ruby/2.3.0/gems/devise-4.3.0/lib/devise/models/recoverable.rb:134:in `send_reset_password_instructions' 
vendor/bundle/ruby/2.3.0/gems/devise-4.3.0/app/controllers/devise/passwords_controller.rb:13:in `create' 
+0

我已經將下面的代碼添加到我的項目中,並且讓Sendgrid工作了一段時間:'Rails.application.initialize! 的ActionMailer :: Base.smtp_settings = { :地址=> 'smtp.sendgrid.net', :端口=> '587', :認證=>:平紋, :USER_NAME => ENV [ 'SENDGRID_USERNAME'] , :密碼=> ENV [ 'SENDGRID_PASSWORD'], :域=> 'heroku.com', :enable_starttls_auto =>真 }' –

+1

嘗試移除':從您的色器件設置confirmable':recoverable'和'你的模型 – blnc