# Http 500

**URL:** <https://www.ruby-forum.com/t/http-500/89523>\
**Category:** Rails\
**Created:** [January 4, 2006, 8:36pm UTC](https://www.ruby-forum.com/t/http-500/89523 "2006-01-04T20:36:36Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Thomas\_Delnoij](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/c57346/32.png) [@Thomas\_Delnoij](https://www.ruby-forum.com/u/Thomas_Delnoij)\
**Post date:** [January 4, 2006, 8:36pm UTC](https://www.ruby-forum.com/t/http-500/89523/1 "2006-01-04T20:36:36Z")

</div>

Hi.

I am faced with a problem that has been described in other emails. The  
proposed solutions don’t work for me, and as I am stuck with it now for  
several hours, I ask here.

I am running RoR 1.0 and Ruby 1.8.2 on SuSE Linux 10.1 and WEBrick 1.3.1  
and  
following the tutorials in Agile Dev. With RoR.

Since a few changes all my requests return Http 500 Internal Server  
Errors.  
The logs remains empty though. As suggested in several posts. I cleaned  
the  
tmp directory holding the sessions using rm -r /tmp/ruby\*.

All tests run without errors, I checked this using the rake command.

I created another application using RadRails, connected it to the same  
dev  
database and generated some scaffolding code. This app works as  
expected.

Now, I hope somebody can give me some pointers how to analyze this  
problem.

Thanks in advance. Thomas

---

<div class="post-metadata">

**Author:** ![Thomas\_Delnoij](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/c57346/32.png) [@Thomas\_Delnoij](https://www.ruby-forum.com/u/Thomas_Delnoij)\
**Post date:** [January 4, 2006, 9:18pm UTC](https://www.ruby-forum.com/t/http-500/89523/2 "2006-01-04T21:18:44Z")

</div>

On Jan 4, 2006, at 12:33 PM, Thomas Delnoij wrote:

> Errors. The logs remains empty though. As suggested in several  
> problem.

I’ve recently experienced something similar (although I was getting  
blank pages, not 500 errors–possibly because I was using Lighttpd,  
not WEBrick?). The cause in my cause was due to a database  
connection issue–if the database does not exist, or if the wrong  
username/password was given, it would blank out without any errors in  
the logs.

Ezra Z. also mentioned a case where if you have anything broken in  
environment.rb, sometimes it will not give any errors but will die  
silently.

Hope this helps,

Duane J.  
(canadaduane)  
[http://blog.inquirylabs.com/](http://blog.inquirylabs.com/)

---

<div class="post-metadata">

**Author:** ![Thomas\_Delnoij](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/c57346/32.png) [@Thomas\_Delnoij](https://www.ruby-forum.com/u/Thomas_Delnoij)\
**Post date:** [January 4, 2006, 10:22pm UTC](https://www.ruby-forum.com/t/http-500/89523/3 "2006-01-04T22:22:07Z")

</div>

My environments was “broken” - I uncommented #  
config.action\_controller.session\_store = :active\_record\_store without  
initializing the database table.

Is there a way to make R(oR) spit out more verbose error messages in  
such  
cases?

Rgrds, Thomas

---

<div class="post-metadata">

**Author:** ![Thomas\_Delnoij](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/c57346/32.png) [@Thomas\_Delnoij](https://www.ruby-forum.com/u/Thomas_Delnoij)\
**Post date:** [January 4, 2006, 10:34pm UTC](https://www.ruby-forum.com/t/http-500/89523/4 "2006-01-04T22:34:12Z")

</div>

On Jan 4, 2006, at 2:19 PM, Thomas Delnoij wrote:

> My environments was “broken” - I uncommented #  
> config.action\_controller.session\_store = :active\_record\_store  
> without initializing the database table.
> 
> Is there a way to make R(oR) spit out more verbose error messages  
> in such cases?

Passing along what was said on the rails core list:

Michael K. said:

> ## There are several error conditions where rails does that ‘blank screen’ stuff. I try to fix them as I hit them. I can’t see a valid reason for this behaviour, so perhaps investigate a patch for it?
> 
> Cheers
> 
> Koz

Duane J.  
(canadaduane)  
[http://blog.inquirylabs.com/](http://blog.inquirylabs.com/)
