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'm using wicked_pdf, working fine. However, the server seems to render/execute wicked twice for only one call, resulting in one pdf-file. Can anyone tell me why? The server log looks like this:
2016-03-16T21:53:11.659341+00:00 app[web.1]: Started GET "/wpdf" for 99.99.99.99 at 2016-03-16 21:53:11 +0000
2016-03-16T21:53:11.661184+00:00 app[web.1]: Processing by SomeStoriesController#wpdf as HTML
2016-03-16T21:53:11.661632+00:00 app[web.1]: ***************WICKED***************
2016-03-16T21:53:11.663620+00:00 app[web.1]: Rendered some_stories/wpdf.html.erb (1.1ms)
2016-03-16T21:53:13.128754+00:00 heroku[router]: at=info method=GET path="/wpdf" host=xxxx.herokuapp.com request_id=3ca3a32a-2c40-4052-b7fb-8d333b7277c6 fwd="99.99.99" dyno=web.1 connect=0ms service=1477ms status=200 bytes=18490
2016-03-16T21:53:13.132369+00:00 app[web.1]: Rendered text template (0.0ms)
2016-03-16T21:53:13.132480+00:00 app[web.1]: Sent data file_name.pdf (0.5ms)
2016-03-16T21:53:13.132673+00:00 app[web.1]: Completed 200 OK in 1471ms (Views: 0.4ms | ActiveRecord: 0.0ms)
2016-03-16T21:53:13.362617+00:00 app[web.1]: Started GET "/wpdf" for 99.99.99.99 at 2016-03-16 21:53:13 +0000
2016-03-16T21:53:13.363827+00:00 app[web.1]: Processing by SomeStoriesController#wpdf as HTML
2016-03-16T21:53:13.364250+00:00 app[web.1]: ***************WICKED***************
2016-03-16T21:53:13.365987+00:00 app[web.1]: Rendered some_stories/wpdf.html.erb (1.1ms)
2016-03-16T21:53:14.468550+00:00 heroku[router]: at=info method=GET path="/wpdf" host=xxxx.herokuapp.com request_id=5b70cf38-bc29-45fd-8287-3a01b0b1372a fwd="99.99.99.99" dyno=web.1 connect=0ms service=1114ms status=200 bytes=18490
2016-03-16T21:53:14.472015+00:00 app[web.1]: Rendered text template (0.0ms)
2016-03-16T21:53:14.472110+00:00 app[web.1]: Sent data file_name.pdf (0.4ms)
2016-03-16T21:53:14.472271+00:00 app[web.1]: Completed 200 OK in 1108ms (Views: 0.3ms | ActiveRecord: 0.0ms)
I am also experiencing the same issue. It is only occurring in Chrome and is not happening in Firefox or IE.
Looks like a bug in Chrome - Chrome sends two requests when downloading a PDF (and cancels one of them)
Looks like it will be fixed in v54 of Chrome.
I have updated the User profile so that they can now add a bio to their profile. This has all been setup using Devise.
Everything works fine locally but when uploaded to Heroku the updates I make aren't saving. If I go the user profile and try to update the bio field it comes up with the message "You updated your account successfully." However I go back to my account and the bio hasn't been updated.
Have looked through the Heroku logs but cant seem to see where the error is originating.
heroku logs
2014-08-27T15:53:42.548525+00:00 app[web.1]:
2014-08-27T15:54:22.190453+00:00 app[web.1]: Processing by Devise::RegistrationsController#edit as HTML
2014-08-27T15:54:22.351283+00:00 app[web.1]: Rendered layouts/_header.html.erb (6.0ms)
2014-08-27T15:54:22.369810+00:00 app[web.1]: Completed 200 OK in 169ms (Views: 159.1ms | ActiveRecord: 1.6ms)
2014-08-27T15:53:42.548527+00:00 app[web.1]:
2014-08-27T15:53:42.548524+00:00 app[web.1]: app/views/devise/registrations/edit.html.erb:5:in `_app_views_devise_registrations_edit_html_erb__1928983160583724081_70011601502660'
2014-08-27T15:53:42.548522+00:00 app[web.1]: app/views/devise/registrations/edit.html.erb:20:in `block in _app_views_devise_registrations_edit_html_erb__1928983160583724081_70011601502660'
2014-08-27T15:54:31.415029+00:00 app[web.1]: Started PUT "/users" for 88.150.202.202 at 2014-08-27 15:54:31 +0000
2014-08-27T15:54:31.550935+00:00 app[web.1]: Rendered layouts/_header.html.erb (0.7ms)
2014-08-27T15:54:31.551733+00:00 app[web.1]: Completed 200 OK in 133ms (Views: 8.7ms | ActiveRecord: 3.6ms)
2014-08-27T15:54:31.418364+00:00 app[web.1]: Processing by Devise::RegistrationsController#update as HTML
2014-08-27T15:54:31.418419+00:00 app[web.1]: Parameters: {"utf8"=>"✓", "authenticity_token"=>"TgCTObji/2GV1qfIk2RHwChFmgM0CUnoe685JPIX9Os=", "user"=>{"name"=>"Patrick's Chairs", "email"=>"patrick#frnsh.co.uk", "bio"=>"Established in 1990.", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]", "current_password"=>"[FILTERED]"}, "commit"=>"Update"}
2014-08-27T15:54:31.423532+00:00 app[web.1]: PG::FeatureNotSupported: ERROR: cached plan must not change result type
2014-08-27T15:54:31.423536+00:00 app[web.1]: : SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1
2014-08-27T15:54:31.549502+00:00 app[web.1]: Rendered devise/registrations/edit.html.erb within layouts/application (6.2ms)
2014-08-27T15:54:31.551447+00:00 app[web.1]: Rendered layouts/_footer.html.erb (0.3ms)
2014-08-27T15:53:42.546526+00:00 app[web.1]: Rendered devise/registrations/edit.html.erb within layouts/application (5.6ms)
2014-08-27T15:53:42.548493+00:00 app[web.1]:
2014-08-27T15:54:39.694397+00:00 heroku[router]: at=info method=POST path="/users" host=frnsh.herokuapp.com request_id=3df598cf-b036-454f-ac72-f82f4f061f1c fwd="88.150.202.202" dyno=web.1 connect=1ms service=183ms status=302 bytes=1471
2014-08-27T15:54:43.781382+00:00 app[web.1]: Started GET "/vendors/2/listings" for 88.150.202.202 at 2014-08-27 15:54:43 +0000
2014-08-27T15:54:39.922353+00:00 app[web.1]: Processing by ListingsController#index as HTML
2014-08-27T15:55:21.207841+00:00 app[web.1]: Started GET "/users/edit" for 88.150.202.202 at 2014-08-27 15:55:21 +0000
2014-08-27T15:54:45.893146+00:00 app[web.1]: Rendered layouts/_header.html.erb (0.6ms)
2014-08-27T15:54:45.894409+00:00 app[web.1]: Completed 200 OK in 2017ms (Views: 2004.4ms | ActiveRecord: 4.3ms)
2014-08-27T15:55:21.222538+00:00 app[web.1]: Rendered devise/registrations/edit.html.erb within layouts/application (7.9ms)
2014-08-27T15:55:21.224995+00:00 app[web.1]: Rendered layouts/_footer.html.erb (0.5ms)
2014-08-27T15:54:52.034601+00:00 app[web.1]: Rendered layouts/_header.html.erb (0.6ms)
2014-08-27T15:54:52.035765+00:00 app[web.1]: Completed 200 OK in 1005ms (Views: 1000.3ms | ActiveRecord: 2.6ms)
2014-08-27T15:55:15.124819+00:00 heroku[router]: at=info method=GET path="/" host=frnsh.herokuapp.com request_id=f69f0226-2b3e-4055-8715-ccb3d4fcf9e4 fwd="88.150.202.202" dyno=web.1 connect=1ms service=3369ms status=304 bytes=1300
2014-08-27T15:54:22.184559+00:00 app[web.1]: Started GET "/users/edit" for 88.150.202.202 at 2014-08-27 15:54:22 +0000
2014-08-27T15:54:22.274881+00:00 app[web.1]: Rendered devise/registrations/edit.html.erb within layouts/application (63.6ms)
2014-08-27T15:54:22.351865+00:00 app[web.1]: Rendered layouts/_footer.html.erb (0.3ms)
2014-08-27T15:55:11.167151+00:00 app[web.1]: Started PUT "/users" for 88.150.202.202 at 2014-08-27 15:55:11 +0000
2014-08-27T15:55:11.365097+00:00 app[web.1]: Completed 302 Found in 195ms (ActiveRecord: 12.9ms)
2014-08-27T15:55:11.763023+00:00 app[web.1]: Processing by ListingsController#index as HTML
2014-08-27T15:54:39.519920+00:00 app[web.1]: Processing by Devise::RegistrationsController#update as HTML
2014-08-27T15:54:39.519965+00:00 app[web.1]: Parameters: {"utf8"=>"✓", "authenticity_token"=>"TgCTObji/2GV1qfIk2RHwChFmgM0CUnoe685JPIX9Os=", "user"=>{"name"=>"Patrick's Chairs", "email"=>"patrick#frnsh.co.uk", "bio"=>"Established in 1990.", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]", "current_password"=>"[FILTERED]"}, "commit"=>"Update"}
2014-08-27T15:54:39.689254+00:00 app[web.1]: Redirected to http://frnsh.herokuapp.com/
2014-08-27T15:54:41.378964+00:00 app[web.1]: Rendered layouts/_header.html.erb (0.7ms)
2014-08-27T15:55:21.210544+00:00 app[web.1]: Processing by Devise::RegistrationsController#edit as HTML
2014-08-27T15:55:21.224329+00:00 app[web.1]: Rendered layouts/_header.html.erb (0.7ms)
2014-08-27T15:55:21.225475+00:00 app[web.1]: Completed 200 OK in 15ms (Views: 11.8ms | ActiveRecord: 1.2ms)
2014-08-27T15:54:41.382440+00:00 app[web.1]: Completed 200 OK in 1460ms (Views: 1450.4ms | ActiveRecord: 7.5ms)
2014-08-27T15:54:51.030299+00:00 app[web.1]: Processing by ListingsController#index as HTML
2014-08-27T15:54:51.030307+00:00 app[web.1]: Parameters: {"vendor_id"=>"2"}
2014-08-27T15:54:39.516642+00:00 app[web.1]: Started PUT "/users" for 88.150.202.202 at 2014-08-27 15:54:39 +0000
2014-08-27T15:54:39.689444+00:00 app[web.1]: Completed 302 Found in 168ms (ActiveRecord: 10.7ms)
2014-08-27T15:54:54.768259+00:00 heroku[router]: at=info method=GET path="/users/edit" host=frnsh.herokuapp.com request_id=e3dd3fa2-fa1b-40b3-9603-846755f41e17 fwd="88.150.202.202" dyno=web.1 connect=1ms service=19ms status=200 bytes=1137
2014-08-27T15:54:52.032715+00:00 app[web.1]: Rendered listings/index.html.erb within layouts/application (998.0ms)
2014-08-27T15:54:52.035325+00:00 app[web.1]: Rendered layouts/_footer.html.erb (0.4ms)
2014-08-27T15:56:27.305893+00:00 app[web.1]: Processing by ListingsController#index as HTML
2014-08-27T15:56:11.945134+00:00 heroku[router]: at=info method=POST path="/users/sign_out" host=frnsh.herokuapp.com request_id=5cf03750-9e5c-4881-8fde-79c45aa79e16 fwd="88.150.202.202" dyno=web.1 connect=1ms service=18ms status=302 bytes=1282
2014-08-27T15:55:17.567881+00:00 app[web.1]: Processing by ListingsController#index as HTML
2014-08-27T15:55:11.760136+00:00 app[web.1]: Started GET "/" for 88.150.202.202 at 2014-08-27 15:55:11 +0000
2014-08-27T15:55:18.639706+00:00 app[web.1]: Rendered layouts/_header.html.erb (1.0ms)
2014-08-27T15:55:15.099044+00:00 app[web.1]: Rendered listings/index.html.erb within layouts/application (3327.5ms)
2014-08-27T15:55:15.115501+00:00 app[web.1]: Rendered layouts/_footer.html.erb (0.3ms)
2014-08-27T15:55:15.111230+00:00 app[web.1]: Rendered layouts/_header.html.erb (0.6ms)
2014-08-27T15:55:15.116236+00:00 app[web.1]: Completed 200 OK in 3350ms (Views: 3335.1ms | ActiveRecord: 13.2ms)
2014-08-27T15:55:18.640676+00:00 app[web.1]: Completed 200 OK in 1071ms (Views: 1060.3ms | ActiveRecord: 5.4ms)
2014-08-27T15:56:12.392430+00:00 app[web.1]: Processing by ListingsController#index as HTML
2014-08-27T15:56:47.170713+00:00 app[web.1]: Rendered layouts/_header.html.erb (0.5ms)
2014-08-27T15:56:14.001538+00:00 app[web.1]: Rendered layouts/_header.html.erb (0.4ms)
2014-08-27T15:56:14.002454+00:00 app[web.1]: Completed 200 OK in 1610ms (Views: 1603.3ms | ActiveRecord: 4.6ms)
2014-08-27T15:56:24.434839+00:00 app[web.1]: Rendered layouts/_header.html.erb (0.6ms)
2014-08-27T15:56:24.509393+00:00 app[web.1]: Completed 200 OK in 1495ms (Views: 1486.5ms | ActiveRecord: 6.3ms)
2014-08-27T15:56:24.433386+00:00 app[web.1]: Rendered listings/index.html.erb within layouts/application (1415.5ms)
2014-08-27T15:56:24.508725+00:00 app[web.1]: Rendered layouts/_footer.html.erb (73.4ms)
2014-08-27T15:56:23.012166+00:00 app[web.1]: Started GET "/" for 88.150.202.202 at 2014-08-27 15:56:23 +0000
2014-08-27T15:56:28.366087+00:00 app[web.1]: Rendered layouts/_header.html.erb (0.6ms)
2014-08-27T15:56:28.370378+00:00 app[web.1]: Completed 200 OK in 1058ms (Views: 1017.4ms | ActiveRecord: 25.7ms)
2014-08-27T15:56:31.819357+00:00 app[web.1]: Processing by Devise::RegistrationsController#edit as HTML
2014-08-27T15:56:31.833761+00:00 app[web.1]: Rendered layouts/_header.html.erb (0.7ms)
2014-08-27T15:56:31.834471+00:00 app[web.1]: Completed 200 OK in 15ms (Views: 8.5ms | ActiveRecord: 1.3ms)
2014-08-27T15:56:47.169292+00:00 app[web.1]: Rendered listings/index.html.erb within layouts/application (1043.0ms)
2014-08-27T15:56:47.171690+00:00 app[web.1]: Rendered layouts/_footer.html.erb (0.4ms)
2014-08-27T15:56:47.171834+00:00 app[web.1]: Completed 200 OK in 1073ms (Views: 1049.7ms | ActiveRecord: 6.2ms)
2014-08-27T15:56:11.926879+00:00 app[web.1]: Started DELETE "/users/sign_out" for 88.150.202.202 at 2014-08-27 15:56:11 +0000
2014-08-27T15:56:11.929998+00:00 app[web.1]: Processing by Devise::SessionsController#destroy as HTML
2014-08-27T15:56:11.930022+00:00 app[web.1]: Parameters: {"authenticity_token"=>"TgCTObji/2GV1qfIk2RHwChFmgM0CUnoe685JPIX9Os="}
2014-08-27T15:56:11.940178+00:00 app[web.1]: Redirected to http://frnsh.herokuapp.com/
2014-08-27T15:56:11.940333+00:00 app[web.1]: Completed 302 Found in 10ms (ActiveRecord: 2.6ms)
2014-08-27T15:56:23.014719+00:00 app[web.1]: Processing by ListingsController#index as HTML
2014-08-27T15:55:21.245141+00:00 heroku[router]: at=info method=GET path="/users/edit" host=frnsh.herokuapp.com request_id=d0ff6ceb-b122-49a4-81fb-f19f47af5159 fwd="88.150.202.202" dyno=web.1 connect=59ms service=30ms status=304 bytes=1158
2014-08-27T15:55:18.646548+00:00 heroku[router]: at=info method=GET path="/vendors/2/listings" host=frnsh.herokuapp.com request_id=2ee8b1f0-1e83-4ed4-9f79-db2d4ab09b20 fwd="88.150.202.202" dyno=web.1 connect=3ms service=1086ms status=304 bytes=1299
2014-08-27T15:56:41.100700+00:00 app[web.1]: Started GET "/" for 88.150.202.202 at 2014-08-27 15:56:41 +0000
2014-08-27T15:56:49.537748+00:00 app[web.1]: Processing by Devise::RegistrationsController#edit as HTML
2014-08-27T15:56:49.557637+00:00 app[web.1]: Rendered layouts/_header.html.erb (0.7ms)
2014-08-27T15:56:49.558682+00:00 app[web.1]: Completed 200 OK in 21ms (Views: 12.4ms | ActiveRecord: 5.2ms)
2014-08-27T15:55:54.720242+00:00 heroku[router]: at=info method=GET path="/users/edit" host=frnsh.herokuapp.com request_id=52ceb1bb-5808-40b9-82fd-c9e4da7a0915 fwd="88.150.202.202" dyno=web.1 connect=7ms service=94ms status=200 bytes=1150
2014-08-27T15:56:24.512579+00:00 heroku[router]: at=info method=GET path="/" host=frnsh.herokuapp.com request_id=bf7cbaeb-bfc8-459e-bfcd-ffe8e515d88d fwd="88.150.202.202" dyno=web.1 connect=1ms service=1504ms status=200 bytes=1160
2014-08-27T15:56:22.578880+00:00 heroku[router]: at=info method=POST path="/users/sign_in" host=frnsh.herokuapp.com request_id=a86a31c1-ab21-4eda-9f11-b6640bef0cfd fwd="88.150.202.202" dyno=web.1 connect=1ms service=157ms status=302 bytes=1276
2014-08-27T15:56:28.376839+00:00 heroku[router]: at=info method=GET path="/vendors/2/listings" host=frnsh.herokuapp.com request_id=0dc25dfa-5636-411b-8bd2-fbd4ae97cd6f fwd="88.150.202.202" dyno=web.1 connect=2ms service=1212ms status=200 bytes=1279
2014-08-27T15:56:49.560503+00:00 heroku[router]: at=info method=GET path="/users/edit" host=frnsh.herokuapp.com request_id=13fb4e09-c563-406a-be6f-1a939c751ec9 fwd="88.150.202.202" dyno=web.1 connect=1ms service=34ms status=304 bytes=1157
2014-08-27T15:56:42.639325+00:00 heroku[router]: at=info method=GET path="/" host=frnsh.herokuapp.com request_id=b3a53e92-c663-49b6-b168-6efad61db54c fwd="88.150.202.202" dyno=web.1 connect=1ms service=1543ms status=200 bytes=1300
2014-08-27T15:56:47.181104+00:00 heroku[router]: at=info method=GET path="/vendors/2/listings" host=frnsh.herokuapp.com request_id=272f6a86-ff34-4699-a364-fd9e26cfac38 fwd="88.150.202.202" dyno=web.1 connect=4ms service=1092ms status=304 bytes=1299
2014-08-27T16:01:15.323746+00:00 heroku[router]: at=info method=GET path="/favicon.ico" host=frnsh.herokuapp.com request_id=cf38ec59-913e-4cfd-ade1-12ba96042879 fwd="50.163.139.118" dyno=web.1 connect=4ms service=5ms status=200 bytes=842
2014-08-27T16:00:47.061078+00:00 app[web.1]: Rendered listings/index.html.erb within layouts/application (1511.9ms)
2014-08-27T16:00:47.065668+00:00 app[web.1]: Rendered layouts/_footer.html.erb (0.3ms)
2014-08-27T16:00:47.064197+00:00 app[web.1]: Rendered layouts/_header.html.erb (0.6ms)
2014-08-27T16:00:47.066061+00:00 app[web.1]: Completed 200 OK in 1520ms (Views: 1501.9ms | ActiveRecord: 16.6ms)
User model (user.rb)
class User < ActiveRecord::Base
if Rails.env.development?
has_attached_file :image, :styles => { :medium => "200x200", :thumb => "100x100>" }, :default_url => "default.jpg"
else
has_attached_file :image, :styles => { :medium => "200x200", :thumb => "100x100>" }, :default_url => "default.jpg",
:storage => :dropbox,
:dropbox_credentials => Rails.root.join("config/dropbox.yml"),
:path => ":style/:id_:filename"
end
validates_attachment_content_type :image, :content_type => ["image/jpg", "image/jpeg", "image/png"]
devise :database_authenticatable, :registerable,
:recoverable, :rememberable, :trackable, :validatable
validates :name, presence: true
has_many :listings, dependent: :destroy
has_many :sales, class_name: "Order", foreign_key: "seller_id"
has_many :purchases, class_name: "Order", foreign_key: "buyer_id"
end
I really need to deploy data to my heroku app but I don't understand why it's not working. I've read the documentation and I have seeded my database in the seeds.rb file like so:
user = User.create(band_name: "The Rubies", email: "therubies#gmail.com", user_name: "therubies1000", password: "password", password_confirmation: "password")
MusicVideo.create([
{song_title: "Ruby Gems"
venue: "The Gypsy Lounge"
location: "Boston"
description: "First time in Boston"
url_id: "http://vimeo.com/75032263"
name: "hiphop"
user: user},
{song_title: "Ruby Blood Love"
venue: "The Masquerade"
location: "Atlanta"
description: "5th circuit tour at the Masquerade"
url_id: "http://vimeo.com/28020056"
name: "alternative"
user: user},
{song_title: "Ruby vs. Python"
venue: "Launch Academy"
location: "Boston"
description: "A love song about Ruby"
url_id: "http://vimeo.com/67825649"
name: "hiphop"
user: user},
{song_title: "Farewell Launch Academy"
venue: "Los Locos Tavern"
location: "New York City"
description: "My heartfelt farewell balad for Launch Academy"
url_id: "http://vimeo.com/60347451"
name: "country"
user: user},
{song_title: "Solar Molecules"
venue: "Miami Central"
location: "Miami"
description: "Our band's first single"
url_id: "http://vimeo.com/61605196"
name: "pop"
user: user},
{song_title: "Lovely Miss Ruby!"
venue: "2120 nightclub"
location: "Boston"
description: "The song that made us famous"
url_id: "http://vimeo.com/68269314"
name: "pop"
user: user},
{song_title: "Lady Ruby vs. Lady Python"
venue: "Longhorn Bar & Grill"
location: "Austin"
description: "Battle of the bands 2012"
url_id: "http://vimeo.com/71137905"
name: "rock"
user: user},
{song_title: "The Seductress: Rails"
venue: "Igloo Bar"
location: "Denver"
description: "The crowd goes nuts at 2:14"
url_id: "http://vimeo.com/70360517"
name: "hiphop"
user: user}
])
Then I've run the heroku rake db:migrate and then heroku rake db:seed as demonstrated in the rails app project website. I'd try to troubleshoot this but I don't know where to start or how to begin. These commands should work. I could really use some help with this.
----EDIT-----
When I use the two rake commands, I don't receive an error at all. I get this:
➜ musikfish git:(master) ✗ heroku run rake db:migrate
Running `rake db:migrate` attached to terminal... up, run.8472
➜ musikfish git:(master) ✗ heroku run rake db:seed
Running `rake db:seed` attached to terminal... up, run.9065
The problem is that when I go to my heroku app, nothing is there.
musikfish git:(master) ✗ heroku logs
2014-04-29T01:27:43.662686+00:00 heroku[run.9065]: Starting process with command `bundle exec rake db:seed`
2014-04-29T01:27:43.446432+00:00 heroku[run.9065]: State changed from starting to up
2014-04-29T01:27:48.599137+00:00 heroku[run.9065]: Process exited with status 0
2014-04-29T01:27:48.615271+00:00 heroku[run.9065]: State changed from up to complete
2014-04-29T01:27:59.356149+00:00 heroku[router]: at=info method=GET path=/ host=musikfish.herokuapp.com request_id=9198db15-ceb6-47d0-bf5c-9c0c8f86ed00 fwd="76.19.195.114" dyno=web.1 connect=13ms service=26ms status=304 bytes=963
2014-04-29T01:27:59.437007+00:00 heroku[router]: at=info method=GET path=/assets/vendor/modernizr-aee7c485b9900b5743cd0108ba6c4203.js host=musikfish.herokuapp.com request_id=8fff456c-414b-44d5-9745-c287e21ae29f fwd="76.19.195.114" dyno=web.1 connect=0ms service=4ms status=304 bytes=133
2014-04-29T01:27:59.447087+00:00 heroku[router]: at=info method=GET path=/assets/application-35b8d7e622749de25608aa28d2dab9bf.css host=musikfish.herokuapp.com request_id=5b704bcd-11c5-445e-a3a4-3b5a9771b162 fwd="76.19.195.114" dyno=web.1 connect=0ms service=6ms status=304 bytes=133
2014-04-29T01:27:59.452743+00:00 heroku[router]: at=info method=GET path=/assets/application-f22c7c9cfd4209f8467d10162777b447.js host=musikfish.herokuapp.com request_id=99c37dd8-c9e7-414d-833c-b2355a0a7d78 fwd="76.19.195.114" dyno=web.1 connect=1ms service=6ms status=304 bytes=133
2014-04-29T01:27:59.339867+00:00 app[web.1]: Started GET "/" for 76.19.195.114 at 2014-04-29 01:27:59 +0000
2014-04-29T01:27:59.339876+00:00 app[web.1]: Started GET "/" for 76.19.195.114 at 2014-04-29 01:27:59 +0000
2014-04-29T01:27:59.342081+00:00 app[web.1]: Processing by MusicVideosController#index as HTML
2014-04-29T01:27:59.350172+00:00 app[web.1]: Rendered music_videos/index.html.erb within layouts/application (4.2ms)
2014-04-29T01:27:59.350164+00:00 app[web.1]: Rendered music_videos/index.html.erb within layouts/application (4.2ms)
2014-04-29T01:27:59.342088+00:00 app[web.1]: Processing by MusicVideosController#index as HTML
2014-04-29T01:27:59.351185+00:00 app[web.1]: Completed 200 OK in 9ms (Views: 4.4ms | ActiveRecord: 2.3ms)
2014-04-29T01:27:59.351191+00:00 app[web.1]: Completed 200 OK in 9ms (Views: 4.4ms | ActiveRecord: 2.3ms)
2014-04-29T01:27:59.707282+00:00 heroku[router]: at=info method=GET path=/assets/concert-fa42c0b37cf58a39f5c756d58acc0cff.jpg host=musikfish.herokuapp.com request_id=e62134aa-1020-4402-b507-e90f4cb2c2fa fwd="76.19.195.114" dyno=web.1 connect=1ms service=4ms status=304 bytes=133
2014-04-29T01:28:01.827756+00:00 heroku[router]: at=info method=POST path=/users/sign_out host=musikfish.herokuapp.com request_id=ba2049ed-925a-419f-8d8f-703025441667 fwd="76.19.195.114" dyno=web.1 connect=1ms service=31ms status=302 bytes=1008
2014-04-29T01:28:01.933934+00:00 heroku[router]: at=info method=GET path=/ host=musikfish.herokuapp.com request_id=82444cc8-b75c-4f81-a5b7-a0c4dbebae00 fwd="76.19.195.114" dyno=web.1 connect=2ms service=11ms status=302 bytes=1174
2014-04-29T01:28:02.019241+00:00 heroku[router]: at=info method=GET path=/users/sign_in host=musikfish.herokuapp.com request_id=ff98915d-2970-4369-81c4-b3335cf6fb50 fwd="76.19.195.114" dyno=web.1 connect=1ms service=24ms status=200 bytes=5117
2014-04-29T01:28:01.815374+00:00 app[web.1]: Parameters: {"authenticity_token"=>"6U9MH33BoyP3riIQVH9xRUG/jTGHDbDc9haqkb1wm+c="}
2014-04-29T01:28:01.812383+00:00 app[web.1]: Started DELETE "/users/sign_out" for 76.19.195.114 at 2014-04-29 01:28:01 +0000
2014-04-29T01:28:01.812441+00:00 app[web.1]: Started DELETE "/users/sign_out" for 76.19.195.114 at 2014-04-29 01:28:01 +0000
2014-04-29T01:28:01.836620+00:00 app[web.1]: Redirected to http://musikfish.herokuapp.com/
2014-04-29T01:28:01.815244+00:00 app[web.1]: Processing by Devise::SessionsController#destroy as HTML
2014-04-29T01:28:01.815318+00:00 app[web.1]: Processing by Devise::SessionsController#destroy as HTML
2014-04-29T01:28:01.836976+00:00 app[web.1]: Completed 302 Found in 21ms (ActiveRecord: 4.7ms)
2014-04-29T01:28:01.815409+00:00 app[web.1]: Parameters: {"authenticity_token"=>"6U9MH33BoyP3riIQVH9xRUG/jTGHDbDc9haqkb1wm+c="}
2014-04-29T01:28:01.836730+00:00 app[web.1]: Redirected to http://musikfish.herokuapp.com/
2014-04-29T01:28:01.837036+00:00 app[web.1]: Completed 302 Found in 21ms (ActiveRecord: 4.7ms)
2014-04-29T01:28:01.931057+00:00 app[web.1]: Started GET "/" for 76.19.195.114 at 2014-04-29 01:28:01 +0000
2014-04-29T01:28:01.931067+00:00 app[web.1]: Started GET "/" for 76.19.195.114 at 2014-04-29 01:28:01 +0000
2014-04-29T01:28:01.933233+00:00 app[web.1]: Processing by MusicVideosController#index as HTML
2014-04-29T01:28:01.933240+00:00 app[web.1]: Processing by MusicVideosController#index as HTML
2014-04-29T01:28:01.934294+00:00 app[web.1]: Completed 401 Unauthorized in 1ms
2014-04-29T01:28:01.934300+00:00 app[web.1]: Completed 401 Unauthorized in 1ms
2014-04-29T01:28:02.003346+00:00 app[web.1]: Started GET "/users/sign_in" for 76.19.195.114 at 2014-04-29 01:28:02 +0000
2014-04-29T01:28:02.003359+00:00 app[web.1]: Started GET "/users/sign_in" for 76.19.195.114 at 2014-04-29 01:28:02 +0000
2014-04-29T01:28:02.005391+00:00 app[web.1]: Processing by Devise::SessionsController#new as HTML
2014-04-29T01:28:02.005397+00:00 app[web.1]: Processing by Devise::SessionsController#new as HTML
2014-04-29T01:28:02.016010+00:00 app[web.1]: Rendered devise/sessions/new.html.erb within layouts/application (8.1ms)
2014-04-29T01:28:02.016022+00:00 app[web.1]: Rendered devise/sessions/new.html.erb within layouts/application (8.1ms)
2014-04-29T01:28:02.016885+00:00 app[web.1]: Completed 200 OK in 11ms (Views: 9.6ms | ActiveRecord: 0.0ms)
2014-04-29T01:28:02.016891+00:00 app[web.1]: Completed 200 OK in 11ms (Views: 9.6ms | ActiveRecord: 0.0ms)
2014-04-29T01:28:02.165810+00:00 heroku[router]: at=info method=GET path=/assets/record-b8785487ad26187346eb4a4f3ca44b8e.jpg host=musikfish.herokuapp.com request_id=761b5080-013c-4308-8073-6ae64ee63fe5 fwd="76.19.195.114" dyno=web.1 connect=1ms service=4ms status=304 bytes=133
2014-04-29T01:28:24.575301+00:00 heroku[router]: at=info method=POST path=/users/sign_in host=musikfish.herokuapp.com request_id=95ef1998-d961-4783-8685-d7d463c04cd8 fwd="76.19.195.114" dyno=web.1 connect=0ms service=134ms status=200 bytes=5158
2014-04-29T01:28:24.444910+00:00 app[web.1]: Started POST "/users/sign_in" for 76.19.195.114 at 2014-04-29 01:28:24 +0000
2014-04-29T01:28:24.450353+00:00 app[web.1]: Processing by Devise::SessionsController#create as HTML
2014-04-29T01:28:24.450395+00:00 app[web.1]: Processing by Devise::SessionsController#create as HTML
2014-04-29T01:28:24.450480+00:00 app[web.1]: Parameters: {"utf8"=>"✓", "authenticity_token"=>"8oU2ObllOpGkDy+clk2mfnxi9y/oY/JpEWJAGVVEmNA=", "user"=>{"user_name"=>"therubies1000", "password"=>"[FILTERED]", "remember_me"=>"1"}, "commit"=>"Sign In!"}
2014-04-29T01:28:24.456080+00:00 app[web.1]: Completed 401 Unauthorized in 5ms
2014-04-29T01:28:24.457165+00:00 app[web.1]: Processing by Devise::SessionsController#new as HTML
2014-04-29T01:28:24.457172+00:00 app[web.1]: Processing by Devise::SessionsController#new as HTML
2014-04-29T01:28:24.457213+00:00 app[web.1]: Parameters: {"utf8"=>"✓", "authenticity_token"=>"8oU2ObllOpGkDy+clk2mfnxi9y/oY/JpEWJAGVVEmNA=", "user"=>{"user_name"=>"therubies1000", "password"=>"[FILTERED]", "remember_me"=>"1"}, "commit"=>"Sign In!"}
2014-04-29T01:28:24.450529+00:00 app[web.1]: Parameters: {"utf8"=>"✓", "authenticity_token"=>"8oU2ObllOpGkDy+clk2mfnxi9y/oY/JpEWJAGVVEmNA=", "user"=>{"user_name"=>"therubies1000", "password"=>"[FILTERED]", "remember_me"=>"1"}, "commit"=>"Sign In!"}
2014-04-29T01:28:24.456071+00:00 app[web.1]: Completed 401 Unauthorized in 5ms
2014-04-29T01:28:24.457231+00:00 app[web.1]: Parameters: {"utf8"=>"✓", "authenticity_token"=>"8oU2ObllOpGkDy+clk2mfnxi9y/oY/JpEWJAGVVEmNA=", "user"=>{"user_name"=>"therubies1000", "password"=>"[FILTERED]", "remember_me"=>"1"}, "commit"=>"Sign In!"}
2014-04-29T01:28:24.570577+00:00 app[web.1]: Rendered devise/sessions/new.html.erb within layouts/application (9.5ms)
2014-04-29T01:28:24.570588+00:00 app[web.1]: Rendered devise/sessions/new.html.erb within layouts/application (9.5ms)
2014-04-29T01:28:24.571495+00:00 app[web.1]: Completed 200 OK in 114ms (Views: 11.0ms | ActiveRecord: 0.0ms)
2014-04-29T01:28:24.571501+00:00 app[web.1]: Completed 200 OK in 114ms (Views: 11.0ms | ActiveRecord: 0.0ms)
2014-04-29T01:28:24.444975+00:00 app[web.1]: Started POST "/users/sign_in" for 76.19.195.114 at 2014-04-29 01:28:24 +0000
2014-04-29T01:28:24.685158+00:00 heroku[router]: at=info method=GET path=/assets/application-f22c7c9cfd4209f8467d10162777b447.js host=musikfish.herokuapp.com request_id=88423114-72bc-49e8-bb7d-cf5b19fc1908 fwd="76.19.195.114" dyno=web.1 connect=2ms service=6ms status=304 bytes=133
2014-04-29T01:28:24.868171+00:00 heroku[router]: at=info method=GET path=/assets/vendor/modernizr-aee7c485b9900b5743cd0108ba6c4203.js host=musikfish.herokuapp.com request_id=5724d3e6-9603-4b84-84fb-3ba5c696c74f fwd="76.19.195.114" dyno=web.1 connect=118ms service=41ms status=304 bytes=133
2014-04-29T01:31:54.118937+00:00 heroku[router]: at=info method=POST path=/users/sign_in host=musikfish.herokuapp.com request_id=a92e7853-43a3-48b5-9f42-6e55beaf1be2 fwd="76.19.195.114" dyno=web.1 connect=5ms service=173ms status=200 bytes=5158
2014-04-29T01:31:53.955209+00:00 app[web.1]: Started POST "/users/sign_in" for 76.19.195.114 at 2014-04-29 01:31:53 +0000
2014-04-29T01:31:53.957652+00:00 app[web.1]: Processing by Devise::SessionsController#create as HTML
2014-04-29T01:31:53.957659+00:00 app[web.1]: Processing by Devise::SessionsController#create as HTML
2014-04-29T01:31:53.957698+00:00 app[web.1]: Parameters: {"utf8"=>"✓", "authenticity_token"=>"8oU2ObllOpGkDy+clk2mfnxi9y/oY/JpEWJAGVVEmNA=", "user"=>{"user_name"=>"therubies1000", "password"=>"[FILTERED]", "remember_me"=>"1"}, "commit"=>"Sign In!"}
2014-04-29T01:31:53.957720+00:00 app[web.1]: Parameters: {"utf8"=>"✓", "authenticity_token"=>"8oU2ObllOpGkDy+clk2mfnxi9y/oY/JpEWJAGVVEmNA=", "user"=>{"user_name"=>"therubies1000", "password"=>"[FILTERED]", "remember_me"=>"1"}, "commit"=>"Sign In!"}
2014-04-29T01:31:53.968990+00:00 app[web.1]: Completed 401 Unauthorized in 11ms
2014-04-29T01:31:53.969002+00:00 app[web.1]: Completed 401 Unauthorized in 11ms
2014-04-29T01:31:53.971927+00:00 app[web.1]: Processing by Devise::SessionsController#new as HTML
2014-04-29T01:31:53.955199+00:00 app[web.1]: Started POST "/users/sign_in" for 76.19.195.114 at 2014-04-29 01:31:53 +0000
2014-04-29T01:31:53.971933+00:00 app[web.1]: Processing by Devise::SessionsController#new as HTML
2014-04-29T01:31:53.971976+00:00 app[web.1]: Parameters: {"utf8"=>"✓", "authenticity_token"=>"8oU2ObllOpGkDy+clk2mfnxi9y/oY/JpEWJAGVVEmNA=", "user"=>{"user_name"=>"therubies1000", "password"=>"[FILTERED]", "remember_me"=>"1"}, "commit"=>"Sign In!"}
2014-04-29T01:31:53.971991+00:00 app[web.1]: Parameters: {"utf8"=>"✓", "authenticity_token"=>"8oU2ObllOpGkDy+clk2mfnxi9y/oY/JpEWJAGVVEmNA=", "user"=>{"user_name"=>"therubies1000", "password"=>"[FILTERED]", "remember_me"=>"1"}, "commit"=>"Sign In!"}
2014-04-29T01:31:54.117705+00:00 app[web.1]: Rendered devise/sessions/new.html.erb within layouts/application (5.9ms)
2014-04-29T01:31:54.117717+00:00 app[web.1]: Rendered devise/sessions/new.html.erb within layouts/application (5.9ms)
2014-04-29T01:31:54.118464+00:00 app[web.1]: Completed 200 OK in 146ms (Views: 7.2ms | ActiveRecord: 0.0ms)
2014-04-29T01:31:54.118470+00:00 app[web.1]: Completed 200 OK in 146ms (Views: 7.2ms | ActiveRecord: 0.0ms)
2014-04-29T01:31:54.237788+00:00 heroku[router]: at=info method=GET path=/assets/application-35b8d7e622749de25608aa28d2dab9bf.css host=musikfish.herokuapp.com request_id=77e5536c-f9af-4285-a236-a011c1355b81 fwd="76.19.195.114" dyno=web.1 connect=4ms service=9ms status=304 bytes=133
2014-04-29T01:31:54.243275+00:00 heroku[router]: at=info method=GET path=/assets/application-f22c7c9cfd4209f8467d10162777b447.js host=musikfish.herokuapp.com request_id=8ca4ebaf-739d-4e4a-901b-e616e2b7033b fwd="76.19.195.114" dyno=web.1 connect=6ms service=11ms status=304 bytes=133
2014-04-29T01:31:54.264123+00:00 heroku[router]: at=info method=GET path=/assets/vendor/modernizr-aee7c485b9900b5743cd0108ba6c4203.js host=musikfish.herokuapp.com request_id=f2a2d4e9-4163-425d-b26b-5255a6a1f5fe fwd="76.19.195.114" dyno=web.1 connect=6ms service=9ms status=304 bytes=133
2014-04-29T01:31:54.772855+00:00 heroku[router]: at=info method=GET path=/assets/record-b8785487ad26187346eb4a4f3ca44b8e.jpg host=musikfish.herokuapp.com request_id=d103b167-2ed5-4667-874f-679e3d07b859 fwd="76.19.195.114" dyno=web.1 connect=2ms service=5ms status=304 bytes=133
2014-04-29T01:32:03.174817+00:00 heroku[router]: at=info method=GET path=/ host=musikfish.herokuapp.com request_id=cd1eb130-8cf7-453a-982f-b7a74ccafe3e fwd="76.19.195.114" dyno=web.1 connect=11ms service=16ms status=302 bytes=1226
2014-04-29T01:32:03.158631+00:00 app[web.1]: Processing by MusicVideosController#index as HTML
2014-04-29T01:32:03.158689+00:00 app[web.1]: Processing by MusicVideosController#index as HTML
2014-04-29T01:32:03.159895+00:00 app[web.1]: Completed 401 Unauthorized in 1ms
2014-04-29T01:32:03.159937+00:00 app[web.1]: Completed 401 Unauthorized in 1ms
2014-04-29T01:32:03.156335+00:00 app[web.1]: Started GET "/" for 76.19.195.114 at 2014-04-29 01:32:03 +0000
2014-04-29T01:32:03.156448+00:00 app[web.1]: Started GET "/" for 76.19.195.114 at 2014-04-29 01:32:03 +0000
2014-04-29T01:32:03.570966+00:00 heroku[router]: at=info method=GET path=/users/sign_in host=musikfish.herokuapp.com request_id=0bcfa714-0019-4860-aa40-c18140690458 fwd="76.19.195.114" dyno=web.1 connect=121ms service=165ms status=200 bytes=5117
2014-04-29T01:32:03.511737+00:00 app[web.1]: Started GET "/users/sign_in" for 76.19.195.114 at 2014-04-29 01:32:03 +0000
2014-04-29T01:32:03.511725+00:00 app[web.1]: Started GET "/users/sign_in" for 76.19.195.114 at 2014-04-29 01:32:03 +0000
2014-04-29T01:32:03.514596+00:00 app[web.1]: Processing by Devise::SessionsController#new as HTML
2014-04-29T01:32:03.527802+00:00 app[web.1]: Completed 200 OK in 13ms (Views: 10.8ms | ActiveRecord: 0.0ms)
2014-04-29T01:32:03.527809+00:00 app[web.1]: Completed 200 OK in 13ms (Views: 10.8ms | ActiveRecord: 0.0ms)
2014-04-29T01:32:03.514590+00:00 app[web.1]: Processing by Devise::SessionsController#new as HTML
2014-04-29T01:32:03.527020+00:00 app[web.1]: Rendered devise/sessions/new.html.erb within layouts/application (9.6ms)
2014-04-29T01:32:03.527010+00:00 app[web.1]: Rendered devise/sessions/new.html.erb within layouts/application (9.6ms)
Have you successfully seeded a database locally?
You can also try putting puts lines in your seed file to ensure that the code is being run. (IE, after MusicVideo.create, say puts "Music Videos created!", which will be written to your console when running rake db:seed)
My hunch is that your models are failing validation; perhaps try using create! instead of create to see if an error is thrown.
This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.
Closed 9 years ago.
I can't correctly pinpoint what exactly is causing the issue
This is a new website I just pushed to heroku, ran heroku rake db:migrate, and heroku restart
It works just fine locally but this happens in production
Here's the relevant portion of heroku logs
2013-05-03T23:16:27.189569+00:00 app[web.1]:
2013-05-03T23:16:27.189569+00:00 app[web.1]: Started GET "/signup" for xx.xx.xx.
xxx at 2013-05-03 23:16:27 +0000
2013-05-03T23:16:27.253381+00:00 app[web.1]: Rendered shared/_error_messages.h
tml.erb (0.4ms)
2013-05-03T23:16:27.253381+00:00 app[web.1]: Rendered layouts/_shim.html.erb (
0.0ms)
2013-05-03T23:16:27.253381+00:00 app[web.1]: Rendered layouts/_header.html.erb
(2.9ms)
2013-05-03T23:16:27.253381+00:00 app[web.1]: Processing by UsersController#new a
s HTML
2013-05-03T23:16:27.253381+00:00 app[web.1]: Rendered users/new.html.erb withi
n layouts/application (43.8ms)
2013-05-03T23:16:27.253381+00:00 app[web.1]: Completed 200 OK in 60ms (Views: 48
.4ms | ActiveRecord: 1.6ms | Solr: 0.0ms)
2013-05-03T23:16:27.922135+00:00 heroku[router]: at=info method=GET path=/favico
n.ico host= sleepy-river-xxxx.herokuapp.com fwd="xx.xx.xx.xxx" dyno=web.1 connect
=1ms service=4ms status=304 bytes=0
2013-05-03T23:16:27.268937+00:00 heroku[router]: at=info method=GET path=/signup
host= sleepy-river-xxxx.herokuapp.com fwd="xx.xx.xx.xxx" dyno=web.1 connect=6ms
service=81ms status=304 bytes=0
2013-05-03T23:16:47.934099+00:00 app[web.1]:
2013-05-03T23:16:47.934099+00:00 app[web.1]:
2013-05-03T23:16:47.934099+00:00 app[web.1]: Started POST "/users" for xx.xx.xx.
xxx at 2013-05-03 23:16:47 +0000
2013-05-03T23:16:48.248989+00:00 app[web.1]: Redirected to http://sleepy-river-xxxx.herokuapp.com/home
2013-05-03T23:16:48.248989+00:00 app[web.1]: Parameters: {"utf8"=>"???", "auth
enticity_token"=>"m+NCbnqHJk81yWgyY+Y709mQZ0N04MpW8MLGLXjbleA=", "user"=>{"name"
=>"testuser", "email"=>"testuser#email.com", "password"=>"[FILTERED]", "passwo
rd_confirmation"=>"[FILTERED]"}, "commit"=>"Create my account"}
2013-05-03T23:16:48.248989+00:00 app[web.1]: Completed 302 Found in 311ms (Activ
eRecord: 70.6ms)
2013-05-03T23:16:48.248989+00:00 app[web.1]: Processing by UsersController#creat
e as HTML
2013-05-03T23:16:48.435265+00:00 app[web.1]:
2013-05-03T23:16:48.435265+00:00 app[web.1]:
2013-05-03T23:16:48.435265+00:00 app[web.1]: Started GET "/home" for 75.82.32.16
4 at 2013-05-03 23:16:48 +0000
2013-05-03T23:16:48.649331+00:00 app[web.1]: FROM pg_attribute a L
EFT JOIN pg_attrdef d
2013-05-03T23:16:48.649331+00:00 app[web.1]: WHERE a.attrelid = '"h
ashtags"'::regclass
2013-05-03T23:16:48.649331+00:00 app[web.1]: LINE 4: WHERE a.attrel
id = '"hashtags"'::regclass
2013-05-03T23:16:48.649331+00:00 app[web.1]: ON a.attrelid = d.a
drelid AND a.attnum = d.adnum
2013-05-03T23:16:48.649617+00:00 app[web.1]: 23: <%= link_to "#"+h.hashtag
s, "#" %><br>
2013-05-03T23:16:48.649617+00:00 app[web.1]: 25:
2013-05-03T23:16:48.649845+00:00 app[web.1]: Rendered shared/_user_info.html.e
rb (4.4ms)
2013-05-03T23:16:48.649331+00:00 app[web.1]: ActionView::Template::Error (PGErro
r: ERROR: relation "hashtags" does not exist
2013-05-03T23:16:48.649617+00:00 app[web.1]: 22: <% #htags.each do |h| %>
2013-05-03T23:16:48.649617+00:00 app[web.1]:
2013-05-03T23:16:48.649845+00:00 app[web.1]: Processing by StaticPagesController
#home as HTML
2013-05-03T23:16:48.649331+00:00 app[web.1]:
2013-05-03T23:16:48.649331+00:00 app[web.1]:
^
2013-05-03T23:16:48.649331+00:00 app[web.1]: : SELECT a.attname, for
mat_type(a.atttypid, a.atttypmod), d.adsrc, a.attnotnull
2013-05-03T23:16:48.649617+00:00 app[web.1]: app/views/static_pages/home.html.
erb:22:in `_app_views_static_pages_home_html_erb___3097102804728997358_70437520'
2013-05-03T23:16:48.649845+00:00 app[web.1]:
2013-05-03T23:16:48.649331+00:00 app[web.1]: AND a.attnum > 0 AND
NOT a.attisdropped
2013-05-03T23:16:48.649331+00:00 app[web.1]: ORDER BY a.attnum
2013-05-03T23:16:48.649617+00:00 app[web.1]: 19: <div class="box">
2013-05-03T23:16:48.649617+00:00 app[web.1]: 24: <% end %>
2013-05-03T23:16:48.649617+00:00 app[web.1]: ):
2013-05-03T23:16:48.649617+00:00 app[web.1]: 20: Tagged Posts
2013-05-03T23:16:48.649617+00:00 app[web.1]: 21: <br>
2013-05-03T23:16:48.649845+00:00 app[web.1]: Rendered shared/_stats.html.erb (
38.9ms)
2013-05-03T23:16:48.649845+00:00 app[web.1]: Completed 500 Internal Server Error
in 209ms
2013-05-03T23:16:48.649845+00:00 app[web.1]: Rendered static_pages/home.html.e
rb within layouts/application (156.1ms)
2013-05-03T23:16:48.654562+00:00 heroku[router]: at=info method=GET path=/home h
ost=sleepy-river-xxxx.herokuapp.com fwd="xx.xx.xx.xxx" dyno=web.1 connect=1ms se
rvice=219ms status=500 bytes=643
2013-05-03T23:16:48.253053+00:00 heroku[router]: at=info method=POST path=/users
host= sleepy-river-xxxx.herokuapp.com fwd="xx.xx.xx.xxx" dyno=web.1 connect=3ms
service=395ms status=302 bytes=109
Something is wrong with the template that is loaded after a user signs up. Try it locally, I bet you'll find the answer you need.
Added hint:
Look at the line Relation HashTags does not exist. That holds the key to your problem.
I bet if you run
heroku run rake db:setup
and
heroku run rake db:migrate
Your problem will be solved