7/19 I have a mysterious problem with a cgi program. It was working
well. Then, I moved it to a different computer. Now, some of the
screens will give 500: Internal... errors, but will work after
hitting reload several times. What kind of server (apache)
misconfiguration could cause a program to work only part of the
time, given the same input/state? I'm mystified.
\_ Possibly you moved it to a machine that's behind a load balancer,
and you're only getting your machine 1 out of N trials?
\_ There is only one machine, but I have been wondering if
it is making a difference which of the apache child
processes handles the request.
\_ there are a million things that could be wrong. Check
the apache error logs. -tom
\_ Tried to do that, but logs have been intermittent.
We have mod_cgi, and a ScriptLog directive. Many
errors don't produce anything for the %response
or the %stderr sections. So, all I get is the
request, and an entry in error_log that says
"Premature end of script headers."
\_perhaps set up an http proxy to view what's
happening, or send the GET request yourself via
telnet...
\_ Do you have mod_perl enabled? You may be stepping
on variables. I'd disable ScriptLog, it's really
not intended for production environments. Check
your suexec log if you have suexec enabled (and you
should). -tom
\_ race condition |