Related
I created an application in Ruby on Rails, and everything is OK on my localhost but it doesn't work on Heroku:
We’re sorry, but something went wrong.
If you are the application owner check the logs for more information.
At the beginning, I had a problem with the database, which was not PostgreSQL, but I fixed the problem.
When I check the logs and can see the problem is:
2020-03-28T12:38:29.235789+00:00 heroku[router]: at=info method=GET path="/" host=olivier-godard.herokuapp.com request_id=840fbcb6-1f17-47f0-9d83-23318df3374d fwd="37.120.204.164" dyno=web.1 connect=1ms service=16ms status=500 bytes=1827 protocol=https
I tried db:migrate, then heroku push master again.
2020-03-28T12:34:20.000000+00:00 app[api]: Build started by user projet.site.2015#gmail.com
2020-03-28T12:35:55.952108+00:00 app[api]: Deploy 930a6879 by user projet.site.2015#gmail.com
2020-03-28T12:35:55.952108+00:00 app[api]: Release v7 created by user projet.site.2015#gmail.com
2020-03-28T12:35:57.080831+00:00 heroku[web.1]: Restarting
2020-03-28T12:35:57.375779+00:00 heroku[web.1]: State changed from up to starting
2020-03-28T12:35:58.799290+00:00 app[web.1]: - Gracefully stopping, waiting for requests to finish
2020-03-28T12:35:58.801702+00:00 app[web.1]: === puma shutdown: 2020-03-28 12:35:58 +0000 ===
2020-03-28T12:35:58.801704+00:00 app[web.1]: - Goodbye!
2020-03-28T12:35:58.801705+00:00 app[web.1]: Exiting
2020-03-28T12:36:01.000000+00:00 app[api]: Build succeeded
2020-03-28T12:36:08.781105+00:00 app[web.1]: => Booting Puma
2020-03-28T12:36:08.781123+00:00 app[web.1]: => Rails 6.0.2.1 application starting in production
2020-03-28T12:36:08.781124+00:00 app[web.1]: => Run `rails server --help` for more startup options
2020-03-28T12:36:10.110905+00:00 heroku[web.1]: State changed from starting to up
2020-03-28T12:36:09.871297+00:00 app[web.1]: Puma starting in single mode...
2020-03-28T12:36:09.871326+00:00 app[web.1]: * Version 4.3.3 (ruby 2.6.5-p114), codename: Mysterious Traveller
2020-03-28T12:36:09.871327+00:00 app[web.1]: * Min threads: 5, max threads: 5
2020-03-28T12:36:09.871327+00:00 app[web.1]: * Environment: production
2020-03-28T12:36:09.871639+00:00 app[web.1]: * Listening on tcp://0.0.0.0:16317
2020-03-28T12:36:09.872016+00:00 app[web.1]: Use Ctrl-C to stop
2020-03-28T12:38:29.235789+00:00 heroku[router]: at=info method=GET path="/" host=olivier-godard.herokuapp.com request_id=840fbcb6-1f17-47f0-9d83-23318df3374d fwd="37.120.204.164" dyno=web.1 connect=1ms service=16ms status=500 bytes=1827 protocol=https
2020-03-28T12:38:29.222883+00:00 app[web.1]: I, [2020-03-28T12:38:29.222773 #4] INFO -- : [840fbcb6-1f17-47f0-9d83-23318df3374d] Started GET "/" for 37.120.204.164 at 2020-03-28 12:38:29 +0000
2020-03-28T12:38:29.225673+00:00 app[web.1]: I, [2020-03-28T12:38:29.225603 #4] INFO -- : [840fbcb6-1f17-47f0-9d83-23318df3374d] Processing by PagesController#home as HTML
2020-03-28T12:38:29.231929+00:00 app[web.1]: I, [2020-03-28T12:38:29.231848 #4] INFO -- : [840fbcb6-1f17-47f0-9d83-23318df3374d] Rendering pages/home.html.erb within layouts/application
2020-03-28T12:38:29.233977+00:00 app[web.1]: I, [2020-03-28T12:38:29.233904 #4] INFO -- : [840fbcb6-1f17-47f0-9d83-23318df3374d] Rendered shared/_navbar.html.erb (Duration: 0.5ms | Allocations: 248)
2020-03-28T12:38:29.234403+00:00 app[web.1]: I, [2020-03-28T12:38:29.234329 #4] INFO -- : [840fbcb6-1f17-47f0-9d83-23318df3374d] Rendered pages/home.html.erb within layouts/application (Duration: 2.4ms | Allocations: 1253)
2020-03-28T12:38:29.234656+00:00 app[web.1]: I, [2020-03-28T12:38:29.234595 #4] INFO -- : [840fbcb6-1f17-47f0-9d83-23318df3374d] Completed 500 Internal Server Error in 9ms (Allocations: 2442)
2020-03-28T12:38:29.235754+00:00 app[web.1]: F, [2020-03-28T12:38:29.235690 #4] FATAL -- : [840fbcb6-1f17-47f0-9d83-23318df3374d]
2020-03-28T12:38:29.235754+00:00 app[web.1]: [840fbcb6-1f17-47f0-9d83-23318df3374d] ActionView::Template::Error (The asset "data_1" is not present in the asset pipeline.):
2020-03-28T12:38:29.235755+00:00 app[web.1]: [840fbcb6-1f17-47f0-9d83-23318df3374d] 10: </div>
2020-03-28T12:38:29.235756+00:00 app[web.1]: [840fbcb6-1f17-47f0-9d83-23318df3374d] 11: </div>
2020-03-28T12:38:29.235756+00:00 app[web.1]: [840fbcb6-1f17-47f0-9d83-23318df3374d] 12: <div class="bloc-image">
2020-03-28T12:38:29.235757+00:00 app[web.1]: [840fbcb6-1f17-47f0-9d83-23318df3374d] 13: <%= image_tag 'data_1', class: "image-svg" %>
2020-03-28T12:38:29.235757+00:00 app[web.1]: [840fbcb6-1f17-47f0-9d83-23318df3374d] 14: </div>
2020-03-28T12:38:29.235758+00:00 app[web.1]: [840fbcb6-1f17-47f0-9d83-23318df3374d] 15: <div id="presentation">
2020-03-28T12:38:29.235758+00:00 app[web.1]: [840fbcb6-1f17-47f0-9d83-23318df3374d] 16: <div class="bloc-presentation">
2020-03-28T12:38:29.235759+00:00 app[web.1]: [840fbcb6-1f17-47f0-9d83-23318df3374d]
2020-03-28T12:38:29.235759+00:00 app[web.1]: [840fbcb6-1f17-47f0-9d83-23318df3374d] app/views/pages/home.html.erb:13
2020-03-28T12:38:29.725103+00:00 heroku[router]: at=info method=GET path="/favicon.ico" host=olivier-godard.herokuapp.com request_id=6212842c-bbdb-438f-9d86-5515322c140f fwd="37.120.204.164" dyno=web.1 connect=0ms service=6ms status=200 bytes=143 protocol=https
2020-03-28T12:39:41.252676+00:00 app[api]: Starting process with command `bundle exec rake db:migrate` by user projet.site.2015#gmail.com
2020-03-28T12:39:49.767859+00:00 heroku[run.7053]: State changed from starting to up
2020-03-28T12:39:58.708611+00:00 heroku[run.7053]: State changed from up to complete
2020-03-28T12:40:12.950852+00:00 heroku[router]: at=info method=GET path="/" host=olivier-godard.herokuapp.com request_id=63685b73-070a-4b79-89a2-be5a41dc6197 fwd="37.120.204.164" dyno=web.1 connect=1ms service=5ms status=500 bytes=1827 protocol=https
2020-03-28T12:40:12.944252+00:00 app[web.1]: I, [2020-03-28T12:40:12.944150 #4] INFO -- : [63685b73-070a-4b79-89a2-be5a41dc6197] Started GET "/" for 37.120.204.164 at 2020-03-28 12:40:12 +0000
2020-03-28T12:40:12.944998+00:00 app[web.1]: I, [2020-03-28T12:40:12.944934 #4] INFO -- : [63685b73-070a-4b79-89a2-be5a41dc6197] Processing by PagesController#home as HTML
2020-03-28T12:40:12.945750+00:00 app[web.1]: I, [2020-03-28T12:40:12.945692 #4] INFO -- : [63685b73-070a-4b79-89a2-be5a41dc6197] Rendering pages/home.html.erb within layouts/application
2020-03-28T12:40:12.946106+00:00 app[web.1]: I, [2020-03-28T12:40:12.946054 #4] INFO -- : [63685b73-070a-4b79-89a2-be5a41dc6197] Rendered shared/_navbar.html.erb (Duration: 0.2ms | Allocations: 61)
2020-03-28T12:40:12.946464+00:00 app[web.1]: I, [2020-03-28T12:40:12.946413 #4] INFO -- : [63685b73-070a-4b79-89a2-be5a41dc6197] Rendered pages/home.html.erb within layouts/application (Duration: 0.6ms | Allocations: 273)
2020-03-28T12:40:12.946616+00:00 app[web.1]: I, [2020-03-28T12:40:12.946565 #4] INFO -- : [63685b73-070a-4b79-89a2-be5a41dc6197] Completed 500 Internal Server Error in 2ms (Allocations: 593)
2020-03-28T12:40:12.947553+00:00 app[web.1]: F, [2020-03-28T12:40:12.947494 #4] FATAL -- : [63685b73-070a-4b79-89a2-be5a41dc6197]
2020-03-28T12:40:12.947554+00:00 app[web.1]: [63685b73-070a-4b79-89a2-be5a41dc6197] ActionView::Template::Error (The asset "data_1" is not present in the asset pipeline.):
2020-03-28T12:40:12.947554+00:00 app[web.1]: [63685b73-070a-4b79-89a2-be5a41dc6197] 10: </div>
2020-03-28T12:40:12.947554+00:00 app[web.1]: [63685b73-070a-4b79-89a2-be5a41dc6197] 11: </div>
2020-03-28T12:40:12.947555+00:00 app[web.1]: [63685b73-070a-4b79-89a2-be5a41dc6197] 12: <div class="bloc-image">
2020-03-28T12:40:12.947555+00:00 app[web.1]: [63685b73-070a-4b79-89a2-be5a41dc6197] 13: <%= image_tag 'data_1', class: "image-svg" %>
2020-03-28T12:40:12.947556+00:00 app[web.1]: [63685b73-070a-4b79-89a2-be5a41dc6197] 14: </div>
2020-03-28T12:40:12.947556+00:00 app[web.1]: [63685b73-070a-4b79-89a2-be5a41dc6197] 15: <div id="presentation">
2020-03-28T12:40:12.947556+00:00 app[web.1]: [63685b73-070a-4b79-89a2-be5a41dc6197] 16: <div class="bloc-presentation">
2020-03-28T12:40:12.947557+00:00 app[web.1]: [63685b73-070a-4b79-89a2-be5a41dc6197]
2020-03-28T12:40:12.947557+00:00 app[web.1]: [63685b73-070a-4b79-89a2-be5a41dc6197] app/views/pages/home.html.erb:13
2020-03-28T12:40:13.363954+00:00 heroku[router]: at=info method=GET path="/favicon.ico" host=olivier-godard.herokuapp.com request_id=bf6a8a8f-e44c-4fd9-987a-5112f0abe117 fwd="37.120.204.164" dyno=web.1 connect=1ms service=1ms status=304 bytes=48 protocol=https
2020-03-28T12:40:55.000000+00:00 app[api]: Build started by user projet.site.2015#gmail.com
2020-03-28T12:42:34.099779+00:00 app[api]: Release v8 created by user projet.site.2015#gmail.com
2020-03-28T12:42:34.099779+00:00 app[api]: Deploy 7f608ab3 by user projet.site.2015#gmail.com
2020-03-28T12:42:35.818867+00:00 heroku[web.1]: Restarting
2020-03-28T12:42:35.896985+00:00 heroku[web.1]: State changed from up to starting
2020-03-28T12:42:36.945354+00:00 app[web.1]: - Gracefully stopping, waiting for requests to finish
2020-03-28T12:42:36.945876+00:00 app[web.1]: === puma shutdown: 2020-03-28 12:42:36 +0000 ===
2020-03-28T12:42:36.945908+00:00 app[web.1]: - Goodbye!
2020-03-28T12:42:36.946038+00:00 app[web.1]: Exiting
2020-03-28T12:42:41.000000+00:00 app[api]: Build succeeded
2020-03-28T12:42:58.009374+00:00 app[web.1]: => Booting Puma
2020-03-28T12:42:58.009404+00:00 app[web.1]: => Rails 6.0.2.1 application starting in production
2020-03-28T12:42:58.009405+00:00 app[web.1]: => Run `rails server --help` for more startup options
2020-03-28T12:43:00.239967+00:00 heroku[web.1]: State changed from starting to up
2020-03-28T12:43:00.025594+00:00 app[web.1]: Puma starting in single mode...
2020-03-28T12:43:00.025627+00:00 app[web.1]: * Version 4.3.3 (ruby 2.6.5-p114), codename: Mysterious Traveller
2020-03-28T12:43:00.025628+00:00 app[web.1]: * Min threads: 5, max threads: 5
2020-03-28T12:43:00.025628+00:00 app[web.1]: * Environment: production
2020-03-28T12:43:00.025952+00:00 app[web.1]: * Listening on tcp://0.0.0.0:45616
2020-03-28T12:43:00.026326+00:00 app[web.1]: Use Ctrl-C to stop
2020-03-28T12:44:43.389577+00:00 app[web.1]: I, [2020-03-28T12:44:43.389449 #4] INFO -- : [69de93ec-c402-4332-b7ff-25992a45d6af] Started GET "/" for 37.120.204.164 at 2020-03-28 12:44:43 +0000
2020-03-28T12:44:43.392427+00:00 app[web.1]: I, [2020-03-28T12:44:43.392363 #4] INFO -- : [69de93ec-c402-4332-b7ff-25992a45d6af] Processing by PagesController#home as HTML
2020-03-28T12:44:43.402094+00:00 app[web.1]: I, [2020-03-28T12:44:43.401999 #4] INFO -- : [69de93ec-c402-4332-b7ff-25992a45d6af] Rendering pages/home.html.erb within layouts/application
2020-03-28T12:44:43.405439+00:00 app[web.1]: I, [2020-03-28T12:44:43.405351 #4] INFO -- : [69de93ec-c402-4332-b7ff-25992a45d6af] Rendered shared/_navbar.html.erb (Duration: 0.9ms | Allocations: 248)
2020-03-28T12:44:43.406306+00:00 app[web.1]: I, [2020-03-28T12:44:43.406204 #4] INFO -- : [69de93ec-c402-4332-b7ff-25992a45d6af] Rendered pages/home.html.erb within layouts/application (Duration: 4.0ms | Allocations: 1253)
2020-03-28T12:44:43.406670+00:00 app[web.1]: I, [2020-03-28T12:44:43.406575 #4] INFO -- : [69de93ec-c402-4332-b7ff-25992a45d6af] Completed 500 Internal Server Error in 14ms (Allocations: 2442)
2020-03-28T12:44:43.407830+00:00 app[web.1]: F, [2020-03-28T12:44:43.407758 #4] FATAL -- : [69de93ec-c402-4332-b7ff-25992a45d6af]
2020-03-28T12:44:43.407831+00:00 app[web.1]: [69de93ec-c402-4332-b7ff-25992a45d6af] ActionView::Template::Error (The asset "data_1" is not present in the asset pipeline.):
2020-03-28T12:44:43.407832+00:00 app[web.1]: [69de93ec-c402-4332-b7ff-25992a45d6af] 10: </div>
2020-03-28T12:44:43.407832+00:00 app[web.1]: [69de93ec-c402-4332-b7ff-25992a45d6af] 11: </div>
2020-03-28T12:44:43.407834+00:00 app[web.1]: [69de93ec-c402-4332-b7ff-25992a45d6af] 12: <div class="bloc-image">
2020-03-28T12:44:43.407848+00:00 app[web.1]: [69de93ec-c402-4332-b7ff-25992a45d6af] 13: <%= image_tag 'data_1', class: "image-svg" %>
2020-03-28T12:44:43.407848+00:00 app[web.1]: [69de93ec-c402-4332-b7ff-25992a45d6af] 14: </div>
2020-03-28T12:44:43.407849+00:00 app[web.1]: [69de93ec-c402-4332-b7ff-25992a45d6af] 15: <div id="presentation">
2020-03-28T12:44:43.407849+00:00 app[web.1]: [69de93ec-c402-4332-b7ff-25992a45d6af] 16: <div class="bloc-presentation">
2020-03-28T12:44:43.407850+00:00 app[web.1]: [69de93ec-c402-4332-b7ff-25992a45d6af]
2020-03-28T12:44:43.407851+00:00 app[web.1]: [69de93ec-c402-4332-b7ff-25992a45d6af] app/views/pages/home.html.erb:13
2020-03-28T12:44:43.410088+00:00 heroku[router]: at=info method=GET path="/" host=olivier-godard.herokuapp.com request_id=69de93ec-c402-4332-b7ff-25992a45d6af fwd="37.120.204.164" dyno=web.1 connect=32ms service=29ms status=500 bytes=1827 protocol=https
2020-03-28T12:44:43.958483+00:00 heroku[router]: at=info method=GET path="/favicon.ico" host=olivier-godard.herokuapp.com request_id=e89ec38b-151b-4324-bd42-5fea9a706326 fwd="37.120.204.164" dyno=web.1 connect=4ms service=9ms status=200 bytes=143 protocol=https
I don't understand how to fix it.
At the very end of your logs, you can see the error. It is a bit hard to read with all the extra information, but I extracted it for you.
ActionView::Template::Error (The asset "data_1" is not present in the asset pipeline.):
10: </div>
11: </div>
12: <div class="bloc-image">
13: <%= image_tag 'data_1', class: "image-svg" %>
14: </div>
15: <div id="presentation">
16: <div class="bloc-presentation">
app/views/pages/home.html.erb:13
On heroku, the image_tags don't work, if you don't give the file extension for the picture. (It does work on localhost, so that is why you didn't catch it earlier).
So here, just change the file extension, so that it is like this (with jpg or svg or whatever it is).
<%= image_tag 'data_1.svg', class: "image-svg" %>
So I'm using the RSpotify to have users approve our app and then redirect to our site. The problem is that when Spotify redirects it is including a query string. This is throwing it off and it thinks that the URI is not an approved source.
Everything was working until I put my site up on heroku.
Here is the error:
+00:00 app[web.1]: I, [2020-02-17T12:09:24.460751 #4] INFO -- omniauth: (spotify) Request phase initiated.
2020-02-17T12:09:24.464829+00:00 heroku[router]: at=info method=GET path="/auth/spotify" host=www.themixtapeproj.com request_id=cf73be87-9844-4b18-ba0b-518e4046676a fwd="47.17.47.4" dyno=web.1 connect=1ms service=4ms status=302 bytes=1463 protocol=http
2020-02-17T12:09:24.663083+00:00 heroku[router]: at=info method=GET path="/auth/spotify/callback?code=AQArRuRXYD_gebJVlU1Ljht_4XDFr_1dAAqlI-20Tq5504JFdP92MpRIDoNFVvBpS4xPPAqrdAJlooCTZA3yLPeUFKk5W1SE9KkLFsDp--1tIm2Vt2Y6_jrNWmDsBvWvBkuSlBbXaBW5gti8sbIHlMCHXt8MDP82l2BTduVDgjStbSuFt8SoWo8BLeYT8pc68LUs7eFqoJoww-ywkc0gLz1V7tzpEkOkn6I8N7-LRTr9cXQt_kJfQdnpsbiQ0KSn2g&state=2d5bbf3deccf88d92d68f5022475522564622cfc77104794" host=www.themixtapeproj.com request_id=f8ef1adc-0693-4ab5-bf63-f23b63b3ee1b fwd="47.17.47.4" dyno=web.1 connect=1ms service=50ms status=302 bytes=769 protocol=http
2020-02-17T12:09:24.612879+00:00 app[web.1]: I, [2020-02-17T12:09:24.612791 #4] INFO -- : [f8ef1adc-0693-4ab5-bf63-f23b63b3ee1b] Started GET "/auth/spotify/callback?code=AQArRuRXYD_gebJVlU1Ljht_4XDFr_1dAAqlI-20Tq5504JFdP92MpRIDoNFVvBpS4xPPAqrdAJlooCTZA3yLPeUFKk5W1SE9KkLFsDp--1tIm2Vt2Y6_jrNWmDsBvWvBkuSlBbXaBW5gti8sbIHlMCHXt8MDP82l2BTduVDgjStbSuFt8SoWo8BLeYT8pc68LUs7eFqoJoww-ywkc0gLz1V7tzpEkOkn6I8N7-LRTr9cXQt_kJfQdnpsbiQ0KSn2g&state=2d5bbf3deccf88d92d68f5022475522564622cfc77104794" for 47.17.47.4 at 2020-02-17 12:09:24 +0000
2020-02-17T12:09:24.613242+00:00 app[web.1]: I, [2020-02-17T12:09:24.613191 #4] INFO -- omniauth: (spotify) Callback phase initiated.
2020-02-17T12:09:24.659971+00:00 app[web.1]: E, [2020-02-17T12:09:24.659789 #4] ERROR -- omniauth: (spotify) Authentication failure! invalid_credentials: OAuth2::Error, invalid_grant: Invalid redirect URI
2020-02-17T12:09:24.659978+00:00 app[web.1]: {"error":"invalid_grant","error_description":"Invalid redirect URI"}
2020-02-17T12:09:24.765658+00:00 app[web.1]: I, [2020-02-17T12:09:24.765530 #4] INFO -- : [bdbf5819-3907-42ba-9d02-6c32137425b5] Started GET "/auth/failure?message=invalid_credentials&origin=http%3A%2F%2Fwww.themixtapeproj.com%2Fmixtapes%2F4&strategy=spotify" for 47.17.47.4 at 2020-02-17 12:09:24 +0000
2020-02-17T12:09:24.766489+00:00 app[web.1]: F, [2020-02-17T12:09:24.766404 #4] FATAL -- : [bdbf5819-3907-42ba-9d02-6c32137425b5]
From what I understand it is the query string that is throwing it off. Since I have approved http://www.themixtapeproj.com/auth/spotify/callback
So what do I have to do to get this working?
EDIT: here is the authorize part (appears before the above error):
2020-02-17T15:41:52.150535+00:00 heroku[router]: at=info method=GET path="/auth/spotify" host=www.themixtapeproj.com request_id=2092bd50-787f-4f4f-a3a5-47e8ed29c171 fwd="100.38.116.113" dyno=web.1 connect=0ms service=15ms status=302 bytes=1451 protocol=http
2020-02-17T15:41:52.032671+00:00 heroku[router]: at=info method=GET path="/auth/spotify" host=www.themixtapeproj.com request_id=43b76294-4e0b-4137-9c40-ef0d132d97ed fwd="100.38.116.113" dyno=web.1 connect=13ms service=66ms status=302 bytes=1457 protocol=http
2020-02-17T15:41:52.005375+00:00 app[web.1]: I, [2020-02-17T15:41:52.005256 #4] INFO -- : [43b76294-4e0b-4137-9c40-ef0d132d97ed] Started GET "/auth/spotify" for 100.38.116.113 at 2020-02-17 15:41:52 +0000
2020-02-17T15:41:52.005965+00:00 app[web.1]: I, [2020-02-17T15:41:52.005846 #4] INFO -- omniauth: (spotify) Request phase initiated.
2020-02-17T15:41:52.140507+00:00 app[web.1]: I, [2020-02-17T15:41:52.140388 #4] INFO -- : [2092bd50-787f-4f4f-a3a5-47e8ed29c171] Started GET "/auth/spotify" for 100.38.116.113 at 2020-02-17 15:41:52 +0000 ```
Rails.application.config.middleware.use OmniAuth::Builder do
spotify_key = ENV['SPOTIFY_KEY']
spotify_secret = ENV['SPOTIFY_SECRET']
provider :spotify, spotify_key, spotify_secret, scope: 'playlist-modify-public'
end
def spotify
spotify_user = RSpotify::User.new(request.env['omniauth.auth'])
session[:spotify_user] = spotify_user.to_hash
redirect_to spotify_landing_path
end
I'm currently going through the Odin Project and just created my first rails app. Now I'm trying to deploy it to Heroku which I've previously done before, but this time it wont load the page. Whenever I run Heroku open in the terminal Safari pops up saying it wont load due to "Too many redirects". I'm unsure of where to start to fix this issue. The Heroku app link is https://damp-ravine-93217.herokuapp.com.
Here is my config/routes.rb file:
Rails.application.routes.draw do
get 'author/Sessions'
resources :articles do
resources :comments
end
resources :tags
resources :authors
resources :author_sessions, only: [ :new, :create, :destroy ]
get 'login' => 'author_sessions#new'
get 'logout' => 'author_sessions#destroy'
root to: 'articles#index'
end
And my Gemfile:
source 'https://rubygems.org'
git_source(:github) do |repo_name|
repo_name = "#{repo_name}/#{repo_name}" unless repo_name.include?("/")
"https://github.com/#{repo_name}.git"
end
gem 'sorcery'
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '~> 5.1.4'
# Use sqlite3 as the database for Active Record
# Use Puma as the app server
gem 'puma', '~> 3.7'
# Use SCSS for stylesheets
gem 'sass-rails', '~> 5.0'
# Use Uglifier as compressor for JavaScript assets
gem 'uglifier', '>= 1.3.0'
# See https://github.com/rails/execjs#readme for more supported runtimes
# gem 'therubyracer', platforms: :ruby
gem 'paperclip'
# Use CoffeeScript for .coffee assets and views
gem 'coffee-rails', '~> 4.2'
# Turbolinks makes navigating your web application faster. Read more:
https://github.com/turbolinks/turbolinks
gem 'turbolinks', '~> 5'
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
gem 'jbuilder', '~> 2.5'
# Use Redis adapter to run Action Cable in production
# gem 'redis', '~> 3.0'
# Use ActiveModel has_secure_password
# gem 'bcrypt', '~> 3.1.7'
# Use Capistrano for deployment
# gem 'capistrano-rails', group: :development
group :development, :test do
# Call 'byebug' anywhere in the code to stop execution and get a debugger
console
gem 'byebug', platforms: [:mri, :mingw, :x64_mingw]
# Adds support for Capybara system testing and selenium driver
gem 'capybara', '~> 2.13'
gem 'selenium-webdriver'
gem 'sqlite3'
end
group :development do
# Access an IRB console on exception pages or by using <%= console %>
anywhere in the code.
gem 'web-console', '>= 3.3.0'
gem 'listen', '>= 3.0.5', '< 3.2'
# Spring speeds up development by keeping your application running in the
background. Read more: https://github.com/rails/spring
gem 'spring'
gem 'spring-watcher-listen', '~> 2.0.0'
end
group :production do
gem 'pg'
end
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
And here's my Heroku logs:
Marcuss-MacBook-Pro:blogger marcus$ heroku logs
2017-10-11T02:59:33.316129+00:00 heroku[router]: at=info method=GET path="/" host=damp-ravine-93217.herokuapp.com request_id=1a14b22d-054e-4881-9f50-7138feaa6af9 fwd="68.113.36.43" dyno=web.1 connect=0ms service=12ms status=302 bytes=806 protocol=https
2017-10-11T02:59:33.313223+00:00 app[web.1]: I, [2017-10-11T02:59:33.311838 #4] INFO -- : [1a14b22d-054e-4881-9f50-7138feaa6af9] Started GET "/" for 68.113.36.43 at 2017-10-11 02:59:33 +0000
2017-10-11T02:59:33.314440+00:00 app[web.1]: I, [2017-10-11T02:59:33.314362 #4] INFO -- : [1a14b22d-054e-4881-9f50-7138feaa6af9] Processing by ArticlesController#index as HTML
2017-10-11T02:59:33.315819+00:00 app[web.1]: I, [2017-10-11T02:59:33.315719 #4] INFO -- : [1a14b22d-054e-4881-9f50-7138feaa6af9] Redirected to https://damp-ravine-93217.herokuapp.com/
2017-10-11T02:59:33.316008+00:00 app[web.1]: I, [2017-10-11T02:59:33.315911 #4] INFO -- : [1a14b22d-054e-4881-9f50-7138feaa6af9] Filter chain halted as :require_login rendered or redirected
2017-10-11T02:59:33.316236+00:00 app[web.1]: I, [2017-10-11T02:59:33.316159 #4] INFO -- : [1a14b22d-054e-4881-9f50-7138feaa6af9] Completed 302 Found in 2ms
2017-10-11T02:59:33.429473+00:00 app[web.1]: I, [2017-10-11T02:59:33.429350 #4] INFO -- : [d2637cad-cd5e-4aa2-b745-5b3a9f29d619] Started GET "/" for 68.113.36.43 at 2017-10-11 02:59:33 +0000
2017-10-11T02:59:33.438373+00:00 app[web.1]: I, [2017-10-11T02:59:33.438262 #4] INFO -- : [d2637cad-cd5e-4aa2-b745-5b3a9f29d619] Processing by ArticlesController#index as HTML
2017-10-11T02:59:33.439328+00:00 app[web.1]: I, [2017-10-11T02:59:33.439251 #4] INFO -- : [d2637cad-cd5e-4aa2-b745-5b3a9f29d619] Redirected to https://damp-ravine-93217.herokuapp.com/
2017-10-11T02:59:33.439493+00:00 app[web.1]: I, [2017-10-11T02:59:33.439426 #4] INFO -- : [d2637cad-cd5e-4aa2-b745-5b3a9f29d619] Filter chain halted as :require_login rendered or redirected
2017-10-11T02:59:33.439657+00:00 app[web.1]: I, [2017-10-11T02:59:33.439593 #4] INFO -- : [d2637cad-cd5e-4aa2-b745-5b3a9f29d619] Completed 302 Found in 1ms
2017-10-11T02:59:33.554792+00:00 app[web.1]: I, [2017-10-11T02:59:33.554668 #4] INFO -- : [eaf81f4a-ddfc-441b-bf61-537208d2fae1] Started GET "/" for 68.113.36.43 at 2017-10-11 02:59:33 +0000
2017-10-11T02:59:33.555657+00:00 app[web.1]: I, [2017-10-11T02:59:33.555583 #4] INFO -- : [eaf81f4a-ddfc-441b-bf61-537208d2fae1] Processing by ArticlesController#index as HTML
2017-10-11T02:59:33.556582+00:00 app[web.1]: I, [2017-10-11T02:59:33.556508 #4] INFO -- : [eaf81f4a-ddfc-441b-bf61-537208d2fae1] Redirected to https://damp-ravine-93217.herokuapp.com/
2017-10-11T02:59:33.556750+00:00 app[web.1]: I, [2017-10-11T02:59:33.556670 #4] INFO -- : [eaf81f4a-ddfc-441b-bf61-537208d2fae1] Filter chain halted as :require_login rendered or redirected
2017-10-11T02:59:33.556911+00:00 app[web.1]: I, [2017-10-11T02:59:33.556843 #4] INFO -- : [eaf81f4a-ddfc-441b-bf61-537208d2fae1] Completed 302 Found in 1ms
2017-10-11T02:59:33.672073+00:00 heroku[router]: at=info method=GET path="/" host=damp-ravine-93217.herokuapp.com request_id=68bd1991-d208-4431-8c26-f4e1c1740f18 fwd="68.113.36.43" dyno=web.1 connect=0ms service=8ms status=302 bytes=806 protocol=https
2017-10-11T02:59:33.556658+00:00 heroku[router]: at=info method=GET path="/" host=damp-ravine-93217.herokuapp.com request_id=eaf81f4a-ddfc-441b-bf61-537208d2fae1 fwd="68.113.36.43" dyno=web.1 connect=0ms service=5ms status=302 bytes=806 protocol=https
2017-10-11T02:59:33.780386+00:00 heroku[router]: at=info method=GET path="/" host=damp-ravine-93217.herokuapp.com request_id=51814dfc-a0c2-48f3-a3e1-331bcbc389c5 fwd="68.113.36.43" dyno=web.1 connect=0ms service=4ms status=302 bytes=806 protocol=https
2017-10-11T02:59:33.667278+00:00 app[web.1]: I, [2017-10-11T02:59:33.667197 #4] INFO -- : [68bd1991-d208-4431-8c26-f4e1c1740f18] Started GET "/" for 68.113.36.43 at 2017-10-11 02:59:33 +0000
2017-10-11T02:59:33.670929+00:00 app[web.1]: I, [2017-10-11T02:59:33.670860 #4] INFO -- : [68bd1991-d208-4431-8c26-f4e1c1740f18] Processing by ArticlesController#index as HTML
2017-10-11T02:59:33.671910+00:00 app[web.1]: I, [2017-10-11T02:59:33.671841 #4] INFO -- : [68bd1991-d208-4431-8c26-f4e1c1740f18] Redirected to https://damp-ravine-93217.herokuapp.com/
2017-10-11T02:59:33.672109+00:00 app[web.1]: I, [2017-10-11T02:59:33.672044 #4] INFO -- : [68bd1991-d208-4431-8c26-f4e1c1740f18] Filter chain halted as :require_login rendered or redirected
2017-10-11T02:59:33.672303+00:00 app[web.1]: I, [2017-10-11T02:59:33.672237 #4] INFO -- : [68bd1991-d208-4431-8c26-f4e1c1740f18] Completed 302 Found in 1ms
2017-10-11T02:59:33.778413+00:00 app[web.1]: I, [2017-10-11T02:59:33.778311 #4] INFO -- : [51814dfc-a0c2-48f3-a3e1-331bcbc389c5] Started GET "/" for 68.113.36.43 at 2017-10-11 02:59:33 +0000
2017-10-11T02:59:33.779416+00:00 app[web.1]: I, [2017-10-11T02:59:33.779346 #4] INFO -- : [51814dfc-a0c2-48f3-a3e1-331bcbc389c5] Processing by ArticlesController#index as HTML
2017-10-11T02:59:33.780363+00:00 app[web.1]: I, [2017-10-11T02:59:33.780295 #4] INFO -- : [51814dfc-a0c2-48f3-a3e1-331bcbc389c5] Redirected to https://damp-ravine-93217.herokuapp.com/
2017-10-11T02:59:33.780561+00:00 app[web.1]: I, [2017-10-11T02:59:33.780485 #4] INFO -- : [51814dfc-a0c2-48f3-a3e1-331bcbc389c5] Filter chain halted as :require_login rendered or redirected
2017-10-11T02:59:33.780741+00:00 app[web.1]: I, [2017-10-11T02:59:33.780677 #4] INFO -- : [51814dfc-a0c2-48f3-a3e1-331bcbc389c5] Completed 302 Found in 1ms
2017-10-11T02:59:33.885106+00:00 app[web.1]: I, [2017-10-11T02:59:33.885000 #4] INFO -- : [e5f1f408-ff92-4aac-bfaf-76277fdf25e6] Started GET "/" for 68.113.36.43 at 2017-10-11 02:59:33 +0000
2017-10-11T02:59:33.885946+00:00 app[web.1]: I, [2017-10-11T02:59:33.885871 #4] INFO -- : [e5f1f408-ff92-4aac-bfaf-76277fdf25e6] Processing by ArticlesController#index as HTML
2017-10-11T02:59:33.887290+00:00 app[web.1]: I, [2017-10-11T02:59:33.887205 #4] INFO -- : [e5f1f408-ff92-4aac-bfaf-76277fdf25e6] Redirected to https://damp-ravine-93217.herokuapp.com/
2017-10-11T02:59:33.887536+00:00 app[web.1]: I, [2017-10-11T02:59:33.887381 #4] INFO -- : [e5f1f408-ff92-4aac-bfaf-76277fdf25e6] Filter chain halted as :require_login rendered or redirected
2017-10-11T02:59:33.887596+00:00 app[web.1]: I, [2017-10-11T02:59:33.887526 #4] INFO -- : [e5f1f408-ff92-4aac-bfaf-76277fdf25e6] Completed 302 Found in 2ms
2017-10-11T02:59:33.887516+00:00 heroku[router]: at=info method=GET path="/" host=damp-ravine-93217.herokuapp.com request_id=e5f1f408-ff92-4aac-bfaf-76277fdf25e6 fwd="68.113.36.43" dyno=web.1 connect=0ms service=5ms status=302 bytes=806 protocol=https
2017-10-11T02:59:33.994875+00:00 heroku[router]: at=info method=GET path="/" host=damp-ravine-93217.herokuapp.com request_id=6ed7cd7a-2d41-4296-8908-0e10d0971fa4 fwd="68.113.36.43" dyno=web.1 connect=0ms service=4ms status=302 bytes=806 protocol=https
2017-10-11T02:59:33.993235+00:00 app[web.1]: I, [2017-10-11T02:59:33.993145 #4] INFO -- : [6ed7cd7a-2d41-4296-8908-0e10d0971fa4] Started GET "/" for 68.113.36.43 at 2017-10-11 02:59:33 +0000
2017-10-11T02:59:33.995176+00:00 app[web.1]: I, [2017-10-11T02:59:33.995112 #4] INFO -- : [6ed7cd7a-2d41-4296-8908-0e10d0971fa4] Filter chain halted as :require_login rendered or redirected
2017-10-11T02:59:34.102471+00:00 app[web.1]: I, [2017-10-11T02:59:34.102387 #4] INFO -- : [8aba1587-469b-43dd-a0e6-e062f96f63a0] Redirected to https://damp-ravine-93217.herokuapp.com/
2017-10-11T02:59:34.102595+00:00 app[web.1]: I, [2017-10-11T02:59:34.102537 #4] INFO -- : [8aba1587-469b-43dd-a0e6-e062f96f63a0] Filter chain halted as :require_login rendered or redirected
2017-10-11T02:59:34.099513+00:00 app[web.1]: I, [2017-10-11T02:59:34.099372 #4] INFO -- : [8aba1587-469b-43dd-a0e6-e062f96f63a0] Started GET "/" for 68.113.36.43 at 2017-10-11 02:59:34 +0000
2017-10-11T02:59:34.208056+00:00 app[web.1]: I, [2017-10-11T02:59:34.207953 #4] INFO -- : [12eb086b-1a23-4378-92c1-e2a4ad9f4615] Started GET "/" for 68.113.36.43 at 2017-10-11 02:59:34 +0000
2017-10-11T02:59:34.101425+00:00 app[web.1]: I, [2017-10-11T02:59:34.101355 #4] INFO -- : [8aba1587-469b-43dd-a0e6-e062f96f63a0] Processing by ArticlesController#index as HTML
2017-10-11T02:59:33.995326+00:00 app[web.1]: I, [2017-10-11T02:59:33.995263 #4] INFO -- : [6ed7cd7a-2d41-4296-8908-0e10d0971fa4] Completed 302 Found in 1ms
2017-10-11T02:59:34.208930+00:00 app[web.1]: I, [2017-10-11T02:59:34.208843 #4] INFO -- : [12eb086b-1a23-4378-92c1-e2a4ad9f4615] Processing by ArticlesController#index as HTML
2017-10-11T02:59:33.995046+00:00 app[web.1]: I, [2017-10-11T02:59:33.994954 #4] INFO -- : [6ed7cd7a-2d41-4296-8908-0e10d0971fa4] Redirected to https://damp-ravine-93217.herokuapp.com/
2017-10-11T02:59:34.210082+00:00 app[web.1]: I, [2017-10-11T02:59:34.210012 #4] INFO -- : [12eb086b-1a23-4378-92c1-e2a4ad9f4615] Filter chain halted as :require_login rendered or redirected
2017-10-11T02:59:34.210297+00:00 app[web.1]: I, [2017-10-11T02:59:34.210231 #4] INFO -- : [12eb086b-1a23-4378-92c1-e2a4ad9f4615] Completed 302 Found in 1ms
2017-10-11T02:59:34.209918+00:00 app[web.1]: I, [2017-10-11T02:59:34.209834 #4] INFO -- : [12eb086b-1a23-4378-92c1-e2a4ad9f4615] Redirected to https://damp-ravine-93217.herokuapp.com/
2017-10-11T02:59:34.102719+00:00 app[web.1]: I, [2017-10-11T02:59:34.102660 #4] INFO -- : [8aba1587-469b-43dd-a0e6-e062f96f63a0] Completed 302 Found in 1ms
2017-10-11T02:59:33.994117+00:00 app[web.1]: I, [2017-10-11T02:59:33.994046 #4] INFO -- : [6ed7cd7a-2d41-4296-8908-0e10d0971fa4] Processing by ArticlesController#index as HTML
2017-10-11T02:59:34.102038+00:00 heroku[router]: at=info method=GET path="/" host=damp-ravine-93217.herokuapp.com request_id=8aba1587-469b-43dd-a0e6-e062f96f63a0 fwd="68.113.36.43" dyno=web.1 connect=0ms service=5ms status=302 bytes=806 protocol=https
2017-10-11T02:59:34.209930+00:00 heroku[router]: at=info method=GET path="/" host=damp-ravine-93217.herokuapp.com request_id=12eb086b-1a23-4378-92c1-e2a4ad9f4615 fwd="68.113.36.43" dyno=web.1 connect=0ms service=4ms status=302 bytes=806 protocol=https
2017-10-11T02:59:34.320370+00:00 heroku[router]: at=info method=GET path="/" host=damp-ravine-93217.herokuapp.com request_id=75bf3a5d-5cfc-4463-b974-3724de6a4f71 fwd="68.113.36.43" dyno=web.1 connect=0ms service=6ms status=302 bytes=806 protocol=https
2017-10-11T02:59:34.460365+00:00 heroku[router]: at=info method=GET path="/" host=damp-ravine-93217.herokuapp.com request_id=cc1d3677-36f3-4d07-ad96-132699b5f1c8 fwd="68.113.36.43" dyno=web.1 connect=1ms service=10ms status=302 bytes=806 protocol=https
2017-10-11T02:59:34.318036+00:00 app[web.1]: I, [2017-10-11T02:59:34.317944 #4] INFO -- : [75bf3a5d-5cfc-4463-b974-3724de6a4f71] Started GET "/" for 68.113.36.43 at 2017-10-11 02:59:34 +0000
2017-10-11T02:59:34.319197+00:00 app[web.1]: I, [2017-10-11T02:59:34.319046 #4] INFO -- : [75bf3a5d-5cfc-4463-b974-3724de6a4f71] Processing by ArticlesController#index as HTML
2017-10-11T02:59:34.320563+00:00 app[web.1]: I, [2017-10-11T02:59:34.320475 #4] INFO -- : [75bf3a5d-5cfc-4463-b974-3724de6a4f71] Redirected to https://damp-ravine-93217.herokuapp.com/
2017-10-11T02:59:34.320700+00:00 app[web.1]: I, [2017-10-11T02:59:34.320632 #4] INFO -- : [75bf3a5d-5cfc-4463-b974-3724de6a4f71] Filter chain halted as :require_login rendered or redirected
2017-10-11T02:59:34.320857+00:00 app[web.1]: I, [2017-10-11T02:59:34.320787 #4] INFO -- : [75bf3a5d-5cfc-4463-b974-3724de6a4f71] Completed 302 Found in 1ms
2017-10-11T02:59:34.455793+00:00 app[web.1]: I, [2017-10-11T02:59:34.455706 #4] INFO -- : [cc1d3677-36f3-4d07-ad96-132699b5f1c8] Started GET "/" for 68.113.36.43 at 2017-10-11 02:59:34 +0000
2017-10-11T02:59:34.457460+00:00 app[web.1]: I, [2017-10-11T02:59:34.457268 #4] INFO -- : [cc1d3677-36f3-4d07-ad96-132699b5f1c8] Processing by ArticlesController#index as HTML
2017-10-11T02:59:34.458665+00:00 app[web.1]: I, [2017-10-11T02:59:34.458603 #4] INFO -- : [cc1d3677-36f3-4d07-ad96-132699b5f1c8] Redirected to https://damp-ravine-93217.herokuapp.com/
2017-10-11T02:59:34.458857+00:00 app[web.1]: I, [2017-10-11T02:59:34.458801 #4] INFO -- : [cc1d3677-36f3-4d07-ad96-132699b5f1c8] Filter chain halted as :require_login rendered or redirected
2017-10-11T02:59:34.459070+00:00 app[web.1]: I, [2017-10-11T02:59:34.458988 #4] INFO -- : [cc1d3677-36f3-4d07-ad96-132699b5f1c8] Completed 302 Found in 1ms
2017-10-11T02:59:34.566942+00:00 app[web.1]: I, [2017-10-11T02:59:34.566845 #4] INFO -- : [42d5b3f0-2416-4fac-b78f-0e34b30737e3] Started GET "/" for 68.113.36.43 at 2017-10-11 02:59:34 +0000
2017-10-11T02:59:34.567743+00:00 app[web.1]: I, [2017-10-11T02:59:34.567679 #4] INFO -- : [42d5b3f0-2416-4fac-b78f-0e34b30737e3] Processing by ArticlesController#index as HTML
2017-10-11T02:59:34.572470+00:00 heroku[router]: at=info method=GET path="/" host=damp-ravine-93217.herokuapp.com request_id=42d5b3f0-2416-4fac-b78f-0e34b30737e3 fwd="68.113.36.43" dyno=web.1 connect=0ms service=9ms status=302 bytes=806 protocol=https
2017-10-11T02:59:34.568784+00:00 app[web.1]: I, [2017-10-11T02:59:34.568720 #4] INFO -- : [42d5b3f0-2416-4fac-b78f-0e34b30737e3] Redirected to https://damp-ravine-93217.herokuapp.com/
2017-10-11T02:59:34.572487+00:00 app[web.1]: I, [2017-10-11T02:59:34.572420 #4] INFO -- : [42d5b3f0-2416-4fac-b78f-0e34b30737e3] Completed 302 Found in 4ms
2017-10-11T02:59:34.572307+00:00 app[web.1]: I, [2017-10-11T02:59:34.572202 #4] INFO -- : [42d5b3f0-2416-4fac-b78f-0e34b30737e3] Filter chain halted as :require_login rendered or redirected
2017-10-11T02:59:34.680103+00:00 app[web.1]: I, [2017-10-11T02:59:34.680016 #4] INFO -- : [36a18c52-458e-4827-9151-5c9e35888312] Started GET "/" for 68.113.36.43 at 2017-10-11 02:59:34 +0000
2017-10-11T02:59:34.680711+00:00 app[web.1]: I, [2017-10-11T02:59:34.680654 #4] INFO -- : [36a18c52-458e-4827-9151-5c9e35888312] Processing by ArticlesController#index as HTML
2017-10-11T02:59:34.681476+00:00 app[web.1]: I, [2017-10-11T02:59:34.681412 #4] INFO -- : [36a18c52-458e-4827-9151-5c9e35888312] Redirected to https://damp-ravine-93217.herokuapp.com/
2017-10-11T02:59:34.681607+00:00 app[web.1]: I, [2017-10-11T02:59:34.681549 #4] INFO -- : [36a18c52-458e-4827-9151-5c9e35888312] Filter chain halted as :require_login rendered or redirected
2017-10-11T02:59:34.681794+00:00 app[web.1]: I, [2017-10-11T02:59:34.681729 #4] INFO -- : [36a18c52-458e-4827-9151-5c9e35888312] Completed 302 Found in 1ms
2017-10-11T02:59:34.788498+00:00 app[web.1]: I, [2017-10-11T02:59:34.788400 #4] INFO -- : [9652f0eb-d9f3-4c49-a717-34413979584e] Started GET "/" for 68.113.36.43 at 2017-10-11 02:59:34 +0000
2017-10-11T02:59:34.789160+00:00 app[web.1]: I, [2017-10-11T02:59:34.789093 #4] INFO -- : [9652f0eb-d9f3-4c49-a717-34413979584e] Processing by ArticlesController#index as HTML
2017-10-11T02:59:34.790212+00:00 app[web.1]: I, [2017-10-11T02:59:34.790123 #4] INFO -- : [9652f0eb-d9f3-4c49-a717-34413979584e] Redirected to https://damp-ravine-93217.herokuapp.com/
2017-10-11T02:59:34.790400+00:00 app[web.1]: I, [2017-10-11T02:59:34.790334 #4] INFO -- : [9652f0eb-d9f3-4c49-a717-34413979584e] Filter chain halted as :require_login rendered or redirected
2017-10-11T02:59:34.791145+00:00 app[web.1]: I, [2017-10-11T02:59:34.791078 #4] INFO -- : [9652f0eb-d9f3-4c49-a717-34413979584e] Completed 302 Found in 2ms
2017-10-11T02:59:34.681813+00:00 heroku[router]: at=info method=GET path="/" host=damp-ravine-93217.herokuapp.com request_id=36a18c52-458e-4827-9151-5c9e35888312 fwd="68.113.36.43" dyno=web.1 connect=0ms service=4ms status=302 bytes=806 protocol=https
2017-10-11T02:59:34.790762+00:00 heroku[router]: at=info method=GET path="/" host=damp-ravine-93217.herokuapp.com request_id=9652f0eb-d9f3-4c49-a717-34413979584e fwd="68.113.36.43" dyno=web.1 connect=0ms service=4ms status=302 bytes=806 protocol=https
2017-10-11T02:59:34.896945+00:00 heroku[router]: at=info method=GET path="/" host=damp-ravine-93217.herokuapp.com request_id=a9a7945b-84e3-4231-b6eb-62560a0bc631 fwd="68.113.36.43" dyno=web.1 connect=0ms service=4ms status=302 bytes=806 protocol=https
2017-10-11T02:59:35.010268+00:00 heroku[router]: at=info method=GET path="/" host=damp-ravine-93217.herokuapp.com request_id=2e890718-57d3-474f-bbc9-a713d0708c23 fwd="68.113.36.43" dyno=web.1 connect=2ms service=6ms status=302 bytes=806 protocol=https
2017-10-11T02:59:34.895229+00:00 app[web.1]: I, [2017-10-11T02:59:34.895124 #4] INFO -- : [a9a7945b-84e3-4231-b6eb-62560a0bc631] Started GET "/" for 68.113.36.43 at 2017-10-11 02:59:34 +0000
2017-10-11T02:59:34.896075+00:00 app[web.1]: I, [2017-10-11T02:59:34.896002 #4] INFO -- : [a9a7945b-84e3-4231-b6eb-62560a0bc631] Processing by ArticlesController#index as HTML
2017-10-11T02:59:34.897002+00:00 app[web.1]: I, [2017-10-11T02:59:34.896931 #4] INFO -- : [a9a7945b-84e3-4231-b6eb-62560a0bc631] Redirected to https://damp-ravine-93217.herokuapp.com/
2017-10-11T02:59:34.897163+00:00 app[web.1]: I, [2017-10-11T02:59:34.897094 #4] INFO -- : [a9a7945b-84e3-4231-b6eb-62560a0bc631] Filter chain halted as :require_login rendered or redirected
2017-10-11T02:59:34.897339+00:00 app[web.1]: I, [2017-10-11T02:59:34.897272 #4] INFO -- : [a9a7945b-84e3-4231-b6eb-62560a0bc631] Completed 302 Found in 1ms
2017-10-11T02:59:35.008260+00:00 app[web.1]: I, [2017-10-11T02:59:35.008166 #4] INFO -- : [2e890718-57d3-474f-bbc9-a713d0708c23] Started GET "/" for 68.113.36.43 at 2017-10-11 02:59:35 +0000
2017-10-11T02:59:35.009086+00:00 app[web.1]: I, [2017-10-11T02:59:35.009011 #4] INFO -- : [2e890718-57d3-474f-bbc9-a713d0708c23] Processing by ArticlesController#index as HTML
2017-10-11T02:59:35.009992+00:00 app[web.1]: I, [2017-10-11T02:59:35.009917 #4] INFO -- : [2e890718-57d3-474f-bbc9-a713d0708c23] Redirected to https://damp-ravine-93217.herokuapp.com/
2017-10-11T02:59:35.010130+00:00 app[web.1]: I, [2017-10-11T02:59:35.010072 #4] INFO -- : [2e890718-57d3-474f-bbc9-a713d0708c23] Filter chain halted as :require_login rendered or redirected
2017-10-11T02:59:35.010329+00:00 app[web.1]: I, [2017-10-11T02:59:35.010265 #4] INFO -- : [2e890718-57d3-474f-bbc9-a713d0708c23] Completed 302 Found in 1ms
2017-10-11T02:59:35.118349+00:00 app[web.1]: I, [2017-10-11T02:59:35.118270 #4] INFO -- : [72ef8cbe-e258-4e4e-aee3-17c62b55c1c5] Started GET "/" for 68.113.36.43 at 2017-10-11 02:59:35 +0000
2017-10-11T02:59:35.119024+00:00 app[web.1]: I, [2017-10-11T02:59:35.118962 #4] INFO -- : [72ef8cbe-e258-4e4e-aee3-17c62b55c1c5] Processing by ArticlesController#index as HTML
2017-10-11T02:59:35.119822+00:00 app[web.1]: I, [2017-10-11T02:59:35.119759 #4] INFO -- : [72ef8cbe-e258-4e4e-aee3-17c62b55c1c5] Redirected to https://damp-ravine-93217.herokuapp.com/
2017-10-11T02:59:35.119960+00:00 app[web.1]: I, [2017-10-11T02:59:35.119895 #4] INFO -- : [72ef8cbe-e258-4e4e-aee3-17c62b55c1c5] Filter chain halted as :require_login rendered or redirected
2017-10-11T02:59:35.120087+00:00 app[web.1]: I, [2017-10-11T02:59:35.120032 #4] INFO -- : [72ef8cbe-e258-4e4e-aee3-17c62b55c1c5] Completed 302 Found in 1ms
2017-10-11T02:59:35.119487+00:00 heroku[router]: at=info method=GET path="/" host=damp-ravine-93217.herokuapp.com request_id=72ef8cbe-e258-4e4e-aee3-17c62b55c1c5 fwd="68.113.36.43" dyno=web.1 connect=0ms service=3ms status=302 bytes=806 protocol=https
Here is my articles controller:
class ArticlesController < ApplicationController
include ArticlesHelper
before_action :require_login, except[:destroy, :create, :edit, :update, :new]
def index
#articles = Article.all
end
def show
#article = Article.find(params[:id])
#comment = Comment.new
#comment.article_id = #article.id
end
def new
#article = Article.new
end
def create
#article = Article.new(article_params)
#article.save
flash.notice = "Article #{#article.title} Created"
redirect_to article_path(#article)
end
def destroy
#article = Article.find(params[:id])
#article.destroy
flash.notice = "Article #{#article.title} Deleted"
redirect_to articles_path
end
def edit
#article= Article.find(params[:id])
end
def update
#article=Article.find(params[:id])
#article.update(article_params)
flash.notice = "Article #{#article.title} Updated"
redirect_to article_path(#article)
end
end
Sorry in advance for bad formating. This is my first question in Stackoverflow, and I have yet to have a chance to get some practice in.
edit: Also might help to mention that It works fine in local host.
I was trying to test sending an e-mail from a contact form of a Rails app based at an Heroku server and I got an error saying:
We're sorry, but something went wrong. If you are the application owner check the logs for more information.
My intention was to learn how to integrate a mail server service into my Heroku account. For that, the addon used was MailGun. I even created a MailGun account with my personal e-mail to be able to check if I'm getting the e-mails or not.
After deploying the code from the Cloud9 environment to Heroku servers with the success, the only change I made in my Ruby code was the following stuff:
config/environment.rb
ActionMailer::Base.smtp_settings = {
:port => ENV['MAILGUN_SMTP_PORT'],
:address => ENV['MAILGUN_SMTP_SERVER'],
:user_name => ENV['MAILGUN_SMTP_LOGIN'],
:password => ENV['MAILGUN_SMTP_PASSWORD'],
:domain => 'blahblahblah.herokuapp.com',
:authentication => :plain,
}
ActionMailer::Base.delivery_method = :smtp
What's the problem? Any tip for a solution?
Updated Requested Info (Heroku Logs - I can't update all the logs due to restriction of characters in StackOverflow body):
iamsamuel:~/workspace/saasapp (master) $ heroku logs
2017-02-24T20:18:19.316716+00:00 app[web.1]: Content-Type: text/html;
2017-02-24T20:18:19.316717+00:00 app[web.1]: charset=UTF-8
2017-02-24T20:18:19.316718+00:00 app[web.1]: Content-Transfer-Encoding: 7bit
2017-02-24T20:18:19.316718+00:00 app[web.1]:
2017-02-24T20:18:19.316719+00:00 app[web.1]: <!DOCTYPE html>
2017-02-24T20:18:19.316719+00:00 app[web.1]: <html>
2017-02-24T20:18:19.316720+00:00 app[web.1]: <head>
2017-02-24T20:18:19.316721+00:00 app[web.1]: </head>
2017-02-24T20:18:19.316721+00:00 app[web.1]: <body>
2017-02-24T20:18:19.316722+00:00 app[web.1]: <p>
2017-02-24T20:18:19.316723+00:00 app[web.1]: You have received a message from the site's contact form, from Sam, smlmrr#outlook.com.
2017-02-24T20:18:19.316724+00:00 app[web.1]: </p>
2017-02-24T20:18:19.316724+00:00 app[web.1]: <p>
2017-02-24T20:18:19.316725+00:00 app[web.1]:
2017-02-24T20:18:19.316725+00:00 app[web.1]: </p>
2017-02-24T20:18:19.316726+00:00 app[web.1]: </body>
2017-02-24T20:18:19.316726+00:00 app[web.1]: </html>
2017-02-24T20:18:19.316886+00:00 app[web.1]: I, [2017-02-24T20:18:19.316838 #4] INFO -- : [f024cbfb-df8b-4efa-8cb1-50a6a0d7881c] Completed 500 Internal Server Error in 1166ms (ActiveRecord: 4.1ms)
2017-02-24T20:18:19.317316+00:00 app[web.1]: F, [2017-02-24T20:18:19.317273 #4] FATAL -- : [f024cbfb-df8b-4efa-8cb1-50a6a0d7881c]
2017-02-24T20:18:19.317357+00:00 app[web.1]: F, [2017-02-24T20:18:19.317318 #4] FATAL -- : [f024cbfb-df8b-4efa-8cb1-50a6a0d7881c] Net::SMTPFatalError (554 Please activate your Mailgun account. Check your inbox or log in to your control panel to resend the activation email.
2017-02-24T20:18:19.317358+00:00 app[web.1]: ):
2017-02-24T20:18:19.317396+00:00 app[web.1]: F, [2017-02-24T20:18:19.317355 #4] FATAL -- : [f024cbfb-df8b-4efa-8cb1-50a6a0d7881c]
2017-02-24T20:18:19.317435+00:00 app[web.1]: F, [2017-02-24T20:18:19.317396 #4] FATAL -- : [f024cbfb-df8b-4efa-8cb1-50a6a0d7881c] app/controllers/contacts_controller.rb:15:in `create'
2017-02-24T20:18:19.520898+00:00 heroku[router]: at=info method=GET path="/favicon.ico" host=infinite-forest-28304.herokuapp.com request_id=62153ff0-bef7-4e44-958b-447fb18e7c23 fwd="188.83.235.112" dyno=web.1 connect=0ms service=1ms status=304 bytes=48
2017-02-24T20:53:16.169251+00:00 heroku[web.1]: Idling
2017-02-24T20:53:16.169901+00:00 heroku[web.1]: State changed from up to down
2017-02-24T20:53:17.034264+00:00 heroku[web.1]: Stopping all processes with SIGTERM
2017-02-24T20:53:17.078764+00:00 app[web.1]: - Gracefully stopping, waiting for requests to finish
2017-02-24T20:53:17.078952+00:00 app[web.1]: === puma shutdown: 2017-02-24 20:53:17 +0000 ===
2017-02-24T20:53:17.078957+00:00 app[web.1]: - Goodbye!
2017-02-24T20:53:17.079100+00:00 app[web.1]: Exiting
2017-02-24T20:53:17.347515+00:00 heroku[web.1]: Process exited with status 0
2017-02-24T20:57:24.680979+00:00 heroku[web.1]: Unidling
2017-02-24T20:57:24.681258+00:00 heroku[web.1]: State changed from down to starting
2017-02-24T20:57:27.221989+00:00 heroku[web.1]: Starting process with command `bin/rails server -p 44473 -e production`
2017-02-24T20:57:30.299354+00:00 app[web.1]: => Booting Puma
2017-02-24T20:57:30.299447+00:00 app[web.1]: => Rails 5.0.0 application starting in production on http://0.0.0.0:44473
2017-02-24T20:57:30.299502+00:00 app[web.1]: => Run `rails server -h` for more startup options
2017-02-24T20:57:31.229688+00:00 app[web.1]: Puma starting in single mode...
2017-02-24T20:57:31.229714+00:00 app[web.1]: * Min threads: 5, max threads: 5
2017-02-24T20:57:31.229713+00:00 app[web.1]: * Version 3.4.0 (ruby 2.3.0-p0), codename: Owl Bowl Brawl
2017-02-24T20:57:31.229716+00:00 app[web.1]: * Environment: production
2017-02-24T20:57:31.229813+00:00 app[web.1]: * Listening on tcp://0.0.0.0:44473
2017-02-24T20:57:31.230029+00:00 app[web.1]: Use Ctrl-C to stop
2017-02-24T20:57:31.421917+00:00 heroku[web.1]: State changed from starting to up
2017-02-24T20:57:32.788592+00:00 heroku[router]: at=info method=GET path="/" host=infinite-forest-28304.herokuapp.com request_id=dedd394a-498a-464d-a669-ed19fa2fd418 fwd="188.83.235.112" dyno=web.1 connect=0ms service=58ms status=200 bytes=2753
2017-02-24T20:57:32.737531+00:00 app[web.1]: I, [2017-02-24T20:57:32.737424 #4] INFO -- : [dedd394a-498a-464d-a669-ed19fa2fd418] Started GET "/" for 188.83.235.112 at 2017-02-24 20:57:32 +0000
2017-02-24T20:57:32.740219+00:00 app[web.1]: I, [2017-02-24T20:57:32.740152 #4] INFO -- : [dedd394a-498a-464d-a669-ed19fa2fd418] Processing by PagesController#home as HTML
2017-02-24T20:57:32.752357+00:00 app[web.1]: I, [2017-02-24T20:57:32.752273 #4] INFO -- : [dedd394a-498a-464d-a669-ed19fa2fd418] Rendering pages/home.html.erb within layouts/application
2017-02-24T20:57:32.753153+00:00 app[web.1]: I, [2017-02-24T20:57:32.753082 #4] INFO -- : [dedd394a-498a-464d-a669-ed19fa2fd418] Rendered pages/home.html.erb within layouts/application (0.6ms)
2017-02-24T20:57:32.759595+00:00 app[web.1]: I, [2017-02-24T20:57:32.759524 #4] INFO -- : [dedd394a-498a-464d-a669-ed19fa2fd418] Completed 200 OK in 19ms (Views: 8.6ms | ActiveRecord: 0.0ms)
2017-02-24T20:57:32.929609+00:00 heroku[router]: at=info method=GET path="/assets/application-95163fa38446d1bb6139f870d5fb932af7fa47b347b8951923c32a4565386aa6.js" host=infinite-forest-28304.herokuapp.com request_id=80d55a95-cbe8-4982-a571-bc8850567a87 fwd="188.83.235.112" dyno=web.1 connect=0ms service=1ms status=304 bytes=48
2017-02-24T20:57:32.928158+00:00 heroku[router]: at=info method=GET path="/assets/application-5ed627eba0abe94ba4e2c255c2298f55d9bca9b4ea45ded59ba1705edc5385d0.css" host=infinite-forest-28304.herokuapp.com request_id=a9c456f3-e7cd-4d6a-865f-2c8f5efbdaa7 fwd="188.83.235.112" dyno=web.1 connect=0ms service=1ms status=304 bytes=48
2017-02-24T20:57:33.143930+00:00 heroku[router]: at=info method=GET path="/assets/font-awesome/fontawesome-webfont-2932abf996373e87fbf2e950876b1962f1b57db954a1643ea68831d9fbb74da4.woff2?v=4.6.2" host=infinite-forest-28304.herokuapp.com request_id=90d78563-eaa6-4f24-a054-5c89beada59c fwd="188.83.235.112" dyno=web.1 connect=3ms service=1ms status=304 bytes=48
2017-02-24T20:57:33.402193+00:00 heroku[router]: at=info method=GET path="/favicon.ico" host=infinite-forest-28304.herokuapp.com request_id=7c20311c-bd5a-46c3-a9d5-c6266c1f9331 fwd="188.83.235.112" dyno=web.1 connect=0ms service=1ms status=304 bytes=48
2017-02-24T20:57:50.706814+00:00 heroku[router]: at=info method=GET path="/contact-us" host=infinite-forest-28304.herokuapp.com request_id=0ec752b1-0d75-42dd-83f6-ecd127086bfb fwd="188.83.235.112" dyno=web.1 connect=0ms service=35ms status=200 bytes=4317
2017-02-24T20:57:50.651067+00:00 app[web.1]: I, [2017-02-24T20:57:50.650984 #4] INFO -- : [0ec752b1-0d75-42dd-83f6-ecd127086bfb] Started GET "/contact-us" for 188.83.235.112 at 2017-02-24 20:57:50 +0000
2017-02-24T20:57:50.652579+00:00 app[web.1]: I, [2017-02-24T20:57:50.652518 #4] INFO -- : [0ec752b1-0d75-42dd-83f6-ecd127086bfb] Processing by ContactsController#new as HTML
2017-02-24T20:57:50.669618+00:00 app[web.1]: I, [2017-02-24T20:57:50.669536 #4] INFO -- : [0ec752b1-0d75-42dd-83f6-ecd127086bfb] Rendering contacts/new.html.erb within layouts/application
2017-02-24T20:57:50.681558+00:00 app[web.1]: I, [2017-02-24T20:57:50.681481 #4] INFO -- : [0ec752b1-0d75-42dd-83f6-ecd127086bfb] Rendered contacts/new.html.erb within layouts/application (11.8ms)
2017-02-24T20:57:50.682909+00:00 app[web.1]: I, [2017-02-24T20:57:50.682846 #4] INFO -- : [0ec752b1-0d75-42dd-83f6-ecd127086bfb] Completed 200 OK in 30ms (Views: 14.0ms | ActiveRecord: 7.5ms)
2017-02-24T20:59:14.426470+00:00 app[web.1]: I, [2017-02-24T20:59:14.426395 #4] INFO -- : [606794a4-3f9b-417c-b3ca-72af4d8bafb6] Started POST "/contacts" for 188.83.235.112 at 2017-02-24 20:59:14 +0000
2017-02-24T20:59:14.427281+00:00 app[web.1]: I, [2017-02-24T20:59:14.427232 #4] INFO -- : [606794a4-3f9b-417c-b3ca-72af4d8bafb6] Processing by ContactsController#create as HTML
2017-02-24T20:59:14.427366+00:00 app[web.1]: I, [2017-02-24T20:59:14.427324 #4] INFO -- : [606794a4-3f9b-417c-b3ca-72af4d8bafb6] Parameters: {"utf8"=>"✓", "authenticity_token"=>"MgrtXM/8aUAYPnJ2ph4eIbsqMbLR/xXMZabcKmKh4myMlp0MdLJ2dCHnh7KshXSCqAsIzGQr0SdebpJw1v0QHw==", "contact"=>{"name"=>"Jesse Pinkman", "email"=>"jp#example.com", "comments"=>"Yo Beach!"}, "commit"=>"Submit"}
2017-02-24T20:59:14.429694+00:00 app[web.1]: D, [2017-02-24T20:59:14.429641 #4] DEBUG -- : [606794a4-3f9b-417c-b3ca-72af4d8bafb6] (0.9ms) BEGIN
2017-02-24T20:59:14.434537+00:00 app[web.1]: D, [2017-02-24T20:59:14.434485 #4] DEBUG -- : [606794a4-3f9b-417c-b3ca-72af4d8bafb6] SQL (1.3ms) INSERT INTO "contacts" ("name", "email", "comments", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Jesse Pinkman"], ["email", "jp#example.com"], ["comments", "Yo Beach!"], ["created_at", 2017-02-24 20:59:14 UTC], ["updated_at", 2017-02-24 20:59:14 UTC]]
2017-02-24T20:59:14.436712+00:00 app[web.1]: D, [2017-02-24T20:59:14.436665 #4] DEBUG -- : [606794a4-3f9b-417c-b3ca-72af4d8bafb6] (1.9ms) COMMIT
2017-02-24T20:59:14.441776+00:00 app[web.1]: I, [2017-02-24T20:59:14.441724 #4] INFO -- : [606794a4-3f9b-417c-b3ca-72af4d8bafb6] Rendering contact_mailer/contact_email.html.erb
2017-02-24T20:59:14.442284+00:00 app[web.1]: I, [2017-02-24T20:59:14.442237 #4] INFO -- : [606794a4-3f9b-417c-b3ca-72af4d8bafb6] Rendered contact_mailer/contact_email.html.erb (0.4ms)
2017-02-24T20:59:14.622612+00:00 app[web.1]: D, [2017-02-24T20:59:14.622518 #4] DEBUG -- : [606794a4-3f9b-417c-b3ca-72af4d8bafb6] ContactMailer#contact_email: processed outbound mail in 184.5ms
2017-02-24T20:59:14.749027+00:00 heroku[router]: at=info method=POST path="/contacts" host=infinite-forest-28304.herokuapp.com request_id=606794a4-3f9b-417c-b3ca-72af4d8bafb6 fwd="188.83.235.112" dyno=web.1 connect=0ms service=304ms status=500 bytes=1669
2017-02-24T20:59:14.722589+00:00 app[web.1]: I, [2017-02-24T20:59:14.722491 #4] INFO -- : [606794a4-3f9b-417c-b3ca-72af4d8bafb6] Sent mail to samuelslmoreira#hotmail.com (99.8ms)
2017-02-24T20:59:14.722632+00:00 app[web.1]: D, [2017-02-24T20:59:14.722588 #4] DEBUG -- : [606794a4-3f9b-417c-b3ca-72af4d8bafb6] Date: Fri, 24 Feb 2017 20:59:14 +0000
2017-02-24T20:59:14.722632+00:00 app[web.1]: From: jp#example.com
2017-02-24T20:59:14.722633+00:00 app[web.1]: To: samuelslmoreira#hotmail.com
2017-02-24T20:59:14.722633+00:00 app[web.1]: Message-ID: <58b09ea298a14_43fc0c75eb9c0103ae#71798652-2827-4935-9282-6b3ae7c47b44.mail>
2017-02-24T20:59:14.722634+00:00 app[web.1]: Subject: Contact Form Message
2017-02-24T20:59:14.722634+00:00 app[web.1]: Mime-Version: 1.0
2017-02-24T20:59:14.722635+00:00 app[web.1]: Content-Type: text/html;
2017-02-24T20:59:14.722635+00:00 app[web.1]: charset=UTF-8
2017-02-24T20:59:14.722635+00:00 app[web.1]: Content-Transfer-Encoding: 7bit
2017-02-24T20:59:14.722636+00:00 app[web.1]:
2017-02-24T20:59:14.722636+00:00 app[web.1]: <!DOCTYPE html>
2017-02-24T20:59:14.722637+00:00 app[web.1]: <html>
2017-02-24T20:59:14.722637+00:00 app[web.1]: <head>
2017-02-24T20:59:14.722637+00:00 app[web.1]: </head>
2017-02-24T20:59:14.722638+00:00 app[web.1]: <body>
2017-02-24T20:59:14.722638+00:00 app[web.1]: <p>
2017-02-24T20:59:14.722638+00:00 app[web.1]: You have received a message from the site's contact form, from Jesse Pinkman, jp#example.com.
2017-02-24T20:59:14.722639+00:00 app[web.1]: </p>
2017-02-24T20:59:14.722639+00:00 app[web.1]: <p>
2017-02-24T20:59:14.722639+00:00 app[web.1]:
2017-02-24T20:59:14.722640+00:00 app[web.1]: </p>
2017-02-24T20:59:14.722640+00:00 app[web.1]: </body>
2017-02-24T20:59:14.722640+00:00 app[web.1]: </html>
2017-02-24T20:59:14.722825+00:00 app[web.1]: I, [2017-02-24T20:59:14.722779 #4] INFO -- : [606794a4-3f9b-417c-b3ca-72af4d8bafb6] Completed 500 Internal Server Error in 295ms (ActiveRecord: 4.1ms)
2017-02-24T20:59:14.723286+00:00 app[web.1]: F, [2017-02-24T20:59:14.723242 #4] FATAL -- : [606794a4-3f9b-417c-b3ca-72af4d8bafb6]
2017-02-24T20:59:14.723324+00:00 app[web.1]: F, [2017-02-24T20:59:14.723287 #4] FATAL -- : [606794a4-3f9b-417c-b3ca-72af4d8bafb6] Net::SMTPFatalError (554 Please activate your Mailgun account. Check your inbox or log in to your control panel to resend the activation email.
2017-02-24T20:59:14.723325+00:00 app[web.1]: ):
2017-02-24T20:59:14.723357+00:00 app[web.1]: F, [2017-02-24T20:59:14.723324 #4] FATAL -- : [606794a4-3f9b-417c-b3ca-72af4d8bafb6]
2017-02-24T20:59:14.723390+00:00 app[web.1]: F, [2017-02-24T20:59:14.723357 #4] FATAL -- : [606794a4-3f9b-417c-b3ca-72af4d8bafb6] app/controllers/contacts_controller.rb:15:in `create'
iamsamuel:~/workspace/saasapp (master) $ clear
iamsamuel:~/workspace/saasapp (master) $ clear
iamsamuel:~/workspace/saasapp (master) $ heroku logs
2017-02-24T20:18:19.316723+00:00 app[web.1]: You have received a message from the site's contact form, from Sam, smlmrr#outlook.com.
2017-02-24T20:18:19.316724+00:00 app[web.1]: </p>
2017-02-24T20:18:19.316724+00:00 app[web.1]: <p>
2017-02-24T20:18:19.316725+00:00 app[web.1]:
2017-02-24T20:18:19.316725+00:00 app[web.1]: </p>
2017-02-24T20:18:19.316726+00:00 app[web.1]: </body>
2017-02-24T20:18:19.316726+00:00 app[web.1]: </html>
2017-02-24T20:18:19.316886+00:00 app[web.1]: I, [2017-02-24T20:18:19.316838 #4] INFO -- : [f024cbfb-df8b-4efa-8cb1-50a6a0d7881c] Completed 500 Internal Server Error in 1166ms (ActiveRecord: 4.1ms)
2017-02-24T20:18:19.317316+00:00 app[web.1]: F, [2017-02-24T20:18:19.317273 #4] FATAL -- : [f024cbfb-df8b-4efa-8cb1-50a6a0d7881c]
2017-02-24T20:18:19.317357+00:00 app[web.1]: F, [2017-02-24T20:18:19.317318 #4] FATAL -- : [f024cbfb-df8b-4efa-8cb1-50a6a0d7881c] Net::SMTPFatalError (554 Please activate your Mailgun account. Check your inbox or log in to your control panel to resend the activation email.
2017-02-24T20:18:19.317358+00:00 app[web.1]: ):
2017-02-24T20:18:19.317396+00:00 app[web.1]: F, [2017-02-24T20:18:19.317355 #4] FATAL -- : [f024cbfb-df8b-4efa-8cb1-50a6a0d7881c]
2017-02-24T20:18:19.317435+00:00 app[web.1]: F, [2017-02-24T20:18:19.317396 #4] FATAL -- : [f024cbfb-df8b-4efa-8cb1-50a6a0d7881c] app/controllers/contacts_controller.rb:15:in `create'
2017-02-24T20:18:19.520898+00:00 heroku[router]: at=info method=GET path="/favicon.ico" host=infinite-forest-28304.herokuapp.com request_id=62153ff0-bef7-4e44-958b-447fb18e7c23 fwd="188.83.235.112" dyno=web.1 connect=0ms service=1ms status=304 bytes=48
2017-02-24T20:53:16.169251+00:00 heroku[web.1]: Idling
2017-02-24T20:53:16.169901+00:00 heroku[web.1]: State changed from up to down
2017-02-24T20:53:17.034264+00:00 heroku[web.1]: Stopping all processes with SIGTERM
2017-02-24T20:53:17.078764+00:00 app[web.1]: - Gracefully stopping, waiting for requests to finish
2017-02-24T20:53:17.078952+00:00 app[web.1]: === puma shutdown: 2017-02-24 20:53:17 +0000 ===
2017-02-24T20:53:17.078957+00:00 app[web.1]: - Goodbye!
2017-02-24T20:53:17.079100+00:00 app[web.1]: Exiting
2017-02-24T20:53:17.347515+00:00 heroku[web.1]: Process exited with status 0
2017-02-24T20:57:24.680979+00:00 heroku[web.1]: Unidling
2017-02-24T20:57:24.681258+00:00 heroku[web.1]: State changed from down to starting
2017-02-24T20:57:27.221989+00:00 heroku[web.1]: Starting process with command `bin/rails server -p 44473 -e production`
2017-02-24T20:57:30.299354+00:00 app[web.1]: => Booting Puma
2017-02-24T20:57:30.299447+00:00 app[web.1]: => Rails 5.0.0 application starting in production on http://0.0.0.0:44473
2017-02-24T20:57:30.299502+00:00 app[web.1]: => Run `rails server -h` for more startup options
2017-02-24T20:57:31.229688+00:00 app[web.1]: Puma starting in single mode...
2017-02-24T20:57:31.229714+00:00 app[web.1]: * Min threads: 5, max threads: 5
2017-02-24T20:57:31.229713+00:00 app[web.1]: * Version 3.4.0 (ruby 2.3.0-p0), codename: Owl Bowl Brawl
2017-02-24T20:57:31.229716+00:00 app[web.1]: * Environment: production
2017-02-24T20:57:31.229813+00:00 app[web.1]: * Listening on tcp://0.0.0.0:44473
2017-02-24T20:57:31.230029+00:00 app[web.1]: Use Ctrl-C to stop
2017-02-24T20:57:31.421917+00:00 heroku[web.1]: State changed from starting to up
2017-02-24T20:57:32.788592+00:00 heroku[router]: at=info method=GET path="/" host=infinite-forest-28304.herokuapp.com request_id=dedd394a-498a-464d-a669-ed19fa2fd418 fwd="188.83.235.112" dyno=web.1 connect=0ms service=58ms status=200 bytes=2753
2017-02-24T20:57:32.737531+00:00 app[web.1]: I, [2017-02-24T20:57:32.737424 #4] INFO -- : [dedd394a-498a-464d-a669-ed19fa2fd418] Started GET "/" for 188.83.235.112 at 2017-02-24 20:57:32 +0000
2017-02-24T20:57:32.740219+00:00 app[web.1]: I, [2017-02-24T20:57:32.740152 #4] INFO -- : [dedd394a-498a-464d-a669-ed19fa2fd418] Processing by PagesController#home as HTML
2017-02-24T20:57:32.752357+00:00 app[web.1]: I, [2017-02-24T20:57:32.752273 #4] INFO -- : [dedd394a-498a-464d-a669-ed19fa2fd418] Rendering pages/home.html.erb within layouts/application
2017-02-24T20:57:32.753153+00:00 app[web.1]: I, [2017-02-24T20:57:32.753082 #4] INFO -- : [dedd394a-498a-464d-a669-ed19fa2fd418] Rendered pages/home.html.erb within layouts/application (0.6ms)
2017-02-24T20:57:32.759595+00:00 app[web.1]: I, [2017-02-24T20:57:32.759524 #4] INFO -- : [dedd394a-498a-464d-a669-ed19fa2fd418] Completed 200 OK in 19ms (Views: 8.6ms | ActiveRecord: 0.0ms)
2017-02-24T20:57:32.929609+00:00 heroku[router]: at=info method=GET path="/assets/application-95163fa38446d1bb6139f870d5fb932af7fa47b347b8951923c32a4565386aa6.js" host=infinite-forest-28304.herokuapp.com request_id=80d55a95-cbe8-4982-a571-bc8850567a87 fwd="188.83.235.112" dyno=web.1 connect=0ms service=1ms status=304 bytes=48
2017-02-24T20:57:32.928158+00:00 heroku[router]: at=info method=GET path="/assets/application-5ed627eba0abe94ba4e2c255c2298f55d9bca9b4ea45ded59ba1705edc5385d0.css" host=infinite-forest-28304.herokuapp.com request_id=a9c456f3-e7cd-4d6a-865f-2c8f5efbdaa7 fwd="188.83.235.112" dyno=web.1 connect=0ms service=1ms status=304 bytes=48
2017-02-24T20:57:33.143930+00:00 heroku[router]: at=info method=GET path="/assets/font-awesome/fontawesome-webfont-2932abf996373e87fbf2e950876b1962f1b57db954a1643ea68831d9fbb74da4.woff2?v=4.6.2" host=infinite-forest-28304.herokuapp.com request_id=90d78563-eaa6-4f24-a054-5c89beada59c fwd="188.83.235.112" dyno=web.1 connect=3ms service=1ms status=304 bytes=48
2017-02-24T20:57:33.402193+00:00 heroku[router]: at=info method=GET path="/favicon.ico" host=infinite-forest-28304.herokuapp.com request_id=7c20311c-bd5a-46c3-a9d5-c6266c1f9331 fwd="188.83.235.112" dyno=web.1 connect=0ms service=1ms status=304 bytes=48
2017-02-24T20:57:50.706814+00:00 heroku[router]: at=info method=GET path="/contact-us" host=infinite-forest-28304.herokuapp.com request_id=0ec752b1-0d75-42dd-83f6-ecd127086bfb fwd="188.83.235.112" dyno=web.1 connect=0ms service=35ms status=200 bytes=4317
2017-02-24T20:57:50.651067+00:00 app[web.1]: I, [2017-02-24T20:57:50.650984 #4] INFO -- : [0ec752b1-0d75-42dd-83f6-ecd127086bfb] Started GET "/contact-us" for 188.83.235.112 at 2017-02-24 20:57:50 +0000
2017-02-24T20:57:50.652579+00:00 app[web.1]: I, [2017-02-24T20:57:50.652518 #4] INFO -- : [0ec752b1-0d75-42dd-83f6-ecd127086bfb] Processing by ContactsController#new as HTML
2017-02-24T20:57:50.669618+00:00 app[web.1]: I, [2017-02-24T20:57:50.669536 #4] INFO -- : [0ec752b1-0d75-42dd-83f6-ecd127086bfb] Rendering contacts/new.html.erb within layouts/application
2017-02-24T20:57:50.681558+00:00 app[web.1]: I, [2017-02-24T20:57:50.681481 #4] INFO -- : [0ec752b1-0d75-42dd-83f6-ecd127086bfb] Rendered contacts/new.html.erb within layouts/application (11.8ms)
2017-02-24T20:57:50.682909+00:00 app[web.1]: I, [2017-02-24T20:57:50.682846 #4] INFO -- : [0ec752b1-0d75-42dd-83f6-ecd127086bfb] Completed 200 OK in 30ms (Views: 14.0ms | ActiveRecord: 7.5ms)
2017-02-24T20:59:14.426470+00:00 app[web.1]: I, [2017-02-24T20:59:14.426395 #4] INFO -- : [606794a4-3f9b-417c-b3ca-72af4d8bafb6] Started POST "/contacts" for 188.83.235.112 at 2017-02-24 20:59:14 +0000
2017-02-24T20:59:14.427281+00:00 app[web.1]: I, [2017-02-24T20:59:14.427232 #4] INFO -- : [606794a4-3f9b-417c-b3ca-72af4d8bafb6] Processing by ContactsController#create as HTML
2017-02-24T20:59:14.427366+00:00 app[web.1]: I, [2017-02-24T20:59:14.427324 #4] INFO -- : [606794a4-3f9b-417c-b3ca-72af4d8bafb6] Parameters: {"utf8"=>"✓", "authenticity_token"=>"MgrtXM/8aUAYPnJ2ph4eIbsqMbLR/xXMZabcKmKh4myMlp0MdLJ2dCHnh7KshXSCqAsIzGQr0SdebpJw1v0QHw==", "contact"=>{"name"=>"Jesse Pinkman", "email"=>"jp#example.com", "comments"=>"Yo Beach!"}, "commit"=>"Submit"}
2017-02-24T20:59:14.429694+00:00 app[web.1]: D, [2017-02-24T20:59:14.429641 #4] DEBUG -- : [606794a4-3f9b-417c-b3ca-72af4d8bafb6] (0.9ms) BEGIN
2017-02-24T20:59:14.434537+00:00 app[web.1]: D, [2017-02-24T20:59:14.434485 #4] DEBUG -- : [606794a4-3f9b-417c-b3ca-72af4d8bafb6] SQL (1.3ms) INSERT INTO "contacts" ("name", "email", "comments", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Jesse Pinkman"], ["email", "jp#example.com"], ["comments", "Yo Beach!"], ["created_at", 2017-02-24 20:59:14 UTC], ["updated_at", 2017-02-24 20:59:14 UTC]]
2017-02-24T20:59:14.436712+00:00 app[web.1]: D, [2017-02-24T20:59:14.436665 #4] DEBUG -- : [606794a4-3f9b-417c-b3ca-72af4d8bafb6] (1.9ms) COMMIT
2017-02-24T20:59:14.441776+00:00 app[web.1]: I, [2017-02-24T20:59:14.441724 #4] INFO -- : [606794a4-3f9b-417c-b3ca-72af4d8bafb6] Rendering contact_mailer/contact_email.html.erb
2017-02-24T20:59:14.442284+00:00 app[web.1]: I, [2017-02-24T20:59:14.442237 #4] INFO -- : [606794a4-3f9b-417c-b3ca-72af4d8bafb6] Rendered contact_mailer/contact_email.html.erb (0.4ms)
2017-02-24T20:59:14.622612+00:00 app[web.1]: D, [2017-02-24T20:59:14.622518 #4] DEBUG -- : [606794a4-3f9b-417c-b3ca-72af4d8bafb6] ContactMailer#contact_email: processed outbound mail in 184.5ms
2017-02-24T20:59:14.749027+00:00 heroku[router]: at=info method=POST path="/contacts" host=infinite-forest-28304.herokuapp.com request_id=606794a4-3f9b-417c-b3ca-72af4d8bafb6 fwd="188.83.235.112" dyno=web.1 connect=0ms service=304ms status=500 bytes=1669
2017-02-24T20:59:14.722589+00:00 app[web.1]: I, [2017-02-24T20:59:14.722491 #4] INFO -- : [606794a4-3f9b-417c-b3ca-72af4d8bafb6] Sent mail to samuelslmoreira#hotmail.com (99.8ms)
2017-02-24T20:59:14.722632+00:00 app[web.1]: D, [2017-02-24T20:59:14.722588 #4] DEBUG -- : [606794a4-3f9b-417c-b3ca-72af4d8bafb6] Date: Fri, 24 Feb 2017 20:59:14 +0000
2017-02-24T20:59:14.722632+00:00 app[web.1]: From: jp#example.com
2017-02-24T20:59:14.722633+00:00 app[web.1]: To: samuelslmoreira#hotmail.com
2017-02-24T20:59:14.722633+00:00 app[web.1]: Message-ID: <58b09ea298a14_43fc0c75eb9c0103ae#71798652-2827-4935-9282-6b3ae7c47b44.mail>
2017-02-24T20:59:14.722634+00:00 app[web.1]: Subject: Contact Form Message
2017-02-24T20:59:14.722634+00:00 app[web.1]: Mime-Version: 1.0
2017-02-24T20:59:14.722635+00:00 app[web.1]: Content-Type: text/html;
2017-02-24T20:59:14.722635+00:00 app[web.1]: charset=UTF-8
2017-02-24T20:59:14.722635+00:00 app[web.1]: Content-Transfer-Encoding: 7bit
2017-02-24T20:59:14.722636+00:00 app[web.1]:
2017-02-24T20:59:14.722636+00:00 app[web.1]: <!DOCTYPE html>
2017-02-24T20:59:14.722637+00:00 app[web.1]: <html>
2017-02-24T20:59:14.722637+00:00 app[web.1]: <head>
2017-02-24T20:59:14.722637+00:00 app[web.1]: </head>
2017-02-24T20:59:14.722638+00:00 app[web.1]: <body>
2017-02-24T20:59:14.722638+00:00 app[web.1]: <p>
2017-02-24T20:59:14.722638+00:00 app[web.1]: You have received a message from the site's contact form, from Jesse Pinkman, jp#example.com.
2017-02-24T20:59:14.722639+00:00 app[web.1]: </p>
2017-02-24T20:59:14.722639+00:00 app[web.1]: <p>
2017-02-24T20:59:14.722639+00:00 app[web.1]:
2017-02-24T20:59:14.722640+00:00 app[web.1]: </p>
2017-02-24T20:59:14.722640+00:00 app[web.1]: </body>
2017-02-24T20:59:14.722640+00:00 app[web.1]: </html>
2017-02-24T20:59:14.722825+00:00 app[web.1]: I, [2017-02-24T20:59:14.722779 #4] INFO -- : [606794a4-3f9b-417c-b3ca-72af4d8bafb6] Completed 500 Internal Server Error in 295ms (ActiveRecord: 4.1ms)
2017-02-24T20:59:14.723286+00:00 app[web.1]: F, [2017-02-24T20:59:14.723242 #4] FATAL -- : [606794a4-3f9b-417c-b3ca-72af4d8bafb6]
2017-02-24T20:59:14.723324+00:00 app[web.1]: F, [2017-02-24T20:59:14.723287 #4] FATAL -- : [606794a4-3f9b-417c-b3ca-72af4d8bafb6] Net::SMTPFatalError (554 Please activate your Mailgun account. Check your inbox or log in to your control panel to resend the activation email.
2017-02-24T20:59:14.723325+00:00 app[web.1]: ):
2017-02-24T20:59:14.723357+00:00 app[web.1]: F, [2017-02-24T20:59:14.723324 #4] FATAL -- : [606794a4-3f9b-417c-b3ca-72af4d8bafb6]
2017-02-24T20:59:14.723390+00:00 app[web.1]: F, [2017-02-24T20:59:14.723357 #4] FATAL -- : [606794a4-3f9b-417c-b3ca-72af4d8bafb6] app/controllers/contacts_controller.rb:15:in `create'
2017-02-24T21:30:27.890702+00:00 heroku[router]: at=info method=GET path="/" host=infinite-forest-28304.herokuapp.com request_id=ef1e2185-e94e-4a90-907e-15dad519fd59 fwd="188.83.235.112" dyno=web.1 connect=1ms service=6ms status=200 bytes=2753
2017-02-24T21:30:27.866291+00:00 app[web.1]: I, [2017-02-24T21:30:27.866202 #4] INFO -- : [ef1e2185-e94e-4a90-907e-15dad519fd59] Started GET "/" for 188.83.235.112 at 2017-02-24 21:30:27 +0000
2017-02-24T21:30:27.867090+00:00 app[web.1]: I, [2017-02-24T21:30:27.867030 #4] INFO -- : [ef1e2185-e94e-4a90-907e-15dad519fd59] Processing by PagesController#home as HTML
2017-02-24T21:30:27.868034+00:00 app[web.1]: I, [2017-02-24T21:30:27.867962 #4] INFO -- : [ef1e2185-e94e-4a90-907e-15dad519fd59] Rendering pages/home.html.erb within layouts/application
2017-02-24T21:30:27.868172+00:00 app[web.1]: I, [2017-02-24T21:30:27.868117 #4] INFO -- : [ef1e2185-e94e-4a90-907e-15dad519fd59] Rendered pages/home.html.erb within layouts/application (0.0ms)
2017-02-24T21:30:27.869109+00:00 app[web.1]: I, [2017-02-24T21:30:27.869058 #4] INFO -- : [ef1e2185-e94e-4a90-907e-15dad519fd59] Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms)
2017-02-24T21:30:28.039850+00:00 heroku[router]: at=info method=GET path="/assets/application-5ed627eba0abe94ba4e2c255c2298f55d9bca9b4ea45ded59ba1705edc5385d0.css" host=infinite-forest-28304.herokuapp.com request_id=f9b48384-ae99-4f9e-b035-6624ef9d2ce6 fwd="188.83.235.112" dyno=web.1 connect=0ms service=1ms status=304 bytes=48
2017-02-24T21:30:28.051038+00:00 heroku[router]: at=info method=GET path="/assets/application-95163fa38446d1bb6139f870d5fb932af7fa47b347b8951923c32a4565386aa6.js" host=infinite-forest-28304.herokuapp.com request_id=7b1f62bf-5aca-4ac1-b926-5c3219b3ccac fwd="188.83.235.112" dyno=web.1 connect=1ms service=2ms status=304 bytes=48
2017-02-24T21:30:28.279062+00:00 heroku[router]: at=info method=GET path="/assets/font-awesome/fontawesome-webfont-2932abf996373e87fbf2e950876b1962f1b57db954a1643ea68831d9fbb74da4.woff2?v=4.6.2" host=infinite-forest-28304.herokuapp.com request_id=d1522ce1-c16b-4525-aa55-08c6f45713c8 fwd="188.83.235.112" dyno=web.1 connect=0ms service=1ms status=304 bytes=48
2017-02-24T21:30:29.186402+00:00 heroku[router]: at=info method=GET path="/favicon.ico" host=infinite-forest-28304.herokuapp.com request_id=1cec8754-06b9-4b20-ad32-77976a359e33 fwd="188.83.235.112" dyno=web.1 connect=0ms service=1ms status=304 bytes=48
Read the error message:
Net::SMTPFatalError (554 Please activate your Mailgun account. Check your inbox or log in to your control panel to resend the activation email.
Just activate your account.
Ok. As the logs say and as #GrahamSlick already answered, your mailgun account is not verified. If you claim that the account is verified make sure that the credentials you used in
your config/environment.rb are the correct ones that belong to the verified account and ensure that heroku uses the correct credentials. The logs say that your account is not verified. May be you want to check your settings with mailgun again and see whether they tell you something about having an inactive account. Good luck.
You have to add a domain, verified it then you can send mails from mailgun.
I ran into the exact same issue. I even tried with just CURL to make sure it had nothing to do with rails or heroku. I double checked that my domain was validated.
I ended up opening a support ticket. They got back to me within a few hours and said "now its good to go" and sure enough it works.
So it's either bugs on their end, or they purposefully require manual oversight for some accounts. Not a great first impression, but it's good to see their support responded quickly.
I have deployed my app to heroku but and I can see the app but the app is NOT accessing the mongolab database. I have tried resetting the database in console with
$ heroku run rake db:reset
but I get this error.
failed with error 13: "not authorized on ENV['MONGOID_DATABASE'] to execute command { dropDatabase: 1 }"
See https://github.com/mongodb/mongo/blob/master/docs/errors.md
Not sure what I am doing wrong, I have not setup an app with mongoid on heroku before, this is my first time
-UPDATE-
Here is the end of the log I have that seems to show the post is not working.
$ heroku logs
2015-09-25T16:20:15.770927+00:00 heroku[router]: at=info method=POST path="/managers" host=beta.herokuapp.com request_id=95709038-02e9-45b1-8300-0aebc287f6c1 fwd="162.239.42.196" dyno=web.1 connect=0ms service=178ms status=500 bytes=1480
2015-09-25T16:20:15.770408+00:00 app[web.1]: D, [2015-09-25T16:20:15.770342 #3] DEBUG -- : MOPED: 10.152.165.9:29821 QUERY database=ENV['MONGOID_DATABASE'] collection=managers selector={"email"=>"sample#email.com"} flags=[] limit=-1 skip=0 batch_size=nil fields={:_id=>1} runtime: 1.0352ms
Here are the router logs...
$ heroku logs --ps router
2015-09-25T20:40:46.935184+00:00 heroku[router]: at=info method=POST path="/managers" host=beta.herokuapp.com request_id=c1673463-a69f-4111-bd4d-01fdb5516ad0 fwd="162.239.42.196" dyno=web.1 connect=2ms service=109ms status=500 bytes=1480
2015-09-25T20:40:47.285029+00:00 heroku[router]: at=info method=GET path="/favicon.ico" host=beta.herokuapp.com request_id=1e998283-b02b-4cc5-83f6-7996a6991531 fwd="162.239.42.196" dyno=web.1 connect=1ms service=2ms status=200 bytes=143
2015-09-26T04:45:32.833599+00:00 heroku[router]: at=info method=GET path="/favicon.ico" host=beta.herokuapp.com request_id=59ccc2e7-18d4-4c08-8b08-a653f5d11714 fwd="2602:30a:2ef2:ac40:acb1:9144:79b4:affb,66.249.88.51" dyno=web.1 connect=1ms service=4ms status=200 bytes=143
I also see it failing to query the database
2015-09-26T05:03:39.852170+00:00 app[web.1]: Parameters: {"utf8"=>"✓", "authenticity_token"=>"WVGY+XLD...A=", "manager"=>{"name"=>"Blah Blah", "company"=>"Blah Blah CO.", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "commit"=>"Sign up"}
2015-09-26T05:03:40.138442+00:00 app[web.1]: D, [2015-09-26T05:03:40.138321 #3] DEBUG -- : MOPED: 10.152.165.9:29821 COMMAND database=admin command={:ismaster=>1} runtime: 23.5306ms
2015-09-26T05:03:40.146776+00:00 app[web.1]: Completed 500 Internal Server Error in 294ms
2015-09-26T05:03:40.146782+00:00 app[web.1]: Completed 500 Internal Server Error in 294ms
2015-09-26T05:03:40.152205+00:00 app[web.1]:
2015-09-26T05:03:40.152208+00:00 app[web.1]: Moped::Errors::QueryFailure (The operation: #<Moped::Protocol::Query
2015-09-26T05:03:40.152209+00:00 app[web.1]: #length=112
2015-09-26T05:03:40.152211+00:00 app[web.1]: #request_id=4
2015-09-26T05:03:40.152212+00:00 app[web.1]: #response_to=0
2015-09-26T05:03:40.152214+00:00 app[web.1]: #op_code=2004
2015-09-26T05:03:40.152215+00:00 app[web.1]: #flags=[]
2015-09-26T05:03:40.152216+00:00 app[web.1]: #full_collection_name="ENV['MONGOID_DATABASE'].managers"
2015-09-26T05:03:40.152218+00:00 app[web.1]: #skip=0
2015-09-26T05:03:40.152219+00:00 app[web.1]: #limit=-1
2015-09-26T05:03:40.152222+00:00 app[web.1]: #selector={"email"=>"sample#email.com"}
2015-09-26T05:03:40.152224+00:00 app[web.1]: #fields={:_id=>1}>
2015-09-26T05:03:40.152225+00:00 app[web.1]: failed with error 13: "not authorized for query on ENV['MONGOID_DATABASE'].managers"
2015-09-26T05:03:40.152227+00:00 app[web.1]:
2015-09-26T05:03:40.152228+00:00 app[web.1]: See https://github.com/mongodb/mongo/blob/master/docs/errors.md
I figured it out. The db was not connecting because the mongoid.yml file was incorrect. I tweaked the yml file and added the URI to the heroku variables and it worked correctly.