Note that there are some explanatory texts on larger screens.

plurals
  1. PO"No such file or directory" error when deploying Rails app with Thin server on Heroku
    primarykey
    data
    text
    <p>After attempting to switch my Rails app to thin server using <a href="http://devcenter.heroku.com/articles/rails3" rel="nofollow">these instructions</a>, I'm getting getting this error on <code>heroku logs</code> and my app won't start.</p> <pre><code>2012-03-12T17:00:46+00:00 heroku[web.1]: Starting process with command `bundle exec rails server thin -p 42557 -e production/production` 2012-03-12T17:00:56+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/01/04/rails-3-2-0-rc2-has-been-released. (called from &lt;top (required)&gt; at /app/config/environment.rb:5) 2012-03-12T17:00:56+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/01/04/rails-3-2-0-rc2-has-been-released. (called from &lt;top (required)&gt; at /app/config/environment.rb:5) 2012-03-12T17:00:56+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 2012-03-12T17:01:00+00:00 app[web.1]: =&gt; Booting Thin 2012-03-12T17:01:00+00:00 app[web.1]: =&gt; Rails 3.2.1 application starting in production on http://0.0.0.0:42557 2012-03-12T17:01:00+00:00 app[web.1]: =&gt; Call with -d to detach 2012-03-12T17:01:00+00:00 app[web.1]: =&gt; Ctrl-C to shutdown server 2012-03-12T17:01:00+00:00 app[web.1]: Exiting 2012-03-12T17:01:00+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.1/lib/rails/rack/log_tailer.rb:8:in `size': No such file or directory - log/production/production.log (Errno::ENOENT) 2012-03-12T17:01:00+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.1/lib/rails/rack/log_tailer.rb:8:in `initialize' 2012-03-12T17:01:00+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/server.rb:295:in `new' 2012-03-12T17:01:00+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/server.rb:295:in `block in build_app' 2012-03-12T17:01:00+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/server.rb:291:in `reverse_each' 2012-03-12T17:01:00+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/server.rb:291:in `build_app' 2012-03-12T17:01:00+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/server.rb:301:in `wrapped_app' 2012-03-12T17:01:00+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/server.rb:252:in `start' 2012-03-12T17:01:00+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.1/lib/rails/commands/server.rb:70:in `start' 2012-03-12T17:01:00+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.1/lib/rails/commands.rb:55:in `block in &lt;top (required)&gt;' 2012-03-12T17:01:00+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.1/lib/rails/commands.rb:50:in `tap' 2012-03-12T17:01:00+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.1/lib/rails/commands.rb:50:in `&lt;top (required)&gt;' 2012-03-12T17:01:00+00:00 app[web.1]: from script/rails:6:in `require' 2012-03-12T17:01:00+00:00 app[web.1]: from script/rails:6:in `&lt;main&gt;' 2012-03-12T17:01:01+00:00 heroku[web.1]: Process exited with status 1 2012-03-12T17:01:01+00:00 heroku[web.1]: State changed from starting to crashed </code></pre> <p>The actual error that's breaking things seems to be:</p> <blockquote> <p>No such file or directory - log/production/production.log (Errno::ENOENT)</p> </blockquote> <p>What do I need to do to make this go away? I even manually added an empty file in <code>log/production/production.log</code> and removed log files from the <code>.gitignore</code> so that it would exist after pushing to Heroku, and I still get the error.</p> <p>If it helps, <a href="https://github.com/mikecrittenden/minutefavors" rel="nofollow">here's the repo for the site I'm working on</a>.</p>
    singulars
    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