Heroku app only rendering a few lines of ruby - ruby-on-rails-3

I'm using Heroku for the first time and am having a weird issue. I've pushed my app, but when I look at it, all I see is a few lines of irb code. Specifically:
<%= stylesheet_link_tag "http://localhost:3000/stylesheets/style.css", :media => "screen and (min-width:481px)", :cache => true %> <%= javascript_include_tag "jquery.min", "jquery-ui.min", "jquery_ujs.min", "application.min" %> <%= csrf_meta_tag %> <%= yield :head %>
MyApp
<% if request.path == "/login" %>
<%= link_to "Sign Up", {:controller =>"users", :action => "new"}, {:id => 'login'} %>
<% else %>
<%= link_to "Log In", {:controller =>"sessions", :action => "new"}, {:id => 'login'} %>
<% end %>
I added a ticket to Heroku but am wondering if anyone here experienced something similar or had an idea as to what's happening. Here's what I see in my heroku logs:
2011-12-01T04:14:08+00:00 app[web.1]: app/views/layouts/application.html.erb:4:in `_app_views_layouts_application_html_erb__1168280325920812315_38229020_2540660988792494126'
2011-12-01T04:14:08+00:00 app[web.1]:
2011-12-01T04:14:08+00:00 app[web.1]: Rendered users/new.html.erb within layouts/application (3.2ms)
2011-12-01T04:17:46+00:00 heroku[slugc]: Slug compilation started
2011-12-01T04:17:57+00:00 heroku[api]: Deploy e4c58ef by myemail#email.com
2011-12-01T04:17:57+00:00 heroku[api]: Release v14 created by myemail#email.com
2011-12-01T04:17:57+00:00 heroku[web.1]: State changed from up to bouncing
2011-12-01T04:17:57+00:00 heroku[web.1]: State changed from bouncing to created
2011-12-01T04:17:59+00:00 heroku[web.1]: State changed from created to starting
2011-12-01T04:18:00+00:00 heroku[slugc]: Slug compilation finished
2011-12-01T04:18:02+00:00 heroku[web.1]: Starting process with command `bundle exec rails server -p 43194`
2011-12-01T04:18:10+00:00 app[web.1]: [2011-12-01 04:18:10] INFO WEBrick 1.3.1
2011-12-01T04:18:10+00:00 app[web.1]: [2011-12-01 04:18:10] INFO ruby 1.9.2 (2011-07-09) [x86_64-linux]
2011-12-01T04:18:10+00:00 app[web.1]: [2011-12-01 04:18:10] INFO WEBrick::HTTPServer#start: pid=1 port=43194
2011-12-01T04:18:11+00:00 heroku[web.1]: State changed from starting to up
2011-12-01T04:18:13+00:00 app[web.1]: => Booting WEBrick
2011-12-01T04:18:13+00:00 app[web.1]: => Rails 3.0.5 application starting in production on http://0.0.0.0:43194
2011-12-01T04:18:13+00:00 app[web.1]: => Call with -d to detach
2011-12-01T04:18:13+00:00 app[web.1]: => Ctrl-C to shutdown server
2011-12-01T04:18:13+00:00 app[web.1]:
2011-12-01T04:18:13+00:00 app[web.1]:
2011-12-01T04:18:13+00:00 app[web.1]: Started GET "/" for 69.140.5.188 at 2011-12-01 04:18:13 +0000
2011-12-01T04:18:13+00:00 app[web.1]:
2011-12-01T04:18:13+00:00 app[web.1]: ActionView::Template::Error (can't convert nil into String):
2011-12-01T04:18:13+00:00 app[web.1]: 1: <!doctype html>
2011-12-01T04:18:13+00:00 app[web.1]: 2: <head>
2011-12-01T04:18:13+00:00 app[web.1]: 3: <title>MyApp</title>
2011-12-01T04:18:13+00:00 app[web.1]: 4: <%= stylesheet_link_tag "http://localhost:3000/stylesheets/style.css", :media => "screen and (min-width:481px)", :cache => true %>
2011-12-01T04:18:13+00:00 app[web.1]: 5: <%= javascript_include_tag "jquery.min", "jquery-ui.min", "jquery_ujs.min", "application.min" %>
2011-12-01T04:18:13+00:00 app[web.1]: 6: <%= csrf_meta_tag %>
2011-12-01T04:18:13+00:00 app[web.1]: 7: <meta http-equiv="Content-type" content="text/html; charset=utf-8">
2011-12-01T04:18:13+00:00 app[web.1]: app/views/layouts/application.html.erb:4:in `_app_views_layouts_application_html_erb___1242101754664979387_45511700_1336663889607024244'
2011-12-01T04:18:13+00:00 app[web.1]:
2011-12-01T04:18:13+00:00 app[web.1]:
2011-12-01T04:18:13+00:00 app[web.1]: Processing by UsersController#new as HTML
2011-12-01T04:18:13+00:00 app[web.1]: Rendered users/_dreamless_form.html.erb (16.9ms)
2011-12-01T04:18:13+00:00 app[web.1]: Rendered users/new.html.erb within layouts/application (34.0ms)
2011-12-01T04:18:13+00:00 app[web.1]: Completed in 107ms
2011-12-01T04:18:13+00:00 heroku[router]: GET falling-journey-6792.herokuapp.com/ dyno=web.1 queue=0 wait=0ms service=335ms status=500 bytes=1013
2011-12-01T04:18:19+00:00 app[web.1]:
2011-12-01T04:18:19+00:00 app[web.1]:
2011-12-01T04:18:19+00:00 app[web.1]: Started GET "/" for 69.140.5.188 at 2011-12-01 04:18:19 +0000
2011-12-01T04:18:19+00:00 app[web.1]:
2011-12-01T04:18:19+00:00 app[web.1]: ActionView::Template::Error (can't convert nil into String):
2011-12-01T04:18:19+00:00 app[web.1]: 1: <!doctype html>
2011-12-01T04:18:19+00:00 app[web.1]: 2: <head>
2011-12-01T04:18:19+00:00 app[web.1]: 3: <title>MyApp</title>
2011-12-01T04:18:19+00:00 app[web.1]: 4: <%= stylesheet_link_tag "http://localhost:3000/stylesheets/style.css", :media => "screen and (min-width:481px)", :cache => true %>
2011-12-01T04:18:19+00:00 app[web.1]: 5: <%= javascript_include_tag "jquery.min", "jquery-ui.min", "jquery_ujs.min", "application.min" %>
2011-12-01T04:18:19+00:00 app[web.1]: 6: <%= csrf_meta_tag %>
2011-12-01T04:18:19+00:00 app[web.1]: 7: <meta http-equiv="Content-type" content="text/html; charset=utf-8">
2011-12-01T04:18:19+00:00 app[web.1]: app/views/layouts/application.html.erb:4:in `_app_views_layouts_application_html_erb___1242101754664979387_45511700_1336663889607024244'
2011-12-01T04:18:19+00:00 app[web.1]:
2011-12-01T04:18:19+00:00 app[web.1]:
2011-12-01T04:18:19+00:00 app[web.1]: Processing by UsersController#new as HTML
2011-12-01T04:18:19+00:00 app[web.1]: Rendered users/_dreamless_form.html.erb (2.2ms)
2011-12-01T04:18:19+00:00 app[web.1]: Rendered users/new.html.erb within layouts/application (6.0ms)
2011-12-01T04:18:19+00:00 app[web.1]: Completed in 7ms
2011-12-01T04:18:19+00:00 heroku[router]: GET falling-journey-6792.herokuapp.com/ dyno=web.1 queue=0 wait=0ms service=19ms status=500 bytes=1013
2011-12-01T04:26:07+00:00 heroku[slugc]: Slug compilation started
2011-12-01T04:26:22+00:00 heroku[api]: Release v15 created by myemail#email.com
2011-12-01T04:26:22+00:00 heroku[web.1]: State changed from created to starting
2011-12-01T04:26:25+00:00 heroku[web.1]: Starting process with command `bundle exec rails server -p 18091`
2011-12-01T04:26:25+00:00 heroku[web.1]: Stopping process with SIGTERM
2011-12-01T04:26:25+00:00 app[web.1]: [2011-12-01 04:26:25] ERROR SignalException: SIGTERM
2011-12-01T04:26:25+00:00 app[web.1]: /usr/local/lib/ruby/1.9.1/webrick/server.rb:90:in `select'
2011-12-01T04:26:32+00:00 heroku[web.1]: State changed from starting to up
2011-12-01T04:26:35+00:00 heroku[web.1]: Error R12 (Exit timeout) -> Process failed to exit within 10 seconds of SIGTERM
2011-12-01T04:26:35+00:00 heroku[web.1]: Stopping process with SIGKILL
2011-12-01T04:26:37+00:00 heroku[web.1]: Process exited
2011-12-01T04:27:08+00:00 app[web.1]:
2011-12-01T04:27:08+00:00 app[web.1]:
2011-12-01T04:27:08+00:00 app[web.1]: Started GET "/" for 69.140.5.188 at 2011-12-01 04:27:08 +0000
2011-12-01T04:27:08+00:00 app[web.1]:
2011-12-01T04:27:08+00:00 app[web.1]: ActionView::Template::Error (can't convert nil into String):
2011-12-01T04:27:08+00:00 app[web.1]: 2: <html>
2011-12-01T04:27:08+00:00 app[web.1]: 3: <head>
2011-12-01T04:27:08+00:00 app[web.1]: 4: <title>MyApp</title>
2011-12-01T04:27:08+00:00 app[web.1]: 5: <%= stylesheet_link_tag "http://localhost:3000/stylesheets/style.css", :media => "screen and (min-width:481px)", :cache => true %>
2011-12-01T04:27:08+00:00 app[web.1]: 6: <!--[if IE]>
2011-12-01T04:27:08+00:00 app[web.1]: 7: <%= stylesheet_link_tag "http://localhost:3000/stylesheets/style.css", :media => "all", :cache => true %><![endif]-->
2011-12-01T04:27:08+00:00 app[web.1]: 8: <%= javascript_include_tag "jquery.min", "jquery-ui.min", "jquery_ujs.min", "application.min" %>
2011-12-01T04:27:08+00:00 app[web.1]: app/views/layouts/application.html.erb:5:in `_app_views_layouts_application_html_erb___172990433218769450_38326520_3796609424593531670'
2011-12-01T04:27:08+00:00 app[web.1]:
2011-12-01T04:27:08+00:00 app[web.1]:
2011-12-01T04:27:08+00:00 app[web.1]: Processing by UsersController#new as HTML
2011-12-01T04:27:08+00:00 app[web.1]: Rendered users/_dreamless_form.html.erb (1.2ms)
2011-12-01T04:27:08+00:00 app[web.1]: Rendered users/new.html.erb within layouts/application (2.7ms)
2011-12-01T04:27:08+00:00 app[web.1]: Completed in 4ms
2011-12-01T04:27:08+00:00 heroku[router]: GET falling-journey-6792.herokuapp.com/ dyno=web.1 queue=0 wait=0ms service=48ms status=500 bytes=1013
2011-12-01T04:30:27+00:00 app[web.1]:
2011-12-01T04:30:27+00:00 app[web.1]:
2011-12-01T04:30:27+00:00 app[web.1]: Started GET "/" for 69.140.5.188 at 2011-12-01 04:30:27 +0000
2011-12-01T04:30:27+00:00 app[web.1]:
2011-12-01T04:30:27+00:00 app[web.1]: ActionView::Template::Error (can't convert nil into String):
2011-12-01T04:30:27+00:00 app[web.1]: 2: <html>
2011-12-01T04:30:27+00:00 app[web.1]: 3: <head>
2011-12-01T04:30:27+00:00 app[web.1]: 4: <title>MyApp</title>
2011-12-01T04:30:27+00:00 app[web.1]: 5: <%= stylesheet_link_tag "http://localhost:3000/stylesheets/style.css", :media => "screen and (min-width:481px)", :cache => true %>
2011-12-01T04:30:29+00:00 heroku[router]: GET falling-journey-6792.herokuapp.com/ dyno=web.1 queue=0 wait=0ms service=9ms status=500 bytes=1013

Per the responses in the question cited in the comments above (this one), removing :cache => true from my stylesheets did the trick.

Related

Why do I keep getting the Heroku 500 error?

I am new to rails development and I keep getting an error from heroku
Application.js:
// This is a manifest file that'll be compiled into application.js, which will include all the files
// listed below.
//
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
// or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path.
//
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
// the compiled file.
//
// WARNING: THE FIRST BLANK LINE MARKS THE END OF WHAT'S TO BE PROCESSED, ANY BLANK LINE SHOULD
// GO AFTER THE REQUIRES BELOW.
//
//= require jquery
//= require jquery_ujs
//= require twitter/bootstrap
//= require_tree .
Here is the log:
2013-05-17T01:07:35.161651+00:00 app[web.1]: 10: <%= csrf_meta_tags %>
2013-05-17T01:07:35.161651+00:00 app[web.1]: 11: <meta name="viewport" content="width=device-width, initial-scale=1.0">
2013-05-17T01:07:35.161651+00:00 app[web.1]: 12: </head>
2013-05-17T01:07:35.161651+00:00 app[web.1]: app/views/layouts/application.html.erb:9:in `_app_views_layouts_application_html_erb___296345013052741914_26637620'
2013-05-17T01:07:35.161651+00:00 app[web.1]:
2013-05-17T01:07:35.162109+00:00 app[web.1]:
2013-05-17T01:07:35.162109+00:00 app[web.1]: ActionView::Template::Error (couldn't find file 'twitter/bootstrap'
2013-05-17T01:07:35.162109+00:00 app[web.1]: (in /app/app/assets/javascripts/application.js:15)):
2013-05-17T01:07:35.161651+00:00 app[web.1]:
2013-05-17T01:07:35.162109+00:00 app[web.1]: 7: <![endif]-->
2013-05-17T01:07:35.161869+00:00 app[web.1]: Started GET "/" for 97.116.68.224 at 2013-05-17 01:07:34 +0000
2013-05-17T01:07:35.161869+00:00 app[web.1]: Processing by HomeController#index as HTML
2013-05-17T01:07:35.162109+00:00 app[web.1]: Rendered home/index.html.erb within layouts/application (0.1ms)
2013-05-17T01:07:35.162109+00:00 app[web.1]: Completed 500 Internal Server Error in 7ms
2013-05-17T01:07:35.162329+00:00 app[web.1]: app/views/layouts/application.html.erb:9:in `_app_views_layouts_application_html_erb___296345013052741914_26637620'
2013-05-17T01:07:35.162329+00:00 app[web.1]:
2013-05-17T01:07:35.162109+00:00 app[web.1]: 6: <script src="http://html5shim.googlecode.com/svn/trunk/html5.js" type="text/javascript"></script>
2013-05-17T01:07:35.162109+00:00 app[web.1]: 9: <%= javascript_include_tag "application" %>
2013-05-17T01:07:35.162329+00:00 app[web.1]: 12: </head>
2013-05-17T01:07:35.162109+00:00 app[web.1]: 8: <%= stylesheet_link_tag "application", :media => "all" %>
2013-05-17T01:07:35.162109+00:00 app[web.1]: 10: <%= csrf_meta_tags %>
2013-05-17T01:07:35.162329+00:00 app[web.1]: 11: <meta name="viewport" content="width=device-width, initial-scale=1.0">
2013-05-17T01:07:35.162329+00:00 app[web.1]:
2013-05-17T01:07:35.162543+00:00 app[web.1]: Started GET "/" for 97.116.68.224 at 2013-05-17 01:07:34 +0000
2013-05-17T01:07:35.162543+00:00 app[web.1]: Completed 500 Internal Server Error in 6ms
2013-05-17T01:07:35.162543+00:00 app[web.1]:
2013-05-17T01:07:35.162543+00:00 app[web.1]: ActionView::Template::Error (couldn't find file 'twitter/bootstrap'
2013-05-17T01:07:35.162543+00:00 app[web.1]: (in /app/app/assets/javascripts/application.js:15)):
2013-05-17T01:07:35.162543+00:00 app[web.1]: 6: <script src="http://html5shim.googlecode.com/svn/trunk/html5.js" type="text/javascript"></script>
2013-05-17T01:07:35.162543+00:00 app[web.1]: Processing by HomeController#index as HTML
2013-05-17T01:07:35.162543+00:00 app[web.1]: 7: <![endif]-->
2013-05-17T01:07:35.162761+00:00 app[web.1]: 8: <%= stylesheet_link_tag "application", :media => "all" %>
2013-05-17T01:07:35.162761+00:00 app[web.1]: 9: <%= javascript_include_tag "application" %>
2013-05-17T01:07:35.162543+00:00 app[web.1]: Rendered home/index.html.erb within layouts/application (0.1ms)
2013-05-17T01:07:35.162761+00:00 app[web.1]: 10: <%= csrf_meta_tags %>
2013-05-17T01:07:35.162761+00:00 app[web.1]:
2013-05-17T01:07:35.163007+00:00 app[web.1]: Started GET "/" for 97.116.68.224 at 2013-05-17 01:07:34 +0000
2013-05-17T01:07:35.163292+00:00 app[web.1]: Processing by HomeController#index as HTML
2013-05-17T01:07:35.163292+00:00 app[web.1]: Rendered home/index.html.erb within layouts/application (0.1ms)
2013-05-17T01:07:35.162761+00:00 app[web.1]:
2013-05-17T01:07:35.162761+00:00 app[web.1]: 12: </head>
2013-05-17T01:07:35.162761+00:00 app[web.1]: 11: <meta name="viewport" content="width=device-width, initial-scale=1.0">
2013-05-17T01:07:35.162761+00:00 app[web.1]: app/views/layouts/application.html.erb:9:in `_app_views_layouts_application_html_erb___296345013052741914_26637620'
2013-05-17T01:07:35.163292+00:00 app[web.1]: Completed 500 Internal Server Error in 5ms
2013-05-17T01:07:35.163292+00:00 app[web.1]: (in /app/app/assets/javascripts/application.js:15)):
2013-05-17T01:07:35.163292+00:00 app[web.1]: 8: <%= stylesheet_link_tag "application", :media => "all" %>
2013-05-17T01:07:35.163292+00:00 app[web.1]: 9: <%= javascript_include_tag "application" %>
2013-05-17T01:07:35.163511+00:00 app[web.1]: 10: <%= csrf_meta_tags %>
2013-05-17T01:07:35.163511+00:00 app[web.1]: 11: <meta name="viewport" content="width=device-width, initial-scale=1.0">
2013-05-17T01:07:35.163511+00:00 app[web.1]: 12: </head>
2013-05-17T01:07:35.163292+00:00 app[web.1]:
2013-05-17T01:07:35.163292+00:00 app[web.1]: ActionView::Template::Error (couldn't find file 'twitter/bootstrap'
2013-05-17T01:07:35.163292+00:00 app[web.1]: 6: <script src="http://html5shim.googlecode.com/svn/trunk/html5.js" type="text/javascript"></script>
2013-05-17T01:07:35.163292+00:00 app[web.1]: 7: <![endif]-->
2013-05-17T01:07:35.163511+00:00 app[web.1]:
2013-05-17T01:07:35.163511+00:00 app[web.1]: app/views/layouts/application.html.erb:9:in `_app_views_layouts_application_html_erb___296345013052741914_26637620'
2013-05-17T01:07:35.163511+00:00 app[web.1]:
2013-05-17T01:07:35.164363+00:00 app[web.1]: ActionView::Template::Error (couldn't find file 'twitter/bootstrap'
2013-05-17T01:07:35.164363+00:00 app[web.1]:
2013-05-17T01:07:35.164363+00:00 app[web.1]: Completed 500 Internal Server Error in 6ms
2013-05-17T01:07:35.164363+00:00 app[web.1]: Processing by HomeController#index as HTML
2013-05-17T01:07:35.164578+00:00 app[web.1]: 12: </head>
2013-05-17T01:07:35.164578+00:00 app[web.1]: 11: <meta name="viewport" content="width=device-width, initial-scale=1.0">
2013-05-17T01:07:35.164363+00:00 app[web.1]: (in /app/app/assets/javascripts/application.js:15)):
2013-05-17T01:07:35.164363+00:00 app[web.1]: 7: <![endif]-->
2013-05-17T01:07:35.164363+00:00 app[web.1]: Rendered home/index.html.erb within layouts/application (0.1ms)
2013-05-17T01:07:35.164141+00:00 app[web.1]: Started GET "/" for 97.116.68.224 at 2013-05-17 01:07:34 +0000
2013-05-17T01:07:35.164363+00:00 app[web.1]: 8: <%= stylesheet_link_tag "application", :media => "all" %>
2013-05-17T01:07:35.164363+00:00 app[web.1]: 6: <script src="http://html5shim.googlecode.com/svn/trunk/html5.js" type="text/javascript"></script>
2013-05-17T01:07:35.164578+00:00 app[web.1]: 9: <%= javascript_include_tag "application" %>
2013-05-17T01:07:35.164578+00:00 app[web.1]: app/views/layouts/application.html.erb:9:in `_app_views_layouts_application_html_erb___296345013052741914_26637620'
2013-05-17T01:07:35.164578+00:00 app[web.1]:
2013-05-17T01:07:35.164578+00:00 app[web.1]: 10: <%= csrf_meta_tags %>
2013-05-17T01:07:35.164578+00:00 app[web.1]:
2013-05-17T01:07:34.585624+00:00 heroku[router]: at=info method=GET path=/ host=desolate-stream-5449.herokuapp.com fwd="97.116.68.224" dyno=web.1 connect=1ms service=13ms status=500 bytes=643
2013-05-17T01:07:33.128607+00:00 heroku[router]: at=info method=GET path=/ host=desolate-stream-5449.herokuapp.com fwd="97.116.68.224" dyno=web.1 connect=0ms service=15ms status=500 bytes=643
2013-05-17T01:08:34.121772+00:00 heroku[api]: Starting process with command `bundle exec rake db:version` by shirwa99#gmail.com
2013-05-17T01:08:36.213605+00:00 heroku[run.7274]: Awaiting client
2013-05-17T01:08:36.324096+00:00 heroku[run.7274]: Starting process with command `bundle exec rake db:version`
2013-05-17T01:08:37.032487+00:00 heroku[run.7274]: State changed from starting to up
2013-05-17T01:08:41.870397+00:00 heroku[run.7274]: State changed from up to complete
2013-05-17T01:08:41.862423+00:00 heroku[run.7274]: Process exited with status 0
2013-05-17T01:17:00.656365+00:00 heroku[router]: at=info method=GET path=/ host=desolate-stream-5449.herokuapp.com fwd="59.189.51.75, 218.186.8.249" dyno=web.1 connect=8
ms service=32ms status=500 bytes=643
2013-05-17T01:17:00.647418+00:00 app[web.1]: Processing by HomeController#index as HTML
2013-05-17T01:17:00.648041+00:00 app[web.1]: Rendered home/index.html.erb within layouts/application (0.1ms)
2013-05-17T01:17:00.653801+00:00 app[web.1]: Completed 500 Internal Server Error in 6ms
2013-05-17T01:17:00.656124+00:00 app[web.1]:
2013-05-17T01:17:00.656124+00:00 app[web.1]: ActionView::Template::Error (couldn't find file 'twitter/bootstrap'
2013-05-17T01:17:00.656124+00:00 app[web.1]: (in /app/app/assets/javascripts/application.js:15)):
2013-05-17T01:17:00.656124+00:00 app[web.1]: 6: <script src="http://html5shim.googlecode.com/svn/trunk/html5.js" type="text/javascript"></script>
2013-05-17T01:17:00.656124+00:00 app[web.1]: 7: <![endif]-->
2013-05-17T01:17:00.656124+00:00 app[web.1]: 8: <%= stylesheet_link_tag "application", :media => "all" %>
2013-05-17T01:17:00.656124+00:00 app[web.1]: 9: <%= javascript_include_tag "application" %>
2013-05-17T01:17:00.656124+00:00 app[web.1]: 10: <%= csrf_meta_tags %>
2013-05-17T01:17:00.656124+00:00 app[web.1]: 11: <meta name="viewport" content="width=device-width, initial-scale=1.0">
2013-05-17T01:17:00.656124+00:00 app[web.1]: 12: </head>
2013-05-17T01:17:00.656406+00:00 app[web.1]: app/views/layouts/application.html.erb:9:in `_app_views_layouts_application_html_erb___296345013052741914_26637620'
2013-05-17T01:17:00.656406+00:00 app[web.1]:
2013-05-17T01:17:00.656406+00:00 app[web.1]:
2013-05-17T01:17:00.634861+00:00 app[web.1]: Started GET "/" for 218.186.8.249 at 2013-05-17 01:17:00 +0000
2013-05-17T01:17:01.620125+00:00 heroku[router]: at=info method=GET path=/favicon.ico host=desolate-stream-5449.herokuapp.com fwd="218.186.8.249" dyno=web.1 connect=1ms service=6ms status=200 bytes=0
I have no idea why it does this. Everytime i open the site, it gives me the error, but it works fine when i run it locally. I don't know how to actually read the logs. I tried all the other related questions and none of the solutions seemed to work. Thanks.
Try moving out gem 'twitter-bootstrap-rails' from your assets group in your Gemfile. Or try adding bootstrap instead of twitter/bootstrap in application.js
Hope this helps!

Ruby on Rails: SQLite to MySQL

I'm begginer at Rails. I want to deploy my project at heroku.com. I use SqLite, but heroku doesn't support it. So, I try to move my project to MySQL. I did this instructions :Convert a Ruby on Rails app from sqlite to MySQL?
But, heroku says something like this: we're sorry, but something went wrong. Can you help me?
This is my gemfile:
source 'https://rubygems.org'
gem 'pg'
gem 'rails', '3.2.12'
gem 'gravatar_image_tag', '1.0.0.pre2'
gem "will_paginate", :git => "https://github.com/p7r/will_paginate.git", :branch => "rails3"
gem 'yaml_db', :git => 'git://github.com/ludicast/yaml_db.git'
# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'
group :development, :test do
gem 'faker', '0.3.1'
gem 'sqlite3-ruby', :require => 'sqlite3'
end
group :production do
gem "mysql2", "~> 0.3.11"
end
group :assets do
gem 'sass-rails', '~> 3.2.3'
gem 'coffee-rails', '~> 3.2.1'
gem 'uglifier', '>= 1.0.3'
end
gem 'jquery-rails'
group :test do
gem 'rspec-rails', '2.6.1'
gem 'webrat', '0.7.1'
end
This is my database.yml file:
development:
adapter: mysql2
encoding: utf8
reconnect: false
database: myapp_development
pool: 5
username: root
password: "0761"
test:
adapter: mysql2
encoding: utf8
reconnect: false
database: myapp_test
pool: 5
username: root
password: "0761"
production:
adapter: mysql2
encoding: utf8
reconnect: false
database: myapp_production
pool: 5
username: root
password: "0761"
And here is my logs:
2013-03-26T13:11:32+00:00 app[web.1]: DEPRECATION WARNING: You have Rails 2.3-style plugins in vendor/plugins! Support for these plugins will be removed in Rails 4.0. Move them out and bundle them in your Gemfile, or fold them in to your app as lib/myplugin/* and config/initializers/myplugin.rb. See the release notes for more on this: http://weblog.rubyonrails.org/2012/1/4/rails-3-2-0-rc2-has-been-released. (called from <top (required)> at /app/config/environment.rb:5)
2013-03-26T13:11:32+00:00 app[web.1]: DEPRECATION WARNING: You have Rails 2.3-style plugins in vendor/plugins! Support for these plugins will be removed in Rails 4.0. Move them out and bundle them in your Gemfile, or fold them in to your app as lib/myplugin/* and config/initializers/myplugin.rb. See the release notes for more on this: http://weblog.rubyonrails.org/2012/1/4/rails-3-2-0-rc2-has-been-released. (called from <top (required)> at /app/config/environment.rb:5)
2013-03-26T13:11:37+00:00 heroku[web.1]: Stopping remaining processes with SIGKILL
2013-03-26T13:11:37+00:00 heroku[web.1]: Error R12 (Exit timeout) -> At least one process failed to exit within 10 seconds of SIGTERM
2013-03-26T13:11:38+00:00 app[web.1]: => Call with -d to detach
2013-03-26T13:11:38+00:00 app[web.1]: => Booting WEBrick
2013-03-26T13:11:38+00:00 app[web.1]: => Ctrl-C to shutdown server
2013-03-26T13:11:38+00:00 app[web.1]: Connecting to database specified by DATABASE_URL
2013-03-26T13:11:38+00:00 app[web.1]: => Rails 3.2.12 application starting in production on http://0.0.0.0:33768
2013-03-26T13:11:39+00:00 app[web.1]: [2013-03-26 13:11:39] INFO WEBrick::HTTPServer#start: pid=2 port=33768
2013-03-26T13:11:39+00:00 app[web.1]: [2013-03-26 13:11:39] INFO ruby 1.9.2 (2011-07-09) [x86_64-linux]
2013-03-26T13:11:39+00:00 app[web.1]: [2013-03-26 13:11:39] INFO WEBrick 1.3.1
2013-03-26T13:11:39+00:00 heroku[web.1]: Process exited with status 137
2013-03-26T13:11:40+00:00 heroku[web.1]: State changed from starting to up
2013-03-26T13:11:59+00:00 app[web.1]: Started GET "/" for 46.72.99.61 at 2013-03-26 13:11:59 +0000
2013-03-26T13:11:59+00:00 app[web.1]: Processing by PagesController#home as HTML
2013-03-26T13:11:59+00:00 app[web.1]: Rendered pages/home.html.erb within layouts/application (8.8ms)
2013-03-26T13:11:59+00:00 app[web.1]: Rendered layouts/_stylesheets.html.erb (0.3ms)
2013-03-26T13:11:59+00:00 heroku[router]: at=info method=GET path=/ host=ancient-cliffs-5913.herokuapp.com fwd="46.72.99.61" dyno=web.1 queue=0 wait=0ms connect=3ms service=304ms status=500 bytes=643
2013-03-26T13:11:59+00:00 app[web.1]: Completed 500 Internal Server Error in 136ms
2013-03-26T13:11:59+00:00 app[web.1]:
2013-03-26T13:11:59+00:00 app[web.1]: Rendered layouts/_menu.html.erb (51.2ms)
2013-03-26T13:11:59+00:00 app[web.1]: ActionView::Template::Error (PG::Error: ERROR: relation "users" does not exist
2013-03-26T13:11:59+00:00 app[web.1]: LINE 5: WHERE a.attrelid = '"users"'::regclass
2013-03-26T13:11:59+00:00 app[web.1]: : SELECT a.attname, format_type(a.atttypid, a.atttypmod),
2013-03-26T13:11:59+00:00 app[web.1]: ^
2013-03-26T13:11:59+00:00 app[web.1]: 6: <ul class="nav">
2013-03-26T13:11:59+00:00 app[web.1]: WHERE a.attrelid = '"users"'::regclass
2013-03-26T13:11:59+00:00 app[web.1]: ORDER BY a.attnum
2013-03-26T13:11:59+00:00 app[web.1]: ON a.attrelid = d.adrelid AND a.attnum = d.adnum
2013-03-26T13:11:59+00:00 app[web.1]: 8: <% if signed_in? %>
2013-03-26T13:11:59+00:00 app[web.1]: AND a.attnum > 0 AND NOT a.attisdropped
2013-03-26T13:11:59+00:00 app[web.1]: pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
2013-03-26T13:11:59+00:00 app[web.1]: FROM pg_attribute a LEFT JOIN pg_attrdef d
2013-03-26T13:11:59+00:00 app[web.1]: 11: <li><%= link_to "Заказ", "#" %></li>
2013-03-26T13:11:59+00:00 app[web.1]: app/models/user.rb:32:in `authenticate_with_salt'
2013-03-26T13:11:59+00:00 app[web.1]: ):
2013-03-26T13:11:59+00:00 app[web.1]: app/helpers/sessions_helper.rb:13:in `current_user'
2013-03-26T13:11:59+00:00 app[web.1]: app/helpers/sessions_helper.rb:17:in `signed_in?'
2013-03-26T13:11:59+00:00 app[web.1]: 9: <!--<li><%= link_to "Users", users_path %></li>-->
2013-03-26T13:11:59+00:00 app[web.1]: app/helpers/sessions_helper.rb:42:in `user_from_remember_token'
2013-03-26T13:11:59+00:00 app[web.1]: 7: <li class="active"><%= link_to "Главная", home_path %></li>
2013-03-26T13:11:59+00:00 app[web.1]: 5: <div class="nav-collapse collapse">
2013-03-26T13:11:59+00:00 app[web.1]:
2013-03-26T13:11:59+00:00 app[web.1]: app/views/layouts/application.html.erb:15:in `_app_views_layouts_application_html_erb__1283683624385357693_38228720'
2013-03-26T13:11:59+00:00 app[web.1]:
2013-03-26T13:11:59+00:00 app[web.1]: 10: <li><%= link_to "Меню", menu_path %></li>
2013-03-26T13:11:59+00:00 app[web.1]: app/views/layouts/_menu.html.erb:8:in `_app_views_layouts__menu_html_erb__3258341653661936969_33454780'
2013-03-26T13:12:00+00:00 heroku[router]: at=info method=GET path=/favicon.ico host=ancient-cliffs-5913.herokuapp.com fwd="46.72.99.61" dyno=web.1 queue=0 wait=16ms connect=35ms service=33ms status=200 bytes=0
2013-03-26T13:25:17+00:00 heroku[slugc]: Slug compilation started
2013-03-26T13:25:50+00:00 heroku[api]: Release v14 created by nikskalkin#gmail.com
2013-03-26T13:25:50+00:00 heroku[api]: Deploy 7a646d5 by nikskalkin#gmail.com
2013-03-26T13:25:50+00:00 heroku[web.1]: State changed from up to starting
2013-03-26T13:25:51+00:00 heroku[slugc]: Slug compilation finished
2013-03-26T13:25:51+00:00 heroku[web.1]: Starting process with command `bundle exec rails server -p 59776`
2013-03-26T13:25:55+00:00 app[web.1]: DEPRECATION WARNING: You have Rails 2.3-style plugins in vendor/plugins! Support for these plugins will be removed in Rails 4.0. Move them out and bundle them in your Gemfile, or fold them in to your app as lib/myplugin/* and config/initializers/myplugin.rb. See the release notes for more on this: http://weblog.rubyonrails.org/2012/1/4/rails-3-2-0-rc2-has-been-released. (called from <top (required)> at /app/config/environment.rb:5)
2013-03-26T13:25:55+00:00 app[web.1]: DEPRECATION WARNING: You have Rails 2.3-style plugins in vendor/plugins! Support for these plugins will be removed in Rails 4.0. Move them out and bundle them in your Gemfile, or fold them in to your app as lib/myplugin/* and config/initializers/myplugin.rb. See the release notes for more on this: http://weblog.rubyonrails.org/2012/1/4/rails-3-2-0-rc2-has-been-released. (called from <top (required)> at /app/config/environment.rb:5)
2013-03-26T13:25:57+00:00 app[web.1]: => Booting WEBrick
2013-03-26T13:25:57+00:00 app[web.1]: => Call with -d to detach
2013-03-26T13:25:57+00:00 app[web.1]: Connecting to database specified by DATABASE_URL
2013-03-26T13:25:57+00:00 app[web.1]: => Ctrl-C to shutdown server
2013-03-26T13:25:57+00:00 app[web.1]: => Rails 3.2.12 application starting in production on http://0.0.0.0:59776
2013-03-26T13:25:57+00:00 app[web.1]: [2013-03-26 13:25:57] INFO ruby 1.9.2 (2011-07-09) [x86_64-linux]
2013-03-26T13:25:57+00:00 app[web.1]: [2013-03-26 13:25:57] INFO WEBrick::HTTPServer#start: pid=2 port=59776
2013-03-26T13:25:57+00:00 app[web.1]: [2013-03-26 13:25:57] INFO WEBrick 1.3.1
2013-03-26T13:25:58+00:00 heroku[web.1]: State changed from starting to up
2013-03-26T13:25:59+00:00 app[web.1]: Started GET "/" for 46.72.99.61 at 2013-03-26 13:25:59 +0000
2013-03-26T13:26:00+00:00 app[web.1]: Processing by PagesController#home as HTML
2013-03-26T13:26:00+00:00 app[web.1]: Rendered pages/home.html.erb within layouts/application (29.7ms)
2013-03-26T13:26:00+00:00 app[web.1]: Rendered layouts/_stylesheets.html.erb (0.3ms)
2013-03-26T13:26:00+00:00 app[web.1]: ActionView::Template::Error (PG::Error: ERROR: relation "users" does not exist
2013-03-26T13:26:00+00:00 app[web.1]: LINE 5: WHERE a.attrelid = '"users"'::regclass
2013-03-26T13:26:00+00:00 app[web.1]: ^
2013-03-26T13:26:00+00:00 app[web.1]: Rendered layouts/_menu.html.erb (26.4ms)
2013-03-26T13:26:00+00:00 app[web.1]: app/helpers/sessions_helper.rb:42:in `user_from_remember_token'
2013-03-26T13:26:00+00:00 app[web.1]: app/models/user.rb:32:in `authenticate_with_salt'
2013-03-26T13:26:00+00:00 app[web.1]: app/views/layouts/application.html.erb:15:in `_app_views_layouts_application_html_erb__3050356598751074094_29958360'
2013-03-26T13:26:00+00:00 app[web.1]: Completed 500 Internal Server Error in 99ms
2013-03-26T13:26:00+00:00 app[web.1]: 9: <!--<li><%= link_to "Users", users_path %></li>-->
2013-03-26T13:26:00+00:00 app[web.1]: app/views/layouts/_menu.html.erb:8:in `_app_views_layouts__menu_html_erb___3316497000915670487_28099760'
2013-03-26T13:26:00+00:00 app[web.1]: 6: <ul class="nav">
2013-03-26T13:26:00+00:00 app[web.1]: 7: <li class="active"><%= link_to "Главная", home_path %></li>
2013-03-26T13:26:00+00:00 app[web.1]: app/helpers/sessions_helper.rb:17:in `signed_in?'
2013-03-26T13:26:00+00:00 app[web.1]: WHERE a.attrelid = '"users"'::regclass
2013-03-26T13:26:00+00:00 app[web.1]:
2013-03-26T13:26:00+00:00 app[web.1]: 5: <div class="nav-collapse collapse">
2013-03-26T13:26:00+00:00 app[web.1]: 11: <li><%= link_to "Заказ", "#" %></li>
2013-03-26T13:26:00+00:00 app[web.1]:
2013-03-26T13:26:00+00:00 app[web.1]:
2013-03-26T13:26:00+00:00 app[web.1]: ON a.attrelid = d.adrelid AND a.attnum = d.adnum
2013-03-26T13:26:00+00:00 app[web.1]: 10: <li><%= link_to "Меню", menu_path %></li>
2013-03-26T13:26:00+00:00 app[web.1]: FROM pg_attribute a LEFT JOIN pg_attrdef d
2013-03-26T13:26:00+00:00 app[web.1]: 8: <% if signed_in? %>
2013-03-26T13:26:00+00:00 app[web.1]: pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
2013-03-26T13:26:00+00:00 app[web.1]: AND a.attnum > 0 AND NOT a.attisdropped
2013-03-26T13:26:00+00:00 app[web.1]: app/helpers/sessions_helper.rb:13:in `current_user'
2013-03-26T13:26:00+00:00 app[web.1]: : SELECT a.attname, format_type(a.atttypid, a.atttypmod),
2013-03-26T13:26:00+00:00 app[web.1]: ORDER BY a.attnum
2013-03-26T13:26:00+00:00 app[web.1]: ):
2013-03-26T13:26:00+00:00 heroku[router]: at=info method=GET path=/ host=ancient-cliffs-5913.herokuapp.com fwd="46.72.99.61" dyno=web.1 queue=0 wait=0ms connect=1ms service=254ms status=500 bytes=643
2013-03-26T13:26:00+00:00 heroku[router]: at=info method=GET path=/favicon.ico host=ancient-cliffs-5913.herokuapp.com fwd="46.72.99.61" dyno=web.1 queue=0 wait=0ms connect=3ms service=31ms status=200 bytes=0
root#Nikita-PC:/home/nikita/rails/invent# heroku open
Opening ancient-cliffs-5913... done
root#Nikita-PC:/home/nikita/rails/invent# heroku logs
2013-03-26T13:11:59+00:00 app[web.1]: 7: <li class="active"><%= link_to "Главная", home_path %></li>
2013-03-26T13:11:59+00:00 app[web.1]: 5: <div class="nav-collapse collapse">
2013-03-26T13:11:59+00:00 app[web.1]:
2013-03-26T13:11:59+00:00 app[web.1]: app/views/layouts/application.html.erb:15:in `_app_views_layouts_application_html_erb__1283683624385357693_38228720'
2013-03-26T13:11:59+00:00 app[web.1]:
2013-03-26T13:11:59+00:00 app[web.1]: 10: <li><%= link_to "Меню", menu_path %></li>
2013-03-26T13:11:59+00:00 app[web.1]: app/views/layouts/_menu.html.erb:8:in `_app_views_layouts__menu_html_erb__3258341653661936969_33454780'
2013-03-26T13:12:00+00:00 heroku[router]: at=info method=GET path=/favicon.ico host=ancient-cliffs-5913.herokuapp.com fwd="46.72.99.61" dyno=web.1 queue=0 wait=16ms connect=35ms service=33ms status=200 bytes=0
2013-03-26T13:25:17+00:00 heroku[slugc]: Slug compilation started
2013-03-26T13:25:50+00:00 heroku[api]: Release v14 created by nikskalkin#gmail.com
2013-03-26T13:25:50+00:00 heroku[api]: Deploy 7a646d5 by nikskalkin#gmail.com
2013-03-26T13:25:50+00:00 heroku[web.1]: State changed from up to starting
2013-03-26T13:25:51+00:00 heroku[slugc]: Slug compilation finished
2013-03-26T13:25:51+00:00 heroku[web.1]: Starting process with command `bundle exec rails server -p 59776`
2013-03-26T13:25:55+00:00 app[web.1]: DEPRECATION WARNING: You have Rails 2.3-style plugins in vendor/plugins! Support for these plugins will be removed in Rails 4.0. Move them out and bundle them in your Gemfile, or fold them in to your app as lib/myplugin/* and config/initializers/myplugin.rb. See the release notes for more on this: http://weblog.rubyonrails.org/2012/1/4/rails-3-2-0-rc2-has-been-released. (called from <top (required)> at /app/config/environment.rb:5)
2013-03-26T13:25:55+00:00 app[web.1]: DEPRECATION WARNING: You have Rails 2.3-style plugins in vendor/plugins! Support for these plugins will be removed in Rails 4.0. Move them out and bundle them in your Gemfile, or fold them in to your app as lib/myplugin/* and config/initializers/myplugin.rb. See the release notes for more on this: http://weblog.rubyonrails.org/2012/1/4/rails-3-2-0-rc2-has-been-released. (called from <top (required)> at /app/config/environment.rb:5)
2013-03-26T13:25:57+00:00 app[web.1]: => Booting WEBrick
2013-03-26T13:25:57+00:00 app[web.1]: => Call with -d to detach
2013-03-26T13:25:57+00:00 app[web.1]: Connecting to database specified by DATABASE_URL
2013-03-26T13:25:57+00:00 app[web.1]: => Ctrl-C to shutdown server
2013-03-26T13:25:57+00:00 app[web.1]: => Rails 3.2.12 application starting in production on http://0.0.0.0:59776
2013-03-26T13:25:57+00:00 app[web.1]: [2013-03-26 13:25:57] INFO ruby 1.9.2 (2011-07-09) [x86_64-linux]
2013-03-26T13:25:57+00:00 app[web.1]: [2013-03-26 13:25:57] INFO WEBrick::HTTPServer#start: pid=2 port=59776
2013-03-26T13:25:57+00:00 app[web.1]: [2013-03-26 13:25:57] INFO WEBrick 1.3.1
2013-03-26T13:25:58+00:00 heroku[web.1]: State changed from starting to up
2013-03-26T13:25:59+00:00 app[web.1]: Started GET "/" for 46.72.99.61 at 2013-03-26 13:25:59 +0000
2013-03-26T13:26:00+00:00 app[web.1]: Processing by PagesController#home as HTML
2013-03-26T13:26:00+00:00 app[web.1]: Rendered pages/home.html.erb within layouts/application (29.7ms)
2013-03-26T13:26:00+00:00 app[web.1]: Rendered layouts/_stylesheets.html.erb (0.3ms)
2013-03-26T13:26:00+00:00 app[web.1]: ActionView::Template::Error (PG::Error: ERROR: relation "users" does not exist
2013-03-26T13:26:00+00:00 app[web.1]: LINE 5: WHERE a.attrelid = '"users"'::regclass
2013-03-26T13:26:00+00:00 app[web.1]: ^
2013-03-26T13:26:00+00:00 app[web.1]: Rendered layouts/_menu.html.erb (26.4ms)
2013-03-26T13:26:00+00:00 app[web.1]: app/helpers/sessions_helper.rb:42:in `user_from_remember_token'
2013-03-26T13:26:00+00:00 app[web.1]: app/models/user.rb:32:in `authenticate_with_salt'
2013-03-26T13:26:00+00:00 app[web.1]: app/views/layouts/application.html.erb:15:in `_app_views_layouts_application_html_erb__3050356598751074094_29958360'
2013-03-26T13:26:00+00:00 app[web.1]: Completed 500 Internal Server Error in 99ms
2013-03-26T13:26:00+00:00 app[web.1]: 9: <!--<li><%= link_to "Users", users_path %></li>-->
2013-03-26T13:26:00+00:00 app[web.1]: app/views/layouts/_menu.html.erb:8:in `_app_views_layouts__menu_html_erb___3316497000915670487_28099760'
2013-03-26T13:26:00+00:00 app[web.1]: 6: <ul class="nav">
2013-03-26T13:26:00+00:00 app[web.1]: 7: <li class="active"><%= link_to "Главная", home_path %></li>
2013-03-26T13:26:00+00:00 app[web.1]: app/helpers/sessions_helper.rb:17:in `signed_in?'
2013-03-26T13:26:00+00:00 app[web.1]: WHERE a.attrelid = '"users"'::regclass
2013-03-26T13:26:00+00:00 app[web.1]:
2013-03-26T13:26:00+00:00 app[web.1]: 5: <div class="nav-collapse collapse">
2013-03-26T13:26:00+00:00 app[web.1]: 11: <li><%= link_to "Заказ", "#" %></li>
2013-03-26T13:26:00+00:00 app[web.1]:
2013-03-26T13:26:00+00:00 app[web.1]:
2013-03-26T13:26:00+00:00 app[web.1]: ON a.attrelid = d.adrelid AND a.attnum = d.adnum
2013-03-26T13:26:00+00:00 app[web.1]: 10: <li><%= link_to "Меню", menu_path %></li>
2013-03-26T13:26:00+00:00 app[web.1]: FROM pg_attribute a LEFT JOIN pg_attrdef d
2013-03-26T13:26:00+00:00 app[web.1]: 8: <% if signed_in? %>
2013-03-26T13:26:00+00:00 app[web.1]: pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
2013-03-26T13:26:00+00:00 app[web.1]: AND a.attnum > 0 AND NOT a.attisdropped
2013-03-26T13:26:00+00:00 app[web.1]: app/helpers/sessions_helper.rb:13:in `current_user'
2013-03-26T13:26:00+00:00 app[web.1]: : SELECT a.attname, format_type(a.atttypid, a.atttypmod),
2013-03-26T13:26:00+00:00 app[web.1]: ORDER BY a.attnum
2013-03-26T13:26:00+00:00 app[web.1]: ):
2013-03-26T13:26:00+00:00 heroku[router]: at=info method=GET path=/ host=ancient-cliffs-5913.herokuapp.com fwd="46.72.99.61" dyno=web.1 queue=0 wait=0ms connect=1ms service=254ms status=500 bytes=643
2013-03-26T13:26:00+00:00 heroku[router]: at=info method=GET path=/favicon.ico host=ancient-cliffs-5913.herokuapp.com fwd="46.72.99.61" dyno=web.1 queue=0 wait=0ms connect=3ms service=31ms status=200 bytes=0
2013-03-26T13:25:53+00:00 heroku[web.1]: Stopping all processes with SIGTERM
2013-03-26T13:25:54+00:00 app[web.1]: /usr/local/lib/ruby/1.9.1/webrick/server.rb:90:in `select'
2013-03-26T13:25:54+00:00 app[web.1]: [2013-03-26 13:25:54] ERROR SignalException: SIGTERM
2013-03-26T13:26:04+00:00 heroku[web.1]: Stopping remaining processes with SIGKILL
2013-03-26T13:26:04+00:00 heroku[web.1]: Error R12 (Exit timeout) -> At least one process failed to exit within 10 seconds of SIGTERM
2013-03-26T13:26:06+00:00 heroku[web.1]: Process exited with status 137
2013-03-26T13:29:30+00:00 app[web.1]: Started GET "/" for 46.72.99.61 at 2013-03-26 13:29:30 +0000
2013-03-26T13:29:30+00:00 app[web.1]: Rendered layouts/_stylesheets.html.erb (0.0ms)
2013-03-26T13:29:30+00:00 app[web.1]: Processing by PagesController#home as HTML
2013-03-26T13:29:30+00:00 app[web.1]: Rendered pages/home.html.erb within layouts/application (0.0ms)
2013-03-26T13:29:30+00:00 app[web.1]: LINE 5: WHERE a.attrelid = '"users"'::regclass
2013-03-26T13:29:30+00:00 app[web.1]: ^
2013-03-26T13:29:30+00:00 app[web.1]: Rendered layouts/_menu.html.erb (6.5ms)
2013-03-26T13:29:30+00:00 app[web.1]: Completed 500 Internal Server Error in 13ms
2013-03-26T13:29:30+00:00 app[web.1]: ActionView::Template::Error (PG::Error: ERROR: relation "users" does not exist
2013-03-26T13:29:30+00:00 app[web.1]:
2013-03-26T13:29:30+00:00 app[web.1]: ON a.attrelid = d.adrelid AND a.attnum = d.adnum
2013-03-26T13:29:30+00:00 app[web.1]: WHERE a.attrelid = '"users"'::regclass
2013-03-26T13:29:30+00:00 app[web.1]: FROM pg_attribute a LEFT JOIN pg_attrdef d
2013-03-26T13:29:30+00:00 app[web.1]: AND a.attnum > 0 AND NOT a.attisdropped
2013-03-26T13:29:30+00:00 app[web.1]: ORDER BY a.attnum
2013-03-26T13:29:30+00:00 app[web.1]: ):
2013-03-26T13:29:30+00:00 app[web.1]: 6: <ul class="nav">
2013-03-26T13:29:30+00:00 app[web.1]: pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
2013-03-26T13:29:30+00:00 app[web.1]: 5: <div class="nav-collapse collapse">
2013-03-26T13:29:30+00:00 app[web.1]: : SELECT a.attname, format_type(a.atttypid, a.atttypmod),
2013-03-26T13:29:30+00:00 app[web.1]: 10: <li><%= link_to "Меню", menu_path %></li>
2013-03-26T13:29:30+00:00 app[web.1]: 9: <!--<li><%= link_to "Users", users_path %></li>-->
2013-03-26T13:29:30+00:00 app[web.1]: 11: <li><%= link_to "Заказ", "#" %></li>
2013-03-26T13:29:30+00:00 app[web.1]: app/models/user.rb:32:in `authenticate_with_salt'
2013-03-26T13:29:30+00:00 app[web.1]: app/helpers/sessions_helper.rb:13:in `current_user'
2013-03-26T13:29:30+00:00 app[web.1]: app/helpers/sessions_helper.rb:17:in `signed_in?'
2013-03-26T13:29:30+00:00 app[web.1]: 8: <% if signed_in? %>
2013-03-26T13:29:30+00:00 app[web.1]: app/helpers/sessions_helper.rb:42:in `user_from_remember_token'
2013-03-26T13:29:30+00:00 app[web.1]: 7: <li class="active"><%= link_to "Главная", home_path %></li>
2013-03-26T13:29:30+00:00 app[web.1]:
2013-03-26T13:29:30+00:00 app[web.1]:
2013-03-26T13:29:30+00:00 app[web.1]: app/views/layouts/application.html.erb:15:in `_app_views_layouts_application_html_erb__3050356598751074094_29958360'
2013-03-26T13:29:30+00:00 app[web.1]: app/views/layouts/_menu.html.erb:8:in `_app_views_layouts__menu_html_erb___3316497000915670487_28099760'
2013-03-26T13:29:30+00:00 heroku[router]: at=info method=GET path=/favicon.ico host=ancient-cliffs-5913.herokuapp.com fwd="46.72.99.61" dyno=web.1 connect=10ms service=9ms status=304 bytes=0
2013-03-26T13:29:30+00:00 heroku[router]: at=info method=GET path=/ host=ancient-cliffs-5913.herokuapp.com fwd="46.72.99.61" dyno=web.1 queue=0 wait=0ms connect=1ms service=34ms status=500 bytes=643
Update
I can use only MySQL. My project is testing task for internship of one company i'm looking for. And they said me to use MySql in project.
Heroku is really designed to run PostgreSQL as its database engine, not MySQL. You actually have the postgresql gem installed (pg). The error you're getting is related to accessing the database (specifically the users table).
While it is possible to run MySQL on Heroku as a new user I'd recommend just working with postgresql instead, as it's much easier to set up and you won't have to worry about installing additional add-ons to get it to work.
Where are you hosting your MySQL database? Make sure you db server has allowed remote access from Heroku. Amazon (AWS) is best solution once setup properly.
If you are hosting the MySQL db on your local machine for production then you will need to make sure Heroku's servers have remote access back to your computer for production.
In your Gemfile remove these lines and replace with example below.
gem 'pg'
gem 'sqlite3-ruby', :require => 'sqlite3'
gem "mysql2", "~> 0.3.11"
I also would strongly recomend checking out https://github.com/laserlemon/figaro & http://railscasts.com/episodes/85-yaml-configuration-revised?view=comments
To Setup MySQL on AWS:
Update Gemfile with correct db gems
Update database.yml connection settings
Install Heroku toolbelt https://toolbelt.heroku.com/
Sign up for AWS hosted MySQL http://aws.amazon.com/rds/
Amazon requires you to grant access from both your local machine’s WAN IP & you will also need to grant Heroku’s application servers authorized access for production.
SignIn to AWS via http://console.aws.amazon.com/
Go to "Services" > "RDS"
Under left menu "Navigation/Databases" > "DB Security Groups" > "default"
Add CIDR/IP: #.#.#.# (your local pc ip http://www.whatsmyip.us/)
Add EC2 Security Group (this is heroku aws id)
aws account id: "098166147350"
ec2 security group: "default"
Setup AWS RDS MySQL Database on Heroku
Confirm Heroku is Granted AWS RDS Remote Access
$ cd myAppDir
$ heroku login
$ heroku config:get DATABASE_URL
$ heroku addons:add amazon_rds url=mysql2://masteruser:pass#dbinstance.123endpoint321.amazonaws.com/databasename
$ heroku config:get DATABASE_URL
Confirm New Database Settings
Gemfile ~ Don't forget $ bundle install & $ bundle update
# ===~===~===~===~===~===~===~===~===~===
group :development do
gem 'mysql2'
end
# ===~===~===~===~===~===~===~===~===~===
group :production do
# gem 'pg'
gem 'mysql2'
end
# ===~===~===~===~===~===~===~===~===~===
group :test do
gem 'sqlite3'
# gem 'mysql2'
end
# ===~===~===~===~===~===~===~===~===~===
database.yml ~ Examples of each type of db connection.
# AWS RDS ~~~~~~~~~~~~~~~~
development:
adapter: mysql2
encoding: utf8
host: dbinstance.123endpoint789.us-east-1.rds.amazonaws.com
database: appdb_dev
pool: 5
username: masterusername
password: password
socket: /tmp/mysql.sock
# ~~~~~~~~~~~~~~~~~~~~~~~~
# MySQL localhost ~~~~~~~~
# development:
# adapter: mysql2
# encoding: utf8
# database: erics_rails_app_dev
# pool: 5
# username: root
# password:
# socket: /tmp/mysql.sock
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# HEROKU ~~~~~~~~~~~~~~~~~
# Note: On Heroku production this (over)written on deployment.
production:
adapter: pg
database: localhost
timeout: 5000
# ORIGINAL TEST ~~~~~~~~~~~~~~~
test:
adapter: sqlite3
database: db/test.sqlite3
pool: 5
timeout: 5000
MySQL WorkBench Settings ~ http://dev.mysql.com/downloads/workbench/
* hostname = dbinstance.123endpoint789.us-east-1.rds.amazonaws.com
* user = masterusername
* pass = password
* port = 3306
Do you have a mysql addon for the app?
Heroku provides you with a Postgres database by default but if you want to use another database type aka mysql then you will need to use an addon. There may be a free solution in the addons i'm not sure.
When you deploy your application to Heroku they override your database.yml file pointing it to the correct database url.
First heroku provides you a PostgreSQL database for your app, edit your Gemfile
and add gem 'pg'
also it uses thin as server so add
gem 'thin'
chage your Database.yml as for all enviromments
adapter: PostgreSQL
encoding: utf8
reconnect: false
database: myapp_production
pool: 5
username: root
password: "0761"
Remove the mysql gem from your production environment. Heroku doesn't support sqlite databases. Use postgres in production. Your gemfile should look something like this:
group :production do
gem "pg" # move your pg gem inside here
end
group :development, :test do
gem "sqlite3"
end
Change your gemfile to reflect the above, run $ bundle to bundle then new gems, add and commit your changes and push them to heroku.
This will allow you to use sqlite in development and test, and postgresql in production, which heroku requires.

Sendgrid connection refused

I am developing a Ruby on Rails 3.2 application on Heroku. I added the sendgrid addon with
heroku addons:add sendgrid:starter
and then restarted with
heroku restart
However, if I try to send a password email in my application (I am using the devise login gem), I get this in the logs
2013-01-24T17:35:37+00:00 app[web.1]: Started POST "/users/password" for xxx.xxx.xxx.xx at 2013-01-24 17:35:37 +0000
2013-01-24T17:35:37+00:00 app[web.1]: Processing by Devise::PasswordsController#create as HTML
2013-01-24T17:35:37+00:00 app[web.1]: Parameters: {"utf8"=>"✓", "authenticity_token"=>"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX=", "user"=>{"email"=>"xxxxxxxx.xxxxxx#gmail.com"}, "commit"=>"Send me reset password instructions"}
2013-01-24T17:35:38+00:00 app[web.1]: Rendered vendor/bundle/ruby/1.9.1/gems/devise-2.2.2/app/views/devise/mailer/reset_password_instructions.html.erb (1.0ms)
2013-01-24T17:35:41+00:00 app[web.1]:
2013-01-24T17:35:41+00:00 app[web.1]: Sent mail to xxx.xxxxx#gmail.com (3080ms)
2013-01-24T17:35:41+00:00 app[web.1]: Completed 500 Internal Server Error in 3311ms
2013-01-24T17:35:41+00:00 app[web.1]:
2013-01-24T17:35:41+00:00 app[web.1]: Errno::ECONNREFUSED (Connection refused - connect(2)):
2013-01-24T17:35:41+00:00 app[web.1]: /usr/local/lib/ruby/1.9.1/net/smtp.rb:546:in `initialize'
2013-01-24T17:35:41+00:00 app[web.1]: /usr/local/lib/ruby/1.9.1/net/smtp.rb:546:in `open'
2013-01-24T17:35:41+00:00 app[web.1]: /usr/local/lib/ruby/1.9.1/net/smtp.rb:546:in `tcp_socket'
2013-01-24T17:35:41+00:00 app[web.1]: /usr/local/lib/ruby/1.9.1/net/smtp.rb:555:in `block in do_start'
2013-01-24T17:35:41+00:00 app[web.1]: /usr/local/lib/ruby/1.9.1/timeout.rb:58:in `timeout'
2013-01-24T17:35:41+00:00 app[web.1]: /usr/local/lib/ruby/1.9.1/timeout.rb:89:in `timeout'
2013-01-24T17:35:41+00:00 app[web.1]: /usr/local/lib/ruby/1.9.1/net/smtp.rb:555:in `do_start'
2013-01-24T17:35:41+00:00 app[web.1]: /usr/local/lib/ruby/1.9.1/net/smtp.rb:525:in `start'
2013-01-24T17:35:41+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/mail-2.4.4/lib/mail/network/delivery_methods/smtp.rb:144:in `deliver!'
2013-01-24T17:35:41+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/mail-2.4.4/lib/mail/message.rb:2034:in `do_delivery'
You need to configure ActiveMailer with something like
ActionMailer::Base.smtp_settings = {
:address => "smtp.sendgrid.net",
:port => "25",
:authentication => :plain,
:user_name => ENV['SENDGRID_USERNAME'],
:password => ENV['SENDGRID_PASSWORD'],
:domain => ENV['SENDGRID_DOMAIN']
}
and make sure your application has the SENGRID configuration variables in the environment - you can check with heroku config.

Rails 3.2.5 - Multi Model Nested Form, Heroku NoMethodError

I have been searching high and low for answers and I'm at a standstill. Everything works on my local development environment but everythign blows up on production (Heroku). Using same database (postgres). Heroku blows up a NoMethodError even though I don't believe I'm ever sending to that method.
I have main 3 models (additional join model), one nested form that has a has_many :through submitting to all three models, and Static_Pages#signup (acting as new action) and a Subscriptions_Controller#create where the issue is happening.
Models
class Location < ActiveRecord::Base
attr_accessible :address_line_2, :city, :lat, :long, :name, :state, :street_address, :website, :zip, :phone_number, :user_id
has_many :relationships
has_many :users, :through => :relationships
end
class User < ActiveRecord::Base
has_one :subscription
has_one :plan, :through => :subscription
has_many :relationships
has_many :locations, :through => :relationships
devise :database_authenticatable, :registerable,
:recoverable, :rememberable, :trackable, :validatable
attr_accessible :first_name, :last_name, :email, :password,
:password_confirmation, :remember_me, :stripe_token,
:phone_number,:location
end
class Subscription < ActiveRecord::Base
attr_accessor :stripe_card_token
attr_accessible :card_expiration, :card_type, :card_zip,
:current_period_end, :current_period_start, :last_four,
:next_bill_on, :plan_id, :status, :stripe_customer_token,
:trial_end, :trial_start, :user_id
belongs_to :plan
belongs_to :user
end
class Relationship < ActiveRecord::Base
belongs_to :user
belongs_to :location
end
Controllers
class StaticPagesController < ApplicationController
def home
end
def signup
#user = User.new
#plan = Plan.find_by_identifier("basic_monthly")
#location = #user.locations.build
#subscription = Subscription.new
end
def thankyou
end
end
class SubscriptionsController < ApplicationController
def create
#subscription = Subscription.new params[:subscription]
#user = User.create! params[:user]
#subscription.user = #user
#user.locations << Location.create!(params[:location])
#plan = Plan.find params[:subscription][:plan_id]
if #subscription.save
redirect_to thankyou_path
else
render template: 'static_pages#signup'
end
end
end
Signup Form
<%= form_for #user, :url => subscriptions_path(#user) do |user_form| %>
First name : <%= user_form.text_field :first_name %><br />
Last name : <%= user_form.text_field :last_name %><br />
Email : <%= user_form.email_field :email %><br />
Phone Number : <%= user_form.phone_field :phone_number %><br />
Password : <%= user_form.password_field :password %><br />
Password Confirmation : <%= user_form.password_field :password_confirmation %><br />
<%= fields_for #location do |location_fields| %>
Business Name : <%= location_fields.text_field :name %><br />
Street Address : <%= location_fields.text_field :street_address %><br />
Address Line 2 : <%= location_fields.text_field :address_line_2 %><br />
City : <%= location_fields.text_field :city %><br />
State : <%= location_fields.text_field :state %><br />
Zip : <%= location_fields.text_field :zip %><br />
Website : <%= location_fields.url_field :website %><br /><br />
<% end %>
<%= fields_for #subscription do |subscription_field| %>
<%= subscription_field.hidden_field :plan_id, value: #plan.id %>
<% end %>
<%= user_form.submit "Sign up", :class => 'btn primary large' %>
<% end %>
Finally... the error thrown from Heroku logs (again, this works perfectly fine on my local machine)
Heroku Error - UPDATED
2012-08-03T21:06:30+00:00 app[web.1]: Started GET "/signup" for 72.177.139.69 at 2012-08-03 21:06:30 +0000
2012-08-03T21:06:30+00:00 app[web.1]: Processing by StaticPagesController#signup as HTML
2012-08-03T21:06:30+00:00 app[web.1]: Plan Load (1.3ms) SELECT "plans".* FROM "plans" WHERE "plans"."identifier" = 'basic_monthly' LIMIT 1
2012-08-03T21:06:30+00:00 app[web.1]: Rendered static_pages/signup.html.erb within layouts/application (8.0ms)
2012-08-03T21:06:30+00:00 app[web.1]: Rendered layouts/_shim.html.erb (0.0ms)
2012-08-03T21:06:30+00:00 app[web.1]: Rendered layouts/_navigation.html.erb (1.3ms)
2012-08-03T21:06:30+00:00 app[web.1]: Rendered layouts/_messages.html.erb (0.1ms)
2012-08-03T21:06:30+00:00 app[web.1]: Rendered layouts/_footer.html.erb (0.2ms)
2012-08-03T21:06:30+00:00 app[web.1]: Rendered layouts/_analytics.html.erb (0.0ms)
2012-08-03T21:06:30+00:00 app[web.1]: Completed 200 OK in 458ms (Views: 52.2ms | ActiveRecord: 76.5ms)
2012-08-03T21:06:30+00:00 heroku[router]: GET www.myappname.com/signup dyno=web.1 queue=0 wait=0ms service=470ms status=200 bytes=7555
2012-08-03T21:07:02+00:00 app[web.1]:
2012-08-03T21:07:02+00:00 app[web.1]:
2012-08-03T21:07:02+00:00 app[web.1]: Started POST "/subscriptions" for 72.177.139.69 at 2012-08-03 21:07:02 +0000
2012-08-03T21:07:03+00:00 app[web.1]:
2012-08-03T21:07:03+00:00 app[web.1]: NoMethodError (undefined method `name' for #<User:0x00000003f13a30>):
2012-08-03T21:07:03+00:00 app[web.1]: app/controllers/subscriptions_controller.rb:5:in `create'
2012-08-03T21:07:03+00:00 app[web.1]:
2012-08-03T21:07:03+00:00 app[web.1]:
2012-08-03T21:07:03+00:00 app[web.1]: Processing by SubscriptionsController#create as HTML
2012-08-03T21:07:03+00:00 app[web.1]: Parameters: {"utf8"=>"✓", "authenticity_token"=>"ahRL7xz6NE72fxib+KxEX9BVue/NCmS1dSLXSv66alc=", "user"=>{"first_name"=>"Big", "last_name"=>"Boy", "email"=>"example#gmail.com", "phone_number"=>"123456", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "location"=>{"name"=>"Drew's American Grille", "street_address"=>"123 Physical Address", "address_line_2"=>"", "city"=>"San Antonio", "state"=>"Texas", "zip"=>"78209", "website"=>""}, "subscription"=>{"plan_id"=>"1"}, "commit"=>"Sign up"}
2012-08-03T21:07:03+00:00 app[web.1]: (0.7ms) BEGIN
2012-08-03T21:07:03+00:00 app[web.1]: User Exists (1.5ms) SELECT 1 FROM "users" WHERE "users"."email" = 'example#gmail.com' LIMIT 1
2012-08-03T21:07:03+00:00 app[web.1]: CACHE (0.0ms) SELECT 1 FROM "users" WHERE "users"."email" = 'example#gmail.com' LIMIT 1
2012-08-03T21:07:03+00:00 app[web.1]: (0.6ms) ROLLBACK
2012-08-03T21:07:03+00:00 app[web.1]: Completed 500 Internal Server Error in 100ms
2012-08-03T21:07:03+00:00 heroku[router]: POST www.myappname.com/subscriptions dyno=web.1 queue=0 wait=0ms service=134ms status=500 bytes=643
2012-08-03T21:07:03+00:00 heroku[router]: GET www.myappname.com/favicon.ico dyno=web.1 queue=0 wait=0ms service=5ms status=304 bytes=0
I can upload a schema if need be but essentially it's as follows:
Mini version of schema
users
email
first_name
last_name
phone_number
<normal devise handlers>
...
subscriptions
user_id
plan_id
...
relationships
user_id
location_id
locations (all :null => false)
name
street_address
city
state
zip
...
Also heroku run rake db:migrate doesn't work
It throws a "database configuration does not specify adapter" exception, but Heroku overwrites the database.yml file so why would this occur?
Running `rake db:migrate --trace` attached to terminal... up, run.1
** Invoke db:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
** Invoke db:load_config (first_time)
** Invoke rails_env (first_time)
** Execute rails_env
** Execute db:load_config
** Execute db:migrate
** Invoke db:_dump (first_time)
** Execute db:_dump
** Invoke db:schema:dump (first_time)
** Invoke environment
** Invoke db:load_config
** Execute db:schema:dump
rake aborted!
database configuration does not specify adapter
/app/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.5/lib/active_record/connection_adapters/abstract/connection_specification.rb:45:in `resolve_hash_connection'
/app/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.5/lib/active_record/connection_adapters/abstract/connection_specification.rb:39:in `resolve_string_connection'
/app/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.5/lib/active_record/connection_adapters/abstract/connection_specification.rb:25:in `spec'
/app/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.5/lib/active_record/connection_adapters/abstract/connection_specification.rb:127:in `establish_connection'
/app/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.5/lib/active_record/railties/databases.rake:356:in `block (4 levels) in <top (required)>'
/app/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.5/lib/active_record/railties/databases.rake:355:in `open'
/app/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.5/lib/active_record/railties/databases.rake:355:in `block (3 levels) in <top (required)>'
/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:205:in `call'
/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:205:in `block in execute'
/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:200:in `each'
/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:200:in `execute'
/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:158:in `block in invoke_with_call_chain'
/usr/local/lib/ruby/1.9.1/monitor.rb:201:in `mon_synchronize'
/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:151:in `invoke_with_call_chain'
/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:144:in `invoke'
/app/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.5/lib/active_record/railties/databases.rake:161:in `block (2 levels) in <top (required)>'
/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:205:in `call'
/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:205:in `block in execute'
/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:200:in `each'
/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:200:in `execute'
/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:158:in `block in invoke_with_call_chain'
/usr/local/lib/ruby/1.9.1/monitor.rb:201:in `mon_synchronize'
/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:151:in `invoke_with_call_chain'
/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:144:in `invoke'
/app/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.5/lib/active_record/railties/databases.rake:156:in `block (2 levels) in <top (required)>'
/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:205:in `call'
/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:205:in `block in execute'
/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:200:in `each'
/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:200:in `execute'
/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:158:in `block in invoke_with_call_chain'
/usr/local/lib/ruby/1.9.1/monitor.rb:201:in `mon_synchronize'
/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:151:in `invoke_with_call_chain'
/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:144:in `invoke'
/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:116:in `invoke_task'
/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `block (2 levels) in top_level'
/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `each'
/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `block in top_level'
/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'
/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:88:in `top_level'
/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:66:in `block in run'
/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'
/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:63:in `run'
/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/bin/rake:33:in `<top (required)>'
/app/vendor/bundle/ruby/1.9.1/bin/rake:19:in `load'
/app/vendor/bundle/ruby/1.9.1/bin/rake:19:in `<main>'
Tasks: TOP => db:schema:dump
I made a stupid silly mistake (still new at Ruby and programming in general). I had a previous model called old_user.rb that had class User < ActiveRecord::Base which conflicted with user.rb and generated out the other errors. For some reason, I guess the load order on my dev machine was different than Heroku's load order and why I never realized it.

Heroku, S3, Paperclip one model uploads fine, the other doesn't no errors

Alright so I have 2 models with uploads, an Auction and a User.
I'm using Paperclip, Rails 3.2, and Ruby 1.9.3. The platform is Heroku Cedar.
Here's the credential details:
S3_BUCKET = ENV['S3_BUCKET'] || "..."
S3_ID = ENV['S3_ID'] || "AKIAJXD4ZBGYF24..."
S3_KEY = ENV['S3_KEY'] || "fJ7eNKQtFGf1s..."
S3_UPLOAD_OPTIONS = {
storage: :s3,
bucket: S3_BUCKET,
s3_credentials: {
access_key_id: S3_ID,
secret_access_key: S3_KEY
}
}
Auction file uploads are working fine. Everything is as expected.
User uploads do not work, and have zero errors as shown below:
2012-05-17T20:39:16+00:00 app[web.1]:
2012-05-17T20:39:16+00:00 app[web.1]: DalliError: No server available
2012-05-17T20:39:16+00:00 app[web.1]:
2012-05-17T20:39:16+00:00 app[web.1]:
2012-05-17T20:39:16+00:00 app[web.1]: Started PUT "/users" for 208.117.193.99 at 2012-05-17 20:39:16 +0000
2012-05-17T20:39:18+00:00 heroku[router]: POST cfac-staging.herokuapp.com/users dyno=web.1 queue=0 wait=0ms service=2006ms status=302 bytes=113
2012-05-17T20:39:18+00:00 app[web.1]: cache: [POST /users] invalidate, pass
2012-05-17T20:39:18+00:00 app[web.1]:
2012-05-17T20:39:18+00:00 app[web.1]: DalliError: No server available
2012-05-17T20:39:18+00:00 app[web.1]:
2012-05-17T20:39:18+00:00 app[web.1]:
2012-05-17T20:39:18+00:00 app[web.1]: Started GET "/auctions/new" for 208.117.193.99 at 2012-05-17 20:39:18 +0000
2012-05-17T20:39:19+00:00 heroku[router]: GET cfac-staging.herokuapp.com/auctions/new dyno=web.1 queue=0 wait=0ms service=1154ms status=304 bytes=0
2012-05-17T20:39:19+00:00 app[web.1]: cache: [GET /auctions/new] miss
2012-05-17T20:39:19+00:00 app[web.1]: DalliError: No server available
2012-05-17T20:39:19+00:00 app[web.1]: cache: [GET /assets/blank-avatar-9a23306b75ac790741fc7e05300183b6.png] miss
2012-05-17T20:39:19+00:00 heroku[router]: GET cfac-staging.herokuapp.com/assets/blank-avatar-9a23306b75ac790741fc7e05300183b6.png dyno=web.1 queue=0 wait=0ms service=3ms status=200 bytes=2212
2012-05-17T20:39:19+00:00 app[web.1]: DalliError: No server available
2012-05-17T20:39:19+00:00 app[web.1]: cache: [GET /assets/get-started-button-f7e9baac88feb2effa461b697df8bcd9.png] miss
2012-05-17T20:39:19+00:00 heroku[router]: GET cfac-staging.herokuapp.com/assets/get-started-button-f7e9baac88feb2effa461b697df8bcd9.png dyno=web.1 queue=0 wait=0ms service=3ms status=200 bytes=2451
I have no idea why the DalliError bit is happening either, so...
Here are the User and Auction models:
class User < ActiveRecord::Base
has_attached_file :logo, { styles: { medium: "x125", thumb: "x40" } }.merge!(S3_UPLOAD_OPTIONS)
end
class Auction < ActiveRecord::Base
has_attached_file :image, { styles: { medium: "122x122#", thumb: "80x80#" }, default_url: ActionController::Base.helpers.image_path('blank-avatar.png') }.merge!(S3_UPLOAD_OPTIONS)
end