# Webrick 500 error

**URL:** <https://www.ruby-forum.com/t/webrick-500-error/117104>\
**Category:** Rails\
**Created:** [October 13, 2007, 12:53am UTC](https://www.ruby-forum.com/t/webrick-500-error/117104 "2007-10-13T00:53:57Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![mr\_tibs](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/439d5e/32.png) [@mr\_tibs](https://www.ruby-forum.com/u/mr_tibs)\
**Post date:** [October 13, 2007, 12:53am UTC](https://www.ruby-forum.com/t/webrick-500-error/117104/1 "2007-10-13T00:53:57Z")

</div>

Hi,

This is my second question on the poor performance of webrick  
(previously I had a problem with Ajax).  
I have a somewhat simple Rails application which works just fine, but  
when I come back to work the next day, the server responds with error  
500. It looks like if it is running more than 12 hours, it’ll crap-out.  
I don’t use CVS (which I read on the web it is a common cause of this  
type of error), I’m not using fastcgi (since I’m not running Apache), so  
what is it happening?  
The log file does not contain any error messages and no errors are  
printed in the console which started the server (except the IP +  
requested page + 500).  
Has anyone noticed this kind of issue before?

Thanks,  
Tiberiu

---

<div class="post-metadata">

**Author:** ![mr\_tibs](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/439d5e/32.png) [@mr\_tibs](https://www.ruby-forum.com/u/mr_tibs)\
**Post date:** [October 13, 2007, 4:49am UTC](https://www.ruby-forum.com/t/webrick-500-error/117104/2 "2007-10-13T04:49:30Z")

</div>

My guess is that your db connection is timing out. Is there a firewall  
between your app and the db? If so, that could be timing out your  
sessions.

---

<div class="post-metadata">

**Author:** ![mr\_tibs](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/439d5e/32.png) [@mr\_tibs](https://www.ruby-forum.com/u/mr_tibs)\
**Post date:** [October 14, 2007, 12:25am UTC](https://www.ruby-forum.com/t/webrick-500-error/117104/3 "2007-10-14T00:25:19Z")

</div>

Hmmm, I haven’t thought about that. It sort of makes sense, since if I  
go to [http://localhost:3000/](http://localhost:3000/), the Ruby on Rails welcome page does  
display correctly.  
I also noticed that if I leave my Visual Studio project open on the same  
machine, my ODBC Data Connection to the database is timed-out (so I have  
to Refresh it).  
Still, I was expecting some detailed messages from webrick.  
I’m pretty sure there are firewalls in between the webserver and the  
database, but how can I control them to stop this time-out issue?

Thanks,  
Tiberiu

---

<div class="post-metadata">

**Author:** ![mr\_tibs](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/439d5e/32.png) [@mr\_tibs](https://www.ruby-forum.com/u/mr_tibs)\
**Post date:** [October 14, 2007, 3:22am UTC](https://www.ruby-forum.com/t/webrick-500-error/117104/4 "2007-10-14T03:22:55Z")

</div>

I use Monit to monitor mongrel (would work fine for webrick). Take a  
look here: [Easy, proactive monitoring of processes, programs, files, directories, filesystems and hosts | Monit](http://www.tildeslash.com/monit) . You can google around for  
sample configs if you need them. If you are on Windows, I don’t know,  
but I’m sure you can find something.

---

<div class="post-metadata">

**Author:** ![mr\_tibs](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/439d5e/32.png) [@mr\_tibs](https://www.ruby-forum.com/u/mr_tibs)\
**Post date:** [October 25, 2007, 1:03am UTC](https://www.ruby-forum.com/t/webrick-500-error/117104/5 "2007-10-25T01:03:28Z")

</div>

Thanks William.  
I’m looking into Apache and Mongrel now.

---

<div class="post-metadata">

**Author:** ![mr\_tibs](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/439d5e/32.png) [@mr\_tibs](https://www.ruby-forum.com/u/mr_tibs)\
**Post date:** [October 25, 2007, 3:13am UTC](https://www.ruby-forum.com/t/webrick-500-error/117104/6 "2007-10-25T03:13:08Z")

</div>

Hi Mr Tips

Apache 2.26 (latest) with mod\_proxy\_balancer +a pack of mongrels is  
the way to go 🙂

---

<div class="post-metadata">

**Author:** ![mr\_tibs](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/439d5e/32.png) [@mr\_tibs](https://www.ruby-forum.com/u/mr_tibs)\
**Post date:** [November 2, 2007, 8:14pm UTC](https://www.ruby-forum.com/t/webrick-500-error/117104/7 "2007-11-02T20:14:45Z")

</div>

I’m using Apache + monrel\_cluster and it is great. However, my  
database connection still times out.

---

<div class="post-metadata">

**Author:** ![mr\_tibs](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/439d5e/32.png) [@mr\_tibs](https://www.ruby-forum.com/u/mr_tibs)\
**Post date:** [November 3, 2007, 4:34am UTC](https://www.ruby-forum.com/t/webrick-500-error/117104/8 "2007-11-03T04:34:39Z")

</div>

Hi Mr Tibs

> On Nov 3, 3:13 am, Mr\_Tibs [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:  
> I’m using Apache + monrel\_cluster and it is great. However, my  
> database connection still times out.

CCH: Then you should check out your database settings etc

CCH  
[http://removed\_email\_address@domain.invalid](http://removed_email_address@domain.invalid)
