WEBrick server hangs

In playing with Ruby on Rails (on Mac OS X), this has happened to me several times. I’ll shut down the terminal, but WEBrick keeps going, serving up pages in the browser. I have no clue why this happens (I’m totally new to Rails), but it was very frustrating, since it would prevent me from restarting WEBrick (and refreshing the DB config options).

Anyway, finally found a fix, so I thought I’d share it. Try:

sudo killall ruby

That did the trick for me. It shut down the old instance of WEBrick and let me start up a new one. Yay—790cc98e6fb7c984b9e305aaa05c77ea—>



4 Responses to “WEBrick server hangs”  

  1. 1 Brian

    Oh man, you just saved me a huge headache. I just hit the same snag you hit a few months ago. Thanks for posting, the trick worked. You saved this newb some fustration!

  2. 2 Eddie Peloke

    How did you ever get WEBrick working on OS X? I installed ruby, gems and rails but when I go to do ruby script/server, I get the error:

    ruby: No such file or directory—script/server (LoadError)

  3. 3 Eddie Peloke

    I got it…was just being dumb. Thanks!

  1. 1 Effexor.


Leave a Reply