wkhtmltopdf rendering twice? - ruby-on-rails

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.

Related

Update To Profile Not Saving On Heroku

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

Can someone help me understand why data is not being seeded to Heroku?

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.

Most current version uploading locally but old version still remains on heroku

I've tried tons of things but can't figure it out... I can't find anything in the heroku logs, what could I be missing? This is the heroku logs..
I think it could be a problem in gemfile or gemfile.lock since it skips the gemfile.lock because of windows I think, but don't see how that would affect anything as it was updating fine earlier, thoughts?
EDIT: I've just realized that on my Huroku the name of my application is pinterestingx(pinterestingx.herokuapp.com) but when I git push heroku master my address bar says omr-pinterestingx.herokuapp.com so they don't match, might this be the problem? How can I solve this?
$ heroku logs
←[36m2014-01-24T05:26:36.093302+00:00 app[web.1]:←[0m bin/rails:4:in `require'
←[36m2014-01-24T05:26:36.093043+00:00 app[web.1]:←[0m /app/vendor/bundle/ruby/
2.0.0/gems/railties-4.0.0/lib/rails/commands.rb:73:in `tap'
←[36m2014-01-24T05:26:36.093302+00:00 app[web.1]:←[0m [2014-01-24 05:26:36] INFO
going to shutdown ...
←[36m2014-01-24T05:26:36.093302+00:00 app[web.1]:←[0m bin/rails:4:in `<main>'
←[36m2014-01-24T05:26:36.093773+00:00 app[web.1]:←[0m [2014-01-24 05:26:36] INFO
WEBrick::HTTPServer#start done.
←[36m2014-01-24T05:26:36.093773+00:00 app[web.1]:←[0m Exiting
←[36m2014-01-24T05:26:36.562152+00:00 heroku[web.1]:←[0m Starting process with c
ommand `bin/rails server -p 12335 -e $RAILS_ENV`
←[36m2014-01-24T05:26:37.442566+00:00 heroku[web.1]:←[0m Process exited with sta
tus 143
←[36m2014-01-24T05:26:40.284565+00:00 app[web.1]:←[0m [2014-01-24 05:26:40] INFO
ruby 2.0.0 (2013-11-22) [x86_64-linux]
←[36m2014-01-24T05:26:40.284565+00:00 app[web.1]:←[0m [2014-01-24 05:26:40] INFO
WEBrick 1.3.1
←[36m2014-01-24T05:26:40.284565+00:00 app[web.1]:←[0m [2014-01-24 05:26:40] INFO
WEBrick::HTTPServer#start: pid=2 port=12335
←[36m2014-01-24T05:26:40.557417+00:00 heroku[web.1]:←[0m State changed from star
ting to up
←[36m2014-01-24T05:27:17.022181+00:00 app[web.1]:←[0m Started GET "/" for 108.22
7.81.48 at 2014-01-24 05:27:17 +0000
←[36m2014-01-24T05:27:17.022181+00:00 app[web.1]:←[0m => Rails 4.0.0 application
starting in production on http://0.0.0.0:12335
←[36m2014-01-24T05:27:17.022181+00:00 app[web.1]:←[0m => Run `rails server -h` f
or more startup options
←[36m2014-01-24T05:27:17.022181+00:00 app[web.1]:←[0m Started GET "/" for 108.22
7.81.48 at 2014-01-24 05:27:17 +0000
←[36m2014-01-24T05:27:17.022181+00:00 app[web.1]:←[0m => Booting WEBrick
←[36m2014-01-24T05:27:17.022181+00:00 app[web.1]:←[0m => Ctrl-C to shutdown serv
er
←[36m2014-01-24T05:27:17.140538+00:00 app[web.1]:←[0m Processing by PinsControll
er#index as HTML
←[36m2014-01-24T05:27:17.140538+00:00 app[web.1]:←[0m Processing by PinsControll
er#index as HTML
←[33m2014-01-24T05:27:17.243058+00:00 heroku[router]:←[0m at=info method=GET pat
h=/ host=omr-pinterestingx.herokuapp.com request_id=95dd9900-74ee-4861-8e51-3ec3
eedc9753 fwd="108.227.81.48" dyno=web.1 connect=0ms service=259ms status=304 byt
es=0
←[36m2014-01-24T05:27:17.232081+00:00 app[web.1]:←[0m Rendered pins/index.html
.erb within layouts/application (64.3ms)
←[36m2014-01-24T05:27:17.232081+00:00 app[web.1]:←[0m Rendered pins/index.html
.erb within layouts/application (64.3ms)
←[36m2014-01-24T05:27:17.235160+00:00 app[web.1]:←[0m Rendered layouts/_header
.html.erb (1.1ms)
←[36m2014-01-24T05:27:17.235552+00:00 app[web.1]:←[0m Completed 200 OK in 95ms (
Views: 47.3ms | ActiveRecord: 22.5ms)
←[36m2014-01-24T05:27:17.235160+00:00 app[web.1]:←[0m Rendered layouts/_header
.html.erb (1.1ms)
←[36m2014-01-24T05:27:17.235552+00:00 app[web.1]:←[0m Completed 200 OK in 95ms (
Views: 47.3ms | ActiveRecord: 22.5ms)
←[33m2014-01-24T05:27:17.501260+00:00 heroku[router]:←[0m at=info method=GET pat
h=/assets/application-181cdfad867b7ff79ab77b7ed8cc2b59.css host=omr-pinteresting
x.herokuapp.com request_id=5d154d11-1ea3-4b32-b124-2e3fcf22144a fwd="108.227.81.
48" dyno=web.1 connect=0ms service=6ms status=200 bytes=99534
←[33m2014-01-24T05:27:17.519230+00:00 heroku[router]:←[0m at=info method=GET pat
h=/assets/application-3e804bc17a248fb868fa056958a4fd83.js host=omr-pinterestingx
.herokuapp.com request_id=7cd7bcde-3dc3-4b8a-88ca-8f3c8e74e4ee fwd="108.227.81.4
8" dyno=web.1 connect=0ms service=7ms status=200 bytes=141097
←[32m2014-01-24T05:27:27.489739+00:00 heroku[api]:←[0m Starting process with com
mand `bundle exec rake db:migrate` by norisjavier#gmail.com
←[35m2014-01-24T05:27:30.799091+00:00 heroku[run.7322]:←[0m Awaiting client
←[35m2014-01-24T05:27:30.829842+00:00 heroku[run.7322]:←[0m Starting process wit
h command `bundle exec rake db:migrate`
←[35m2014-01-24T05:27:31.022053+00:00 heroku[run.7322]:←[0m State changed from s
tarting to up
←[35m2014-01-24T05:27:35.520815+00:00 heroku[run.7322]:←[0m Process exited with
status 0
←[35m2014-01-24T05:27:35.534073+00:00 heroku[run.7322]:←[0m State changed from u
p to complete
←[36m2014-01-24T05:27:50.038920+00:00 app[web.1]:←[0m Rendered pins/index.html
.erb within layouts/application (6.9ms)
←[36m2014-01-24T05:27:50.030117+00:00 app[web.1]:←[0m Processing by PinsControll
er#index as HTML
←[36m2014-01-24T05:27:50.027937+00:00 app[web.1]:←[0m Started GET "/" for 108.22
7.81.48 at 2014-01-24 05:27:50 +0000
←[36m2014-01-24T05:27:50.030117+00:00 app[web.1]:←[0m Processing by PinsControll
er#index as HTML
←[36m2014-01-24T05:27:50.038920+00:00 app[web.1]:←[0m Rendered pins/index.html
.erb within layouts/application (6.9ms)
←[36m2014-01-24T05:27:50.040698+00:00 app[web.1]:←[0m Completed 200 OK in 10ms (
Views: 4.2ms | ActiveRecord: 5.0ms)
←[36m2014-01-24T05:27:50.040698+00:00 app[web.1]:←[0m Completed 200 OK in 10ms (
Views: 4.2ms | ActiveRecord: 5.0ms)
←[36m2014-01-24T05:27:50.040257+00:00 app[web.1]:←[0m Rendered layouts/_header
.html.erb (0.7ms)
←[36m2014-01-24T05:27:50.040257+00:00 app[web.1]:←[0m Rendered layouts/_header
.html.erb (0.7ms)
←[36m2014-01-24T05:27:50.027937+00:00 app[web.1]:←[0m Started GET "/" for 108.22
7.81.48 at 2014-01-24 05:27:50 +0000
←[33m2014-01-24T05:27:50.043730+00:00 heroku[router]:←[0m at=info method=GET pat
h=/ host=omr-pinterestingx.herokuapp.com request_id=114be963-6367-4dc4-ae80-fd2b
0c4404c4 fwd="108.227.81.48" dyno=web.1 connect=1ms service=19ms status=304 byte
s=0
←[33m2014-01-24T05:27:50.251339+00:00 heroku[router]:←[0m at=info method=GET pat
h=/assets/application-181cdfad867b7ff79ab77b7ed8cc2b59.css host=omr-pinteresting
x.herokuapp.com request_id=bc73f88b-d742-4ecd-8c46-6d28593cf00f fwd="108.227.81.
48" dyno=web.1 connect=0ms service=6ms status=304 bytes=0
←[33m2014-01-24T05:27:50.265148+00:00 heroku[router]:←[0m at=info method=GET pat
h=/assets/application-3e804bc17a248fb868fa056958a4fd83.js host=omr-pinterestingx
.herokuapp.com request_id=7c09708a-ab5e-40f1-a578-8cbd8a50d238 fwd="108.227.81.4
8" dyno=web.1 connect=0ms service=3ms status=304 bytes=0
←[36m2014-01-24T05:39:15.281248+00:00 app[web.1]:←[0m Started GET "/" for 108.22
7.81.48 at 2014-01-24 05:39:15 +0000
←[36m2014-01-24T05:39:15.281248+00:00 app[web.1]:←[0m Started GET "/" for 108.22
7.81.48 at 2014-01-24 05:39:15 +0000
←[36m2014-01-24T05:39:15.282548+00:00 app[web.1]:←[0m Processing by PinsControll
er#index as HTML
←[36m2014-01-24T05:39:15.282548+00:00 app[web.1]:←[0m Processing by PinsControll
er#index as HTML
←[36m2014-01-24T05:39:15.290690+00:00 app[web.1]:←[0m Rendered pins/index.html
.erb within layouts/application (6.7ms)
←[36m2014-01-24T05:39:15.292301+00:00 app[web.1]:←[0m Rendered layouts/_header
.html.erb (0.7ms)
←[36m2014-01-24T05:39:15.290690+00:00 app[web.1]:←[0m Rendered pins/index.html
.erb within layouts/application (6.7ms)
←[36m2014-01-24T05:39:15.292374+00:00 app[web.1]:←[0m Rendered layouts/_header
.html.erb (0.7ms)
←[36m2014-01-24T05:39:15.292828+00:00 app[web.1]:←[0m Completed 200 OK in 10ms (
Views: 4.2ms | ActiveRecord: 5.0ms)
←[36m2014-01-24T05:39:15.292930+00:00 app[web.1]:←[0m Completed 200 OK in 10ms (
Views: 4.2ms | ActiveRecord: 5.0ms)
←[33m2014-01-24T05:39:15.297080+00:00 heroku[router]:←[0m at=info method=GET pat
h=/ host=omr-pinterestingx.herokuapp.com request_id=e5e731a4-2e38-4dc3-9bd4-f16d
d70b6d6f fwd="108.227.81.48" dyno=web.1 connect=1ms service=18ms status=304 byte
s=0
←[33m2014-01-24T05:39:15.726275+00:00 heroku[router]:←[0m at=info method=GET pat
h=/assets/application-181cdfad867b7ff79ab77b7ed8cc2b59.css host=omr-pinteresting
x.herokuapp.com request_id=dbadec13-1ea9-419d-84d0-018366c1d2df fwd="108.227.81.
48" dyno=web.1 connect=2ms service=13ms status=200 bytes=99534
←[33m2014-01-24T05:39:15.736938+00:00 heroku[router]:←[0m at=info method=GET pat
h=/assets/application-3e804bc17a248fb868fa056958a4fd83.js host=omr-pinterestingx
.herokuapp.com request_id=be9f3e8f-22cd-46f8-a38e-70499e520bbb fwd="108.227.81.4
8" dyno=web.1 connect=1ms service=6ms status=304 bytes=0
←[36m2014-01-24T05:39:20.124660+00:00 app[web.1]:←[0m Started DELETE "/users/sig
n_out" for 108.227.81.48 at 2014-01-24 05:39:20 +0000
←[36m2014-01-24T05:39:20.124660+00:00 app[web.1]:←[0m Started DELETE "/users/sig
n_out" for 108.227.81.48 at 2014-01-24 05:39:20 +0000
←[36m2014-01-24T05:39:20.126980+00:00 app[web.1]:←[0m Processing by Devise::Sess
ionsController#destroy as HTML
←[36m2014-01-24T05:39:20.126980+00:00 app[web.1]:←[0m Parameters: {"authentici
ty_token"=>"1AVdG1oEBZrR2kBVmArxtsQfDriMwhdxepobzVeZjUo="}
←[36m2014-01-24T05:39:20.127074+00:00 app[web.1]:←[0m Parameters: {"authentici
ty_token"=>"1AVdG1oEBZrR2kBVmArxtsQfDriMwhdxepobzVeZjUo="}
←[36m2014-01-24T05:39:20.126980+00:00 app[web.1]:←[0m Processing by Devise::Sess
ionsController#destroy as HTML
←[33m2014-01-24T05:39:20.202045+00:00 heroku[router]:←[0m at=info method=POST pa
th=/users/sign_out host=omr-pinterestingx.herokuapp.com request_id=a0332921-4adc
-4f55-ac16-1d76b01116b8 fwd="108.227.81.48" dyno=web.1 connect=2ms service=86ms
status=302 bytes=105
←[36m2014-01-24T05:39:20.196532+00:00 app[web.1]:←[0m Redirected to http://omr-p
interestingx.herokuapp.com/
←[36m2014-01-24T05:39:20.196789+00:00 app[web.1]:←[0m Completed 302 Found in 70m
s (ActiveRecord: 6.1ms)
←[36m2014-01-24T05:39:20.196532+00:00 app[web.1]:←[0m Redirected to http://omr-p
interestingx.herokuapp.com/
←[36m2014-01-24T05:39:20.188336+00:00 app[web.1]:←[0m [deprecated] I18n.enforce_
available_locales will default to true in the future. If you really want to skip
validation of your locale you can set I18n.enforce_available_locales = false to
avoid this message.
←[36m2014-01-24T05:39:20.196735+00:00 app[web.1]:←[0m Completed 302 Found in 70m
s (ActiveRecord: 6.1ms)
←[36m2014-01-24T05:39:20.570672+00:00 app[web.1]:←[0m Rendered pages/_home.htm
l.erb (1.0ms)
←[36m2014-01-24T05:39:20.555106+00:00 app[web.1]:←[0m Started GET "/" for 108.22
7.81.48 at 2014-01-24 05:39:20 +0000
←[36m2014-01-24T05:39:20.555106+00:00 app[web.1]:←[0m Started GET "/" for 108.22
7.81.48 at 2014-01-24 05:39:20 +0000
←[36m2014-01-24T05:39:20.556383+00:00 app[web.1]:←[0m Processing by PinsControll
er#index as HTML
←[36m2014-01-24T05:39:20.573939+00:00 app[web.1]:←[0m Rendered pins/index.html
.erb within layouts/application (16.1ms)
←[36m2014-01-24T05:39:20.556383+00:00 app[web.1]:←[0m Processing by PinsControll
er#index as HTML
←[36m2014-01-24T05:39:20.573939+00:00 app[web.1]:←[0m Rendered pins/index.html
.erb within layouts/application (16.1ms)
←[36m2014-01-24T05:39:20.575704+00:00 app[web.1]:←[0m Rendered layouts/_header
.html.erb (1.0ms)
←[36m2014-01-24T05:39:20.575704+00:00 app[web.1]:←[0m Rendered layouts/_header
.html.erb (1.0ms)
←[36m2014-01-24T05:39:20.570672+00:00 app[web.1]:←[0m Rendered pages/_home.htm
l.erb (1.0ms)
←[36m2014-01-24T05:39:20.576180+00:00 app[web.1]:←[0m Completed 200 OK in 20ms (
Views: 16.1ms | ActiveRecord: 2.5ms)
←[36m2014-01-24T05:39:20.576180+00:00 app[web.1]:←[0m Completed 200 OK in 20ms (
Views: 16.1ms | ActiveRecord: 2.5ms)
←[33m2014-01-24T05:39:20.578835+00:00 heroku[router]:←[0m at=info method=GET pat
h=/ host=omr-pinterestingx.herokuapp.com request_id=105ba383-0040-4647-b888-7790
9123694f fwd="108.227.81.48" dyno=web.1 connect=10ms service=30ms status=200 byt
es=1928
←[36m2014-01-24T05:42:07.219371+00:00 app[web.1]:←[0m Rendered pins/index.html
.erb within layouts/application (6.6ms)
←[36m2014-01-24T05:42:07.219371+00:00 app[web.1]:←[0m Rendered pins/index.html
.erb within layouts/application (6.6ms)
←[36m2014-01-24T05:42:07.221931+00:00 app[web.1]:←[0m Completed 200 OK in 16ms (
Views: 10.7ms | ActiveRecord: 2.6ms)
←[36m2014-01-24T05:42:07.221931+00:00 app[web.1]:←[0m Completed 200 OK in 16ms (
Views: 10.7ms | ActiveRecord: 2.6ms)
←[36m2014-01-24T05:42:07.203780+00:00 app[web.1]:←[0m Started GET "/" for 108.22
7.81.48 at 2014-01-24 05:42:07 +0000
←[36m2014-01-24T05:42:07.203560+00:00 app[web.1]:←[0m Started GET "/" for 108.22
7.81.48 at 2014-01-24 05:42:07 +0000
←[36m2014-01-24T05:42:07.205899+00:00 app[web.1]:←[0m Processing by PinsControll
er#index as HTML
←[36m2014-01-24T05:42:07.215560+00:00 app[web.1]:←[0m Rendered pages/_home.htm
l.erb (1.0ms)
←[36m2014-01-24T05:42:07.205687+00:00 app[web.1]:←[0m Processing by PinsControll
er#index as HTML
←[36m2014-01-24T05:42:07.215560+00:00 app[web.1]:←[0m Rendered pages/_home.htm
l.erb (1.0ms)
←[36m2014-01-24T05:42:07.221542+00:00 app[web.1]:←[0m Rendered layouts/_header
.html.erb (1.5ms)
←[36m2014-01-24T05:42:07.221542+00:00 app[web.1]:←[0m Rendered layouts/_header
.html.erb (1.5ms)
←[33m2014-01-24T05:42:07.455010+00:00 heroku[router]:←[0m at=info method=GET pat
h=/assets/application-181cdfad867b7ff79ab77b7ed8cc2b59.css host=omr-pinteresting
x.herokuapp.com request_id=71800b84-1658-4f60-a257-fa56f4ade2ba fwd="108.227.81.
48" dyno=web.1 connect=1ms service=6ms status=304 bytes=0
←[33m2014-01-24T05:42:07.466827+00:00 heroku[router]:←[0m at=info method=GET pat
h=/assets/application-3e804bc17a248fb868fa056958a4fd83.js host=omr-pinterestingx
.herokuapp.com request_id=560eea6e-650c-4b47-ad6b-1eee25c6cc9c fwd="108.227.81.4
8" dyno=web.1 connect=2ms service=4ms status=304 bytes=0
←[33m2014-01-24T05:42:07.227755+00:00 heroku[router]:←[0m at=info method=GET pat
h=/ host=omr-pinterestingx.herokuapp.com request_id=31a5b45f-ff03-4d6d-be30-7c45
280a0b43 fwd="108.227.81.48" dyno=web.1 connect=2ms service=34ms status=200 byte
s=1864

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

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

Rails 3.2 app on Heroku with Devise: Can't log in with Mobile Safari

I've built an simple rails app and am deploying it to heroku. The app uses devise for authentication. Everything works fine in development and production environment, ACCEPT when one tries to log in via the Mobile Safari browser on iOS.
Heroku logs say the following:
2012-10-17T18:56:52+00:00 app[web.1]: Started POST "/users/sign_in" for 87.123.175.106 at 2012-10-17 20:56:52 +0200
2012-10-17T18:56:52+00:00 app[web.1]: Processing by Devise::SessionsController#create as HTML
2012-10-17T18:56:52+00:00 app[web.1]: Parameters: {"utf8"=>"✓", "authenticity_token"=>"SHHVgAxRFJ8VFu2cnbh/YGn6s6q0L9Mnp24x9Whu2mk=", "user"=>{"name"=>"test", "password"=>"[FILTERED]"}, "commit"=>"anmelden"}
2012-10-17T18:56:52+00:00 app[web.1]: WARNING: Can't verify CSRF token authenticity
2012-10-17T18:56:53+00:00 app[web.1]: Redirected to http://xxxxxxxx.herokuapp.com/
The problem doesn't occur with other iOS browsers such as Opera.
I didn't do any custom stuff to devise (except for adding a user name), it is implemented pretty much out of the box.
I have read several posts where the issue with iOS and CSRF token is vaguely addressed, but I'm pretty new to rails and don't really know how to fix this. Can anyone help, please?
UPDATE:
As advised in this post, I commented out protect_from_forgery in application_controller.rb as well as the csrf_meta_tags in application.html.erb.
Also, I added :domain => :all to config/session_store.rb.
Nothing helped. Obiously, I don't get the Can't verify CSRF token authenticity error anymore, but the following logs:
2012-10-18T18:19:03+00:00 app[web.1]: Started POST "/users/sign_in" for 87.123.130.136 at 2012-10-18 20:19:03 +0200
2012-10-18T18:19:03+00:00 app[web.1]: Processing by Devise::SessionsController#create as HTML
2012-10-18T18:19:03+00:00 app[web.1]: Parameters: {"utf8"=>"✓", "authenticity_token"=>"Q+fF+9Sj2Q+X2VV34Jkrt1K8C3u4/NB6YC3yslYjkyQ=", "user"=>{"name"=>"test", "password"=>"[FILTERED]"}, "commit"=>"anmelden"}
2012-10-18T18:19:03+00:00 heroku[router]: POST pacific-beyond-5428.herokuapp.com/users/sign_in dyno=w
eb.1 queue=0 wait=0ms service=783ms status=302 bytes=107
2012-10-18T18:19:03+00:00 app[web.1]: Redirected to http://pacific-beyond-5428.herokuapp.com/
2012-10-18T18:19:03+00:00 app[web.1]: Completed 302 Found in 577ms (ActiveRecord: 0.0ms)
2012-10-18T18:19:04+00:00 app[web.1]:
2012-10-18T18:19:04+00:00 app[web.1]:
2012-10-18T18:19:04+00:00 app[web.1]: Started GET "/" for 87.123.130.136 at 2012-10-18 20:19:04 +0200
2012-10-18T18:19:04+00:00 app[web.1]: Processing by HomeController#index as HTML
2012-10-18T18:19:04+00:00 app[web.1]: Completed 401 Unauthorized in 0ms
2012-10-18T18:19:04+00:00 heroku[router]: GET pacific-beyond-5428.herokuapp.com/ dyno=web.1 queue=0 wait=0ms service=12ms status=302 bytes=120
2012-10-18T18:19:04+00:00 app[web.1]:
2012-10-18T18:19:04+00:00 app[web.1]: Started GET "/users/sign_in" for 87.123.130.136 at 2012-10-18 20:19:04 +0200
2012-10-18T18:19:04+00:00 app[web.1]: Processing by Devise::SessionsController#new as HTML
2012-10-18T18:19:04+00:00 app[web.1]:
2012-10-18T18:19:04+00:00 app[web.1]: Rendered layouts/_navigation.html.erb (1.4ms)
2012-10-18T18:19:04+00:00 app[web.1]: Rendered devise/shared/_links.html.erb (0.7ms)
2012-10-18T18:19:04+00:00 app[web.1]: Rendered devise/sessions/new.html.erb within layouts/application (25.8ms)
2012-10-18T18:19:04+00:00 app[web.1]: Rendered layouts/_messages.html.erb (0.4ms)
2012-10-18T18:19:04+00:00 app[web.1]: Rendered layouts/_sidebar.html.erb (0.3ms)
2012-10-18T18:19:04+00:00 app[web.1]: Completed 200 OK in 33ms (Views: 31.9ms | ActiveRecord: 0.0ms)
2012-10-18T18:19:04+00:00 heroku[router]: GET pacific-beyond-5428.herokuapp.com/users/sign_in dyno=web.1 queue=0 wait=0ms service=44ms status=200 bytes=2361
2012-10-18T18:19:04+00:00 app[web.1]:
2012-10-18T18:19:04+00:00 app[web.1]:
2012-10-18T18:19:04+00:00 app[web.1]: Started GET "/assets/foundation/app.js" for 87.123.130.136 at 2012-10-18 20:19:04 +0200
2012-10-18T18:19:05+00:00 app[web.1]: Compiled foundation/app.js (0ms) (pid 2)
2012-10-18T18:19:05+00:00 app[web.1]: Served asset /foundation/app.js - 304 Not Modified (282ms)
2012-10-18T18:19:05+00:00 heroku[router]: GET pacific-beyond-5428.herokuapp.com/assets/foundation/app.js dyno=web.1 queue=0 wait=0ms service=297ms status=304 bytes=0
2012-10-18T18:19:05+00:00 app[web.1]:
2012-10-18T18:19:05+00:00 app[web.1]:
2012-10-18T18:19:05+00:00 app[web.1]: Started GET "/assets/foundation/index.js" for 87.123.130.136 at 2012-10-18 20:19:05 +0200
2012-10-18T18:19:05+00:00 heroku[router]: GET pacific-beyond-5428.herokuapp.com/assets/foundation/index.js dyno=web.1 queue=0 wait=0ms service=905ms status=304 bytes=0
2012-10-18T18:19:05+00:00 app[web.1]: Compiled foundation/modernizr.foundation.js (0ms) (pid 2)
2012-10-18T18:19:05+00:00 app[web.1]: Compiled foundation/jquery.placeholder.js (0ms) (pid 2)
2012-10-18T18:19:05+00:00 app[web.1]: Compiled foundation/jquery.foundation.alerts.js (0ms) (pid 2)
2012-10-18T18:19:05+00:00 app[web.1]: Compiled foundation/jquery.foundation.accordion.js (0ms) (pid 2)
2012-10-18T18:19:05+00:00 app[web.1]: Compiled foundation/jquery.foundation.buttons.js (0ms) (pid 2)
2012-10-18T18:19:05+00:00 app[web.1]: Compiled foundation/jquery.foundation.tooltips.js (0ms) (pid 2)
2012-10-18T18:19:05+00:00 app[web.1]: Compiled foundation/jquery.foundation.forms.js (0ms) (pid 2)
2012-10-18T18:19:05+00:00 app[web.1]: Compiled foundation/jquery.foundation.tabs.js (0ms) (pid 2)
2012-10-18T18:19:05+00:00 app[web.1]: Compiled foundation/jquery.foundation.navigation.js (0ms) (pid 2)
2012-10-18T18:19:05+00:00 app[web.1]: Compiled foundation/jquery.foundation.topbar.js (0ms) (pid 2)
2012-10-18T18:19:05+00:00 app[web.1]: Compiled foundation/jquery.foundation.reveal.js (0ms) (pid 2)
2012-10-18T18:19:05+00:00 app[web.1]: Compiled foundation/jquery.foundation.orbit.js (0ms) (pid 2)
2012-10-18T18:19:05+00:00 app[web.1]: Compiled foundation/jquery.foundation.mediaQueryToggle.js (0ms) (pid 2)
2012-10-18T18:19:05+00:00 app[web.1]: Compiled foundation/index.js (86ms) (pid 2)
2012-10-18T18:19:05+00:00 app[web.1]: Served asset /foundation/index.js - 304 Not Modified (616ms)
Somebody an Idea?
I had this same errorm seeing the same symptoms on production in the Heroku logs of:
WARNING: Can't verify CSRF token authenticity
And the 401 Unauthorized redirect after login attempt.
The resolution for me was to add domain: :all to the session_store in config/initializers/session_store.rb.

Resources