Html not rendering apache/mongrel

We are running Apache and Mongrel on RHEL4 and have been experiencing
some interesting behaivor. Sometimes when someone logs into our
application (it uses the acts_as_authencticaed and acl_system2) the
following happens. Instead of the browser rendering the html and
displaying all the form elements corretly as you would expect, it simple
spews back the output without attempting to render. So you get something
like this:

HTTP/1.1 0 Content-Length: 7636
Connection: close
Date: Sat, 02 Sep 2006 14:10:38 GMT
Set-Cookie: device_id=; path=/; expires=Sun, 02 Sep 2007 14:10:38 GMT
Set-Cookie: _session_id=85d7a3c296268e0222cb796127da9c43; path=/
Status: status500
Cache-Control: no-cache
Server: Mongrel 0.3.13.3
Content-Type: text/html

.... many lines deleted ....

Has anyone experience this before?

Thanks for any advice/tips. I suspect it’s either a bug somewhere in out
application stack, or a configuration issue with apache or mongrel.

Thanks for your advice.

On Sat, 2006-09-02 at 18:28 +0200, jim dandy wrote:

Date: Sat, 02 Sep 2006 14:10:38 GMT
Set-Cookie: device_id=; path=/; expires=Sun, 02 Sep 2007 14:10:38 GMT
Set-Cookie: _session_id=85d7a3c296268e0222cb796127da9c43; path=/
Status: status500
Cache-Control: no-cache
Server: Mongrel 0.3.13.3
Content-Type: text/html

Yep, see your “Status: status500” line? It means you messed up in a
render or redirect call and that gave an invalid status. Apache then
mangles the hell out of your reponse.

Go look at that rails action and re-read the docs on the render/redirect
action you’re calling. You probably have a parameter out of alignment.


Zed A. Shaw

http://mongrel.rubyforge.org/
http://www.lingr.com/room/3yXhqKbfPy8 – Come get help.