Note that there are some explanatory texts on larger screens.

plurals
  1. PODebugging Heroku Deployment (500 Error)
    primarykey
    data
    text
    <p>I've been working on deploying my first rails app to heroku for the past few nights and am struggling to figure out how to solve this problem.</p> <p>I used Michael Hartl's tutorial (http://ruby.railstutorial.org/chapters/beginning#sec-deploying) to make sure I set up my app on the Cedar Stack.</p> <p>Per the Heroku tutorial, I'm using "thin" as the server.</p> <p>I've read a bunch of posts and have precompiled my assets using:</p> <p>heroku run bundle exec rake assets:precompile bundle exec rake assets:precompile</p> <p>I have also migrated my databases.</p> <p>My app works on my localhost.</p> <p>Here is my gemfile:</p> <pre><code>source 'https://rubygems.org' gem 'rails', '3.2.8' gem 'bootstrap-sass', '2.0.0' gem 'bcrypt-ruby' gem 'thin' group :development, :test do gem 'rspec-rails' end group :development do gem 'sqlite3' end # Bundle edge Rails instead: # gem 'rails', :git =&gt; 'git://github.com/rails/rails.git' group :production do gem 'pg' end # Gems used only for assets and not required # in production environments by default. group :assets do gem 'sass-rails', '~&gt; 3.2.3' gem 'coffee-rails', '~&gt; 3.2.1' # See https://github.com/sstephenson/execjs#readme for more supported runtimes # gem 'therubyracer', :platforms =&gt; :ruby gem 'uglifier', '&gt;= 1.0.3' end gem 'jquery-rails' group :test do gem 'capybara' gem 'factory_girl_rails' end </code></pre> <p>Here are my heroku logs</p> <pre><code>2012-09-02T01:56:17+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 &lt;top (required)&gt; at /app/config/environment.rb:5) 2012-09-02T01:56:20+00:00 app[web.1]: =&gt; Booting Thin 2012-09-02T01:56:20+00:00 app[web.1]: =&gt; Rails 3.2.8 application starting in production on http://0.0.0.0:50510 2012-09-02T01:56:20+00:00 app[web.1]: =&gt; Call with -d to detach 2012-09-02T01:56:20+00:00 app[web.1]: =&gt; Ctrl-C to shutdown server 2012-09-02T01:56:20+00:00 app[web.1]: Connecting to database specified by DATABASE_URL 2012-09-02T01:56:21+00:00 app[web.1]: &gt;&gt; Thin web server (v1.4.1 codename Chromeo) 2012-09-02T01:56:21+00:00 app[web.1]: &gt;&gt; Maximum connections set to 1024 2012-09-02T01:56:21+00:00 app[web.1]: &gt;&gt; Listening on 0.0.0.0:50510, CTRL+C to stop 2012-09-02T01:56:21+00:00 heroku[web.1]: State changed from starting to up 2012-09-02T01:56:23+00:00 app[web.1]: 2012-09-02T01:56:23+00:00 app[web.1]: 2012-09-02T01:56:23+00:00 app[web.1]: Started GET "/" for 108.210.1.241 at 2012-09-02 01:56:23 +0000 2012-09-02T01:56:23+00:00 app[web.1]: Processing by StaticPagesController#home as HTML 2012-09-02T01:56:23+00:00 app[web.1]: Rendered static_pages/home.html.erb within layouts/application (14.9ms) 2012-09-02T01:56:23+00:00 app[web.1]: Completed 500 Internal Server Error in 103ms 2012-09-02T01:56:23+00:00 app[web.1]: ActionView::Template::Error (screen.css isn't precompiled): 2012-09-02T01:56:23+00:00 app[web.1]: 2012-09-02T01:56:23+00:00 app[web.1]: 2: &lt;html&gt; 2012-09-02T01:56:23+00:00 app[web.1]: 3: &lt;head&gt; 2012-09-02T01:56:23+00:00 heroku[router]: GET morning-inlet-9513.herokuapp.com/ dyno=web.1 queue=0 wait=0ms service=262ms status=500 bytes=643 2012-09-02T01:56:23+00:00 app[web.1]: 4: &lt;title&gt;GabisBag&lt;/title&gt; 2012-09-02T01:56:23+00:00 app[web.1]: 2012-09-02T01:56:23+00:00 app[web.1]: 5: &lt;%= stylesheet_link_tag "screen", :media =&gt; "screen" %&gt; 2012-09-02T01:56:23+00:00 app[web.1]: 2012-09-02T01:56:23+00:00 app[web.1]: app/views/layouts/application.html.erb:5:in `_app_views_layouts_application_html_erb__1090905269972481286_30934000' 2012-09-02T01:56:23+00:00 app[web.1]: 6: &lt;%= stylesheet_link_tag "landing_pages", :media =&gt; "screen" %&gt; 2012-09-02T01:56:23+00:00 app[web.1]: 7: &lt;%= javascript_include_tag "application" %&gt; 2012-09-02T01:56:23+00:00 app[web.1]: 8: &lt;%= csrf_meta_tags %&gt; 2012-09-02T02:05:54+00:00 heroku[api]: Starting process with command `bundle exec rake assets:precompile` by jflores1@alumni.nd.edu 2012-09-02T02:05:57+00:00 heroku[run.1]: Awaiting client 2012-09-02T02:05:57+00:00 heroku[run.1]: Starting process with command `bundle exec rake assets:precompile` 2012-09-02T02:05:58+00:00 heroku[run.1]: State changed from starting to up 2012-09-02T02:06:14+00:00 heroku[run.1]: Client connection closed. Sending SIGHUP to all processes 2012-09-02T02:06:15+00:00 heroku[run.1]: Process exited with status 0 2012-09-02T02:06:15+00:00 heroku[run.1]: State changed from up to complete 2012-09-02T02:08:22+00:00 heroku[slugc]: Slug compilation started 2012-09-02T02:08:37+00:00 heroku[api]: D eploy 6817a8e by jflores1@alumni.nd.edu 2012-09-02T02:08:37+00:00 heroku[api]: Release v8 created by jflores1@alumni.nd.edu 2012-09-02T02:08:38+00:00 heroku[web.1]: State changed from up to starting 2012-09-02T02:08:38+00:00 heroku[slugc]: Slug compilation finished 2012-09-02T02:08:40+00:00 heroku[web.1]: Starting process with command `bundle exec rails server thin -p 42652 -e production` 2012-09-02T02:08:41+00:00 heroku[web.1]: Stopping all processes with SIGTERM 2012-09-02T02:08:41+00:00 app[web.1]: Exiting 2012-09-02T02:08:42+00:00 heroku[web.1]: Process exited with status 0 2012-09-02T02:08:44+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 &lt;top (required)&gt; at /app/config/environment.rb:5) 2012-09-02T02:08:44+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 &lt;top (required)&gt; at /app/config/environment.rb:5) 2012-09-02T02:08:47+00:00 app[web.1]: =&gt; Booting Thin 2012-09-02T02:08:47+00:00 app[web.1]: =&gt; Rails 3.2.8 application starting in production on http://0.0.0.0:42652 2012-09-02T02:08:47+00:00 app[web.1]: =&gt; Call with -d to detach 2012-09-02T02:08:47+00:00 app[web.1]: =&gt; Ctrl-C to shutdown server 2012-09-02T02:08:47+00:00 app[web.1]: Connecting to database specified by DATABASE_URL 2012-09-02T02:08:48+00:00 app[web.1]: &gt;&gt; Thin web server (v1.4.1 codename Chromeo) 2012-09-02T02:08:48+00:00 app[web.1]: &gt;&gt; Maximum connections set to 1024 2012-09-02T02:08:48+00:00 app[web.1]: &gt;&gt; Listening on 0.0.0.0:42652, CTRL+C to stop 2012-09-02T02:08:49+00:00 heroku[web.1]: State changed from starting to up 2012-09-02T02:08:50+00:00 app[web.1]: Started GET "/" for 108.210.1.241 at 2012-09-02 02:08:50 +0000 2012-09-02T02:08:50+00:00 app[web.1]: 2012-09-02T02:08:50+00:00 app[web.1]: 2012-09-02T02:08:50+00:00 app[web.1]: Processing by StaticPagesController#home as HTML 2012-09-02T02:08:50+00:00 app[web.1]: Rendered static_pages/home.html.erb within layouts/application (9.3ms) 2012-09-02T02:08:50+00:00 app[web.1]: Completed 500 Internal Server Error in 77ms 2012-09-02T02:08:50+00:00 app[web.1]: 2012-09-02T02:08:50+00:00 app[web.1]: ActionView::Template::Error (screen.css isn't precompiled): 2012-09-02T02:08:50+00:00 app[web.1]: 2: &lt;html&gt; 2012-09-02T02:08:50+00:00 app[web.1]: 3: &lt;head&gt; 2012-09-02T02:08:50+00:00 app[web.1]: 4: &lt;title&gt;GabisBag&lt;/title&gt; 2012-09-02T02:08:50+00:00 app[web.1]: 5: &lt;%= stylesheet_link_tag "screen", :media =&gt; "screen" %&gt; 2012-09-02T02:08:50+00:00 app[web.1]: 6: &lt;%= stylesheet_link_tag "landing_pages", :media =&gt; "screen" %&gt; 2012-09-02T02:08:50+00:00 app[web.1]: 7: &lt;%= javascript_include_tag "application" %&gt; 2012-09-02T02:08:50+00:00 app[web.1]: 8: &lt;%= csrf_meta_tags %&gt; 2012-09-02T02:08:50+00:00 app[web.1]: app/views/layouts/application.html.erb:5:in `_app_views_layouts_application_html_erb__3619394764979485472_40067220' 2012-09-02T02:08:50+00:00 app[web.1]: 2012-09-02T02:08:50+00:00 app[web.1]: 2012-09-02T02:08:50+00:00 heroku[router]: GET morning-inlet-9513.herokuapp.com/ dyno=web.1 queue=0 wait=0ms service=221ms status=500 bytes=643 2012-09-02T02:14:08+00:00 heroku[api]: Starting process with command `bundle exec rake db:migrate` by jflores1@alumni.nd.edu 2012-09-02T02:14:10+00:00 heroku[run.1]: Awaiting client 2012-09-02T02:14:10+00:00 heroku[run.1]: Starting process with command `bundle exec rake db:migrate` 2012-09-02T02:14:11+00:00 heroku[run.1]: State changed from starting to up 2012-09-02T02:14:17+00:00 heroku[run.1]: Client connection closed. Sending SIGHUP to all processes 2012-09-02T02:14:18+00:00 heroku[run.1]: Process exited with status 0 2012-09-02T02:14:18+00:00 heroku[run.1]: State changed from up to complete 2012-09-02T02:14:35+00:00 app[web.1]: 2012-09-02T02:14:35+00:00 app[web.1]: Started GET "/" for 108.210.1.241 at 2012-09-02 02:14:35 +0000 2012-09-02T02:14:35+00:00 app[web.1]: 2012-09-02T02:14:35+00:00 app[web.1]: Processing by StaticPagesController#home as HTML 2012-09-02T02:14:35+00:00 app[web.1]: Rendered static_pages/home.html.erb within layouts/application (0.5ms) 2012-09-02T02:14:35+00:00 app[web.1]: Completed 500 Internal Server Error in 2ms 2012-09-02T02:14:35+00:00 app[web.1]: 2012-09-02T02:14:35+00:00 app[web.1]: ActionView::Template::Error (screen.css isn't precompiled): 2012-09-02T02:14:35+00:00 app[web.1]: 2: &lt;html&gt; 2012-09-02T02:14:35+00:00 app[web.1]: 3: &lt;head&gt; 2012-09-02T02:14:35+00:00 app[web.1]: 4: &lt;title&gt;GabisBag&lt;/title&gt; 2012-09-02T02:14:35+00:00 app[web.1]: 5: &lt;%= stylesheet_link_tag "screen", :media =&gt; "screen" %&gt; 2012-09-02T02:14:35+00:00 app[web.1]: 6: &lt;%= stylesheet_link_tag "landing_pages", :media =&gt; "screen" %&gt; 2012-09-02T02:14:35+00:00 app[web.1]: 7: &lt;%= javascript_include_tag "application" %&gt; 2012-09-02T02:14:35+00:00 app[web.1]: 8: &lt;%= csrf_meta_tags %&gt; 2012-09-02T02:14:35+00:00 app[web.1]: app/views/layouts/application.html.erb:5:in `_app_views_layouts_application_html_erb__3619394764979485472_40067220' 2012-09-02T02:14:35+00:00 app[web.1]: 2012-09-02T02:14:35+00:00 app[web.1]: 2012-09-02T02:14:35+00:00 heroku[router]: GET morning-inlet-9513.herokuapp.com/ dyno=web.1 queue=0 wait=0ms service=11ms status=500 bytes=643 </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload