Rails/Heroku Application Error - ActionView::Templete::Error - ruby-on-rails

When I deploy my app to Heroku I am getting an error page saying "We're sorry, but something went wrong." I add puma to my gem file in order to run the server there. Unfortunately that didn't fix the issue. I'm working in Cloud 9 IDE. The logs are posted below. Can anyone assist?
> freshmurry:~/workspace (master) $ heroku logs --tail
> WARNING: This is the legacy Heroku CLI with limited functionality. Please install the latest CLI.
> WARNING: Installation instructions are at https://cli.heroku.com
> 2017-06-12T14:42:28.118206+00:00 app[web.1]: => Ctrl-C to shutdown server
> 2017-06-12T14:42:28.118197+00:00 app[web.1]: => Rails 4.2.6 application starting in production on http://0.0.0.0:7296
> 2017-06-12T14:42:28.118218+00:00 app[web.1]: [4] Puma starting in cluster mode...
> 2017-06-12T14:42:28.118219+00:00 app[web.1]: [4] * Version 3.9.1 (ruby 2.2.2-p95), codename: Private Caller
> 2017-06-12T14:42:28.118220+00:00 app[web.1]: [4] * Min threads: 1, max threads: 1
> 2017-06-12T14:42:28.118223+00:00 app[web.1]: [4] * Process workers: 2
> 2017-06-12T14:42:28.118221+00:00 app[web.1]: [4] * Environment: production
> 2017-06-12T14:42:28.118246+00:00 app[web.1]: [4] * Preloading application
> 2017-06-12T14:42:28.118403+00:00 app[web.1]: [4] * Listening on tcp://0.0.0.0:7296
> 2017-06-12T14:42:28.127987+00:00 app[web.1]: [4] - Worker 0 (pid: 7) booted, phase: 0
> 2017-06-12T14:42:28.118634+00:00 app[web.1]: [4] Use Ctrl-C to stop
> 2017-06-12T14:42:28.138176+00:00 app[web.1]: [4] - Worker 1 (pid: 12) booted, phase: 0
> 2017-06-12T14:42:28.468279+00:00 heroku[web.1]: State changed from starting to up
> 2017-06-12T14:43:21.618239+00:00 app[web.1]: Started GET "/" for 165.225.0.80 at 2017-06-12 14:43:21 +0000
> 2017-06-12T14:43:21.661531+00:00 app[web.1]: Processing by ProductsController#index as HTML
> 2017-06-12T14:43:21.676339+00:00 app[web.1]: Product Load (1.5ms) SELECT "products".* FROM "products"
> 2017-06-12T14:43:51.612669+00:00 heroku[router]: at=error code=H12 desc="Request timeout" method=GET path="/"
> host=songchordz.herokuapp.com
> request_id=a209d2c5-1519-4829-b03f-8ad410a36cc7 fwd="165.225.0.80"
> dyno=web.1 connect=1ms service=30000ms status=503 bytes=0
> protocol=https
> 2017-06-12T14:43:51.738309+00:00 heroku[router]: at=info method=GET path="/favicon.ico" host=songchordz.herokuapp.com
> request_id=716c5e18-d421-49fd-9c3f-a1b406ef950d fwd="165.225.0.80"
> dyno=web.1 connect=1ms service=11ms status=200 bytes=188
> protocol=https
> 2017-06-12T14:44:19.815485+00:00 app[web.1]: Rendered products/index.html.erb within layouts/application (58144.2ms)
> 2017-06-12T14:44:19.815964+00:00 app[web.1]: Completed 500 Internal Server Error in 58154ms (ActiveRecord: 7.1ms)
> 2017-06-12T14:44:19.819108+00:00 app[web.1]:
> 2017-06-12T14:44:19.819110+00:00 app[web.1]: ActionView::Template::Error (Invalid CSS after "... background: ":
> expected "{", was "url('/assets/si..."):
> 2017-06-12T14:44:19.819112+00:00 app[web.1]: 13: <div class="product clearfix">
> 2017-06-12T14:44:19.819113+00:00 app[web.1]: 14: <a href="<%= product_path(product)%>">
> 2017-06-12T14:44:19.819113+00:00 app[web.1]: 15: <div class="product-image-container">
> 2017-06-12T14:44:19.819114+00:00 app[web.1]: 16: <img src="<%= asset_path product.thumbnail_image_name %>" alt="<%=
> product.title %>"/>
> 2017-06-12T14:44:19.819115+00:00 app[web.1]: 17: <span class="product-price">$<%= product.price %></span>
> 2017-06-12T14:44:19.819116+00:00 app[web.1]: 18: </div>
> 2017-06-12T14:44:19.819117+00:00 app[web.1]: 19: <p class="product-title"><%= product.title %></p></a>
> 2017-06-12T14:44:19.819118+00:00 app[web.1]: app/views/products/index.html.erb:16:in `block in
> _app_views_products_index_html_erb__2962215687888486859_70188315801060'
> 2017-06-12T14:44:19.819118+00:00 app[web.1]: app/views/products/index.html.erb:12:in
> `_app_views_products_index_html_erb__2962215687888486859_70188315801060'
> 2017-06-12T14:44:19.819120+00:00 app[web.1]:
> 2017-06-12T14:44:19.819119+00:00 app[web.1]:
> 2017-06-12T14:50:12.196944+00:00 app[web.1]: Started GET "/" for 165.225.0.83 at 2017-06-12 14:50:12 +0000
> 2017-06-12T14:50:12.246560+00:00 app[web.1]: Processing by ProductsController#index as HTML
> 2017-06-12T14:50:12.260255+00:00 app[web.1]: Product Load (1.6ms) SELECT "products".* FROM "products"
> 2017-06-12T14:50:18.705756+00:00 heroku[router]: at=info method=GET path="/" host=songchordz.herokuapp.com
> request_id=cb4de3d8-9abf-4c68-b7b3-08247b55c803 fwd="165.225.0.83"
> dyno=web.1 connect=2ms service=6512ms status=500 bytes=1714
> protocol=https
> 2017-06-12T14:50:18.758818+00:00 heroku[router]: at=info method=GET path="/favicon.ico" host=songchordz.herokuapp.com
> request_id=aa8706d9-9053-40ee-b586-c95a2324af8d fwd="165.225.0.83"
> dyno=web.1 connect=1ms service=2ms status=304 bytes=93 protocol=https
> 2017-06-12T14:50:18.706025+00:00 app[web.1]: 14: <a href="<%= product_path(product)%>">
> 2017-06-12T14:50:18.704334+00:00 app[web.1]: Completed 500 Internal Server Error in 6458ms (ActiveRecord: 9.5ms)
> 2017-06-12T14:50:18.706028+00:00 app[web.1]: 18: </div>
> 2017-06-12T14:50:18.706020+00:00 app[web.1]:
> 2017-06-12T14:50:18.704044+00:00 app[web.1]: Rendered products/index.html.erb within layouts/application (6448.0ms)
> 2017-06-12T14:50:18.706026+00:00 app[web.1]: 15: <div class="product-image-container">
> 2017-06-12T14:50:18.706026+00:00 app[web.1]: 16: <img src="<%= asset_path product.thumbnail_image_name %>" alt="<%=
> product.title %>"/>
> 2017-06-12T14:50:18.706024+00:00 app[web.1]: 13: <div class="product clearfix">
> 2017-06-12T14:50:18.706027+00:00 app[web.1]: 17: <span class="product-price">$<%= product.price %></span>
> 2017-06-12T14:50:18.706023+00:00 app[web.1]: ActionView::Template::Error (Invalid CSS after "... background: ":
> expected "{", was "url('/assets/si..."):
> 2017-06-12T14:50:18.706029+00:00 app[web.1]: 19: <p class="product-title"><%= product.title %></p></a>
> 2017-06-12T14:50:18.706030+00:00 app[web.1]: app/views/products/index.html.erb:16:in `block in
> _app_views_products_index_html_erb__2962215687888486859_70188315745620'
> 2017-06-12T14:50:18.706031+00:00 app[web.1]: app/views/products/index.html.erb:12:in
> `_app_views_products_index_html_erb__2962215687888486859_70188315745620'
> 2017-06-12T14:50:18.706031+00:00 app[web.1]:
> 2017-06-12T14:50:18.706032+00:00 app[web.1]:
> 2017-06-12T15:00:09.000000+00:00 app[api]: Build started by user user#yahoo.com
> 2017-06-12T15:00:26.386944+00:00 app[api]: Release v35 created by user user#yahoo.com
> 2017-06-12T15:00:26.386944+00:00 app[api]: Deploy bfdfd983 by user user#yahoo.com
> 2017-06-12T15:00:27.042332+00:00 heroku[web.1]: Restarting
> 2017-06-12T15:00:27.043183+00:00 heroku[web.1]: State changed from up to starting
> 2017-06-12T15:00:09.000000+00:00 app[api]: Build succeeded
> 2017-06-12T15:00:28.141928+00:00 heroku[web.1]: Stopping all processes with SIGTERM
> 2017-06-12T15:00:28.160932+00:00 app[web.1]: [4] - Gracefully shutting down workers...
> 2017-06-12T15:00:28.933799+00:00 app[web.1]: [4] === puma shutdown: 2017-06-12 15:00:28 +0000 ===
> 2017-06-12T15:00:28.933814+00:00 app[web.1]: [4] - Goodbye!
> 2017-06-12T15:00:28.933834+00:00 app[web.1]: Exiting
> 2017-06-12T15:00:29.287412+00:00 heroku[web.1]: Process exited with status 0
> 2017-06-12T15:00:33.688417+00:00 heroku[web.1]: Starting process with command `bin/rails server -p 10601 -e production`
> 2017-06-12T15:00:42.161643+00:00 app[web.1]: => Booting Puma
> 2017-06-12T15:00:42.161681+00:00 app[web.1]: => Rails 4.2.6 application starting in production on http://0.0.0.0:10601
> 2017-06-12T15:00:42.161691+00:00 app[web.1]: => Run `rails server -h` for more startup options
> 2017-06-12T15:00:42.161692+00:00 app[web.1]: => Ctrl-C to shutdown server
> 2017-06-12T15:00:42.161754+00:00 app[web.1]: [4] Puma starting in cluster mode...
> 2017-06-12T15:00:42.161823+00:00 app[web.1]: [4] * Version 3.9.1 (ruby 2.2.2-p95), codename: Private Caller
> 2017-06-12T15:00:42.161864+00:00 app[web.1]: [4] * Min threads: 1, max threads: 1
> 2017-06-12T15:00:42.161937+00:00 app[web.1]: [4] * Environment: production
> 2017-06-12T15:00:42.161980+00:00 app[web.1]: [4] * Process workers: 2
> 2017-06-12T15:00:42.162025+00:00 app[web.1]: [4] * Preloading application
> 2017-06-12T15:00:42.162303+00:00 app[web.1]: [4] * Listening on tcp://0.0.0.0:10601
> 2017-06-12T15:00:42.162802+00:00 app[web.1]: [4] Use Ctrl-C to stop
> 2017-06-12T15:00:42.175712+00:00 app[web.1]: [4] - Worker 0 (pid: 7) booted, phase: 0
> 2017-06-12T15:00:42.178719+00:00 app[web.1]: [4] - Worker 1 (pid: 9) booted, phase: 0
> 2017-06-12T15:00:42.741234+00:00 heroku[web.1]: State changed from starting to up
> 2017-06-12T15:03:34.480518+00:00 app[web.1]: Started GET "/" for 165.225.0.80 at 2017-06-12 15:03:34 +0000
> 2017-06-12T15:03:34.535895+00:00 app[web.1]: Processing by ProductsController#index as HTML
> 2017-06-12T15:03:34.556604+00:00 app[web.1]: Product Load (1.7ms) SELECT "products".* FROM "products"
> 2017-06-12T15:04:04.458759+00:00 heroku[router]: at=error code=H12 desc="Request timeout" method=GET path="/"
> host=songchordz.herokuapp.com
> request_id=99da6242-45eb-4039-b35c-770b1594beec fwd="165.225.0.80"
> dyno=web.1 connect=0ms service=30001ms status=503 bytes=0
> protocol=https
> 2017-06-12T15:04:34.582637+00:00 heroku[router]: at=error code=H12 desc="Request timeout" method=GET path="/favicon.ico"
> host=songchordz.herokuapp.com
> request_id=734596fb-2cb9-4bd4-9cc5-4fc85c747ed5 fwd="165.225.0.80"
> dyno=web.1 connect=0ms service=30001ms status=503 bytes=0
> protocol=https
> 2017-06-12T15:04:49.462061+00:00 app[web.1]: Rendered products/index.html.erb within layouts/application (74910.8ms)
> 2017-06-12T15:04:49.467310+00:00 app[web.1]: Completed 500 Internal Server Error in 74931ms (ActiveRecord: 6.5ms)
> 2017-06-12T15:04:49.470398+00:00 app[web.1]:
> 2017-06-12T15:04:49.470410+00:00 app[web.1]: ActionView::Template::Error (Invalid CSS after "... background: ":
> expected "{", was "url('/assets/si..."):
> 2017-06-12T15:04:49.470412+00:00 app[web.1]: 13: <div class="product clearfix">
> 2017-06-12T15:04:49.470414+00:00 app[web.1]: 14: <a href="<%= product_path(product)%>">
> 2017-06-12T15:04:49.470415+00:00 app[web.1]: 15: <div class="product-image-container">
> 2017-06-12T15:04:49.470415+00:00 app[web.1]: 16: <img src="<%= asset_path product.thumbnail_image_name %>" alt="<%=
> product.title %>"/>
> 2017-06-12T15:04:49.470416+00:00 app[web.1]: 17: <span class="product-price">$<%= product.price %></span>
> 2017-06-12T15:04:49.470418+00:00 app[web.1]: 18: </div>
> 2017-06-12T15:04:49.470419+00:00 app[web.1]: 19: <p class="product-title"><%= product.title %></p></a>
> 2017-06-12T15:04:49.470420+00:00 app[web.1]: app/views/products/index.html.erb:16:in `block in
> _app_views_products_index_html_erb__4490733878524225278_70102825789420'
> 2017-06-12T15:04:49.470421+00:00 app[web.1]: app/views/products/index.html.erb:12:in
> `_app_views_products_index_html_erb__4490733878524225278_70102825789420'
> 2017-06-12T15:04:49.470421+00:00 app[web.1]:
> 2017-06-12T15:04:49.470422+00:00 app[web.1]:

Anytime you see an error like this:
2017-06-12T15:04:49.470410+00:00 app[web.1]: ActionView::Template::Error (Invalid CSS after "... background: ": > expected "{", was "url('/assets/si..."):
it serves as a clue. The clue is in the term ActionView::Template. Its important to know how the Ruby on Rails framework works for you to understand what is going on. Here is a guide on what is the significance of ActionView:
http://guides.rubyonrails.org/action_view_overview.html
Rails uses this tool called ActionView and what ActionView does is assist in mapping the controllers to the Views, but don't take my word for it, just read the documentation I posted above, in particular this part:
For each controller there is an associated directory in the app/views directory which holds the template files that make up the views associated with that controller. These files are used to display the view that results from each controller action.
So why am I posting this? Well, if you know that ActionView maps the controllers to the views and then you also see the term Template, it serves as a big clue that the problem is in the Views of your Model-Views-Controller application. Isn't awesome how you can isolate the problem with this framework in this manner?
Then there is another clue in that error message, Invalid CSS after...
I think that is the biggest and glaring clue of all. You have invalid CSS and its not rendering in your Views correctly, which is why the terms Template and ActionView appeared on the error scene.
I realize you figured it out eventually, but the answer is also in how you problem solve and not just the fix. Eventually, you are going to run into another error that you can't decipher if you do not know how the Ruby on Rails MVC framework and all of its tools work.

Related

How to fix Error 500 when I deploy on Heroku

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" %>

Rails 5 app NoMethodError (undefined method `take' for nil:NilClass) deploying to Heroku even though the app successfully launched and works locally

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.

failed to connect with bonsai and elastic search and search kick on heroku

Trying to run elastic search with bonsai and search kick on heroku. it says it is starting but i keep getting a Faraday::ConnectionFailed (Connection refused - connect(2)):
i am almost positive the bonsai URL is being set right.
any idea how to fix? been trying to dive into this but I'm stuck.
user.rb
require 'elasticsearch/model'
class User < ActiveRecord::Base
Elasticsearch::Model.client = Elasticsearch::Client.new url: ENV['BONSAI_URL'], log: true
include Elasticsearch::Model
include Elasticsearch::Model::Callbacks
search kick autocomplete: ['name']
gem file
gem 'elasticsearch-model'
gem 'elasticsearch-rails'
gem 'searchkick'
group :production do
gem 'pg', '0.17.1'
gem 'rails_12factor', '0.0.2'
gem 'puma', '2.11.1'
gem 'bonsai-elasticsearch-rails', '~> 0.0.4'
end
Full logs
2016-03-12T04:24:03.741737+00:00 heroku[run.2718]: State changed from starting to up
2016-03-12T04:23:16.495563+00:00 app[web.1]: Starting up a new ElasticSearch client with https://xxxxxxx.us-east-1.bonsai.io
2016-03-12T04:23:17.157002+00:00 app[web.1]: [1m[36mUser Load (1.8ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1000[0m
2016-03-12T04:23:17.246641+00:00 app[web.1]: [3] Use Ctrl-C to stop
2016-03-12T04:23:17.250874+00:00 app[web.1]: [3] - Worker 0 (pid: 6) booted, phase: 0
2016-03-12T04:23:17.252056+00:00 app[web.1]: [3] - Worker 1 (pid: 10) booted, phase: 0
2016-03-12T04:23:17.600616+00:00 heroku[web.1]: State changed from starting to up
2016-03-12T04:23:56.953781+00:00 heroku[api]: Starting process with command `bash` by testtest#me.com
2016-03-12T04:24:03.284922+00:00 heroku[run.2718]: Starting process with command `bash`
2016-03-12T04:24:03.741737+00:00 heroku[run.2718]: State changed from starting to up
2016-03-12T04:27:46.959226+00:00 heroku[slug-compiler]: Slug compilation started
2016-03-12T04:23:17.246505+00:00 app[web.1]: [3] * Listening on tcp://0.0.0.0:3243
2016-03-12T04:23:17.246641+00:00 app[web.1]: [3] Use Ctrl-C to stop
2016-03-12T04:23:17.250874+00:00 app[web.1]: [3] - Worker 0 (pid: 6) booted, phase: 0
2016-03-12T04:23:17.600616+00:00 heroku[web.1]: State changed from starting to up
2016-03-12T04:24:03.264844+00:00 heroku[run.2718]: Awaiting client
2016-03-12T04:24:03.284922+00:00 heroku[run.2718]: Starting process with command `bash`
2016-03-12T04:24:03.741737+00:00 heroku[run.2718]: State changed from starting to up
2016-03-12T04:27:46.959233+00:00 heroku[slug-compiler]: Slug compilation failed: unrecognized error 3e521316-8b6b-44bd-b313-e8b62d9f15b1
2016-03-12T04:29:39.843924+00:00 heroku[api]: Deploy 5c0b4bd by testtest#me.com
2016-03-12T04:29:39.843924+00:00 heroku[api]: Release v35 created by testtest#me.com
2016-03-12T04:29:39.972973+00:00 heroku[slug-compiler]: Slug compilation started
2016-03-12T04:29:40.048027+00:00 heroku[web.1]: Restarting
2016-03-12T04:29:40.049299+00:00 heroku[web.1]: State changed from up to starting
2016-03-12T04:29:42.417672+00:00 heroku[web.1]: Stopping all processes with SIGTERM
2016-03-12T04:29:43.086852+00:00 app[web.1]: [3] - Gracefully shutting down workers...
2016-03-12T04:29:43.176481+00:00 app[web.1]: [3] === puma shutdown: 2016-03-12 04:29:43 +0000 ===
2016-03-12T04:29:43.176488+00:00 app[web.1]: [3] - Goodbye!
2016-03-12T04:29:43.816757+00:00 heroku[web.1]: Process exited with status 0
2016-03-12T04:29:46.716295+00:00 heroku[web.1]: Starting process with command `bundle exec puma -C config/puma.rb`
2016-03-12T04:29:49.157324+00:00 app[web.1]: [3] Puma starting in cluster mode...
2016-03-12T04:29:49.157437+00:00 app[web.1]: [3] * Version 2.11.1 (ruby 2.0.0-p648), codename: Intrepid Squirrel
2016-03-12T04:29:49.157472+00:00 app[web.1]: [3] * Environment: production
2016-03-12T04:29:49.157473+00:00 app[web.1]: [3] * Process workers: 2
2016-03-12T04:29:49.157474+00:00 app[web.1]: [3] * Preloading application
2016-03-12T04:29:50.759011+00:00 app[web.1]: Starting up a new ElasticSearch client with https://xxxxxx.us-east-1.bonsai.io
2016-03-12T04:29:51.430834+00:00 app[web.1]: 2016-03-12 04:29:51 +0000: HEAD https://xxxxxx.bonsai.io:443/users [status:200, request:0.017s, query:n/a]
2016-03-12T04:29:51.516765+00:00 app[web.1]: 2016-03-12 04:29:51 +0000: POST https://xxxxxxx.bonsai.io:443/users/user/_bulk [status:200, request:0.016s, query:0.005s]
2016-03-12T04:29:51.516810+00:00 app[web.1]: 2016-03-12 04:29:51 +0000: > {"index":{"_id":1}}
2016-03-12T04:29:51.516811+00:00 app[web.1]: {"id":1,"name":"Example User","email":"example#railstutorial.org","created_at":"2016-03-10T03:09:45.898Z","updated_at":"2016-03-10T03:09:45.898Z","password_digest":"$2a$10$/VQEZljtG.nQRuB20.UG1uSIQjtgk9KfzoXdUL4kGETwbZm/XPOma","remember_digest":null,"admin":true,"activation_digest":"$2a$10$jZpCLV4k2H5nuMCPVuZt7OzlUQjykQ0e7uwADb9AJ0vbrzHDw55La","activated":true,"activated_at":"2016-03-10T03:09:45.691Z","reset_digest":null,"reset_sent_at":null,"location":"New York","discipline":"Actor","slack":null,"experiences":null,"portfolio":null,"card_token":null}
2016-03-12T04:29:51.516812+00:00 app[web.1]: {"index":{"_id":2}}
2016-03-12T04:29:51.516813+00:00 app[web.1]: {"id":2,"name":"test","email":"testtest#me.com","created_at":"2016-03-10T03:13:19.990Z","updated_at":"2016-03-10T03:13:19.990Z","password_digest":"$2a$10$LWDYy6Ek1zR925kLvHHP.uRSnL7hAFOiYcdPkHCdBdiHGjuC8fDTC","remember_digest":null,"admin":false,"activation_digest":"$2a$10$k1jFVFe4lZlI5ktt7RcJx.hxdjwGEQIEnsMnwCnxLS1lpBaXbsFUu","activated":false,"activated_at":null,"reset_digest":null,"reset_sent_at":null,"location":null,"discipline":null,"slack":null,"experiences":null,"portfolio":null,"card_token":null}
2016-03-12T04:29:51.516813+00:00 app[web.1]: {"index":{"_id":3}}
2016-03-12T04:29:51.516814+00:00 app[web.1]: {"id":3,"name":"test","email":"testtest#icloud.com","created_at":"2016-03-10T22:55:37.757Z","updated_at":"2016-03-10T22:55:37.757Z","password_digest":"$2a$10$06QP.eB.Srx2TvejUscyyOIuOnzGmEPewAvfxwE4pS9mm/jtpeyZ.","remember_digest":null,"admin":false,"activation_digest":"$2a$10$JdaYMdl8VQlFg7bkN2nClec/ZN49w5cno78LTj.vupqKN9.JOoSaa","activated":false,"activated_at":null,"reset_digest":null,"reset_sent_at":null,"location":null,"discipline":null,"slack":null,"experiences":null,"portfolio":null,"card_token":null}
2016-03-12T04:29:51.516814+00:00 app[web.1]: {"index":{"_id":4}}
2016-03-12T04:29:51.516815+00:00 app[web.1]: {"id":4,"name":"test","email":"test.test#gmail.com","created_at":"2016-03-11T17:38:17.019Z","updated_at":"2016-03-11T17:38:17.019Z","password_digest":"$2a$10$3EGEVSC1PmX03YMH7bBt7erWXu7ssVT0KdcVfD99.mwJ7oAdax7MS","remember_digest":null,"admin":false,"activation_digest":"$2a$10$MtJkJQMQ25tH6PIuZEjka.mtPitSbODwjJ8qkorAwrWhfdbGl5ZQ.","activated":false,"activated_at":null,"reset_digest":null,"reset_sent_at":null,"location":null,"discipline":null,"slack":null,"experiences":null,"portfolio":null,"card_token":null}
2016-03-12T04:29:51.516815+00:00 app[web.1]: {"index":{"_id":5}}
2016-03-12T04:29:51.516816+00:00 app[web.1]: {"id":5,"name":"test","email":"test#gioventunyc.com","created_at":"2016-03-11T17:41:22.759Z","updated_at":"2016-03-11T17:41:22.759Z","password_digest":"$2a$10$pj2f6Sw7Lk5Q/J6alKT.4.0XPIgqEV8BMAgars6WQbfXNqBPRBEZ2","remember_digest":null,"admin":false,"activation_digest":"$2a$10$dxECrTuI0/R7cZe69TVWSuvjrz7phhLQh22ZBfg7l9OG9yUm4QJGy","activated":false,"activated_at":null,"reset_digest":null,"reset_sent_at":null,"location":null,"discipline":null,"slack":null,"experiences":null,"portfolio":null,"card_token":null}
2016-03-12T04:29:51.516816+00:00 app[web.1]: {"index":{"_id":6}}
2016-03-12T04:29:51.516817+00:00 app[web.1]: {"id":6,"name":"test","email":"test#gioventu.nyc","created_at":"2016-03-11T17:45:29.749Z","updated_at":"2016-03-11T17:45:29.749Z","password_digest":"$2a$10$gZM6tMEnO1K2JU.J7Nlm9.Vl5JH4RE6px1F5N5KcbGB7GsoRXhSXG","remember_digest":null,"admin":false,"activation_digest":"$2a$10$Erg4aoSYbKaC9HB78O1yXO1Dw0K11sQ4IHYIp595etw2eMBIsiliq","activated":false,"activated_at":null,"reset_digest":null,"reset_sent_at":null,"location":null,"discipline":null,"slack":null,"experiences":null,"portfolio":null,"card_token":null}
2016-03-12T04:29:51.516817+00:00 app[web.1]: {"index":{"_id":7}}
2016-03-12T04:29:51.516818+00:00 app[web.1]: {"id":7,"name":"test","email":"rs#rrrr.nyc","created_at":"2016-03-12T04:06:14.603Z","updated_at":"2016-03-12T04:06:14.603Z","password_digest":"$2a$10$lKwxQS5Ff9eOti.YauPn8.y2JjHocgwWpJk8sWjtwJFtRxnjhEr1C","remember_digest":null,"admin":false,"activation_digest":"$2a$10$Z78l8dtLU5tJgbv70cdgU.dWvfR7zd1riskj59anTePdnBv7H/4IW","activated":false,"activated_at":null,"reset_digest":null,"reset_sent_at":null,"location":null,"discipline":null,"slack":null,"experiences":null,"portfolio":null,"card_token":null}
2016-03-12T04:29:51.516819+00:00 app[web.1]: {"index":{"_id":8}}
2016-03-12T04:29:51.516821+00:00 app[web.1]: {"id":8,"name":"test","email":"rrrr#nyu.edu","created_at":"2016-03-12T04:19:22.961Z","updated_at":"2016-03-12T04:19:22.961Z","password_digest":"$2a$10$eXku5S8nLGXkxYnfeMARgesXNG76qMnIsrmLrTdIngT4t8L.uqQy.","remember_digest":null,"admin":false,"activation_digest":"$2a$10$7m4IKtrQ4WDfXmElvI9./OfeqpJS1guGK.X31mM0DPoRCcfscbrwK","activated":false,"activated_at":null,"reset_digest":null,"reset_sent_at":null,"location":null,"discipline":null,"slack":null,"experiences":null,"portfolio":null,"card_token":null}
2016-03-12T04:29:51.516903+00:00 app[web.1]: 2016-03-12 04:29:51 +0000: < {"took":5,"errors":false,"items":[{"index":{"_index":"users","_type":"user","_id":"1","_version":4,"status":200}},{"index":{"_index":"users","_type":"user","_id":"2","_version":4,"status":200}},{"index":{"_index":"users","_type":"user","_id":"3","_version":4,"status":200}},{"index":{"_index":"users","_type":"user","_id":"4","_version":4,"status":200}},{"index":{"_index":"users","_type":"user","_id":"5","_version":4,"status":200}},{"index":{"_index":"users","_type":"user","_id":"6","_version":4,"status":200}},{"index":{"_index":"users","_type":"user","_id":"7","_version":4,"status":200}},{"index":{"_index":"users","_type":"user","_id":"8","_version":3,"status":200}}]}
2016-03-12T04:29:51.554058+00:00 app[web.1]: [3] * Listening on tcp://0.0.0.0:56115
2016-03-12T04:29:51.815153+00:00 heroku[web.1]: State changed from starting to up
2016-03-12T04:30:09.854889+00:00 app[web.1]: Started POST "/users" for 71.125.40.81 at 2016-03-12 04:30:09 +0000
2016-03-12T04:30:09.891335+00:00 app[web.1]: Processing by UsersController#create as HTML
2016-03-12T04:30:09.981602+00:00 app[web.1]: [1m[36mUser Exists (1.6ms)[0m [1mSELECT 1 AS one FROM "users" WHERE LOWER("users"."email") = LOWER('testtest#me.com') LIMIT 1[0m
2016-03-12T04:30:10.384702+00:00 heroku[router]: at=info method=POST path="/users" host=xxxx.herokuapp.com request_id=c95e17ca-3eb3-4dfb-9337-b393ad6826b4 fwd="71.125.40.81" dyno=web.1 connect=0ms service=526ms status=200 bytes=5915
2016-03-12T04:30:10.354983+00:00 app[web.1]: [1m[35m (0.9ms)[0m ROLLBACK
2016-03-12T04:30:10.360982+00:00 app[web.1]: Rendered shared/_error_messages.html.erb (1.1ms)
2016-03-12T04:30:10.363072+00:00 app[web.1]: Rendered users/new.html.erb within layouts/application (5.1ms)
2016-03-12T04:30:10.365694+00:00 app[web.1]: Rendered layouts/_shim.html.erb (0.3ms)
2016-03-12T04:30:10.369943+00:00 app[web.1]: Rendered layouts/_header.html.erb (3.7ms)
2016-03-12T04:30:10.370911+00:00 app[web.1]: Rendered layouts/_footer.html.erb (0.3ms)
2016-03-12T04:30:10.371340+00:00 app[web.1]: Completed 200 OK in 480ms (Views: 15.5ms | ActiveRecord: 3.3ms)
2016-03-12T04:30:14.904181+00:00 app[web.1]: Started GET "/login" for 71.125.40.81 at 2016-03-12 04:30:14 +0000
2016-03-12T04:30:14.958240+00:00 app[web.1]: Processing by SessionsController#new as HTML
2016-03-12T04:30:15.544900+00:00 heroku[router]: at=info method=GET path="/login" host=xxxx.herokuapp.com request_id=71f94b8f-7543-439e-833f-bf1161c1d37a fwd="71.125.40.81" dyno=web.1 connect=1ms service=633ms status=200 bytes=5561
2016-03-12T04:30:15.608618+00:00 heroku[router]: at=info method=GET path="/assets/application-6f5ae546d40366770d3a61453503cef12cb1811b5cf39fb0a67a1322f96873d9.css" host=xxxxx.herokuapp.com request_id=a2c69f95-d377-47a9-b1c7-5c4fb8594766 fwd="71.125.40.81" dyno=web.1 connect=0ms service=2ms status=200 bytes=29104
2016-03-12T04:30:15.518580+00:00 app[web.1]: Rendered sessions/new.html.erb within layouts/application (544.6ms)
2016-03-12T04:30:15.522546+00:00 app[web.1]: Rendered layouts/_shim.html.erb (0.3ms)
2016-03-12T04:30:15.529268+00:00 app[web.1]: Rendered layouts/_header.html.erb (6.1ms)
2016-03-12T04:30:15.530501+00:00 app[web.1]: Rendered layouts/_footer.html.erb (0.4ms)
2016-03-12T04:30:15.531077+00:00 app[web.1]: Completed 200 OK in 573ms (Views: 559.4ms | ActiveRecord: 0.0ms)
2016-03-12T04:30:15.645644+00:00 heroku[router]: at=info method=GET path="/assets/application-44f9363a0510d929eca5abc71e6baff54884aadab1c158713bd34869de9bf38c.js" host=xxxx.herokuapp.com request_id=3535b08a-2406-4d83-9e4e-22046b0e0db7 fwd="71.125.40.81" dyno=web.1 connect=0ms service=6ms status=200 bytes=123671
2016-03-12T04:30:17.308712+00:00 heroku[router]: at=info method=GET path="/password_resets/new" host=ancient-tor-3622.herokuapp.com request_id=9e49778c-5546-43d7-8990-fd543ad298b9 fwd="71.125.40.81" dyno=web.1 connect=0ms service=29ms status=200 bytes=5044
2016-03-12T04:30:17.269613+00:00 app[web.1]: Started GET "/password_resets/new" for 71.125.40.81 at 2016-03-12 04:30:17 +0000
2016-03-12T04:30:17.277696+00:00 app[web.1]: Processing by PasswordResetsController#new as HTML
2016-03-12T04:30:17.284988+00:00 app[web.1]: Rendered password_resets/new.html.erb within layouts/application (2.1ms)
2016-03-12T04:30:17.289052+00:00 app[web.1]: Rendered layouts/_shim.html.erb (0.4ms)
2016-03-12T04:30:17.292766+00:00 app[web.1]: Rendered layouts/_header.html.erb (1.5ms)
2016-03-12T04:30:17.294115+00:00 app[web.1]: Rendered layouts/_footer.html.erb (0.4ms)
2016-03-12T04:30:21.643797+00:00 app[web.1]: Started POST "/password_resets" for 71.125.40.81 at 2016-03-12 04:30:21 +0000
2016-03-12T04:30:21.745309+00:00 app[web.1]: [1m[33mUser Store (7.7ms)[0m {"id":2,"exception":["Faraday::ConnectionFailed","Connection refused - connect(2)"]}
2016-03-12T04:30:21.746719+00:00 app[web.1]: Completed 500 Internal Server Error in 100ms (Searchkick: 7.7ms | ActiveRecord: 9.8ms)
2016-03-12T04:30:21.751092+00:00 app[web.1]: Faraday::ConnectionFailed (Connection refused - connect(2)):
2016-03-12T04:30:21.751092+00:00 app[web.1]: app/models/user.rb:83:in `create_reset_digest'
2016-03-12T04:30:21.751093+00:00 app[web.1]: app/controllers/password_resets_controller.rb:13:in `create'
2016-03-12T04:30:21.836029+00:00 heroku[router]: at=info method=POST path="/password_resets" host=xxxxx.herokuapp.com request_id=69de3b2a-9f18-4a28-be0a-706a5dc9a341 fwd="71.125.40.81" dyno=web.1 connect=0ms service=181ms status=500 bytes=1714
I had to run heroku run rake search kick:reindex CLASS=User and it fixed it.
I remake my index and it works;
bundle exec rake searchkick:reindex:all
or if you want you could reindex item by item
Products.reindex
User.reindex

Rails application heroku Error

Rails 4.1.5
ruby 2.1.2p95
MongoDB - 2.4.13
it works file in local system but when on deplying heroku it gives went wrong
mongodb.yml
production:
sessions:
default:
uri: <%= ENV['MONGOHQ_URL'] %>
options:
consistency: :strong
max_retries_on_connection_failure: 20
persist_in_safe_mode: true
skip_version_check: true
here is heroku log
> 2015-12-27T11:48:46.350015+00:00 app[web.1]: Processing by UsersController#index as HTML
2015-12-27T11:48:48.870124+00:00 heroku[router]: at=info method=GET path="/users" host=lit-fjord-5279.herokuapp.com request_id=02419aa9-43c9-4446-b8e9-8a9f7a441b40 fwd="122.172.61.174" dyno=web.1 connect=13ms service=9ms status=500 bytes=1754
2015-12-27T11:48:48.870017+00:00 app[web.1]: Started GET "/users" for 122.172.61.174 at 2015-12-27 11:48:48 +0000
2015-12-27T11:48:48.873238+00:00 app[web.1]: Rendered users/index.html.erb within layouts/application (0.9ms)
2015-12-27T11:48:48.873359+00:00 app[web.1]: Completed 500 Internal Server Error in 2ms
2015-12-27T11:48:48.874438+00:00 app[web.1]:
2015-12-27T11:48:48.874441+00:00 app[web.1]: ActionView::Template::Error (
2015-12-27T11:48:48.874442+00:00 app[web.1]: message:
2015-12-27T11:48:48.874443+00:00 app[web.1]: No configuration could be found for a client named 'default'.
2015-12-27T11:48:48.874444+00:00 app[web.1]: summary:
2015-12-27T11:48:48.874445+00:00 app[web.1]: When attempting to create the new client, Mongoid could not find a client configuration for the name: 'default'. This is necessary in order to know the host, port, and options needed to connect.
2015-12-27T11:48:48.874446+00:00 app[web.1]: resolution:
2015-12-27T11:48:48.874446+00:00 app[web.1]: Double check your mongoid.yml to make sure under the clients key that a configuration exists for 'default'. If you have set the configuration programatically, ensure that 'default' exists in the configuration hash.):
2015-12-27T11:48:48.874447+00:00 app[web.1]: 10: </thead>
2015-12-27T11:48:48.874450+00:00 app[web.1]: 14: <tr>
2015-12-27T11:48:48.874450+00:00 app[web.1]: 15: <td><%= user.name %></td>
2015-12-27T11:48:48.874451+00:00 app[web.1]: 16: <td><%= user.email %></td>
2015-12-27T11:48:48.874448+00:00 app[web.1]: 11:
2015-12-27T11:48:48.874448+00:00 app[web.1]: 12: <tbody>
2015-12-27T11:48:48.874449+00:00 app[web.1]: 13: <% #users.each do |user| %>
2015-12-27T11:48:48.874452+00:00 app[web.1]: app/views/users/index.html.erb:13:in `_app_views_users_index_html_erb__1900358265610175239_69916668256060'
2015-12-27T11:48:48.874453+00:00 app[web.1]:
2015-12-27T11:48:48.874453+00:00 app[web.1]:
Error:
Double check your mongoid.yml to make sure under the clients key that a configuration exists for 'default'
File name:
mongodb.yml
One of these things is not like the other. Try to rename the file to mongoid.yml
Mongoid Tutorial, configuration

we're sorry, but something went wrong on heroku when a user tries signing up [closed]

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.
Closed 9 years ago.
I can't correctly pinpoint what exactly is causing the issue
This is a new website I just pushed to heroku, ran heroku rake db:migrate, and heroku restart
It works just fine locally but this happens in production
Here's the relevant portion of heroku logs
2013-05-03T23:16:27.189569+00:00 app[web.1]:
2013-05-03T23:16:27.189569+00:00 app[web.1]: Started GET "/signup" for xx.xx.xx.
xxx at 2013-05-03 23:16:27 +0000
2013-05-03T23:16:27.253381+00:00 app[web.1]: Rendered shared/_error_messages.h
tml.erb (0.4ms)
2013-05-03T23:16:27.253381+00:00 app[web.1]: Rendered layouts/_shim.html.erb (
0.0ms)
2013-05-03T23:16:27.253381+00:00 app[web.1]: Rendered layouts/_header.html.erb
(2.9ms)
2013-05-03T23:16:27.253381+00:00 app[web.1]: Processing by UsersController#new a
s HTML
2013-05-03T23:16:27.253381+00:00 app[web.1]: Rendered users/new.html.erb withi
n layouts/application (43.8ms)
2013-05-03T23:16:27.253381+00:00 app[web.1]: Completed 200 OK in 60ms (Views: 48
.4ms | ActiveRecord: 1.6ms | Solr: 0.0ms)
2013-05-03T23:16:27.922135+00:00 heroku[router]: at=info method=GET path=/favico
n.ico host= sleepy-river-xxxx.herokuapp.com fwd="xx.xx.xx.xxx" dyno=web.1 connect
=1ms service=4ms status=304 bytes=0
2013-05-03T23:16:27.268937+00:00 heroku[router]: at=info method=GET path=/signup
host= sleepy-river-xxxx.herokuapp.com fwd="xx.xx.xx.xxx" dyno=web.1 connect=6ms
service=81ms status=304 bytes=0
2013-05-03T23:16:47.934099+00:00 app[web.1]:
2013-05-03T23:16:47.934099+00:00 app[web.1]:
2013-05-03T23:16:47.934099+00:00 app[web.1]: Started POST "/users" for xx.xx.xx.
xxx at 2013-05-03 23:16:47 +0000
2013-05-03T23:16:48.248989+00:00 app[web.1]: Redirected to http://sleepy-river-xxxx.herokuapp.com/home
2013-05-03T23:16:48.248989+00:00 app[web.1]: Parameters: {"utf8"=>"???", "auth
enticity_token"=>"m+NCbnqHJk81yWgyY+Y709mQZ0N04MpW8MLGLXjbleA=", "user"=>{"name"
=>"testuser", "email"=>"testuser#email.com", "password"=>"[FILTERED]", "passwo
rd_confirmation"=>"[FILTERED]"}, "commit"=>"Create my account"}
2013-05-03T23:16:48.248989+00:00 app[web.1]: Completed 302 Found in 311ms (Activ
eRecord: 70.6ms)
2013-05-03T23:16:48.248989+00:00 app[web.1]: Processing by UsersController#creat
e as HTML
2013-05-03T23:16:48.435265+00:00 app[web.1]:
2013-05-03T23:16:48.435265+00:00 app[web.1]:
2013-05-03T23:16:48.435265+00:00 app[web.1]: Started GET "/home" for 75.82.32.16
4 at 2013-05-03 23:16:48 +0000
2013-05-03T23:16:48.649331+00:00 app[web.1]: FROM pg_attribute a L
EFT JOIN pg_attrdef d
2013-05-03T23:16:48.649331+00:00 app[web.1]: WHERE a.attrelid = '"h
ashtags"'::regclass
2013-05-03T23:16:48.649331+00:00 app[web.1]: LINE 4: WHERE a.attrel
id = '"hashtags"'::regclass
2013-05-03T23:16:48.649331+00:00 app[web.1]: ON a.attrelid = d.a
drelid AND a.attnum = d.adnum
2013-05-03T23:16:48.649617+00:00 app[web.1]: 23: <%= link_to "#"+h.hashtag
s, "#" %><br>
2013-05-03T23:16:48.649617+00:00 app[web.1]: 25:
2013-05-03T23:16:48.649845+00:00 app[web.1]: Rendered shared/_user_info.html.e
rb (4.4ms)
2013-05-03T23:16:48.649331+00:00 app[web.1]: ActionView::Template::Error (PGErro
r: ERROR: relation "hashtags" does not exist
2013-05-03T23:16:48.649617+00:00 app[web.1]: 22: <% #htags.each do |h| %>
2013-05-03T23:16:48.649617+00:00 app[web.1]:
2013-05-03T23:16:48.649845+00:00 app[web.1]: Processing by StaticPagesController
#home as HTML
2013-05-03T23:16:48.649331+00:00 app[web.1]:
2013-05-03T23:16:48.649331+00:00 app[web.1]:
^
2013-05-03T23:16:48.649331+00:00 app[web.1]: : SELECT a.attname, for
mat_type(a.atttypid, a.atttypmod), d.adsrc, a.attnotnull
2013-05-03T23:16:48.649617+00:00 app[web.1]: app/views/static_pages/home.html.
erb:22:in `_app_views_static_pages_home_html_erb___3097102804728997358_70437520'
2013-05-03T23:16:48.649845+00:00 app[web.1]:
2013-05-03T23:16:48.649331+00:00 app[web.1]: AND a.attnum > 0 AND
NOT a.attisdropped
2013-05-03T23:16:48.649331+00:00 app[web.1]: ORDER BY a.attnum
2013-05-03T23:16:48.649617+00:00 app[web.1]: 19: <div class="box">
2013-05-03T23:16:48.649617+00:00 app[web.1]: 24: <% end %>
2013-05-03T23:16:48.649617+00:00 app[web.1]: ):
2013-05-03T23:16:48.649617+00:00 app[web.1]: 20: Tagged Posts
2013-05-03T23:16:48.649617+00:00 app[web.1]: 21: <br>
2013-05-03T23:16:48.649845+00:00 app[web.1]: Rendered shared/_stats.html.erb (
38.9ms)
2013-05-03T23:16:48.649845+00:00 app[web.1]: Completed 500 Internal Server Error
in 209ms
2013-05-03T23:16:48.649845+00:00 app[web.1]: Rendered static_pages/home.html.e
rb within layouts/application (156.1ms)
2013-05-03T23:16:48.654562+00:00 heroku[router]: at=info method=GET path=/home h
ost=sleepy-river-xxxx.herokuapp.com fwd="xx.xx.xx.xxx" dyno=web.1 connect=1ms se
rvice=219ms status=500 bytes=643
2013-05-03T23:16:48.253053+00:00 heroku[router]: at=info method=POST path=/users
host= sleepy-river-xxxx.herokuapp.com fwd="xx.xx.xx.xxx" dyno=web.1 connect=3ms
service=395ms status=302 bytes=109
Something is wrong with the template that is loaded after a user signs up. Try it locally, I bet you'll find the answer you need.
Added hint:
Look at the line Relation HashTags does not exist. That holds the key to your problem.
I bet if you run
heroku run rake db:setup
and
heroku run rake db:migrate
Your problem will be solved

Resources