I’ve been having problems with mongrel for several weeks now, but
usually I’m able to resolve the problem by deleting the PID files,
restarting mongrel, and/or redeploying. But this time, I’m not able
to resolve the situation.
I’m able to pull up pages on the site on one request, but then the
next will produce the 502 Proxy Error, so it seems as though one of my
clusters is “stuck” someone.
I’m receiving this error in the browser:
The proxy server received an invalid response from an upstream server.
The proxy server could not handle the request POST /login.
Reason: Error reading from remote server
Apache/2.2.3 (Red Hat) Server at 18.104.22.168 Port 80
I’ve tried killing the processing and restarting mongrel, but I’m
still having the same problem.
Can someone help by pointing me in the right direction of what to look
for in log files, or how to solve this issue?
I’m using the basic recipe laid out in the Pragmatic Programmers Guide
and on all my Rails projects, I run into a problem of one or more of
the clusters not restarting because a PID file already exists…is
this a known bug in the version of Capistrano I’m using?
Any help would be much appreciated.