I signed up on my rails app on heroku and get the following error on my heroku logs. Meanwhile, the user has been saved to the database.
Anyone with advise on how to proceed pls. I am using devise gem, tried both Puma and Thin servers. Still get the same error. App location is at: https://naijasinglesmeet.herokuapp.com
Sign up for an account and this is what I get in my logs below:
Please advise
2019-10-08T19:55:38.458871+00:00 app[web.1]: I, [2019-10-08T19:55:26.203972 #4] INFO -- : [41600c35-8749-48f2-9c8a-8428f4a92dea] Completed 200 OK in 10ms (Views: 7.5ms | ActiveRecord: 0.0ms)
2019-10-08T19:55:38.458873+00:00 app[web.1]: I, [2019-10-08T19:55:38.298348 #4] INFO -- : [bf3b49db-ec4a-4bde-ae56-c5ae727b5f67] Started POST "/users" for 41.217.104.185 at 2019-10-08 19:55:38 +0000
2019-10-08T19:55:38.458875+00:00 app[web.1]: I, [2019-10-08T19:55:38.299628 #4] INFO -- : [bf3b49db-ec4a-4bde-ae56-c5ae727b5f67] Processing by RegistrationsController#create as HTML
2019-10-08T19:55:38.45889+00:00 app[web.1]: I, [2019-10-08T19:55:38.299753 #4] INFO -- : [bf3b49db-ec4a-4bde-ae56-c5ae727b5f67] Parameters: {"utf8"=>"✓", "authenticity_token"=>"amK9Wje7yZ2DJDtylpzVrY9HrYgc7pmtBMnbl/lrdU5/dW+A00CGgDAW8uAtyfiUDF0tvSZtCt56gOeZsmO+mA==", "user"=>{"username"=>"iamyinka", "first_name"=>"Yinka", "last_name"=>"Ash", "email"=>"iamhere#yinka.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "commit"=>"Sign up"}
2019-10-08T19:55:38.458892+00:00 app[web.1]: D, [2019-10-08T19:55:38.458466 #4] DEBUG -- : [bf3b49db-ec4a-4bde-ae56-c5ae727b5f67] (0.7ms) BEGIN
2019-10-08T19:55:38.993261+00:00 heroku[router]: at=info method=GET path="/favicon.ico" host=naijasinglesmeet.herokuapp.com request_id=6561ef3b-42df-48a4-a227-6d9aa163b5c9 fwd="41.217.104.185" dyno=web.1 connect=0ms service=1ms status=304 bytes=62 protocol=https
2019-10-08T19:55:41.320556+00:00 heroku[web.1]: source=web.1 dyno=heroku.148955966.114d5aad-5be9-43d4-9b68-1c16025c2349 sample#load_avg_1m=0.02
2019-10-08T19:55:41.348659+00:00 heroku[web.1]: source=web.1 dyno=heroku.148955966.114d5aad-5be9-43d4-9b68-1c16025c2349 sample#memory_total=79.79MB sample#memory_rss=79.75MB sample#memory_cache=0.04MB sample#memory_swap=0.00MB sample#memory_pgpgin=29231pages sample#memory_pgpgout=8805pages sample#memory_quota=512.00MB
2019-10-08T19:56:02.581435+00:00 heroku[web.1]: source=web.1 dyno=heroku.148955966.114d5aad-5be9-43d4-9b68-1c16025c2349 sample#load_avg_1m=0.01
2019-10-08T19:56:02.606547+00:00 heroku[web.1]: source=web.1 dyno=heroku.148955966.114d5aad-5be9-43d4-9b68-1c16025c2349 sample#memory_total=79.76MB sample#memory_rss=79.75MB sample#memory_cache=0.01MB sample#memory_swap=0.00MB sample#memory_pgpgin=29231pages sample#memory_pgpgout=8813pages sample#memory_quota=512.00MB
2019-10-08T19:56:22.544894+00:00 heroku[web.1]: source=web.1 dyno=heroku.148955966.114d5aad-5be9-43d4-9b68-1c16025c2349 sample#load_avg_1m=0.01
2019-10-08T19:56:22.576747+00:00 heroku[web.1]: source=web.1 dyno=heroku.148955966.114d5aad-5be9-43d4-9b68-1c16025c2349 sample#memory_total=79.76MB sample#memory_rss=79.75MB sample#memory_cache=0.01MB sample#memory_swap=0.00MB sample#memory_pgpgin=29231pages sample#memory_pgpgout=8813pages sample#memory_quota=512.00MB
2019-10-08T19:56:43.65213+00:00 heroku[web.1]: source=web.1 dyno=heroku.148955966.114d5aad-5be9-43d4-9b68-1c16025c2349 sample#load_avg_1m=0.01 sample#load_avg_5m=0.03
2019-10-08T19:56:43.68744+00:00 heroku[web.1]: source=web.1 dyno=heroku.148955966.114d5aad-5be9-43d4-9b68-1c16025c2349 sample#memory_total=79.76MB sample#memory_rss=79.75MB sample#memory_cache=0.01MB sample#memory_swap=0.00MB sample#memory_pgpgin=29231pages sample#memory_pgpgout=8813pages sample#memory_quota=512.00MB
Hi guys.... Here's an update... finally, I see something come up...
2019-10-08T20:25:08.263845+00:00 app[web.1]: D, [2019-10-08T19:55:38.481415 #4] DEBUG -- : [bf3b49db-ec4a-4bde-ae56-c5ae727b5f67] (1.9ms) COMMIT
2019-10-08T20:25:08.263848+00:00 app[web.1]: I, [2019-10-08T19:55:38.492062 #4] INFO -- : [bf3b49db-ec4a-4bde-ae56-c5ae727b5f67] Rendering devise/mailer/confirmation_instructions.html.erb
2019-10-08T20:25:08.26385+00:00 app[web.1]: I, [2019-10-08T19:55:38.494157 #4] INFO -- : [bf3b49db-ec4a-4bde-ae56-c5ae727b5f67] Rendered devise/mailer/confirmation_instructions.html.erb (2.0ms)
2019-10-08T20:25:08.263853+00:00 app[web.1]: D, [2019-10-08T19:55:38.494327 #4] DEBUG -- : [bf3b49db-ec4a-4bde-ae56-c5ae727b5f67] Devise::Mailer#confirmation_instructions: processed outbound mail in 12.1ms
2019-10-08T20:25:08.263855+00:00 app[web.1]: I, [2019-10-08T19:55:38.494606 #4] INFO -- : [bf3b49db-ec4a-4bde-ae56-c5ae727b5f67] Completed 500 Internal Server Error in 195ms (ActiveRecord: 14.8ms)
2019-10-08T20:25:08.263857+00:00 app[web.1]: F, [2019-10-08T19:55:38.496369 #4] FATAL -- : [bf3b49db-ec4a-4bde-ae56-c5ae727b5f67]
2019-10-08T20:25:08.26386+00:00 app[web.1]: F, [2019-10-08T19:55:38.496444 #4] FATAL -- : [bf3b49db-ec4a-4bde-ae56-c5ae727b5f67] ActionView::Template::Error (Missing host to link to! Please provide the :host parameter, set default_url_options[:host], or set :only_path to true):
2019-10-08T20:25:08.263862+00:00 app[web.1]: F, [2019-10-08T19:55:38.496669 #4] FATAL -- : [bf3b49db-ec4a-4bde-ae56-c5ae727b5f67] 2:
2019-10-08T20:25:08.263864+00:00 app[web.1]: [bf3b49db-ec4a-4bde-ae56-c5ae727b5f67] 3: <p>You can confirm your account email through the link below:</p>
2019-10-08T20:25:08.263866+00:00 app[web.1]: [bf3b49db-ec4a-4bde-ae56-c5ae727b5f67] 4:
2019-10-08T20:25:08.263867+00:00 app[web.1]: [bf3b49db-ec4a-4bde-ae56-c5ae727b5f67] 5: <p><%= link_to 'Confirm my account', confirmation_url(#resource, confirmation_token: #token) %></p>
2019-10-08T20:25:08.263869+00:00 app[web.1]: F, [2019-10-08T19:55:38.496775 #4] FATAL -- : [bf3b49db-ec4a-4bde-ae56-c5ae727b5f67]
2019-10-08T20:25:08.26387+00:00 app[web.1]: F, [2019-10-08T19:55:38.496845 #4] FATAL -- : [bf3b49db-ec4a-4bde-ae56-c5ae727b5f67] app/views/devise/mailer/confirmation_instructions.html.erb:5:in `_app_views_devise_mailer_confirmation_instructions_html_erb__3272380372352870108_47027054750980'
The relevant part of the error message is the following:
[2019-10-08T19:55:38.492062 #4] Rendering devise/mailer/confirmation_instructions.html.erb
[2019-10-08T19:55:38.496444 #4] FATAL -- :ActionView::Template::Error (Missing host to link to! Please provide the :host parameter, set default_url_options[:host], or set :only_path to true):
So you mailing template is trying to render, but throws an ActionView::Template::Error and actually tells you the problem:
Missing host to link to! Please provide the :host parameter, set default_url_options[:host], or set :only_path to true)
So you are using a link_to in your email, that one of course has to know the hostname, in order to create a full url. So you need to define that hostname somewhere.
For example you can set it in config/environments/production.rb by including
config.action_controller.default_url_options = {:host => "naijasinglesmeet.herokuapp.com"}
This is because your application does not know under which host/domain it is running, you have to tell it that.
A little tip, if you run into such problems, run heroku logs --tail, this will give you a continous logs as if you were using the development server.
Related
I created an application in Ruby on Rails, and everything is OK on my localhost but it doesn't work on Heroku:
We’re sorry, but something went wrong.
If you are the application owner check the logs for more information.
At the beginning, I had a problem with the database, which was not PostgreSQL, but I fixed the problem.
When I check the logs and can see the problem is:
2020-03-28T12:38:29.235789+00:00 heroku[router]: at=info method=GET path="/" host=olivier-godard.herokuapp.com request_id=840fbcb6-1f17-47f0-9d83-23318df3374d fwd="37.120.204.164" dyno=web.1 connect=1ms service=16ms status=500 bytes=1827 protocol=https
I tried db:migrate, then heroku push master again.
2020-03-28T12:34:20.000000+00:00 app[api]: Build started by user projet.site.2015#gmail.com
2020-03-28T12:35:55.952108+00:00 app[api]: Deploy 930a6879 by user projet.site.2015#gmail.com
2020-03-28T12:35:55.952108+00:00 app[api]: Release v7 created by user projet.site.2015#gmail.com
2020-03-28T12:35:57.080831+00:00 heroku[web.1]: Restarting
2020-03-28T12:35:57.375779+00:00 heroku[web.1]: State changed from up to starting
2020-03-28T12:35:58.799290+00:00 app[web.1]: - Gracefully stopping, waiting for requests to finish
2020-03-28T12:35:58.801702+00:00 app[web.1]: === puma shutdown: 2020-03-28 12:35:58 +0000 ===
2020-03-28T12:35:58.801704+00:00 app[web.1]: - Goodbye!
2020-03-28T12:35:58.801705+00:00 app[web.1]: Exiting
2020-03-28T12:36:01.000000+00:00 app[api]: Build succeeded
2020-03-28T12:36:08.781105+00:00 app[web.1]: => Booting Puma
2020-03-28T12:36:08.781123+00:00 app[web.1]: => Rails 6.0.2.1 application starting in production
2020-03-28T12:36:08.781124+00:00 app[web.1]: => Run `rails server --help` for more startup options
2020-03-28T12:36:10.110905+00:00 heroku[web.1]: State changed from starting to up
2020-03-28T12:36:09.871297+00:00 app[web.1]: Puma starting in single mode...
2020-03-28T12:36:09.871326+00:00 app[web.1]: * Version 4.3.3 (ruby 2.6.5-p114), codename: Mysterious Traveller
2020-03-28T12:36:09.871327+00:00 app[web.1]: * Min threads: 5, max threads: 5
2020-03-28T12:36:09.871327+00:00 app[web.1]: * Environment: production
2020-03-28T12:36:09.871639+00:00 app[web.1]: * Listening on tcp://0.0.0.0:16317
2020-03-28T12:36:09.872016+00:00 app[web.1]: Use Ctrl-C to stop
2020-03-28T12:38:29.235789+00:00 heroku[router]: at=info method=GET path="/" host=olivier-godard.herokuapp.com request_id=840fbcb6-1f17-47f0-9d83-23318df3374d fwd="37.120.204.164" dyno=web.1 connect=1ms service=16ms status=500 bytes=1827 protocol=https
2020-03-28T12:38:29.222883+00:00 app[web.1]: I, [2020-03-28T12:38:29.222773 #4] INFO -- : [840fbcb6-1f17-47f0-9d83-23318df3374d] Started GET "/" for 37.120.204.164 at 2020-03-28 12:38:29 +0000
2020-03-28T12:38:29.225673+00:00 app[web.1]: I, [2020-03-28T12:38:29.225603 #4] INFO -- : [840fbcb6-1f17-47f0-9d83-23318df3374d] Processing by PagesController#home as HTML
2020-03-28T12:38:29.231929+00:00 app[web.1]: I, [2020-03-28T12:38:29.231848 #4] INFO -- : [840fbcb6-1f17-47f0-9d83-23318df3374d] Rendering pages/home.html.erb within layouts/application
2020-03-28T12:38:29.233977+00:00 app[web.1]: I, [2020-03-28T12:38:29.233904 #4] INFO -- : [840fbcb6-1f17-47f0-9d83-23318df3374d] Rendered shared/_navbar.html.erb (Duration: 0.5ms | Allocations: 248)
2020-03-28T12:38:29.234403+00:00 app[web.1]: I, [2020-03-28T12:38:29.234329 #4] INFO -- : [840fbcb6-1f17-47f0-9d83-23318df3374d] Rendered pages/home.html.erb within layouts/application (Duration: 2.4ms | Allocations: 1253)
2020-03-28T12:38:29.234656+00:00 app[web.1]: I, [2020-03-28T12:38:29.234595 #4] INFO -- : [840fbcb6-1f17-47f0-9d83-23318df3374d] Completed 500 Internal Server Error in 9ms (Allocations: 2442)
2020-03-28T12:38:29.235754+00:00 app[web.1]: F, [2020-03-28T12:38:29.235690 #4] FATAL -- : [840fbcb6-1f17-47f0-9d83-23318df3374d]
2020-03-28T12:38:29.235754+00:00 app[web.1]: [840fbcb6-1f17-47f0-9d83-23318df3374d] ActionView::Template::Error (The asset "data_1" is not present in the asset pipeline.):
2020-03-28T12:38:29.235755+00:00 app[web.1]: [840fbcb6-1f17-47f0-9d83-23318df3374d] 10: </div>
2020-03-28T12:38:29.235756+00:00 app[web.1]: [840fbcb6-1f17-47f0-9d83-23318df3374d] 11: </div>
2020-03-28T12:38:29.235756+00:00 app[web.1]: [840fbcb6-1f17-47f0-9d83-23318df3374d] 12: <div class="bloc-image">
2020-03-28T12:38:29.235757+00:00 app[web.1]: [840fbcb6-1f17-47f0-9d83-23318df3374d] 13: <%= image_tag 'data_1', class: "image-svg" %>
2020-03-28T12:38:29.235757+00:00 app[web.1]: [840fbcb6-1f17-47f0-9d83-23318df3374d] 14: </div>
2020-03-28T12:38:29.235758+00:00 app[web.1]: [840fbcb6-1f17-47f0-9d83-23318df3374d] 15: <div id="presentation">
2020-03-28T12:38:29.235758+00:00 app[web.1]: [840fbcb6-1f17-47f0-9d83-23318df3374d] 16: <div class="bloc-presentation">
2020-03-28T12:38:29.235759+00:00 app[web.1]: [840fbcb6-1f17-47f0-9d83-23318df3374d]
2020-03-28T12:38:29.235759+00:00 app[web.1]: [840fbcb6-1f17-47f0-9d83-23318df3374d] app/views/pages/home.html.erb:13
2020-03-28T12:38:29.725103+00:00 heroku[router]: at=info method=GET path="/favicon.ico" host=olivier-godard.herokuapp.com request_id=6212842c-bbdb-438f-9d86-5515322c140f fwd="37.120.204.164" dyno=web.1 connect=0ms service=6ms status=200 bytes=143 protocol=https
2020-03-28T12:39:41.252676+00:00 app[api]: Starting process with command `bundle exec rake db:migrate` by user projet.site.2015#gmail.com
2020-03-28T12:39:49.767859+00:00 heroku[run.7053]: State changed from starting to up
2020-03-28T12:39:58.708611+00:00 heroku[run.7053]: State changed from up to complete
2020-03-28T12:40:12.950852+00:00 heroku[router]: at=info method=GET path="/" host=olivier-godard.herokuapp.com request_id=63685b73-070a-4b79-89a2-be5a41dc6197 fwd="37.120.204.164" dyno=web.1 connect=1ms service=5ms status=500 bytes=1827 protocol=https
2020-03-28T12:40:12.944252+00:00 app[web.1]: I, [2020-03-28T12:40:12.944150 #4] INFO -- : [63685b73-070a-4b79-89a2-be5a41dc6197] Started GET "/" for 37.120.204.164 at 2020-03-28 12:40:12 +0000
2020-03-28T12:40:12.944998+00:00 app[web.1]: I, [2020-03-28T12:40:12.944934 #4] INFO -- : [63685b73-070a-4b79-89a2-be5a41dc6197] Processing by PagesController#home as HTML
2020-03-28T12:40:12.945750+00:00 app[web.1]: I, [2020-03-28T12:40:12.945692 #4] INFO -- : [63685b73-070a-4b79-89a2-be5a41dc6197] Rendering pages/home.html.erb within layouts/application
2020-03-28T12:40:12.946106+00:00 app[web.1]: I, [2020-03-28T12:40:12.946054 #4] INFO -- : [63685b73-070a-4b79-89a2-be5a41dc6197] Rendered shared/_navbar.html.erb (Duration: 0.2ms | Allocations: 61)
2020-03-28T12:40:12.946464+00:00 app[web.1]: I, [2020-03-28T12:40:12.946413 #4] INFO -- : [63685b73-070a-4b79-89a2-be5a41dc6197] Rendered pages/home.html.erb within layouts/application (Duration: 0.6ms | Allocations: 273)
2020-03-28T12:40:12.946616+00:00 app[web.1]: I, [2020-03-28T12:40:12.946565 #4] INFO -- : [63685b73-070a-4b79-89a2-be5a41dc6197] Completed 500 Internal Server Error in 2ms (Allocations: 593)
2020-03-28T12:40:12.947553+00:00 app[web.1]: F, [2020-03-28T12:40:12.947494 #4] FATAL -- : [63685b73-070a-4b79-89a2-be5a41dc6197]
2020-03-28T12:40:12.947554+00:00 app[web.1]: [63685b73-070a-4b79-89a2-be5a41dc6197] ActionView::Template::Error (The asset "data_1" is not present in the asset pipeline.):
2020-03-28T12:40:12.947554+00:00 app[web.1]: [63685b73-070a-4b79-89a2-be5a41dc6197] 10: </div>
2020-03-28T12:40:12.947554+00:00 app[web.1]: [63685b73-070a-4b79-89a2-be5a41dc6197] 11: </div>
2020-03-28T12:40:12.947555+00:00 app[web.1]: [63685b73-070a-4b79-89a2-be5a41dc6197] 12: <div class="bloc-image">
2020-03-28T12:40:12.947555+00:00 app[web.1]: [63685b73-070a-4b79-89a2-be5a41dc6197] 13: <%= image_tag 'data_1', class: "image-svg" %>
2020-03-28T12:40:12.947556+00:00 app[web.1]: [63685b73-070a-4b79-89a2-be5a41dc6197] 14: </div>
2020-03-28T12:40:12.947556+00:00 app[web.1]: [63685b73-070a-4b79-89a2-be5a41dc6197] 15: <div id="presentation">
2020-03-28T12:40:12.947556+00:00 app[web.1]: [63685b73-070a-4b79-89a2-be5a41dc6197] 16: <div class="bloc-presentation">
2020-03-28T12:40:12.947557+00:00 app[web.1]: [63685b73-070a-4b79-89a2-be5a41dc6197]
2020-03-28T12:40:12.947557+00:00 app[web.1]: [63685b73-070a-4b79-89a2-be5a41dc6197] app/views/pages/home.html.erb:13
2020-03-28T12:40:13.363954+00:00 heroku[router]: at=info method=GET path="/favicon.ico" host=olivier-godard.herokuapp.com request_id=bf6a8a8f-e44c-4fd9-987a-5112f0abe117 fwd="37.120.204.164" dyno=web.1 connect=1ms service=1ms status=304 bytes=48 protocol=https
2020-03-28T12:40:55.000000+00:00 app[api]: Build started by user projet.site.2015#gmail.com
2020-03-28T12:42:34.099779+00:00 app[api]: Release v8 created by user projet.site.2015#gmail.com
2020-03-28T12:42:34.099779+00:00 app[api]: Deploy 7f608ab3 by user projet.site.2015#gmail.com
2020-03-28T12:42:35.818867+00:00 heroku[web.1]: Restarting
2020-03-28T12:42:35.896985+00:00 heroku[web.1]: State changed from up to starting
2020-03-28T12:42:36.945354+00:00 app[web.1]: - Gracefully stopping, waiting for requests to finish
2020-03-28T12:42:36.945876+00:00 app[web.1]: === puma shutdown: 2020-03-28 12:42:36 +0000 ===
2020-03-28T12:42:36.945908+00:00 app[web.1]: - Goodbye!
2020-03-28T12:42:36.946038+00:00 app[web.1]: Exiting
2020-03-28T12:42:41.000000+00:00 app[api]: Build succeeded
2020-03-28T12:42:58.009374+00:00 app[web.1]: => Booting Puma
2020-03-28T12:42:58.009404+00:00 app[web.1]: => Rails 6.0.2.1 application starting in production
2020-03-28T12:42:58.009405+00:00 app[web.1]: => Run `rails server --help` for more startup options
2020-03-28T12:43:00.239967+00:00 heroku[web.1]: State changed from starting to up
2020-03-28T12:43:00.025594+00:00 app[web.1]: Puma starting in single mode...
2020-03-28T12:43:00.025627+00:00 app[web.1]: * Version 4.3.3 (ruby 2.6.5-p114), codename: Mysterious Traveller
2020-03-28T12:43:00.025628+00:00 app[web.1]: * Min threads: 5, max threads: 5
2020-03-28T12:43:00.025628+00:00 app[web.1]: * Environment: production
2020-03-28T12:43:00.025952+00:00 app[web.1]: * Listening on tcp://0.0.0.0:45616
2020-03-28T12:43:00.026326+00:00 app[web.1]: Use Ctrl-C to stop
2020-03-28T12:44:43.389577+00:00 app[web.1]: I, [2020-03-28T12:44:43.389449 #4] INFO -- : [69de93ec-c402-4332-b7ff-25992a45d6af] Started GET "/" for 37.120.204.164 at 2020-03-28 12:44:43 +0000
2020-03-28T12:44:43.392427+00:00 app[web.1]: I, [2020-03-28T12:44:43.392363 #4] INFO -- : [69de93ec-c402-4332-b7ff-25992a45d6af] Processing by PagesController#home as HTML
2020-03-28T12:44:43.402094+00:00 app[web.1]: I, [2020-03-28T12:44:43.401999 #4] INFO -- : [69de93ec-c402-4332-b7ff-25992a45d6af] Rendering pages/home.html.erb within layouts/application
2020-03-28T12:44:43.405439+00:00 app[web.1]: I, [2020-03-28T12:44:43.405351 #4] INFO -- : [69de93ec-c402-4332-b7ff-25992a45d6af] Rendered shared/_navbar.html.erb (Duration: 0.9ms | Allocations: 248)
2020-03-28T12:44:43.406306+00:00 app[web.1]: I, [2020-03-28T12:44:43.406204 #4] INFO -- : [69de93ec-c402-4332-b7ff-25992a45d6af] Rendered pages/home.html.erb within layouts/application (Duration: 4.0ms | Allocations: 1253)
2020-03-28T12:44:43.406670+00:00 app[web.1]: I, [2020-03-28T12:44:43.406575 #4] INFO -- : [69de93ec-c402-4332-b7ff-25992a45d6af] Completed 500 Internal Server Error in 14ms (Allocations: 2442)
2020-03-28T12:44:43.407830+00:00 app[web.1]: F, [2020-03-28T12:44:43.407758 #4] FATAL -- : [69de93ec-c402-4332-b7ff-25992a45d6af]
2020-03-28T12:44:43.407831+00:00 app[web.1]: [69de93ec-c402-4332-b7ff-25992a45d6af] ActionView::Template::Error (The asset "data_1" is not present in the asset pipeline.):
2020-03-28T12:44:43.407832+00:00 app[web.1]: [69de93ec-c402-4332-b7ff-25992a45d6af] 10: </div>
2020-03-28T12:44:43.407832+00:00 app[web.1]: [69de93ec-c402-4332-b7ff-25992a45d6af] 11: </div>
2020-03-28T12:44:43.407834+00:00 app[web.1]: [69de93ec-c402-4332-b7ff-25992a45d6af] 12: <div class="bloc-image">
2020-03-28T12:44:43.407848+00:00 app[web.1]: [69de93ec-c402-4332-b7ff-25992a45d6af] 13: <%= image_tag 'data_1', class: "image-svg" %>
2020-03-28T12:44:43.407848+00:00 app[web.1]: [69de93ec-c402-4332-b7ff-25992a45d6af] 14: </div>
2020-03-28T12:44:43.407849+00:00 app[web.1]: [69de93ec-c402-4332-b7ff-25992a45d6af] 15: <div id="presentation">
2020-03-28T12:44:43.407849+00:00 app[web.1]: [69de93ec-c402-4332-b7ff-25992a45d6af] 16: <div class="bloc-presentation">
2020-03-28T12:44:43.407850+00:00 app[web.1]: [69de93ec-c402-4332-b7ff-25992a45d6af]
2020-03-28T12:44:43.407851+00:00 app[web.1]: [69de93ec-c402-4332-b7ff-25992a45d6af] app/views/pages/home.html.erb:13
2020-03-28T12:44:43.410088+00:00 heroku[router]: at=info method=GET path="/" host=olivier-godard.herokuapp.com request_id=69de93ec-c402-4332-b7ff-25992a45d6af fwd="37.120.204.164" dyno=web.1 connect=32ms service=29ms status=500 bytes=1827 protocol=https
2020-03-28T12:44:43.958483+00:00 heroku[router]: at=info method=GET path="/favicon.ico" host=olivier-godard.herokuapp.com request_id=e89ec38b-151b-4324-bd42-5fea9a706326 fwd="37.120.204.164" dyno=web.1 connect=4ms service=9ms status=200 bytes=143 protocol=https
I don't understand how to fix it.
At the very end of your logs, you can see the error. It is a bit hard to read with all the extra information, but I extracted it for you.
ActionView::Template::Error (The asset "data_1" is not present in the asset pipeline.):
10: </div>
11: </div>
12: <div class="bloc-image">
13: <%= image_tag 'data_1', class: "image-svg" %>
14: </div>
15: <div id="presentation">
16: <div class="bloc-presentation">
app/views/pages/home.html.erb:13
On heroku, the image_tags don't work, if you don't give the file extension for the picture. (It does work on localhost, so that is why you didn't catch it earlier).
So here, just change the file extension, so that it is like this (with jpg or svg or whatever it is).
<%= image_tag 'data_1.svg', class: "image-svg" %>
Please help. I trying to deploy but I keep getting this error:
Ruby 2.5.1,
Rails 5.2.1
NoMethodError (undefined methodtake' for nil:NilClass)`
Here is what I get after running heroku logs --tail
2018-10-11T13:03:05.246461+00:00 app[api]: Deploy 963768cb by user davistyrant#gmail.com
2018-10-11T13:03:08.000000+00:00 app[api]: Build succeeded
2018-10-11T13:03:26.035893+00:00 heroku[web.1]: State changed from starting to up
2018-10-11T13:06:13.341881+00:00 heroku[router]: at=info method=GET path="/" host=tellmetele.herokuapp.com request_id=b5d4a234-a19c-4bee-82b3-f62d476e2e4f fwd="107.208.176.45" dyno=web.1 connect=0ms service=135ms status=500 bytes=1827 protocol=https
2018-10-11T13:06:13.489601+00:00 heroku[router]: at=info method=GET path="/favicon.ico" host=tellmetele.herokuapp.com request_id=1b04c8c6-4f86-4218-897c-bf207d88429e fwd="107.208.176.45" dyno=web.1 connect=0ms service=1ms status=200 bytes=143 protocol=https
2018-10-11T13:06:13.216901+00:00 app[web.1]: => Booting Puma
2018-10-11T13:06:13.216915+00:00 app[web.1]: => Rails 5.2.1 application starting in production
2018-10-11T13:06:13.216916+00:00 app[web.1]: => Run `rails server -h` for more startup options
2018-10-11T13:06:13.216919+00:00 app[web.1]: Puma starting in single mode...
2018-10-11T13:06:13.216921+00:00 app[web.1]: * Version 3.12.0 (ruby 2.5.1-p57), codename: Llamas in Pajamas
2018-10-11T13:06:13.216923+00:00 app[web.1]: * Min threads: 5, max threads: 5
2018-10-11T13:06:13.216925+00:00 app[web.1]: * Environment: production
2018-10-11T13:06:13.216926+00:00 app[web.1]: * Listening on tcp://0.0.0.0:50580
2018-10-11T13:06:13.216928+00:00 app[web.1]: Use Ctrl-C to stop
2018-10-11T13:06:13.216942+00:00 app[web.1]: I, [2018-10-11T13:06:13.216751 #4] INFO -- : [b5d4a234-a19c-4bee-82b3-f62d476e2e4f] Started GET "/" for 107.208.176.45 at 2018-10-11 13:06:13 +0000
2018-10-11T13:06:13.233800+00:00 app[web.1]: I, [2018-10-11T13:06:13.233383 #4] INFO -- : [b5d4a234-a19c-4bee-82b3-f62d476e2e4f] Processing by WelcomeController#index as HTML
2018-10-11T13:06:13.330720+00:00 app[web.1]: I, [2018-10-11T13:06:13.330083 #4] INFO -- : [b5d4a234-a19c-4bee-82b3-f62d476e2e4f] Completed 500 Internal Server Error in 96ms
2018-10-11T13:06:13.333178+00:00 app[web.1]: F, [2018-10-11T13:06:13.332386 #4] FATAL -- : [b5d4a234-a19c-4bee-82b3-f62d476e2e4f]
2018-10-11T13:06:13.333310+00:00 app[web.1]: F, [2018-10-11T13:06:13.333238 #4] FATAL -- : [b5d4a234-a19c-4bee-82b3-f62d476e2e4f] NoMethodError (undefined method `take' for nil:NilClass):
2018-10-11T13:06:13.333653+00:00 app[web.1]: F, [2018-10-11T13:06:13.333577 #4] FATAL -- : [b5d4a234-a19c-4bee-82b3-f62d476e2e4f] app/controllers/welcome_controller.rb:4:in `index'
2018-10-11T13:06:13.333411+00:00 app[web.1]: F, [2018-10-11T13:06:13.333339 #4] FATAL -- : [b5d4a234-a19c-4bee-82b3-f62d476e2e4f]
2018-10-11T13:09:19.127834+00:00 app[api]: Starting process with command `rails console` by user davistyrant#gmail.com
2018-10-11T13:09:24.050501+00:00 heroku[run.4443]: Awaiting client
2018-10-11T13:09:24.081061+00:00 heroku[run.4443]: Starting process with command `rails console`
2018-10-11T13:09:24.280826+00:00 heroku[run.4443]: State changed from starting to up
2018-10-11T13:10:55.522089+00:00 heroku[run.4443]: State changed from up to complete
2018-10-11T13:10:55.483371+00:00 heroku[run.4443]: Process exited with status 0
2018-10-11T13:11:13.864425+00:00 heroku[web.1]: Restarting
2018-10-11T13:11:13.865182+00:00 heroku[web.1]: State changed from up to starting
2018-10-11T13:11:15.168348+00:00 app[web.1]: - Gracefully stopping, waiting for requests to finish
2018-10-11T13:11:15.185010+00:00 app[web.1]: === puma shutdown: 2018-10-11 13:11:15 +0000 ===
2018-10-11T13:11:15.185017+00:00 app[web.1]: - Goodbye!
2018-10-11T13:11:15.185137+00:00 app[web.1]: Exiting
2018-10-11T13:11:15.149622+00:00 heroku[web.1]: Stopping all processes with SIGTERM
2018-10-11T13:11:15.294776+00:00 heroku[web.1]: Process exited with status 143
2018-10-11T13:11:19.511046+00:00 heroku[web.1]: Starting process with command `bin/rails server -p 56912 -e production`
2018-10-11T13:11:32.632444+00:00 heroku[web.1]: State changed from starting to up
2018-10-11T13:12:03.512111+00:00 heroku[router]: at=info method=GET path="/" host=tellmetele.herokuapp.com request_id=236d4168-88a6-4bcc-95fb-612cedba6999 fwd="107.208.176.45" dyno=web.1 connect=1ms service=138ms status=500 bytes=1827 protocol=https
2018-10-11T13:12:03.377824+00:00 app[web.1]: => Run `rails server -h` for more startup options
2018-10-11T13:12:03.377826+00:00 app[web.1]: Puma starting in single mode...
2018-10-11T13:12:03.377827+00:00 app[web.1]: * Version 3.12.0 (ruby 2.5.1-p57), codename: Llamas in Pajamas
2018-10-11T13:12:03.377805+00:00 app[web.1]: => Booting Puma
2018-10-11T13:12:03.377822+00:00 app[web.1]: => Rails 5.2.1 application starting in production
2018-10-11T13:12:03.377832+00:00 app[web.1]: * Listening on tcp://0.0.0.0:56912
2018-10-11T13:12:03.377834+00:00 app[web.1]: Use Ctrl-C to stop
2018-10-11T13:12:03.377829+00:00 app[web.1]: * Min threads: 5, max threads: 5
2018-10-11T13:12:03.509402+00:00 app[web.1]: F, [2018-10-11T13:12:03.509288 #4] FATAL -- : [236d4168-88a6-4bcc-95fb-612cedba6999]
2018-10-11T13:12:03.509674+00:00 app[web.1]: F, [2018-10-11T13:12:03.509603 #4] FATAL -- : [236d4168-88a6-4bcc-95fb-612cedba6999]
2018-10-11T13:12:03.509574+00:00 app[web.1]: F, [2018-10-11T13:12:03.509450 #4] FATAL -- : [236d4168-88a6-4bcc-95fb-612cedba6999] NoMethodError (undefined method `take' for nil:NilClass):
2018-10-11T13:12:03.377831+00:00 app[web.1]: * Environment: production
2018-10-11T13:12:03.395400+00:00 app[web.1]: I, [2018-10-11T13:12:03.395269 #4] INFO -- : [236d4168-88a6-4bcc-95fb-612cedba6999] Processing by WelcomeController#index as HTML
2018-10-11T13:12:03.508276+00:00 app[web.1]: I, [2018-10-11T13:12:03.508113 #4] INFO -- : [236d4168-88a6-4bcc-95fb-612cedba6999] Completed 500 Internal Server Error in 112ms
2018-10-11T13:12:03.377845+00:00 app[web.1]: I, [2018-10-11T13:12:03.377672 #4] INFO -- : [236d4168-88a6-4bcc-95fb-612cedba6999] Started GET "/" for 107.208.176.45 at 2018-10-11 13:12:03 +0000
2018-10-11T13:12:03.509854+00:00 app[web.1]: F, [2018-10-11T13:12:03.509752 #4] FATAL -- : [236d4168-88a6-4bcc-95fb-612cedba6999] app/controllers/welcome_controller.rb:4:in `index'
2018-10-11T13:12:03.941190+00:00 heroku[router]: at=info method=GET path="/favicon.ico" host=tellmetele.herokuapp.com request_id=6e8c624c-0141-4da4-9dbc-426ca3099276 fwd="107.208.176.45" dyno=web.1 connect=1ms service=4ms status=200 bytes=143 protocol=https
2018-10-11T13:15:25.880221+00:00 heroku[web.1]: Restarting
2018-10-11T13:15:25.880730+00:00 heroku[web.1]: State changed from up to starting
2018-10-11T13:15:26.736019+00:00 heroku[web.1]: Stopping all processes with SIGTERM
2018-10-11T13:15:26.814218+00:00 app[web.1]: - Gracefully stopping, waiting for requests to finish
2018-10-11T13:15:26.834175+00:00 app[web.1]: === puma shutdown: 2018-10-11 13:15:26 +0000 ===
2018-10-11T13:15:26.834492+00:00 app[web.1]: Exiting
2018-10-11T13:15:26.834261+00:00 app[web.1]: - Goodbye!
2018-10-11T13:15:27.169490+00:00 heroku[web.1]: Process exited with status 143
2018-10-11T13:15:29.605096+00:00 heroku[web.1]: Starting process with command `bin/rails server -p 29987 -e production`
2018-10-11T13:15:35.374170+00:00 heroku[web.1]: State changed from starting to up
2018-10-11T13:16:47.479481+00:00 heroku[router]: at=info method=GET path="/" host=tellmetele.herokuapp.com request_id=ca9b9cf4-45bb-4139-8397-748a53ff1ecd fwd="107.208.176.45" dyno=web.1 connect=0ms service=60ms status=500 bytes=1827 protocol=https
2018-10-11T13:16:47.423357+00:00 app[web.1]: => Booting Puma
2018-10-11T13:16:47.423392+00:00 app[web.1]: => Rails 5.2.1 application starting in production
2018-10-11T13:16:47.423394+00:00 app[web.1]: => Run `rails server -h` for more startup options
2018-10-11T13:16:47.423399+00:00 app[web.1]: Puma starting in single mode...
2018-10-11T13:16:47.423401+00:00 app[web.1]: * Version 3.12.0 (ruby 2.5.1-p57), codename: Llamas in Pajamas
2018-10-11T13:16:47.423407+00:00 app[web.1]: * Min threads: 5, max threads: 5
2018-10-11T13:16:47.423408+00:00 app[web.1]: * Environment: production
2018-10-11T13:16:47.423411+00:00 app[web.1]: Use Ctrl-C to stop
2018-10-11T13:16:47.423410+00:00 app[web.1]: * Listening on tcp://0.0.0.0:29987
2018-10-11T13:16:47.423419+00:00 app[web.1]: I, [2018-10-11T13:16:47.423133 #4] INFO -- : [ca9b9cf4-45bb-4139-8397-748a53ff1ecd] Started GET "/" for 107.208.176.45 at 2018-10-11 13:16:47 +0000
2018-10-11T13:16:47.433037+00:00 app[web.1]: I, [2018-10-11T13:16:47.432896 #4] INFO -- : [ca9b9cf4-45bb-4139-8397-748a53ff1ecd] Processing by WelcomeController#index as HTML
2018-10-11T13:16:47.477319+00:00 app[web.1]: I, [2018-10-11T13:16:47.477177 #4] INFO -- : [ca9b9cf4-45bb-4139-8397-748a53ff1ecd] Completed 500 Internal Server Error in 39ms
2018-10-11T13:16:47.478108+00:00 app[web.1]: F, [2018-10-11T13:16:47.478014 #4] FATAL -- : [ca9b9cf4-45bb-4139-8397-748a53ff1ecd]
2018-10-11T13:16:47.478185+00:00 app[web.1]: F, [2018-10-11T13:16:47.478103 #4] FATAL -- : [ca9b9cf4-45bb-4139-8397-748a53ff1ecd] NoMethodError (undefined method `take' for nil:NilClass):
2018-10-11T13:16:47.478322+00:00 app[web.1]: F, [2018-10-11T13:16:47.478183 #4] FATAL -- : [ca9b9cf4-45bb-4139-8397-748a53ff1ecd]
2018-10-11T13:16:47.478406+00:00 app[web.1]: F, [2018-10-11T13:16:47.478327 #4] FATAL -- : [ca9b9cf4-45bb-4139-8397-748a53ff1ecd] app/controllers/welcome_controller.rb:4:in `index'
2018-10-11T13:16:47.911583+00:00 heroku[router]: at=info method=GET path="/favicon.ico" host=tellmetele.herokuapp.com request_id=d45521a1-be85-47f5-a36c-ffffcddbfe5a fwd="107.208.176.45" dyno=web.1 connect=0ms service=1ms status=304 bytes=48 protocol=https
2018-10-11T13:31:53.937375+00:00 app[web.1]: I, [2018-10-11T13:31:53.937211 #4] INFO -- : [bb6be014-e6b9-46da-88d4-1b3bec87236b] Started GET "/" for 107.208.176.45 at 2018-10-11 13:31:53 +0000
2018-10-11T13:31:53.938482+00:00 app[web.1]: I, [2018-10-11T13:31:53.938396 #4] INFO -- : [bb6be014-e6b9-46da-88d4-1b3bec87236b] Processing by WelcomeController#index as HTML
2018-10-11T13:31:53.965078+00:00 app[web.1]: I, [2018-10-11T13:31:53.964899 #4] INFO -- : [bb6be014-e6b9-46da-88d4-1b3bec87236b] Completed 500 Internal Server Error in 26ms
2018-10-11T13:31:53.966246+00:00 app[web.1]: F, [2018-10-11T13:31:53.966126 #4] FATAL -- : [bb6be014-e6b9-46da-88d4-1b3bec87236b]
2018-10-11T13:31:53.966365+00:00 app[web.1]: F, [2018-10-11T13:31:53.966277 #4] FATAL -- : [bb6be014-e6b9-46da-88d4-1b3bec87236b] NoMethodError (undefined method `take' for nil:NilClass):
2018-10-11T13:31:53.966447+00:00 app[web.1]: F, [2018-10-11T13:31:53.966367 #4] FATAL -- : [bb6be014-e6b9-46da-88d4-1b3bec87236b]
2018-10-11T13:31:53.966553+00:00 app[web.1]: F, [2018-10-11T13:31:53.966462 #4] FATAL -- : [bb6be014-e6b9-46da-88d4-1b3bec87236b] app/controllers/welcome_controller.rb:4:in `index'
2018-10-11T13:31:54.111275+00:00 heroku[router]: at=info method=GET path="/favicon.ico" host=tellmetele.herokuapp.com request_id=ca2791a5-20a1-4232-9d7d-e22b54f5cef0 fwd="107.208.176.45" dyno=web.1 connect=1ms service=2ms status=200 bytes=143 protocol=https
2018-10-11T13:31:53.967004+00:00 heroku[router]: at=info method=GET path="/" host=tellmetele.herokuapp.com request_id=bb6be014-e6b9-46da-88d4-1b3bec87236b fwd="107.208.176.45" dyno=web.1 connect=1ms service=33ms status=500 bytes=1827 protocol=https
2018-10-11T14:08:06.626516+00:00 heroku[web.1]: Idling
2018-10-11T14:08:06.627170+00:00 heroku[web.1]: State changed from up to down
2018-10-11T14:08:07.504722+00:00 heroku[web.1]: Stopping all processes with SIGTERM
2018-10-11T14:08:07.522614+00:00 app[web.1]: - Gracefully stopping, waiting for requests to finish
2018-10-11T14:08:07.540228+00:00 app[web.1]: === puma shutdown: 2018-10-11 14:08:07 +0000 ===
2018-10-11T14:08:07.540234+00:00 app[web.1]: - Goodbye!
2018-10-11T14:08:07.541182+00:00 app[web.1]: Exiting
2018-10-11T14:08:07.697959+00:00 heroku[web.1]: Process exited with status 143
^C
*[test-bundler][~/Documents/certification-project/tellmetele]$ heroku restart rvm:ruby-2.5.1
Restarting dynos on ⬢ tellmetele... done
*[test-bundler][~/Documents/certification-project/tellmetele]$ heroku apps:info rvm:ruby-2.5.1
=== tellmetele
Addons: heroku-postgresql:hobby-dev
Auto Cert Mgmt: false
Dynos: web: 1
Git URL: https://git.heroku.com/tellmetele.git
Owner: davistyrant#gmail.com
Region: us
Repo Size: 113 KB
Slug Size: 49 MB
Stack: heroku-18
Web URL: https://tellmetele.herokuapp.com/
*[test-bundler][~/Documents/certification-project/tellmetele]$ heroku logs --tail rvm:ruby-2.5.1
2018-10-11T13:09:19.127834+00:00 app[api]: Starting process with command `rails console` by user davistyrant#gmail.com
2018-10-11T13:09:24.050501+00:00 heroku[run.4443]: Awaiting client
2018-10-11T13:09:24.081061+00:00 heroku[run.4443]: Starting process with command `rails console`
2018-10-11T13:09:24.280826+00:00 heroku[run.4443]: State changed from starting to up
2018-10-11T13:10:55.522089+00:00 heroku[run.4443]: State changed from up to complete
2018-10-11T13:10:55.483371+00:00 heroku[run.4443]: Process exited with status 0
2018-10-11T13:11:13.864425+00:00 heroku[web.1]: Restarting
2018-10-11T13:11:13.865182+00:00 heroku[web.1]: State changed from up to starting
2018-10-11T13:11:15.168348+00:00 app[web.1]: - Gracefully stopping, waiting for requests to finish
2018-10-11T13:11:15.185010+00:00 app[web.1]: === puma shutdown: 2018-10-11 13:11:15 +0000 ===
2018-10-11T13:11:15.185017+00:00 app[web.1]: - Goodbye!
2018-10-11T13:11:15.185137+00:00 app[web.1]: Exiting
2018-10-11T13:11:15.149622+00:00 heroku[web.1]: Stopping all processes with SIGTERM
2018-10-11T13:11:15.294776+00:00 heroku[web.1]: Process exited with status 143
2018-10-11T13:11:19.511046+00:00 heroku[web.1]: Starting process with command `bin/rails server -p 56912 -e production`
2018-10-11T13:11:32.632444+00:00 heroku[web.1]: State changed from starting to up
2018-10-11T13:12:03.512111+00:00 heroku[router]: at=info method=GET path="/" host=tellmetele.herokuapp.com request_id=236d4168-88a6-4bcc-95fb-612cedba6999 fwd="107.208.176.45" dyno=web.1 connect=1ms service=138ms status=500 bytes=1827 protocol=https
2018-10-11T13:12:03.377824+00:00 app[web.1]: => Run `rails server -h` for more startup options
2018-10-11T13:12:03.377826+00:00 app[web.1]: Puma starting in single mode...
2018-10-11T13:12:03.377827+00:00 app[web.1]: * Version 3.12.0 (ruby 2.5.1-p57), codename: Llamas in Pajamas
2018-10-11T13:12:03.377805+00:00 app[web.1]: => Booting Puma
2018-10-11T13:12:03.377822+00:00 app[web.1]: => Rails 5.2.1 application starting in production
2018-10-11T13:12:03.377832+00:00 app[web.1]: * Listening on tcp://0.0.0.0:56912
2018-10-11T13:12:03.377834+00:00 app[web.1]: Use Ctrl-C to stop
2018-10-11T13:12:03.377829+00:00 app[web.1]: * Min threads: 5, max threads: 5
2018-10-11T13:12:03.509402+00:00 app[web.1]: F, [2018-10-11T13:12:03.509288 #4] FATAL -- : [236d4168-88a6-4bcc-95fb-612cedba6999]
2018-10-11T13:12:03.509674+00:00 app[web.1]: F, [2018-10-11T13:12:03.509603 #4] FATAL -- : [236d4168-88a6-4bcc-95fb-612cedba6999]
2018-10-11T13:12:03.509574+00:00 app[web.1]: F, [2018-10-11T13:12:03.509450 #4] FATAL -- : [236d4168-88a6-4bcc-95fb-612cedba6999] NoMethodError (undefined method `take' for nil:NilClass):
2018-10-11T13:12:03.377831+00:00 app[web.1]: * Environment: production
2018-10-11T13:12:03.395400+00:00 app[web.1]: I, [2018-10-11T13:12:03.395269 #4] INFO -- : [236d4168-88a6-4bcc-95fb-612cedba6999] Processing by WelcomeController#index as HTML
2018-10-11T13:12:03.508276+00:00 app[web.1]: I, [2018-10-11T13:12:03.508113 #4] INFO -- : [236d4168-88a6-4bcc-95fb-612cedba6999] Completed 500 Internal Server Error in 112ms
2018-10-11T13:12:03.377845+00:00 app[web.1]: I, [2018-10-11T13:12:03.377672 #4] INFO -- : [236d4168-88a6-4bcc-95fb-612cedba6999] Started GET "/" for 107.208.176.45 at 2018-10-11 13:12:03 +0000
2018-10-11T13:12:03.509854+00:00 app[web.1]: F, [2018-10-11T13:12:03.509752 #4] FATAL -- : [236d4168-88a6-4bcc-95fb-612cedba6999] app/controllers/welcome_controller.rb:4:in `index'
2018-10-11T13:12:03.941190+00:00 heroku[router]: at=info method=GET path="/favicon.ico" host=tellmetele.herokuapp.com request_id=6e8c624c-0141-4da4-9dbc-426ca3099276 fwd="107.208.176.45" dyno=web.1 connect=1ms service=4ms status=200 bytes=143 protocol=https
2018-10-11T13:15:25.880221+00:00 heroku[web.1]: Restarting
2018-10-11T13:15:25.880730+00:00 heroku[web.1]: State changed from up to starting
2018-10-11T13:15:26.736019+00:00 heroku[web.1]: Stopping all processes with SIGTERM
2018-10-11T13:15:26.814218+00:00 app[web.1]: - Gracefully stopping, waiting for requests to finish
2018-10-11T13:15:26.834175+00:00 app[web.1]: === puma shutdown: 2018-10-11 13:15:26 +0000 ===
2018-10-11T13:15:26.834492+00:00 app[web.1]: Exiting
2018-10-11T13:15:26.834261+00:00 app[web.1]: - Goodbye!
2018-10-11T13:15:27.169490+00:00 heroku[web.1]: Process exited with status 143
2018-10-11T13:15:29.605096+00:00 heroku[web.1]: Starting process with command `bin/rails server -p 29987 -e production`
2018-10-11T13:15:35.374170+00:00 heroku[web.1]: State changed from starting to up
2018-10-11T13:16:47.479481+00:00 heroku[router]: at=info method=GET path="/" host=tellmetele.herokuapp.com request_id=ca9b9cf4-45bb-4139-8397-748a53ff1ecd fwd="107.208.176.45" dyno=web.1 connect=0ms service=60ms status=500 bytes=1827 protocol=https
2018-10-11T13:16:47.423357+00:00 app[web.1]: => Booting Puma
2018-10-11T13:16:47.423392+00:00 app[web.1]: => Rails 5.2.1 application starting in production
2018-10-11T13:16:47.423394+00:00 app[web.1]: => Run `rails server -h` for more startup options
2018-10-11T13:16:47.423399+00:00 app[web.1]: Puma starting in single mode...
2018-10-11T13:16:47.423401+00:00 app[web.1]: * Version 3.12.0 (ruby 2.5.1-p57), codename: Llamas in Pajamas
2018-10-11T13:16:47.423407+00:00 app[web.1]: * Min threads: 5, max threads: 5
2018-10-11T13:16:47.423408+00:00 app[web.1]: * Environment: production
2018-10-11T13:16:47.423411+00:00 app[web.1]: Use Ctrl-C to stop
2018-10-11T13:16:47.423410+00:00 app[web.1]: * Listening on tcp://0.0.0.0:29987
2018-10-11T13:16:47.423419+00:00 app[web.1]: I, [2018-10-11T13:16:47.423133 #4] INFO -- : [ca9b9cf4-45bb-4139-8397-748a53ff1ecd] Started GET "/" for 107.208.176.45 at 2018-10-11 13:16:47 +0000
2018-10-11T13:16:47.433037+00:00 app[web.1]: I, [2018-10-11T13:16:47.432896 #4] INFO -- : [ca9b9cf4-45bb-4139-8397-748a53ff1ecd] Processing by WelcomeController#index as HTML
2018-10-11T13:16:47.477319+00:00 app[web.1]: I, [2018-10-11T13:16:47.477177 #4] INFO -- : [ca9b9cf4-45bb-4139-8397-748a53ff1ecd] Completed 500 Internal Server Error in 39ms
2018-10-11T13:16:47.478108+00:00 app[web.1]: F, [2018-10-11T13:16:47.478014 #4] FATAL -- : [ca9b9cf4-45bb-4139-8397-748a53ff1ecd]
2018-10-11T13:16:47.478185+00:00 app[web.1]: F, [2018-10-11T13:16:47.478103 #4] FATAL -- : [ca9b9cf4-45bb-4139-8397-748a53ff1ecd] NoMethodError (undefined method `take' for nil:NilClass):
2018-10-11T13:16:47.478322+00:00 app[web.1]: F, [2018-10-11T13:16:47.478183 #4] FATAL -- : [ca9b9cf4-45bb-4139-8397-748a53ff1ecd]
2018-10-11T13:16:47.478406+00:00 app[web.1]: F, [2018-10-11T13:16:47.478327 #4] FATAL -- : [ca9b9cf4-45bb-4139-8397-748a53ff1ecd] app/controllers/welcome_controller.rb:4:in `index'
2018-10-11T13:16:47.911583+00:00 heroku[router]: at=info method=GET path="/favicon.ico" host=tellmetele.herokuapp.com request_id=d45521a1-be85-47f5-a36c-ffffcddbfe5a fwd="107.208.176.45" dyno=web.1 connect=0ms service=1ms status=304 bytes=48 protocol=https
2018-10-11T13:31:53.937375+00:00 app[web.1]: I, [2018-10-11T13:31:53.937211 #4] INFO -- : [bb6be014-e6b9-46da-88d4-1b3bec87236b] Started GET "/" for 107.208.176.45 at 2018-10-11 13:31:53 +0000
2018-10-11T13:31:53.938482+00:00 app[web.1]: I, [2018-10-11T13:31:53.938396 #4] INFO -- : [bb6be014-e6b9-46da-88d4-1b3bec87236b] Processing by WelcomeController#index as HTML
2018-10-11T13:31:53.965078+00:00 app[web.1]: I, [2018-10-11T13:31:53.964899 #4] INFO -- : [bb6be014-e6b9-46da-88d4-1b3bec87236b] Completed 500 Internal Server Error in 26ms
2018-10-11T13:31:53.966246+00:00 app[web.1]: F, [2018-10-11T13:31:53.966126 #4] FATAL -- : [bb6be014-e6b9-46da-88d4-1b3bec87236b]
2018-10-11T13:31:53.966365+00:00 app[web.1]: F, [2018-10-11T13:31:53.966277 #4] FATAL -- : [bb6be014-e6b9-46da-88d4-1b3bec87236b] NoMethodError (undefined method `take' for nil:NilClass):
2018-10-11T13:31:53.966447+00:00 app[web.1]: F, [2018-10-11T13:31:53.966367 #4] FATAL -- : [bb6be014-e6b9-46da-88d4-1b3bec87236b]
2018-10-11T13:31:53.966553+00:00 app[web.1]: F, [2018-10-11T13:31:53.966462 #4] FATAL -- : [bb6be014-e6b9-46da-88d4-1b3bec87236b] app/controllers/welcome_controller.rb:4:in `index'
2018-10-11T13:31:54.111275+00:00 heroku[router]: at=info method=GET path="/favicon.ico" host=tellmetele.herokuapp.com request_id=ca2791a5-20a1-4232-9d7d-e22b54f5cef0 fwd="107.208.176.45" dyno=web.1 connect=1ms service=2ms status=200 bytes=143 protocol=https
2018-10-11T13:31:53.967004+00:00 heroku[router]: at=info method=GET path="/" host=tellmetele.herokuapp.com request_id=bb6be014-e6b9-46da-88d4-1b3bec87236b fwd="107.208.176.45" dyno=web.1 connect=1ms service=33ms status=500 bytes=1827 protocol=https
2018-10-11T14:08:06.626516+00:00 heroku[web.1]: Idling
2018-10-11T14:08:06.627170+00:00 heroku[web.1]: State changed from up to down
2018-10-11T14:08:07.504722+00:00 heroku[web.1]: Stopping all processes with SIGTERM
2018-10-11T14:08:07.522614+00:00 app[web.1]: - Gracefully stopping, waiting for requests to finish
2018-10-11T14:08:07.540228+00:00 app[web.1]: === puma shutdown: 2018-10-11 14:08:07 +0000 ===
2018-10-11T14:08:07.540234+00:00 app[web.1]: - Goodbye!
2018-10-11T14:08:07.541182+00:00 app[web.1]: Exiting
2018-10-11T14:08:07.697959+00:00 heroku[web.1]: Process exited with status 143
2018-10-11T14:47:20.384445+00:00 heroku[web.1]: State changed from down to starting
2018-10-11T14:47:25.692081+00:00 heroku[web.1]: Starting process with command `bin/rails server -p 27996 -e production`
2018-10-11T14:47:38.701112+00:00 heroku[web.1]: State changed from starting to up
2018-10-11T14:48:50.067467+00:00 heroku[router]: at=info method=GET path="/" host=tellmetele.herokuapp.com request_id=1dc30c3e-bf46-4fdd-9e60-6ada594823af fwd="107.208.176.45" dyno=web.1 connect=0ms service=55ms status=500 bytes=1827 protocol=https
2018-10-11T14:48:50.014148+00:00 app[web.1]: => Rails 5.2.1 application starting in production
2018-10-11T14:48:50.014150+00:00 app[web.1]: => Run `rails server -h` for more startup options
2018-10-11T14:48:50.014152+00:00 app[web.1]: Puma starting in single mode...
2018-10-11T14:48:50.014153+00:00 app[web.1]: * Version 3.12.0 (ruby 2.5.1-p57), codename: Llamas in Pajamas
2018-10-11T14:48:50.014155+00:00 app[web.1]: * Min threads: 5, max threads: 5
2018-10-11T14:48:50.014157+00:00 app[web.1]: * Environment: production
2018-10-11T14:48:50.014122+00:00 app[web.1]: => Booting Puma
2018-10-11T14:48:50.014158+00:00 app[web.1]: * Listening on tcp://0.0.0.0:27996
2018-10-11T14:48:50.014160+00:00 app[web.1]: Use Ctrl-C to stop
2018-10-11T14:48:50.014172+00:00 app[web.1]: I, [2018-10-11T14:48:50.013977 #4] INFO -- : [1dc30c3e-bf46-4fdd-9e60-6ada594823af] Started GET "/" for 107.208.176.45 at 2018-10-11 14:48:50 +0000
2018-10-11T14:48:50.019052+00:00 app[web.1]: I, [2018-10-11T14:48:50.018956 #4] INFO -- : [1dc30c3e-bf46-4fdd-9e60-6ada594823af] Processing by WelcomeController#index as HTML
2018-10-11T14:48:50.061273+00:00 app[web.1]: I, [2018-10-11T14:48:50.061050 #4] INFO -- : [1dc30c3e-bf46-4fdd-9e60-6ada594823af] Completed 500 Internal Server Error in 41ms
2018-10-11T14:48:50.064466+00:00 app[web.1]: F, [2018-10-11T14:48:50.064359 #4] FATAL -- : [1dc30c3e-bf46-4fdd-9e60-6ada594823af]
2018-10-11T14:48:50.064594+00:00 app[web.1]: F, [2018-10-11T14:48:50.064521 #4] FATAL -- : [1dc30c3e-bf46-4fdd-9e60-6ada594823af] NoMethodError (undefined method `take' for nil:NilClass):
2018-10-11T14:48:50.064702+00:00 app[web.1]: F, [2018-10-11T14:48:50.064621 #4] FATAL -- : [1dc30c3e-bf46-4fdd-9e60-6ada594823af]
2018-10-11T14:48:50.064805+00:00 app[web.1]: F, [2018-10-11T14:48:50.064740 #4] FATAL -- : [1dc30c3e-bf46-4fdd-9e60-6ada594823af] app/controllers/welcome_controller.rb:4:in `index'
2018-10-11T14:48:50.593266+00:00 heroku[router]: at=info method=GET path="/favicon.ico" host=tellmetele.herokuapp.com request_id=05f75b86-c9f9-4328-a4a2-883ae82898f4 fwd="107.208.176.45" dyno=web.1 connect=1ms service=6ms status=200 bytes=143 protocol=https
It appears to be . an issue with the welcome controller. Here is the controller
class WelcomeController < ApplicationController
def index
parsed_response = Tv.get_popular_shows
popular_shows = parsed_response['results'].take(8)
pages = parsed_response['total_pages']
render :index, locals: {
parsed_response: parsed_response,
popular_shows: popular_shows,
pages: pages
}
end
end
Here is the welcome index view file
<h1 class="w3-center">TVs' Most Popular</h1>
<section class="w3-content">
<% popular_shows.each do |show| %>
<%= link_to image_tag("https://image.tmdb.org/t/p/w200/#{show['poster_path']}", :alt => "#{show['original_name']} image.", class: "poster w3-image w3-padding w3-card"), root_url + 'tvs/show?' + {tvid: show['id']}.to_param, method: :get %>
<% end %>
</section>
Here is how get_popular_shows is defined:
class Tv < ApplicationRecord
include HTTParty
base_uri 'https://api.themoviedb.org/3'
default_params api_key: ENV['API_KEY']
format :json
def Tv.get_all_shows(page, sort)
get("/discover/tv", query: {sort_by: sort, page: page})
end
def Tv.get_popular_shows
get("/discover/tv", query: {sort_by: "popularity.desc"})
end
def Tv.get_single_show(tv_id)
get("/tv/#{tv_id}",query: {})
end
end
This does not make sense. The app works locally and launched on Heroku. I read and tried so many solutions to no avail. I do not know where to go from here. Any help will be much appreciated. Thanks in advance.
Every time I run the app on Heroku, this is what comes out of the logs:
2018-04-15T22:51:12.806576+00:00 app[web.1]: I, [2018-04-15T22:51:12.806420 #4] INFO -- : [cd1ed367-c720-4568-ac03-a3b1bec4fc1b] Started GET "/patients" for 112.205.217.139 at 2018-04-15 22:51:12 +0000
2018-04-15T22:51:12.808307+00:00 app[web.1]: I, [2018-04-15T22:51:12.808235 #4] INFO -- : [cd1ed367-c720-4568-ac03-a3b1bec4fc1b] Processing by PatientsController#index as HTML
2018-04-15T22:51:12.811835+00:00 app[web.1]: I, [2018-04-15T22:51:12.811756 #4] INFO -- : [cd1ed367-c720-4568-ac03-a3b1bec4fc1b] Rendering patients/index.html.erb within layouts/application
2018-04-15T22:51:15.563600+00:00 heroku[router]: at=info method=GET path="/patients" host=jdent-patrec.herokuapp.com request_id=cd1ed367-c720-4568-ac03-a3b1bec4fc1b fwd="112.205.217.139" dyno=web.1 connect=0ms service=2757ms status=500 bytes=1827 protocol=https
2018-04-15T22:51:15.557887+00:00 app[web.1]: D, [2018-04-15T22:51:15.557726 #4] DEBUG -- : [cd1ed367-c720-4568-ac03-a3b1bec4fc1b] [1m[36mPatient Load (2.7ms)[0m [1m[34mSELECT "patients".* FROM "patients"[0m
2018-04-15T22:51:15.558988+00:00 app[web.1]: I, [2018-04-15T22:51:15.558899 #4] INFO -- : [cd1ed367-c720-4568-ac03-a3b1bec4fc1b] Rendered patients/index.html.erb within layouts/application (2747.0ms)
2018-04-15T22:51:15.559386+00:00 app[web.1]: I, [2018-04-15T22:51:15.559271 #4] INFO -- : [cd1ed367-c720-4568-ac03-a3b1bec4fc1b] Completed 500 Internal Server Error in 2751ms (ActiveRecord: 2589.2ms)
2018-04-15T22:51:15.560650+00:00 app[web.1]: F, [2018-04-15T22:51:15.560581 #4] FATAL -- : [cd1ed367-c720-4568-ac03-a3b1bec4fc1b]
2018-04-15T22:51:15.560736+00:00 app[web.1]: F, [2018-04-15T22:51:15.560661 #4] FATAL -- : [cd1ed367-c720-4568-ac03-a3b1bec4fc1b] ActionView::Template::Error (PG::UndefinedTable: ERROR: relation "patients" does not exist
2018-04-15T22:51:15.560739+00:00 app[web.1]: LINE 1: SELECT "patients".* FROM "patients"
2018-04-15T22:51:15.560741+00:00 app[web.1]: ^
2018-04-15T22:51:15.560742+00:00 app[web.1]: : SELECT "patients".* FROM "patients"):
2018-04-15T22:51:15.561063+00:00 app[web.1]: F, [2018-04-15T22:51:15.560972 #4] FATAL -- : [cd1ed367-c720-4568-ac03-a3b1bec4fc1b] 22: </thead>
2018-04-15T22:51:15.561066+00:00 app[web.1]: [cd1ed367-c720-4568-ac03-a3b1bec4fc1b] 23:
2018-04-15T22:51:15.561067+00:00 app[web.1]: [cd1ed367-c720-4568-ac03-a3b1bec4fc1b] 24: <tbody>
2018-04-15T22:51:15.561069+00:00 app[web.1]: [cd1ed367-c720-4568-ac03-a3b1bec4fc1b] 25: <% #patients.each do |patient| %>
2018-04-15T22:51:15.561071+00:00 app[web.1]: [cd1ed367-c720-4568-ac03-a3b1bec4fc1b] 26: <tr>
2018-04-15T22:51:15.561072+00:00 app[web.1]: [cd1ed367-c720-4568-ac03-a3b1bec4fc1b] 27: <td><%= patient.id %></td>
2018-04-15T22:51:15.561074+00:00 app[web.1]: [cd1ed367-c720-4568-ac03-a3b1bec4fc1b] 28: <td><%= patient.first_name %></td>
2018-04-15T22:51:15.561133+00:00 app[web.1]: F, [2018-04-15T22:51:15.561061 #4] FATAL -- : [cd1ed367-c720-4568-ac03-a3b1bec4fc1b]
2018-04-15T22:51:15.561200+00:00 app[web.1]: F, [2018-04-15T22:51:15.561139 #4] FATAL -- : [cd1ed367-c720-4568-ac03-a3b1bec4fc1b] app/views/patients/index.html.erb:25:in `_app_views_patients_index_html_erb___2618543925626266733_38249580'
Error pic:
I've been trying to look for the problem for days but to no avail.
Did you recently create this table? If so, try
heroku run rails db:migrate
I am having an issue with my web application opening after being pushed to Heroku from Ruby on Rails. When I test out my application within the cloud9 ide it opens and works perfectly. However when I try to open it after merging all the branches to the master and pushing both the master to git and to Heroku I get this:
https://limitless-fortress-32820.herokuapp.com/
I am unsure how to fix this. Any advice?
This is what the logs say:
2017-03-11T02:43:48.982178+00:00 app[web.1]: D, [2017-03-11T02:43:48.982112 #4] DEBUG -- : [9828508f-52fc-489a-9bda-d680b05f1c28] Plan Load (0.7ms) SELECT "plans".* FROM "plans" WHERE "plans"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]]
2017-03-11T02:43:48.983225+00:00 app[web.1]: D, [2017-03-11T02:43:48.983167 #4] DEBUG -- : [9828508f-52fc-489a-9bda-d680b05f1c28] Plan Load (0.6ms) SELECT "plans".* FROM "plans" WHERE "plans"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]]
2017-03-11T02:43:48.983770+00:00 app[web.1]: I, [2017-03-11T02:43:48.983713 #4] INFO -- : [9828508f-52fc-489a-9bda-d680b05f1c28] Completed 404 Not Found in 3ms (ActiveRecord: 1.4ms)
2017-03-11T02:43:48.984196+00:00 app[web.1]: F, [2017-03-11T02:43:48.984142 #4] FATAL -- : [9828508f-52fc-489a-9bda-d680b05f1c28]
2017-03-11T02:43:48.984248+00:00 app[web.1]: F, [2017-03-11T02:43:48.984196 #4] FATAL -- : [9828508f-52fc-489a-9bda-d680b05f1c28] ActiveRecord::RecordNotFound (Couldn't find Plan with 'id'=3):
2017-03-11T02:43:48.984296+00:00 app[web.1]: F, [2017-03-11T02:43:48.984249 #4] FATAL -- : [9828508f-52fc-489a-9bda-d680b05f1c28]
2017-03-11T02:43:48.984347+00:00 app[web.1]: F, [2017-03-11T02:43:48.984296 #4] FATAL -- : [9828508f-52fc-489a-9bda-d680b05f1c28] app/controllers/pages_controller.rb:5:in `home'
2017-03-11T03:20:33.758477+00:00 heroku[web.1]: Idling
2017-03-11T03:20:33.759144+00:00 heroku[web.1]: State changed from up to down
2017-03-11T03:20:34.554844+00:00 heroku[web.1]: Stopping all processes with SIGTERM
2017-03-11T03:20:34.566891+00:00 app[web.1]: - Gracefully stopping, waiting for requests to finish
2017-03-11T03:20:34.566983+00:00 app[web.1]: === puma shutdown: 2017-03-11 03:20:34 +0000 ===
2017-03-11T03:20:34.566987+00:00 app[web.1]: - Goodbye!
2017-03-11T03:20:34.567392+00:00 app[web.1]: Exiting
2017-03-11T03:20:34.775834+00:00 heroku[web.1]: Process exited with status 0
2017-03-11T05:25:57.075991+00:00 heroku[web.1]: Unidling
2017-03-11T05:25:57.076291+00:00 heroku[web.1]: State changed from down to starting
2017-03-11T05:26:01.138390+00:00 heroku[web.1]: Starting process with command `bin/rails server -p 56896 -e production`
2017-03-11T05:26:06.849508+00:00 app[web.1]: => Booting Puma
2017-03-11T05:26:06.849544+00:00 app[web.1]: => Rails 5.0.0 application starting in production on http://0.0.0.0:56896
2017-03-11T05:26:06.849552+00:00 app[web.1]: => Run `rails server -h` for more startup options
2017-03-11T05:26:07.935302+00:00 app[web.1]: Puma starting in single mode...
2017-03-11T05:26:07.935323+00:00 app[web.1]: * Version 3.4.0 (ruby 2.3.0-p0), codename: Owl Bowl Brawl
2017-03-11T05:26:07.935324+00:00 app[web.1]: * Min threads: 5, max threads: 5
2017-03-11T05:26:07.935325+00:00 app[web.1]: * Environment: production
2017-03-11T05:26:07.935466+00:00 app[web.1]: * Listening on tcp://0.0.0.0:56896
2017-03-11T05:26:07.935709+00:00 app[web.1]: Use Ctrl-C to stop
2017-03-11T05:26:08.316445+00:00 heroku[web.1]: State changed from starting to up
2017-03-11T05:26:11.211047+00:00 app[web.1]: I, [2017-03-11T05:26:11.210942 #4] INFO -- : [d795b023-4103-41a2-8825-ecb50be24fdd] Started HEAD "/" for 184.72.76.14 at 2017-03-11 05:26:11 +0000
2017-03-11T05:26:11.214433+00:00 app[web.1]: I, [2017-03-11T05:26:11.214374 #4] INFO -- : [d795b023-4103-41a2-8825-ecb50be24fdd] Processing by PagesController#home as HTML
2017-03-11T05:26:11.243975+00:00 app[web.1]: D, [2017-03-11T05:26:11.243829 #4] DEBUG -- : [d795b023-4103-41a2-8825-ecb50be24fdd] Plan Load (0.9ms) SELECT "plans".* FROM "plans" WHERE "plans"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]]
2017-03-11T05:26:11.257064+00:00 app[web.1]: D, [2017-03-11T05:26:11.256920 #4] DEBUG -- : [d795b023-4103-41a2-8825-ecb50be24fdd] Plan Load (0.7ms) SELECT "plans".* FROM "plans" WHERE "plans"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]]
2017-03-11T05:26:11.257752+00:00 app[web.1]: I, [2017-03-11T05:26:11.257692 #4] INFO -- : [d795b023-4103-41a2-8825-ecb50be24fdd] Completed 404 Not Found in 43ms (ActiveRecord: 7.9ms)
2017-03-11T05:26:11.258611+00:00 app[web.1]: F, [2017-03-11T05:26:11.258542 #4] FATAL -- : [d795b023-4103-41a2-8825-ecb50be24fdd]
2017-03-11T05:26:11.258689+00:00 app[web.1]: F, [2017-03-11T05:26:11.258627 #4] FATAL -- : [d795b023-4103-41a2-8825-ecb50be24fdd] ActiveRecord::RecordNotFound (Couldn't find Plan with 'id'=3):
2017-03-11T05:26:11.258744+00:00 app[web.1]: F, [2017-03-11T05:26:11.258692 #4] FATAL -- : [d795b023-4103-41a2-8825-ecb50be24fdd]
2017-03-11T05:26:11.258855+00:00 app[web.1]: F, [2017-03-11T05:26:11.258746 #4] FATAL -- : [d795b023-4103-41a2-8825-ecb50be24fdd] app/controllers/pages_controller.rb:5:in `home'
2017-03-11T05:26:11.258728+00:00 heroku[router]: at=info method=HEAD path="/" host=limitless-fortress-32820.herokuapp.com request_id=d795b023-4103-41a2-8825-ecb50be24fdd fwd="184.72.76.14" dyno=web.1 connect=12ms service=118ms status=404 bytes=180 protocol=https
2017-03-11T05:58:12.552944+00:00 heroku[web.1]: Idling
2017-03-11T05:58:12.553609+00:00 heroku[web.1]: State changed from up to down
2017-03-11T05:58:13.333628+00:00 heroku[web.1]: Stopping all processes with SIGTERM
2017-03-11T05:58:13.379474+00:00 app[web.1]: - Gracefully stopping, waiting for requests to finish
2017-03-11T05:58:13.379914+00:00 app[web.1]: === puma shutdown: 2017-03-11 05:58:13 +0000 ===
2017-03-11T05:58:13.379919+00:00 app[web.1]: - Goodbye!
2017-03-11T05:58:13.380079+00:00 app[web.1]: Exiting
2017-03-11T05:58:13.710764+00:00 heroku[web.1]: Process exited with status 0
2017-03-11T07:27:27.616986+00:00 heroku[web.1]: Unidling
2017-03-11T07:27:27.617784+00:00 heroku[web.1]: State changed from down to starting
2017-03-11T07:27:30.484604+00:00 heroku[web.1]: Starting process with command `bin/rails server -p 53485 -e production`
2017-03-11T07:27:34.063443+00:00 app[web.1]: => Booting Puma
2017-03-11T07:27:34.063485+00:00 app[web.1]: => Rails 5.0.0 application starting in production on http://0.0.0.0:53485
2017-03-11T07:27:34.063487+00:00 app[web.1]: => Run `rails server -h` for more startup options
2017-03-11T07:27:34.745431+00:00 app[web.1]: Puma starting in single mode...
2017-03-11T07:27:34.745451+00:00 app[web.1]: * Version 3.4.0 (ruby 2.3.0-p0), codename: Owl Bowl Brawl
2017-03-11T07:27:34.745452+00:00 app[web.1]: * Min threads: 5, max threads: 5
2017-03-11T07:27:34.745453+00:00 app[web.1]: * Environment: production
2017-03-11T07:27:34.745551+00:00 app[web.1]: * Listening on tcp://0.0.0.0:53485
2017-03-11T07:27:34.745760+00:00 app[web.1]: Use Ctrl-C to stop
2017-03-11T07:27:35.323498+00:00 heroku[web.1]: State changed from starting to up
2017-03-11T07:27:36.716062+00:00 heroku[router]: at=info method=GET path="/" host=limitless-fortress-32820.herokuapp.com request_id=3034176c-dd58-4af0-8f70-745f440273db fwd="125.62.127.212" dyno=web.1 connect=0ms service=67ms status=404 bytes=1744 protocol=https
2017-03-11T07:27:36.683610+00:00 app[web.1]: I, [2017-03-11T07:27:36.683527 #4] INFO -- : [3034176c-dd58-4af0-8f70-745f440273db] Started GET "/" for 125.62.127.212 at 2017-03-11 07:27:36 +0000
2017-03-11T07:27:36.686611+00:00 app[web.1]: I, [2017-03-11T07:27:36.686528 #4] INFO -- : [3034176c-dd58-4af0-8f70-745f440273db] Processing by PagesController#home as HTML
2017-03-11T07:27:36.705959+00:00 app[web.1]: D, [2017-03-11T07:27:36.705867 #4] DEBUG -- : [3034176c-dd58-4af0-8f70-745f440273db] Plan Load (0.6ms) SELECT "plans".* FROM "plans" WHERE "plans"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]]
2017-03-11T07:27:36.715238+00:00 app[web.1]: D, [2017-03-11T07:27:36.715149 #4] DEBUG -- : [3034176c-dd58-4af0-8f70-745f440273db] Plan Load (2.1ms) SELECT "plans".* FROM "plans" WHERE "plans"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]]
2017-03-11T07:27:36.715738+00:00 app[web.1]: I, [2017-03-11T07:27:36.715679 #4] INFO -- : [3034176c-dd58-4af0-8f70-745f440273db] Completed 404 Not Found in 29ms (ActiveRecord: 8.8ms)
2017-03-11T07:27:36.716195+00:00 app[web.1]: F, [2017-03-11T07:27:36.716134 #4] FATAL -- : [3034176c-dd58-4af0-8f70-745f440273db]
2017-03-11T07:27:36.716273+00:00 app[web.1]: F, [2017-03-11T07:27:36.716193 #4] FATAL -- : [3034176c-dd58-4af0-8f70-745f440273db] ActiveRecord::RecordNotFound (Couldn't find Plan with 'id'=3):
2017-03-11T07:27:36.716324+00:00 app[web.1]: F, [2017-03-11T07:27:36.716271 #4] FATAL -- : [3034176c-dd58-4af0-8f70-745f440273db]
2017-03-11T07:27:36.716375+00:00 app[web.1]: F, [2017-03-11T07:27:36.716321 #4] FATAL -- : [3034176c-dd58-4af0-8f70-745f440273db] app/controllers/pages_controller.rb:5:in `home'
2017-03-11T07:27:37.337320+00:00 heroku[router]: at=info method=GET path="/favicon.ico" host=limitless-fortress-32820.herokuapp.com request_id=20bb1588-0933-4517-9605-0fdac9f274af fwd="125.62.127.212" dyno=web.1 connect=0ms service=1ms status=200 bytes=143 protocol=https
2017-03-11T08:01:45.234016+00:00 heroku[web.1]: Idling
2017-03-11T08:01:45.234777+00:00 heroku[web.1]: State changed from up to down
2017-03-11T08:01:46.059828+00:00 heroku[web.1]: Stopping all processes with SIGTERM
2017-03-11T08:01:46.113060+00:00 app[web.1]: - Gracefully stopping, waiting for requests to finish
2017-03-11T08:01:46.113197+00:00 app[web.1]: === puma shutdown: 2017-03-11 08:01:46 +0000 ===
2017-03-11T08:01:46.113203+00:00 app[web.1]: - Goodbye!
2017-03-11T08:01:46.113318+00:00 app[web.1]: Exiting
2017-03-11T08:01:46.472377+00:00 heroku[web.1]: Process exited with status 0
2017-03-11T16:26:53.013220+00:00 heroku[web.1]: Unidling
2017-03-11T16:26:53.013532+00:00 heroku[web.1]: State changed from down to starting
2017-03-11T16:26:55.743205+00:00 heroku[web.1]: Starting process with command `bin/rails server -p 42518 -e production`
2017-03-11T16:26:59.184085+00:00 app[web.1]: => Booting Puma
2017-03-11T16:26:59.184112+00:00 app[web.1]: => Rails 5.0.0 application starting in production on http://0.0.0.0:42518
2017-03-11T16:26:59.184113+00:00 app[web.1]: => Run `rails server -h` for more startup options
2017-03-11T16:26:59.813953+00:00 app[web.1]: Puma starting in single mode...
2017-03-11T16:26:59.813978+00:00 app[web.1]: * Version 3.4.0 (ruby 2.3.0-p0), codename: Owl Bowl Brawl
2017-03-11T16:26:59.814009+00:00 app[web.1]: * Min threads: 5, max threads: 5
2017-03-11T16:26:59.814025+00:00 app[web.1]: * Environment: production
2017-03-11T16:26:59.814139+00:00 app[web.1]: * Listening on tcp://0.0.0.0:42518
2017-03-11T16:26:59.814338+00:00 app[web.1]: Use Ctrl-C to stop
2017-03-11T16:27:00.213490+00:00 heroku[web.1]: State changed from starting to up
2017-03-11T16:27:01.161259+00:00 heroku[router]: at=info method=GET path="/" host=limitless-fortress-32820.herokuapp.com request_id=0394b2a7-1f84-42a8-9f38-5093385535b9 fwd="68.113.158.107,66.249.88.31" dyno=web.1 connect=1ms service=77ms status=404 bytes=1744 protocol=https
2017-03-11T16:27:01.104510+00:00 app[web.1]: I, [2017-03-11T16:27:01.104407 #4] INFO -- : [0394b2a7-1f84-42a8-9f38-5093385535b9] Started GET "/" for 66.249.88.31 at 2017-03-11 16:27:01 +0000
2017-03-11T16:27:01.107677+00:00 app[web.1]: I, [2017-03-11T16:27:01.107612 #4] INFO -- : [0394b2a7-1f84-42a8-9f38-5093385535b9] Processing by PagesController#home as HTML
2017-03-11T16:27:01.138947+00:00 app[web.1]: D, [2017-03-11T16:27:01.138843 #4] DEBUG -- : [0394b2a7-1f84-42a8-9f38-5093385535b9] Plan Load (2.7ms) SELECT "plans".* FROM "plans" WHERE "plans"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]]
2017-03-11T16:27:01.144670+00:00 app[web.1]: D, [2017-03-11T16:27:01.144594 #4] DEBUG -- : [0394b2a7-1f84-42a8-9f38-5093385535b9] Plan Load (1.0ms) SELECT "plans".* FROM "plans" WHERE "plans"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]]
2017-03-11T16:27:01.145093+00:00 app[web.1]: I, [2017-03-11T16:27:01.145032 #4] INFO -- : [0394b2a7-1f84-42a8-9f38-5093385535b9] Completed 404 Not Found in 37ms (ActiveRecord: 16.8ms)
2017-03-11T16:27:01.145493+00:00 app[web.1]: F, [2017-03-11T16:27:01.145437 #4] FATAL -- : [0394b2a7-1f84-42a8-9f38-5093385535b9]
2017-03-11T16:27:01.145518+00:00 app[web.1]: F, [2017-03-11T16:27:01.145485 #4] FATAL -- : [0394b2a7-1f84-42a8-9f38-5093385535b9] ActiveRecord::RecordNotFound (Couldn't find Plan with 'id'=3):
2017-03-11T16:27:01.145558+00:00 app[web.1]: F, [2017-03-11T16:27:01.145518 #4] FATAL -- : [0394b2a7-1f84-42a8-9f38-5093385535b9]
2017-03-11T16:27:01.145592+00:00 app[web.1]: F, [2017-03-11T16:27:01.145552 #4] FATAL -- : [0394b2a7-1f84-42a8-9f38-5093385535b9] app/controllers/pages_controller.rb:5:in `home'
I am unfamiliar with deciphering what this means. This is my first application.
Have you run all the migrations and set up the environment variables? Enable Papertrail on your site. Then you can view the logs which should show what the error is.
The best way to see whats happening here is by reading the logs. You can do this by running:
heroku logs -a limitless-fortress-32820 (or whatever you named your app)
You would do this in your commandline and this assumes that you have the heroku cli tools installed.
Check for the error the log is displaying and go from there. It could be a procfile, environmental variable issue, migration issue or any number of things.
To check heroku logs in real time:
heroku logs -t -a limitless-fortress-32820
Check following to resolve issues:
1. Have you used PG database?
2. Is all Migration file run?
I was trying to test sending an e-mail from a contact form of a Rails app based at an Heroku server and I got an error saying:
We're sorry, but something went wrong. If you are the application owner check the logs for more information.
My intention was to learn how to integrate a mail server service into my Heroku account. For that, the addon used was MailGun. I even created a MailGun account with my personal e-mail to be able to check if I'm getting the e-mails or not.
After deploying the code from the Cloud9 environment to Heroku servers with the success, the only change I made in my Ruby code was the following stuff:
config/environment.rb
ActionMailer::Base.smtp_settings = {
:port => ENV['MAILGUN_SMTP_PORT'],
:address => ENV['MAILGUN_SMTP_SERVER'],
:user_name => ENV['MAILGUN_SMTP_LOGIN'],
:password => ENV['MAILGUN_SMTP_PASSWORD'],
:domain => 'blahblahblah.herokuapp.com',
:authentication => :plain,
}
ActionMailer::Base.delivery_method = :smtp
What's the problem? Any tip for a solution?
Updated Requested Info (Heroku Logs - I can't update all the logs due to restriction of characters in StackOverflow body):
iamsamuel:~/workspace/saasapp (master) $ heroku logs
2017-02-24T20:18:19.316716+00:00 app[web.1]: Content-Type: text/html;
2017-02-24T20:18:19.316717+00:00 app[web.1]: charset=UTF-8
2017-02-24T20:18:19.316718+00:00 app[web.1]: Content-Transfer-Encoding: 7bit
2017-02-24T20:18:19.316718+00:00 app[web.1]:
2017-02-24T20:18:19.316719+00:00 app[web.1]: <!DOCTYPE html>
2017-02-24T20:18:19.316719+00:00 app[web.1]: <html>
2017-02-24T20:18:19.316720+00:00 app[web.1]: <head>
2017-02-24T20:18:19.316721+00:00 app[web.1]: </head>
2017-02-24T20:18:19.316721+00:00 app[web.1]: <body>
2017-02-24T20:18:19.316722+00:00 app[web.1]: <p>
2017-02-24T20:18:19.316723+00:00 app[web.1]: You have received a message from the site's contact form, from Sam, smlmrr#outlook.com.
2017-02-24T20:18:19.316724+00:00 app[web.1]: </p>
2017-02-24T20:18:19.316724+00:00 app[web.1]: <p>
2017-02-24T20:18:19.316725+00:00 app[web.1]:
2017-02-24T20:18:19.316725+00:00 app[web.1]: </p>
2017-02-24T20:18:19.316726+00:00 app[web.1]: </body>
2017-02-24T20:18:19.316726+00:00 app[web.1]: </html>
2017-02-24T20:18:19.316886+00:00 app[web.1]: I, [2017-02-24T20:18:19.316838 #4] INFO -- : [f024cbfb-df8b-4efa-8cb1-50a6a0d7881c] Completed 500 Internal Server Error in 1166ms (ActiveRecord: 4.1ms)
2017-02-24T20:18:19.317316+00:00 app[web.1]: F, [2017-02-24T20:18:19.317273 #4] FATAL -- : [f024cbfb-df8b-4efa-8cb1-50a6a0d7881c]
2017-02-24T20:18:19.317357+00:00 app[web.1]: F, [2017-02-24T20:18:19.317318 #4] FATAL -- : [f024cbfb-df8b-4efa-8cb1-50a6a0d7881c] Net::SMTPFatalError (554 Please activate your Mailgun account. Check your inbox or log in to your control panel to resend the activation email.
2017-02-24T20:18:19.317358+00:00 app[web.1]: ):
2017-02-24T20:18:19.317396+00:00 app[web.1]: F, [2017-02-24T20:18:19.317355 #4] FATAL -- : [f024cbfb-df8b-4efa-8cb1-50a6a0d7881c]
2017-02-24T20:18:19.317435+00:00 app[web.1]: F, [2017-02-24T20:18:19.317396 #4] FATAL -- : [f024cbfb-df8b-4efa-8cb1-50a6a0d7881c] app/controllers/contacts_controller.rb:15:in `create'
2017-02-24T20:18:19.520898+00:00 heroku[router]: at=info method=GET path="/favicon.ico" host=infinite-forest-28304.herokuapp.com request_id=62153ff0-bef7-4e44-958b-447fb18e7c23 fwd="188.83.235.112" dyno=web.1 connect=0ms service=1ms status=304 bytes=48
2017-02-24T20:53:16.169251+00:00 heroku[web.1]: Idling
2017-02-24T20:53:16.169901+00:00 heroku[web.1]: State changed from up to down
2017-02-24T20:53:17.034264+00:00 heroku[web.1]: Stopping all processes with SIGTERM
2017-02-24T20:53:17.078764+00:00 app[web.1]: - Gracefully stopping, waiting for requests to finish
2017-02-24T20:53:17.078952+00:00 app[web.1]: === puma shutdown: 2017-02-24 20:53:17 +0000 ===
2017-02-24T20:53:17.078957+00:00 app[web.1]: - Goodbye!
2017-02-24T20:53:17.079100+00:00 app[web.1]: Exiting
2017-02-24T20:53:17.347515+00:00 heroku[web.1]: Process exited with status 0
2017-02-24T20:57:24.680979+00:00 heroku[web.1]: Unidling
2017-02-24T20:57:24.681258+00:00 heroku[web.1]: State changed from down to starting
2017-02-24T20:57:27.221989+00:00 heroku[web.1]: Starting process with command `bin/rails server -p 44473 -e production`
2017-02-24T20:57:30.299354+00:00 app[web.1]: => Booting Puma
2017-02-24T20:57:30.299447+00:00 app[web.1]: => Rails 5.0.0 application starting in production on http://0.0.0.0:44473
2017-02-24T20:57:30.299502+00:00 app[web.1]: => Run `rails server -h` for more startup options
2017-02-24T20:57:31.229688+00:00 app[web.1]: Puma starting in single mode...
2017-02-24T20:57:31.229714+00:00 app[web.1]: * Min threads: 5, max threads: 5
2017-02-24T20:57:31.229713+00:00 app[web.1]: * Version 3.4.0 (ruby 2.3.0-p0), codename: Owl Bowl Brawl
2017-02-24T20:57:31.229716+00:00 app[web.1]: * Environment: production
2017-02-24T20:57:31.229813+00:00 app[web.1]: * Listening on tcp://0.0.0.0:44473
2017-02-24T20:57:31.230029+00:00 app[web.1]: Use Ctrl-C to stop
2017-02-24T20:57:31.421917+00:00 heroku[web.1]: State changed from starting to up
2017-02-24T20:57:32.788592+00:00 heroku[router]: at=info method=GET path="/" host=infinite-forest-28304.herokuapp.com request_id=dedd394a-498a-464d-a669-ed19fa2fd418 fwd="188.83.235.112" dyno=web.1 connect=0ms service=58ms status=200 bytes=2753
2017-02-24T20:57:32.737531+00:00 app[web.1]: I, [2017-02-24T20:57:32.737424 #4] INFO -- : [dedd394a-498a-464d-a669-ed19fa2fd418] Started GET "/" for 188.83.235.112 at 2017-02-24 20:57:32 +0000
2017-02-24T20:57:32.740219+00:00 app[web.1]: I, [2017-02-24T20:57:32.740152 #4] INFO -- : [dedd394a-498a-464d-a669-ed19fa2fd418] Processing by PagesController#home as HTML
2017-02-24T20:57:32.752357+00:00 app[web.1]: I, [2017-02-24T20:57:32.752273 #4] INFO -- : [dedd394a-498a-464d-a669-ed19fa2fd418] Rendering pages/home.html.erb within layouts/application
2017-02-24T20:57:32.753153+00:00 app[web.1]: I, [2017-02-24T20:57:32.753082 #4] INFO -- : [dedd394a-498a-464d-a669-ed19fa2fd418] Rendered pages/home.html.erb within layouts/application (0.6ms)
2017-02-24T20:57:32.759595+00:00 app[web.1]: I, [2017-02-24T20:57:32.759524 #4] INFO -- : [dedd394a-498a-464d-a669-ed19fa2fd418] Completed 200 OK in 19ms (Views: 8.6ms | ActiveRecord: 0.0ms)
2017-02-24T20:57:32.929609+00:00 heroku[router]: at=info method=GET path="/assets/application-95163fa38446d1bb6139f870d5fb932af7fa47b347b8951923c32a4565386aa6.js" host=infinite-forest-28304.herokuapp.com request_id=80d55a95-cbe8-4982-a571-bc8850567a87 fwd="188.83.235.112" dyno=web.1 connect=0ms service=1ms status=304 bytes=48
2017-02-24T20:57:32.928158+00:00 heroku[router]: at=info method=GET path="/assets/application-5ed627eba0abe94ba4e2c255c2298f55d9bca9b4ea45ded59ba1705edc5385d0.css" host=infinite-forest-28304.herokuapp.com request_id=a9c456f3-e7cd-4d6a-865f-2c8f5efbdaa7 fwd="188.83.235.112" dyno=web.1 connect=0ms service=1ms status=304 bytes=48
2017-02-24T20:57:33.143930+00:00 heroku[router]: at=info method=GET path="/assets/font-awesome/fontawesome-webfont-2932abf996373e87fbf2e950876b1962f1b57db954a1643ea68831d9fbb74da4.woff2?v=4.6.2" host=infinite-forest-28304.herokuapp.com request_id=90d78563-eaa6-4f24-a054-5c89beada59c fwd="188.83.235.112" dyno=web.1 connect=3ms service=1ms status=304 bytes=48
2017-02-24T20:57:33.402193+00:00 heroku[router]: at=info method=GET path="/favicon.ico" host=infinite-forest-28304.herokuapp.com request_id=7c20311c-bd5a-46c3-a9d5-c6266c1f9331 fwd="188.83.235.112" dyno=web.1 connect=0ms service=1ms status=304 bytes=48
2017-02-24T20:57:50.706814+00:00 heroku[router]: at=info method=GET path="/contact-us" host=infinite-forest-28304.herokuapp.com request_id=0ec752b1-0d75-42dd-83f6-ecd127086bfb fwd="188.83.235.112" dyno=web.1 connect=0ms service=35ms status=200 bytes=4317
2017-02-24T20:57:50.651067+00:00 app[web.1]: I, [2017-02-24T20:57:50.650984 #4] INFO -- : [0ec752b1-0d75-42dd-83f6-ecd127086bfb] Started GET "/contact-us" for 188.83.235.112 at 2017-02-24 20:57:50 +0000
2017-02-24T20:57:50.652579+00:00 app[web.1]: I, [2017-02-24T20:57:50.652518 #4] INFO -- : [0ec752b1-0d75-42dd-83f6-ecd127086bfb] Processing by ContactsController#new as HTML
2017-02-24T20:57:50.669618+00:00 app[web.1]: I, [2017-02-24T20:57:50.669536 #4] INFO -- : [0ec752b1-0d75-42dd-83f6-ecd127086bfb] Rendering contacts/new.html.erb within layouts/application
2017-02-24T20:57:50.681558+00:00 app[web.1]: I, [2017-02-24T20:57:50.681481 #4] INFO -- : [0ec752b1-0d75-42dd-83f6-ecd127086bfb] Rendered contacts/new.html.erb within layouts/application (11.8ms)
2017-02-24T20:57:50.682909+00:00 app[web.1]: I, [2017-02-24T20:57:50.682846 #4] INFO -- : [0ec752b1-0d75-42dd-83f6-ecd127086bfb] Completed 200 OK in 30ms (Views: 14.0ms | ActiveRecord: 7.5ms)
2017-02-24T20:59:14.426470+00:00 app[web.1]: I, [2017-02-24T20:59:14.426395 #4] INFO -- : [606794a4-3f9b-417c-b3ca-72af4d8bafb6] Started POST "/contacts" for 188.83.235.112 at 2017-02-24 20:59:14 +0000
2017-02-24T20:59:14.427281+00:00 app[web.1]: I, [2017-02-24T20:59:14.427232 #4] INFO -- : [606794a4-3f9b-417c-b3ca-72af4d8bafb6] Processing by ContactsController#create as HTML
2017-02-24T20:59:14.427366+00:00 app[web.1]: I, [2017-02-24T20:59:14.427324 #4] INFO -- : [606794a4-3f9b-417c-b3ca-72af4d8bafb6] Parameters: {"utf8"=>"✓", "authenticity_token"=>"MgrtXM/8aUAYPnJ2ph4eIbsqMbLR/xXMZabcKmKh4myMlp0MdLJ2dCHnh7KshXSCqAsIzGQr0SdebpJw1v0QHw==", "contact"=>{"name"=>"Jesse Pinkman", "email"=>"jp#example.com", "comments"=>"Yo Beach!"}, "commit"=>"Submit"}
2017-02-24T20:59:14.429694+00:00 app[web.1]: D, [2017-02-24T20:59:14.429641 #4] DEBUG -- : [606794a4-3f9b-417c-b3ca-72af4d8bafb6] (0.9ms) BEGIN
2017-02-24T20:59:14.434537+00:00 app[web.1]: D, [2017-02-24T20:59:14.434485 #4] DEBUG -- : [606794a4-3f9b-417c-b3ca-72af4d8bafb6] SQL (1.3ms) INSERT INTO "contacts" ("name", "email", "comments", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Jesse Pinkman"], ["email", "jp#example.com"], ["comments", "Yo Beach!"], ["created_at", 2017-02-24 20:59:14 UTC], ["updated_at", 2017-02-24 20:59:14 UTC]]
2017-02-24T20:59:14.436712+00:00 app[web.1]: D, [2017-02-24T20:59:14.436665 #4] DEBUG -- : [606794a4-3f9b-417c-b3ca-72af4d8bafb6] (1.9ms) COMMIT
2017-02-24T20:59:14.441776+00:00 app[web.1]: I, [2017-02-24T20:59:14.441724 #4] INFO -- : [606794a4-3f9b-417c-b3ca-72af4d8bafb6] Rendering contact_mailer/contact_email.html.erb
2017-02-24T20:59:14.442284+00:00 app[web.1]: I, [2017-02-24T20:59:14.442237 #4] INFO -- : [606794a4-3f9b-417c-b3ca-72af4d8bafb6] Rendered contact_mailer/contact_email.html.erb (0.4ms)
2017-02-24T20:59:14.622612+00:00 app[web.1]: D, [2017-02-24T20:59:14.622518 #4] DEBUG -- : [606794a4-3f9b-417c-b3ca-72af4d8bafb6] ContactMailer#contact_email: processed outbound mail in 184.5ms
2017-02-24T20:59:14.749027+00:00 heroku[router]: at=info method=POST path="/contacts" host=infinite-forest-28304.herokuapp.com request_id=606794a4-3f9b-417c-b3ca-72af4d8bafb6 fwd="188.83.235.112" dyno=web.1 connect=0ms service=304ms status=500 bytes=1669
2017-02-24T20:59:14.722589+00:00 app[web.1]: I, [2017-02-24T20:59:14.722491 #4] INFO -- : [606794a4-3f9b-417c-b3ca-72af4d8bafb6] Sent mail to samuelslmoreira#hotmail.com (99.8ms)
2017-02-24T20:59:14.722632+00:00 app[web.1]: D, [2017-02-24T20:59:14.722588 #4] DEBUG -- : [606794a4-3f9b-417c-b3ca-72af4d8bafb6] Date: Fri, 24 Feb 2017 20:59:14 +0000
2017-02-24T20:59:14.722632+00:00 app[web.1]: From: jp#example.com
2017-02-24T20:59:14.722633+00:00 app[web.1]: To: samuelslmoreira#hotmail.com
2017-02-24T20:59:14.722633+00:00 app[web.1]: Message-ID: <58b09ea298a14_43fc0c75eb9c0103ae#71798652-2827-4935-9282-6b3ae7c47b44.mail>
2017-02-24T20:59:14.722634+00:00 app[web.1]: Subject: Contact Form Message
2017-02-24T20:59:14.722634+00:00 app[web.1]: Mime-Version: 1.0
2017-02-24T20:59:14.722635+00:00 app[web.1]: Content-Type: text/html;
2017-02-24T20:59:14.722635+00:00 app[web.1]: charset=UTF-8
2017-02-24T20:59:14.722635+00:00 app[web.1]: Content-Transfer-Encoding: 7bit
2017-02-24T20:59:14.722636+00:00 app[web.1]:
2017-02-24T20:59:14.722636+00:00 app[web.1]: <!DOCTYPE html>
2017-02-24T20:59:14.722637+00:00 app[web.1]: <html>
2017-02-24T20:59:14.722637+00:00 app[web.1]: <head>
2017-02-24T20:59:14.722637+00:00 app[web.1]: </head>
2017-02-24T20:59:14.722638+00:00 app[web.1]: <body>
2017-02-24T20:59:14.722638+00:00 app[web.1]: <p>
2017-02-24T20:59:14.722638+00:00 app[web.1]: You have received a message from the site's contact form, from Jesse Pinkman, jp#example.com.
2017-02-24T20:59:14.722639+00:00 app[web.1]: </p>
2017-02-24T20:59:14.722639+00:00 app[web.1]: <p>
2017-02-24T20:59:14.722639+00:00 app[web.1]:
2017-02-24T20:59:14.722640+00:00 app[web.1]: </p>
2017-02-24T20:59:14.722640+00:00 app[web.1]: </body>
2017-02-24T20:59:14.722640+00:00 app[web.1]: </html>
2017-02-24T20:59:14.722825+00:00 app[web.1]: I, [2017-02-24T20:59:14.722779 #4] INFO -- : [606794a4-3f9b-417c-b3ca-72af4d8bafb6] Completed 500 Internal Server Error in 295ms (ActiveRecord: 4.1ms)
2017-02-24T20:59:14.723286+00:00 app[web.1]: F, [2017-02-24T20:59:14.723242 #4] FATAL -- : [606794a4-3f9b-417c-b3ca-72af4d8bafb6]
2017-02-24T20:59:14.723324+00:00 app[web.1]: F, [2017-02-24T20:59:14.723287 #4] FATAL -- : [606794a4-3f9b-417c-b3ca-72af4d8bafb6] Net::SMTPFatalError (554 Please activate your Mailgun account. Check your inbox or log in to your control panel to resend the activation email.
2017-02-24T20:59:14.723325+00:00 app[web.1]: ):
2017-02-24T20:59:14.723357+00:00 app[web.1]: F, [2017-02-24T20:59:14.723324 #4] FATAL -- : [606794a4-3f9b-417c-b3ca-72af4d8bafb6]
2017-02-24T20:59:14.723390+00:00 app[web.1]: F, [2017-02-24T20:59:14.723357 #4] FATAL -- : [606794a4-3f9b-417c-b3ca-72af4d8bafb6] app/controllers/contacts_controller.rb:15:in `create'
iamsamuel:~/workspace/saasapp (master) $ clear
iamsamuel:~/workspace/saasapp (master) $ clear
iamsamuel:~/workspace/saasapp (master) $ heroku logs
2017-02-24T20:18:19.316723+00:00 app[web.1]: You have received a message from the site's contact form, from Sam, smlmrr#outlook.com.
2017-02-24T20:18:19.316724+00:00 app[web.1]: </p>
2017-02-24T20:18:19.316724+00:00 app[web.1]: <p>
2017-02-24T20:18:19.316725+00:00 app[web.1]:
2017-02-24T20:18:19.316725+00:00 app[web.1]: </p>
2017-02-24T20:18:19.316726+00:00 app[web.1]: </body>
2017-02-24T20:18:19.316726+00:00 app[web.1]: </html>
2017-02-24T20:18:19.316886+00:00 app[web.1]: I, [2017-02-24T20:18:19.316838 #4] INFO -- : [f024cbfb-df8b-4efa-8cb1-50a6a0d7881c] Completed 500 Internal Server Error in 1166ms (ActiveRecord: 4.1ms)
2017-02-24T20:18:19.317316+00:00 app[web.1]: F, [2017-02-24T20:18:19.317273 #4] FATAL -- : [f024cbfb-df8b-4efa-8cb1-50a6a0d7881c]
2017-02-24T20:18:19.317357+00:00 app[web.1]: F, [2017-02-24T20:18:19.317318 #4] FATAL -- : [f024cbfb-df8b-4efa-8cb1-50a6a0d7881c] Net::SMTPFatalError (554 Please activate your Mailgun account. Check your inbox or log in to your control panel to resend the activation email.
2017-02-24T20:18:19.317358+00:00 app[web.1]: ):
2017-02-24T20:18:19.317396+00:00 app[web.1]: F, [2017-02-24T20:18:19.317355 #4] FATAL -- : [f024cbfb-df8b-4efa-8cb1-50a6a0d7881c]
2017-02-24T20:18:19.317435+00:00 app[web.1]: F, [2017-02-24T20:18:19.317396 #4] FATAL -- : [f024cbfb-df8b-4efa-8cb1-50a6a0d7881c] app/controllers/contacts_controller.rb:15:in `create'
2017-02-24T20:18:19.520898+00:00 heroku[router]: at=info method=GET path="/favicon.ico" host=infinite-forest-28304.herokuapp.com request_id=62153ff0-bef7-4e44-958b-447fb18e7c23 fwd="188.83.235.112" dyno=web.1 connect=0ms service=1ms status=304 bytes=48
2017-02-24T20:53:16.169251+00:00 heroku[web.1]: Idling
2017-02-24T20:53:16.169901+00:00 heroku[web.1]: State changed from up to down
2017-02-24T20:53:17.034264+00:00 heroku[web.1]: Stopping all processes with SIGTERM
2017-02-24T20:53:17.078764+00:00 app[web.1]: - Gracefully stopping, waiting for requests to finish
2017-02-24T20:53:17.078952+00:00 app[web.1]: === puma shutdown: 2017-02-24 20:53:17 +0000 ===
2017-02-24T20:53:17.078957+00:00 app[web.1]: - Goodbye!
2017-02-24T20:53:17.079100+00:00 app[web.1]: Exiting
2017-02-24T20:53:17.347515+00:00 heroku[web.1]: Process exited with status 0
2017-02-24T20:57:24.680979+00:00 heroku[web.1]: Unidling
2017-02-24T20:57:24.681258+00:00 heroku[web.1]: State changed from down to starting
2017-02-24T20:57:27.221989+00:00 heroku[web.1]: Starting process with command `bin/rails server -p 44473 -e production`
2017-02-24T20:57:30.299354+00:00 app[web.1]: => Booting Puma
2017-02-24T20:57:30.299447+00:00 app[web.1]: => Rails 5.0.0 application starting in production on http://0.0.0.0:44473
2017-02-24T20:57:30.299502+00:00 app[web.1]: => Run `rails server -h` for more startup options
2017-02-24T20:57:31.229688+00:00 app[web.1]: Puma starting in single mode...
2017-02-24T20:57:31.229714+00:00 app[web.1]: * Min threads: 5, max threads: 5
2017-02-24T20:57:31.229713+00:00 app[web.1]: * Version 3.4.0 (ruby 2.3.0-p0), codename: Owl Bowl Brawl
2017-02-24T20:57:31.229716+00:00 app[web.1]: * Environment: production
2017-02-24T20:57:31.229813+00:00 app[web.1]: * Listening on tcp://0.0.0.0:44473
2017-02-24T20:57:31.230029+00:00 app[web.1]: Use Ctrl-C to stop
2017-02-24T20:57:31.421917+00:00 heroku[web.1]: State changed from starting to up
2017-02-24T20:57:32.788592+00:00 heroku[router]: at=info method=GET path="/" host=infinite-forest-28304.herokuapp.com request_id=dedd394a-498a-464d-a669-ed19fa2fd418 fwd="188.83.235.112" dyno=web.1 connect=0ms service=58ms status=200 bytes=2753
2017-02-24T20:57:32.737531+00:00 app[web.1]: I, [2017-02-24T20:57:32.737424 #4] INFO -- : [dedd394a-498a-464d-a669-ed19fa2fd418] Started GET "/" for 188.83.235.112 at 2017-02-24 20:57:32 +0000
2017-02-24T20:57:32.740219+00:00 app[web.1]: I, [2017-02-24T20:57:32.740152 #4] INFO -- : [dedd394a-498a-464d-a669-ed19fa2fd418] Processing by PagesController#home as HTML
2017-02-24T20:57:32.752357+00:00 app[web.1]: I, [2017-02-24T20:57:32.752273 #4] INFO -- : [dedd394a-498a-464d-a669-ed19fa2fd418] Rendering pages/home.html.erb within layouts/application
2017-02-24T20:57:32.753153+00:00 app[web.1]: I, [2017-02-24T20:57:32.753082 #4] INFO -- : [dedd394a-498a-464d-a669-ed19fa2fd418] Rendered pages/home.html.erb within layouts/application (0.6ms)
2017-02-24T20:57:32.759595+00:00 app[web.1]: I, [2017-02-24T20:57:32.759524 #4] INFO -- : [dedd394a-498a-464d-a669-ed19fa2fd418] Completed 200 OK in 19ms (Views: 8.6ms | ActiveRecord: 0.0ms)
2017-02-24T20:57:32.929609+00:00 heroku[router]: at=info method=GET path="/assets/application-95163fa38446d1bb6139f870d5fb932af7fa47b347b8951923c32a4565386aa6.js" host=infinite-forest-28304.herokuapp.com request_id=80d55a95-cbe8-4982-a571-bc8850567a87 fwd="188.83.235.112" dyno=web.1 connect=0ms service=1ms status=304 bytes=48
2017-02-24T20:57:32.928158+00:00 heroku[router]: at=info method=GET path="/assets/application-5ed627eba0abe94ba4e2c255c2298f55d9bca9b4ea45ded59ba1705edc5385d0.css" host=infinite-forest-28304.herokuapp.com request_id=a9c456f3-e7cd-4d6a-865f-2c8f5efbdaa7 fwd="188.83.235.112" dyno=web.1 connect=0ms service=1ms status=304 bytes=48
2017-02-24T20:57:33.143930+00:00 heroku[router]: at=info method=GET path="/assets/font-awesome/fontawesome-webfont-2932abf996373e87fbf2e950876b1962f1b57db954a1643ea68831d9fbb74da4.woff2?v=4.6.2" host=infinite-forest-28304.herokuapp.com request_id=90d78563-eaa6-4f24-a054-5c89beada59c fwd="188.83.235.112" dyno=web.1 connect=3ms service=1ms status=304 bytes=48
2017-02-24T20:57:33.402193+00:00 heroku[router]: at=info method=GET path="/favicon.ico" host=infinite-forest-28304.herokuapp.com request_id=7c20311c-bd5a-46c3-a9d5-c6266c1f9331 fwd="188.83.235.112" dyno=web.1 connect=0ms service=1ms status=304 bytes=48
2017-02-24T20:57:50.706814+00:00 heroku[router]: at=info method=GET path="/contact-us" host=infinite-forest-28304.herokuapp.com request_id=0ec752b1-0d75-42dd-83f6-ecd127086bfb fwd="188.83.235.112" dyno=web.1 connect=0ms service=35ms status=200 bytes=4317
2017-02-24T20:57:50.651067+00:00 app[web.1]: I, [2017-02-24T20:57:50.650984 #4] INFO -- : [0ec752b1-0d75-42dd-83f6-ecd127086bfb] Started GET "/contact-us" for 188.83.235.112 at 2017-02-24 20:57:50 +0000
2017-02-24T20:57:50.652579+00:00 app[web.1]: I, [2017-02-24T20:57:50.652518 #4] INFO -- : [0ec752b1-0d75-42dd-83f6-ecd127086bfb] Processing by ContactsController#new as HTML
2017-02-24T20:57:50.669618+00:00 app[web.1]: I, [2017-02-24T20:57:50.669536 #4] INFO -- : [0ec752b1-0d75-42dd-83f6-ecd127086bfb] Rendering contacts/new.html.erb within layouts/application
2017-02-24T20:57:50.681558+00:00 app[web.1]: I, [2017-02-24T20:57:50.681481 #4] INFO -- : [0ec752b1-0d75-42dd-83f6-ecd127086bfb] Rendered contacts/new.html.erb within layouts/application (11.8ms)
2017-02-24T20:57:50.682909+00:00 app[web.1]: I, [2017-02-24T20:57:50.682846 #4] INFO -- : [0ec752b1-0d75-42dd-83f6-ecd127086bfb] Completed 200 OK in 30ms (Views: 14.0ms | ActiveRecord: 7.5ms)
2017-02-24T20:59:14.426470+00:00 app[web.1]: I, [2017-02-24T20:59:14.426395 #4] INFO -- : [606794a4-3f9b-417c-b3ca-72af4d8bafb6] Started POST "/contacts" for 188.83.235.112 at 2017-02-24 20:59:14 +0000
2017-02-24T20:59:14.427281+00:00 app[web.1]: I, [2017-02-24T20:59:14.427232 #4] INFO -- : [606794a4-3f9b-417c-b3ca-72af4d8bafb6] Processing by ContactsController#create as HTML
2017-02-24T20:59:14.427366+00:00 app[web.1]: I, [2017-02-24T20:59:14.427324 #4] INFO -- : [606794a4-3f9b-417c-b3ca-72af4d8bafb6] Parameters: {"utf8"=>"✓", "authenticity_token"=>"MgrtXM/8aUAYPnJ2ph4eIbsqMbLR/xXMZabcKmKh4myMlp0MdLJ2dCHnh7KshXSCqAsIzGQr0SdebpJw1v0QHw==", "contact"=>{"name"=>"Jesse Pinkman", "email"=>"jp#example.com", "comments"=>"Yo Beach!"}, "commit"=>"Submit"}
2017-02-24T20:59:14.429694+00:00 app[web.1]: D, [2017-02-24T20:59:14.429641 #4] DEBUG -- : [606794a4-3f9b-417c-b3ca-72af4d8bafb6] (0.9ms) BEGIN
2017-02-24T20:59:14.434537+00:00 app[web.1]: D, [2017-02-24T20:59:14.434485 #4] DEBUG -- : [606794a4-3f9b-417c-b3ca-72af4d8bafb6] SQL (1.3ms) INSERT INTO "contacts" ("name", "email", "comments", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Jesse Pinkman"], ["email", "jp#example.com"], ["comments", "Yo Beach!"], ["created_at", 2017-02-24 20:59:14 UTC], ["updated_at", 2017-02-24 20:59:14 UTC]]
2017-02-24T20:59:14.436712+00:00 app[web.1]: D, [2017-02-24T20:59:14.436665 #4] DEBUG -- : [606794a4-3f9b-417c-b3ca-72af4d8bafb6] (1.9ms) COMMIT
2017-02-24T20:59:14.441776+00:00 app[web.1]: I, [2017-02-24T20:59:14.441724 #4] INFO -- : [606794a4-3f9b-417c-b3ca-72af4d8bafb6] Rendering contact_mailer/contact_email.html.erb
2017-02-24T20:59:14.442284+00:00 app[web.1]: I, [2017-02-24T20:59:14.442237 #4] INFO -- : [606794a4-3f9b-417c-b3ca-72af4d8bafb6] Rendered contact_mailer/contact_email.html.erb (0.4ms)
2017-02-24T20:59:14.622612+00:00 app[web.1]: D, [2017-02-24T20:59:14.622518 #4] DEBUG -- : [606794a4-3f9b-417c-b3ca-72af4d8bafb6] ContactMailer#contact_email: processed outbound mail in 184.5ms
2017-02-24T20:59:14.749027+00:00 heroku[router]: at=info method=POST path="/contacts" host=infinite-forest-28304.herokuapp.com request_id=606794a4-3f9b-417c-b3ca-72af4d8bafb6 fwd="188.83.235.112" dyno=web.1 connect=0ms service=304ms status=500 bytes=1669
2017-02-24T20:59:14.722589+00:00 app[web.1]: I, [2017-02-24T20:59:14.722491 #4] INFO -- : [606794a4-3f9b-417c-b3ca-72af4d8bafb6] Sent mail to samuelslmoreira#hotmail.com (99.8ms)
2017-02-24T20:59:14.722632+00:00 app[web.1]: D, [2017-02-24T20:59:14.722588 #4] DEBUG -- : [606794a4-3f9b-417c-b3ca-72af4d8bafb6] Date: Fri, 24 Feb 2017 20:59:14 +0000
2017-02-24T20:59:14.722632+00:00 app[web.1]: From: jp#example.com
2017-02-24T20:59:14.722633+00:00 app[web.1]: To: samuelslmoreira#hotmail.com
2017-02-24T20:59:14.722633+00:00 app[web.1]: Message-ID: <58b09ea298a14_43fc0c75eb9c0103ae#71798652-2827-4935-9282-6b3ae7c47b44.mail>
2017-02-24T20:59:14.722634+00:00 app[web.1]: Subject: Contact Form Message
2017-02-24T20:59:14.722634+00:00 app[web.1]: Mime-Version: 1.0
2017-02-24T20:59:14.722635+00:00 app[web.1]: Content-Type: text/html;
2017-02-24T20:59:14.722635+00:00 app[web.1]: charset=UTF-8
2017-02-24T20:59:14.722635+00:00 app[web.1]: Content-Transfer-Encoding: 7bit
2017-02-24T20:59:14.722636+00:00 app[web.1]:
2017-02-24T20:59:14.722636+00:00 app[web.1]: <!DOCTYPE html>
2017-02-24T20:59:14.722637+00:00 app[web.1]: <html>
2017-02-24T20:59:14.722637+00:00 app[web.1]: <head>
2017-02-24T20:59:14.722637+00:00 app[web.1]: </head>
2017-02-24T20:59:14.722638+00:00 app[web.1]: <body>
2017-02-24T20:59:14.722638+00:00 app[web.1]: <p>
2017-02-24T20:59:14.722638+00:00 app[web.1]: You have received a message from the site's contact form, from Jesse Pinkman, jp#example.com.
2017-02-24T20:59:14.722639+00:00 app[web.1]: </p>
2017-02-24T20:59:14.722639+00:00 app[web.1]: <p>
2017-02-24T20:59:14.722639+00:00 app[web.1]:
2017-02-24T20:59:14.722640+00:00 app[web.1]: </p>
2017-02-24T20:59:14.722640+00:00 app[web.1]: </body>
2017-02-24T20:59:14.722640+00:00 app[web.1]: </html>
2017-02-24T20:59:14.722825+00:00 app[web.1]: I, [2017-02-24T20:59:14.722779 #4] INFO -- : [606794a4-3f9b-417c-b3ca-72af4d8bafb6] Completed 500 Internal Server Error in 295ms (ActiveRecord: 4.1ms)
2017-02-24T20:59:14.723286+00:00 app[web.1]: F, [2017-02-24T20:59:14.723242 #4] FATAL -- : [606794a4-3f9b-417c-b3ca-72af4d8bafb6]
2017-02-24T20:59:14.723324+00:00 app[web.1]: F, [2017-02-24T20:59:14.723287 #4] FATAL -- : [606794a4-3f9b-417c-b3ca-72af4d8bafb6] Net::SMTPFatalError (554 Please activate your Mailgun account. Check your inbox or log in to your control panel to resend the activation email.
2017-02-24T20:59:14.723325+00:00 app[web.1]: ):
2017-02-24T20:59:14.723357+00:00 app[web.1]: F, [2017-02-24T20:59:14.723324 #4] FATAL -- : [606794a4-3f9b-417c-b3ca-72af4d8bafb6]
2017-02-24T20:59:14.723390+00:00 app[web.1]: F, [2017-02-24T20:59:14.723357 #4] FATAL -- : [606794a4-3f9b-417c-b3ca-72af4d8bafb6] app/controllers/contacts_controller.rb:15:in `create'
2017-02-24T21:30:27.890702+00:00 heroku[router]: at=info method=GET path="/" host=infinite-forest-28304.herokuapp.com request_id=ef1e2185-e94e-4a90-907e-15dad519fd59 fwd="188.83.235.112" dyno=web.1 connect=1ms service=6ms status=200 bytes=2753
2017-02-24T21:30:27.866291+00:00 app[web.1]: I, [2017-02-24T21:30:27.866202 #4] INFO -- : [ef1e2185-e94e-4a90-907e-15dad519fd59] Started GET "/" for 188.83.235.112 at 2017-02-24 21:30:27 +0000
2017-02-24T21:30:27.867090+00:00 app[web.1]: I, [2017-02-24T21:30:27.867030 #4] INFO -- : [ef1e2185-e94e-4a90-907e-15dad519fd59] Processing by PagesController#home as HTML
2017-02-24T21:30:27.868034+00:00 app[web.1]: I, [2017-02-24T21:30:27.867962 #4] INFO -- : [ef1e2185-e94e-4a90-907e-15dad519fd59] Rendering pages/home.html.erb within layouts/application
2017-02-24T21:30:27.868172+00:00 app[web.1]: I, [2017-02-24T21:30:27.868117 #4] INFO -- : [ef1e2185-e94e-4a90-907e-15dad519fd59] Rendered pages/home.html.erb within layouts/application (0.0ms)
2017-02-24T21:30:27.869109+00:00 app[web.1]: I, [2017-02-24T21:30:27.869058 #4] INFO -- : [ef1e2185-e94e-4a90-907e-15dad519fd59] Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms)
2017-02-24T21:30:28.039850+00:00 heroku[router]: at=info method=GET path="/assets/application-5ed627eba0abe94ba4e2c255c2298f55d9bca9b4ea45ded59ba1705edc5385d0.css" host=infinite-forest-28304.herokuapp.com request_id=f9b48384-ae99-4f9e-b035-6624ef9d2ce6 fwd="188.83.235.112" dyno=web.1 connect=0ms service=1ms status=304 bytes=48
2017-02-24T21:30:28.051038+00:00 heroku[router]: at=info method=GET path="/assets/application-95163fa38446d1bb6139f870d5fb932af7fa47b347b8951923c32a4565386aa6.js" host=infinite-forest-28304.herokuapp.com request_id=7b1f62bf-5aca-4ac1-b926-5c3219b3ccac fwd="188.83.235.112" dyno=web.1 connect=1ms service=2ms status=304 bytes=48
2017-02-24T21:30:28.279062+00:00 heroku[router]: at=info method=GET path="/assets/font-awesome/fontawesome-webfont-2932abf996373e87fbf2e950876b1962f1b57db954a1643ea68831d9fbb74da4.woff2?v=4.6.2" host=infinite-forest-28304.herokuapp.com request_id=d1522ce1-c16b-4525-aa55-08c6f45713c8 fwd="188.83.235.112" dyno=web.1 connect=0ms service=1ms status=304 bytes=48
2017-02-24T21:30:29.186402+00:00 heroku[router]: at=info method=GET path="/favicon.ico" host=infinite-forest-28304.herokuapp.com request_id=1cec8754-06b9-4b20-ad32-77976a359e33 fwd="188.83.235.112" dyno=web.1 connect=0ms service=1ms status=304 bytes=48
Read the error message:
Net::SMTPFatalError (554 Please activate your Mailgun account. Check your inbox or log in to your control panel to resend the activation email.
Just activate your account.
Ok. As the logs say and as #GrahamSlick already answered, your mailgun account is not verified. If you claim that the account is verified make sure that the credentials you used in
your config/environment.rb are the correct ones that belong to the verified account and ensure that heroku uses the correct credentials. The logs say that your account is not verified. May be you want to check your settings with mailgun again and see whether they tell you something about having an inactive account. Good luck.
You have to add a domain, verified it then you can send mails from mailgun.
I ran into the exact same issue. I even tried with just CURL to make sure it had nothing to do with rails or heroku. I double checked that my domain was validated.
I ended up opening a support ticket. They got back to me within a few hours and said "now its good to go" and sure enough it works.
So it's either bugs on their end, or they purposefully require manual oversight for some accounts. Not a great first impression, but it's good to see their support responded quickly.