Search code examples
ruby-on-rails-3webrick

Problems with WEBrick crashing


Here are the details upon start up

=> Booting WEBrick
=> Rails 3.0.1 application starting in development on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server [2011-01-11 13:43:57] INFO WEBrick 1.3.1
[2011-01-11 13:43:57] INFO ruby 1.9.2 (2010-08-18) [i386-mingw32]
[2011-01-11 13:43:57] INFO WEBrick::HTTPServer#start: pid=10216 port=3000

periodically WEBrick is crashing. The only error message is:

ActionController::RoutingError (No route matches "/thumbnails/missing.png"):

This error message occurs from time to time (I'm using paperclip), but doesn't cause a WEBrick crash each time it occurs. I've spent a little time trying to resolve the routing error - but haven't resolved it yet. I don't think that's the root cause of WEBrick crashing though, since it doesn't happen everytime.

Any help greatly appreciated.


Solution

  • Sorry, I don't know the answer to your question but I can offer a potential workaround you might be happy with: use Mongrel instead of WEBrick. Mongrel runs faster and is completely compatible. And maybe it won't crash when a route isn't found. Most Rails developers haven't used WEBrick in a few years.

    To use Mongrel:

    gem install mongrel
    

    If Rails finds Mongrel it will use it automatically.

    Hope that fixes it!