I have a rails 4 app deployed on heroku which displays the following error:
2014-06-30T21:41:49.904494+00:00 app[web.1]: CACHE (0.0ms) SELECT COUNT(*) FROM "profiles"
2014-06-30T21:41:49.909372+00:00 app[web.1]: CACHE (0.0ms) SELECT COUNT(*) FROM "profiles"
2014-06-30T21:41:49.909380+00:00 app[web.1]: CACHE (0.0ms) SELECT COUNT(*) FROM "profiles"
2014-06-30T21:41:49.914865+00:00 app[web.1]: Rendered vendor/bundle/ruby/2.0.0/gems/rails_admin-0.6.2/app/views/rails_admin/main/_form_filtering_multiselect.html.haml (11.8ms)
2014-06-30T21:41:49.914875+00:00 app[web.1]: Rendered vendor/bundle/ruby/2.0.0/gems/rails_admin-0.6.2/app/views/rails_admin/main/_form_filtering_multiselect.html.haml (11.8ms)
2014-06-30T21:41:49.677490+00:00 app[web.1]: Rendered vendor/bundle/ruby/2.0.0/gems/rails_admin-0.6.2/app/views/rails_admin/main/_form_field.html.haml (4.4ms)
2014-06-30T21:41:49.888037+00:00 app[web.1]: Rendered vendor/bundle/ruby/2.0.0/gems/rails_admin-0.6.2/app/views/rails_admin/main/_form_field.html.haml (2.7ms)
2014-06-30T21:41:50.330339+00:00 app[web.1]: Rendered vendor/bundle/ruby/2.0.0/gems/rails_admin-0.6.2/app/views/rails_admin/main/_form_field.html.haml (6.1ms)
2014-06-30T21:41:50.330358+00:00 app[web.1]: Rendered vendor/bundle/ruby/2.0.0/gems/rails_admin-0.6.2/app/views/rails_admin/main/_form_field.html.haml (6.1ms)
This happens with every asset file rails_admin needs leading to an infinite loop and:
2014-06-30T21:41:38.404015+00:00 heroku[web.1]: Process running mem=2540M(496.1%)
2014-06-30T21:41:38.404374+00:00 heroku[web.1]: Error R14 (Memory quota exceeded)
I've tried using multiple dynos and applying somo configurations in application.rb
# config/application.rb
config.assets.precompile += ['rails_admin/rails_admin.css', 'rails_admin/rails_admin.js']
config.assets.initialize_on_precompile = false
Related
I deployed a Rails App to Heroku and the database migrated fine, except the db/seeds.rb file won't push to Heroku. I've tried running heroku run rake db:seed, as well as all the other solutions suggested online, but nothing is working. Heroku doesn't seem to have access to the seeds.rb file at all.
After running heroku run db:seed, nothing seems to happen of worth:
Running rake db:seed on ⬢ top5application... up, run.1885 (Free)
D, [2017-11-02T05:42:19.665233 #4] DEBUG -- :
ActiveRecord::SchemaMigration Load (1.3ms) SELECT
"schema_migrations".* FROM "schema_migrations"
The Heroku logs also don't seem to contain any useful information:
1d22032e7d7e fwd="69.201.160.131" dyno=web.1 connect=0ms service=17ms status=200 bytes=4542 protocol=https
2017-11-02T05:13:34.409329+00:00 app[web.1]: I, [2017-11-02T05:13:34.409232 #4] INFO -- : [44ea0b33-64d7-4516-90d1-1d22032e7d7e] Started GET "/lists" for 69.201.160.131 at 2017-11-02 05:13:34 +0000
2017-11-02T05:13:34.410736+00:00 app[web.1]: I, [2017-11-02T05:13:34.410667 #4] INFO -- : [44ea0b33-64d7-4516-90d1-1d22032e7d7e] Processing by ListsController#index as HTML
2017-11-02T05:13:34.413696+00:00 app[web.1]: D, [2017-11-02T05:13:34.413601 #4] DEBUG -- : [44ea0b33-64d7-4516-90d1-1d22032e7d7e] [1m[36mList Load (0.9ms)[0m [1m[34mSELECT "lists".* FROM "lists" ORDER BY average_rating DESC[0m
2017-11-02T05:13:34.415282+00:00 app[web.1]: I, [2017-11-02T05:13:34.415205 #4] INFO -- : [44ea0b33-64d7-4516-90d1-1d22032e7d7e] Rendering lists/index.html.erb within layouts/application
2017-11-02T05:13:34.417088+00:00 app[web.1]: D, [2017-11-02T05:13:34.416900 #4] DEBUG -- : [44ea0b33-64d7-4516-90d1-1d22032e7d7e] [1m[36mList Load (0.8ms)[0m [1m[34mSELECT "lists".* FROM "lists" ORDER BY "lists"."created_at" DESC[0m
2017-11-02T05:13:34.418866+00:00 app[web.1]: D, [2017-11-02T05:13:34.418785 #4] DEBUG -- : [44ea0b33-64d7-4516-90d1-1d22032e7d7e] [1m[36mTopic Load (0.7ms)[0m [1m[34mSELECT "topics".* FROM "topics"[0m
2017-11-02T05:13:34.419839+00:00 app[web.1]: I, [2017-11-02T05:13:34.419757 #4] INFO -- : [44ea0b33-64d7-4516-90d1-1d22032e7d7e] Rendered lists/index.html.erb within layouts/application (4.3ms)
2017-11-02T05:13:34.422316+00:00 app[web.1]: D, [2017-11-02T05:13:34.422246 #4] DEBUG -- : [44ea0b33-64d7-4516-90d1-1d22032e7d7e] [1m[36mUser Load (0.9ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
2017-11-02T05:13:34.423714+00:00 app[web.1]: I, [2017-11-02T05:13:34.423652 #4] INFO -- : [44ea0b33-64d7-4516-90d1-1d22032e7d7e] Rendered layouts/_logged_in.erb (0.8ms)
2017-11-02T05:13:34.423973+00:00 app[web.1]: I, [2017-11-02T05:13:34.423915 #4] INFO -- : [44ea0b33-64d7-4516-90d1-1d22032e7d7e] Completed 200 OK in 13ms (Views: 7.0ms | ActiveRecord: 3.3ms)
I'd really appreciate any insight because this is very perplexing.
My app run perfectly locally, but it encountered some trouble on Heroku.
heroku logs
2016-07-05T16:29:58.946783+00:00 app[web.1]: Started GET "/posts/new" for 110.30.34.50 at 2016-07-05 16:29:58 +0000
2016-07-05T16:29:58.955329+00:00 app[web.1]: Rendered posts/_form.html.erb (2.4ms)
2016-07-05T16:29:58.955545+00:00 app[web.1]: Rendered posts/new.html.erb within layouts/application (3.4ms)
2016-07-05T16:30:05.508001+00:00 app[web.1]: Started POST "/posts" for 110.30.34.50 at 2016-07-05 16:30:05 +0000
2016-07-05T16:30:05.510085+00:00 app[web.1]: Parameters: {"utf8"=>"✓", "authenticity_token"=>"0DzbuSXUyjZ4FRYietP3QSdmjfHymWyu7INcGpm79b2PgR+3LD99TS6gkYCF0FCLLHso9U7YqMh1tzr48ch8Jw==", "post"=>{"title"=>"123", "content"=>"123"}, "commit"=>"Create Post"}
2016-07-05T16:30:05.515017+00:00 app[web.1]: app/controllers/posts_controller.rb:32:in `create'
2016-07-05T16:30:05.512757+00:00 app[web.1]: Author Load (1.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."id" = $1 ORDER BY "authors"."id" ASC LIMIT 1 [["id", 1]]
2016-07-05T16:30:05.513954+00:00 app[web.1]: Completed 500 Internal Server Error in 4ms (ActiveRecord: 1.2ms)
2016-07-05T16:30:05.515003+00:00 app[web.1]:
2016-07-05T16:30:05.515016+00:00 app[web.1]: NoMethodError (undefined method `author_id=' for #<Post:0x007fcf1cc579f0>):
2016-07-05T16:30:05.509973+00:00 app[web.1]: Processing by PostsController#create as HTML
2016-07-05T16:30:05.515018+00:00 app[web.1]:
2016-07-05T16:30:05.515019+00:00 app[web.1]:
I want to create a post and gave the author_id = current_author.id.
#in post controller
def create
#post = Post.new(post_params)
#post.author_id = current_author.id if current_author
...
I've put this project on Github
As others pointed the possible solution. to make sure though,
run heroku run rake db:version and see if it matches your latest migration version in db/migrate/*
If it doesnt run heroku run rake db:migrate as oreoluwa and lolosco have said already.
I think you recently added the author reference to the posts table. To fix the error, I'd say you should try to do heroku run rake db:migrate. Let me know if that helps
migrate db on heroku
heroku run rake db:migrate
I followed a tutorial and added messaging functionality in my rails app.
Yesterday, I deleted certain users. Now when I go to my messages link, I get this error message "We're sorry, but something went wrong. If you are the application owner check the logs for more information." which is usually displayed in case of errors.
I saw the log and found out that I must have deleted someone who has sent a message.
I think it's trying to retrieve message of a user that doesn't exist.
ActionView::Template::Error (undefined method `avatar' for nil:NilClass):
How can I solve this issue?
Could anyone please share how to delete all the messages and start fresh? Because the messages are not important.
How do I clear all the mailboxer tables and start fresh? Kindly help.
Here is the log.
2015-05-16T12:17:13.398640+00:00 app[web.1]: Rendered conversations/_participants.html.erb (17.3ms)
2015-05-16T12:17:13.407905+00:00 app[web.1]: CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2225]]
2015-05-16T12:17:13.434486+00:00 app[web.1]: (16.2ms) SELECT COUNT(*) FROM "mailboxer_receipts" INNER JOIN "mailboxer_notifications" ON "mailboxer_notifications"."id" = "mailboxer_receipts"."notification_id" AND "mailboxer_notifications"."type" IN ('Mailboxer::Message') WHERE "mailboxer_notifications"."conversation_id" = 973 AND "mailboxer_receipts"."receiver_id" = $1 AND "mailboxer_receipts"."receiver_type" = $2 AND "mailboxer_receipts"."trashed" = 'f' AND "mailboxer_receipts"."is_read" = 'f' [["receiver_id", 1464], ["receiver_type", "User"]]
2015-05-16T12:17:13.453617+00:00 app[web.1]: Mailboxer::Receipt Load (1.1ms) SELECT "mailboxer_receipts".* FROM "mailboxer_receipts" WHERE "mailboxer_receipts"."notification_id" = $1 [["notification_id", 1209]]
2015-05-16T12:17:13.456255+00:00 app[web.1]: Rendered conversations/_participants.html.erb (20.5ms)
2015-05-16T12:17:13.474657+00:00 heroku[router]: at=info method=GET path="/conversations" host=www.abc.com request_id=991e2d24-c507-4e5f-9b50-5678e2e3aa2c fwd="160.3.94.130" dyno=web.1 connect=1ms service=276ms status=500 bytes=1786
2015-05-16T12:17:13.569003+00:00 heroku[router]: at=info method=GET path="/speak" host=www.abc.com request_id=c1a056f3-4431-4c90-84b8-01c285e606c1 fwd="122.174.14.148" dyno=web.2 connect=1ms service=37ms status=200 bytes=35624
2015-05-16T12:17:13.459247+00:00 app[web.1]: Mailboxer::Message Load (1.8ms) SELECT "mailboxer_notifications".* FROM "mailboxer_notifications" WHERE "mailboxer_notifications"."type" IN ('Mailboxer::Message') AND "mailboxer_notifications"."conversation_id" = $1 ORDER BY created_at DESC LIMIT 1 [["conversation_id", 782]]
2015-05-16T12:17:13.469138+00:00 app[web.1]: Rendered conversations/_conversation.html.erb (233.8ms)
2015-05-16T12:17:13.469485+00:00 app[web.1]: Rendered conversations/index.html.erb within layouts/application (249.4ms)
2015-05-16T12:17:13.469543+00:00 app[web.1]: Completed 500 Internal Server Error in 261ms
2015-05-16T12:17:13.473924+00:00 app[web.1]:
2015-05-16T12:17:13.473928+00:00 app[web.1]: ActionView::Template::Error (undefined method `avatar' for nil:NilClass):
2015-05-16T12:17:13.473930+00:00 app[web.1]: 16:
2015-05-16T12:17:13.473932+00:00 app[web.1]: 17: <span class="messageuser">
2015-05-16T12:17:13.473933+00:00 app[web.1]: 18: <%#= conversation.last_message.sender.name %>
2015-05-16T12:17:13.473936+00:00 app[web.1]: 19: <%= link_to image_tag(conversation.last_message.sender.avatar.url(:mini), class: 'img-rounded'), user_path(conversation.last_message.sender) %>
2015-05-16T12:17:13.473944+00:00 app[web.1]: 20: <%= link_to conversation.last_message.sender.name, user_path(conversation.last_message.sender) %>
2015-05-16T12:17:13.473946+00:00 app[web.1]: 21: </span>
2015-05-16T12:17:13.473948+00:00 app[web.1]: 22:
2015-05-16T12:17:13.473951+00:00 app[web.1]: app/views/conversations/_conversation.html.erb:19:in `_app_views_conversations__conversation_html_erb___2085506579815819501_69959535266760'
2015-05-16T12:17:13.473952+00:00 app[web.1]: app/views/conversations/index.html.erb:35:in `_app_views_conversations_index_html_erb___1748297580391940998_69959535151580'
2015-05-16T12:17:13.473954+00:00 app[web.1]:
2015-05-16T12:17:13.473957+00:00 app[web.1]:
2015-05-16T12:17:13.572052+00:00 app[web.1]: Started GET "/conversations" for 160.3.94.130 at 2015-05-16 12:17:13 +0000
2015-05-16T12:17:13.579974+00:00 app[web.1]: User Load (1.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1464]]
2015-05-16T12:17:13.585203+00:00 app[web.1]: (0.9ms) SELECT COUNT(*) FROM "user_learnings" WHERE "user_learnings"."user_id" = $1 [["user_id", 1464]]
2015-05-16T12:17:13.637517+00:00 app[web.1]: (3.1ms) SELECT DISTINCT COUNT(DISTINCT "mailboxer_conversations"."id") FROM "mailboxer_conversations" INNER JOIN "mailboxer_notifications" ON "mailboxer_notifications"."conversation_id" = "mailboxer_conversations"."id" AND "mailboxer_notifications"."type" IN ('Mailboxer::Message') INNER JOIN "mailboxer_receipts" ON "mailboxer_receipts"."notification_id" = "mailboxer_notifications"."id" WHERE "mailboxer_notifications"."type" = 'Mailboxer::Message' AND "mailboxer_receipts"."receiver_id" = $1 AND "mailboxer_receipts"."receiver_type" = $2 AND "mailboxer_receipts"."mailbox_type" = $3 AND "mailboxer_receipts"."trashed" = 'f' AND "mailboxer_receipts"."deleted" = 'f' [["receiver_id", 1464], ["receiver_type", "User"], ["mailbox_type", "inbox"]]
2015-05-16T12:17:13.678884+00:00 app[web.1]: Mailboxer::Receipt Load (1.2ms) SELECT "mailboxer_receipts".* FROM "mailboxer_receipts" WHERE "mailboxer_receipts"."notification_id" = $1 [["notification_id", 1443]]
2015-05-16T12:17:13.698778+00:00 app[web.1]: User Load (4.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1464]]
2015-05-16T12:17:13.464477+00:00 app[web.1]: User Load (1.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1937]]
I grew impatient and destroyed them all.
irb(main):002:0> Mailboxer::Conversation.destroy_all
Now the errors are gone and I am able to send messages.
I didn't know how to delete the conversations of 800 users I deleted recently.
You are right. The application is calling methods on users that do not exist. For example:
```
<%= link_to conversation.last_message.sender.name...
(conversation.last_message) is saved, but sender does not exist.
If you want to start the database from scratch you can run (rake db:reset), that will drop create and migrate your database.
To solve the issue create a method that runs every time a user cancels or deletes his/her account, and that it deletes that user's conversations.
Try this is your console (rails c), it will delete the first user's conversations.
```
User.first.mailbox.conversations.each do |i| i.delete end
If you still want to show the conversation to the other user who did not canceled his account. You have to save that name somewhere else or show the user that the sender deleted his account.
```
<% if conversation.sender == null %>
<%= conversation.last_message %>
<p>User of this conversation deleted his/her account</p>
<%else%>
<%= conversation.last_message %>
<%= conversation.last_message.sender.name %>
<% end %>
Sounds like one unoptimized way to do it would be loop through on the model that has messaging functionality added to it with acts_as_messageable..like MyModel.each do |mod| mod.mailbox.conversations.destroy_all end
The application runs perfectly in development(local server) but not in production.
I have the following in heroku logs(I have edited the logs to be easier to read, I just included what I think are the errors):
2015-05-15T23:58:43.894626+00:00 app[web.1]: Rendered layouts/_header.html.erb (8.5ms)
2015-05-15T23:58:43.885011+00:00 app[web.1]: Rendered movies/index.html.erb within layouts/application (17.5ms)
2015-05-15T23:58:43.896788+00:00 app[web.1]: ActionView::Template::Error (undefined method `scard' for nil:NilClass):
2015-05-15T23:58:43.896785+00:00 app[web.1]:
2015-05-15T23:58:43.896790+00:00 app[web.1]: 19: <%if signed_in?%>
2015-05-15T23:58:43.896791+00:00 app[web.1]: 20: <li>
2015-05-15T23:58:43.896794+00:00 app[web.1]: 22: <i class="fi-shopping-cart"></i> My Cart (<span class="cart-count"><%=current_user.cart_count%></span>)
2015-05-15T23:58:43.896793+00:00 app[web.1]: 21: <%= link_to cart_path do%>
2015-05-15T23:58:43.896796+00:00 app[web.1]: 23: <%end%>
2015-05-15T23:58:43.896797+00:00 app[web.1]: 24: </li>
2015-05-15T23:58:43.896799+00:00 app[web.1]: 25: <li><%=link_to current_user.email, edit_user_registration_path%></li>
2015-05-15T23:58:43.896801+00:00 app[web.1]: app/models/user.rb:36:in `cart_count'
2015-05-15T23:58:33.939033+00:00 app[web.1]: Completed 500 Internal Server Error in 3ms
2015-05-15T23:58:33.933343+00:00 app[web.1]: Started GET "/movies/2" for 160.9.1.112 at 2015-05-15 23:58:33 +0000
2015-05-15T23:58:33.935944+00:00 app[web.1]: Processing by MoviesController#show as HTML
2015-05-15T23:58:33.935966+00:00 app[web.1]: Parameters: {"id"=>"2"}
2015-05-15T23:58:33.938157+00:00 app[web.1]: Movie Load (1.3ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = $1 LIMIT 1 [["id", 2]]
2015-05-15T23:58:33.939854+00:00 app[web.1]:
2015-05-15T23:58:33.939856+00:00 app[web.1]: NoMethodError (undefined method `sismember' for nil:NilClass):
2015-05-15T23:58:33.939858+00:00 app[web.1]: app/models/movie.rb:20:in `cart_action'
2015-05-15T23:58:33.939859+00:00 app[web.1]: app/controllers/movies_controller.rb:9:in `show'
2015-05-15T23:58:28.575297+00:00 app[web.1]: Started GET "/movies/1" for 160.9.1.112 at 2015-05-15 23:58:28 +0000
2015-05-15T23:58:28.581745+00:00 app[web.1]: Parameters: {"id"=>"1"}
2015-05-15T23:58:28.635038+00:00 app[web.1]: Completed 500 Internal Server Error in 53ms
2015-05-15T23:58:28.581412+00:00 app[web.1]: Processing by MoviesController#show as HTML
2015-05-15T23:58:28.618562+00:00 app[web.1]: Movie Load (1.6ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = $1 LIMIT 1 [["id", 1]]
2015-05-15T23:58:28.636023+00:00 app[web.1]:
2015-05-15T23:58:28.636027+00:00 app[web.1]: NoMethodError (undefined method `sismember' for nil:NilClass):
2015-05-15T23:58:28.636029+00:00 app[web.1]: app/models/movie.rb:20:in `cart_action'
2015-05-15T23:58:28.636031+00:00 app[web.1]: app/controllers/movies_controller.rb:9:in `show'
movie.rb:
class Movie < ActiveRecord::Base
has_many :purchases
has_many :buyers, through: :purchases
before_save :embed_video_url
def poster
"http://ia.media-imdb.com/images/M/#{poster_url}"
end
def imdb
"http://www.imdb.com/title/#{imdb_id}/"
end
def embed_video_url
self.video_url = "//www.youtube.com/embed/#{video_url.split('v=')[1].split('&list')[0]}"
end
def cart_action(current_user_id)
if $redis.sismember "cart#{current_user_id}", id
"Remove from"
else
"Add to"
end
end
end
I followed the official guide from heroku "https://devcenter.heroku.com/articles/redistogo"
Even the test run ok but cant run in production
I know it's exhausting to check all these line so I will appreciate any help
PS: In development/local server run perfect
The error is appearing in the logs. See carefully.
NoMethod Error (undefined method sismember' for nil:NilClass): 2015-05 15T20:59:10.873219+00:00 app[web.1]: app/models/movie.rb:20:incart_action'
I have a Rails app on Heroku that I don't visit very often. When I visited it today, I got the standard Rails error message
We're sorry, but something went wrong.
I ran heroku logs to try to figure out what the problem was, but the logs don't say anything that would explain the error (to me).
What do you do in this situation?
2013-11-04T22:52:07.048102+00:00 app[web.1]: Processing by PostsController#index as HTML
2013-11-04T22:52:07.132891+00:00 app[web.1]: Rendered posts/_post.html.erb (13.2ms)
2013-11-04T22:52:07.133396+00:00 app[web.1]: Rendered posts/_post.html.erb (0.3ms)
2013-11-04T22:52:07.146333+00:00 app[web.1]: Rendered posts/_post.html.erb (0.5ms)
2013-11-04T22:52:07.147977+00:00 app[web.1]: Rendered posts/_post.html.erb (0.3ms)
2013-11-04T22:52:07.148485+00:00 app[web.1]: Rendered posts/_post.html.erb (0.4ms)
2013-11-04T22:52:07.151556+00:00 app[web.1]: Rendered posts/_post.html.erb (0.5ms)
2013-11-04T22:52:07.175334+00:00 app[web.1]: Rendered posts/_post.html.erb (12.5ms)
2013-11-04T22:52:07.183576+00:00 app[web.1]: Rendered posts/_post.html.erb (0.5ms)
2013-11-04T22:52:07.188420+00:00 app[web.1]: Rendered posts/_post.html.erb (0.5ms)
2013-11-04T22:52:07.212161+00:00 app[web.1]: Rendered posts/_post.html.erb (0.5ms)
2013-11-04T22:52:07.212742+00:00 app[web.1]: Rendered posts/_post.html.erb (0.4ms)
2013-11-04T22:52:07.226959+00:00 app[web.1]: Rendered posts/_post.html.erb (0.5ms)
2013-11-04T22:52:07.246992+00:00 app[web.1]: Rendered posts/_post.html.erb (0.5ms)
2013-11-04T22:52:07.243411+00:00 app[web.1]: Rendered posts/_post.html.erb (0.5ms)
2013-11-04T22:52:07.296351+00:00 app[web.1]: Rendered posts/_post.html.erb (0.5ms)
2013-11-04T22:52:07.297843+00:00 app[web.1]: Rendered shared/_analytics.html.erb (0.0ms)
2013-11-04T22:52:07.308385+00:00 app[web.1]: Rendered posts/_total.html.erb (0.7ms)
2013-11-04T22:52:07.399532+00:00 app[web.1]: Rendered posts/index.html.erb within layouts/application (311.6ms)
2013-11-04T22:52:07.399720+00:00 app[web.1]: Completed in 351ms
2013-11-04T22:52:07.398061+00:00 app[web.1]: Rendered shared/_stats.html.erb (44.1ms)
2013-11-04T22:52:07.429348+00:00 app[web.1]: Rendered vendor/plugins/exception_notification/lib/exception_notifier/views/exception_notifier/_title.text.erb (0.1ms)
2013-11-04T22:52:07.429836+00:00 app[web.1]: Rendered vendor/plugins/exception_notification/lib/exception_notifier/views/exception_notifier/_session.text.erb (0.3ms)
2013-11-04T22:52:07.428209+00:00 app[web.1]: Rendered vendor/plugins/exception_notification/lib/exception_notifier/views/exception_notifier/_request.text.erb (1.3ms)
2013-11-04T22:52:07.430004+00:00 app[web.1]: Rendered vendor/plugins/exception_notification/lib/exception_notifier/views/exception_notifier/_title.text.erb (0.0ms)
2013-11-04T22:52:07.737679+00:00 app[web.1]: Rendered vendor/plugins/exception_notification/lib/exception_notifier/views/exception_notifier/_backtrace.text.erb (0.2ms)
2013-11-04T22:52:07.733934+00:00 app[web.1]: Rendered vendor/plugins/exception_notification/lib/exception_notifier/views/exception_notifier/_environment.text.erb (303.5ms)
2013-11-04T22:52:07.734305+00:00 app[web.1]: Rendered vendor/plugins/exception_notification/lib/exception_notifier/views/exception_notifier/_title.text.erb (0.1ms)
2013-11-04T22:52:07.741156+00:00 app[web.1]: Rendered vendor/plugins/exception_notification/lib/exception_notifier/views/exception_notifier/exception_notification.text.erb (314.7ms)
2013-11-04T22:52:07.740339+00:00 app[web.1]: Rendered vendor/plugins/exception_notification/lib/exception_notifier/views/exception_notifier/_title.text.erb (0.1ms)
2013-11-04T22:52:07.842689+00:00 app[web.1]: Sent mail to myemail#gmail.com (67ms)
2013-11-04T22:52:07.842689+00:00 app[web.1]:
Set up a free version of one of the logging add-ons like Papertrail. Try them all out and see which you prefer.
If you want an E-mail, I don't think you can configure an error E-mail through Heroku per se, but you can use the free version of the Sendgrid add-on to send error information to yourself in a rescue block or rescue_from Exception, :with => :email_error_info in your ApplicationController.