Apache, cgi forms, cgi programs - issues - restart resolves issue??

Apache, cgi forms, cgi programs - issues - restart resolves issue??

Post by Mar » Fri, 28 Jun 2002 10:39:18



This is a very strange occurance.

Running Apache 1.3.26 or other versions (tried several)
Sun Ultra 2 w/1536 meg
Solaris 8

Same issue on other machines running similar configs

We are running several web servers on this box.
Maybe about 25 total. We also use a shopping cart program
written in cgi. Our email form scripts are written in cgi.
Ok, here is the weird and strange happenings we are running into.

Error log reports malformed headers when a form is submitted
while this is happening.

Every so often the shopping cart program will not allow
you to "view the next 25 items". Clicking that button just brings them
back to the shopping carts home page.
When this happens with the cgi forms, submitting the form
returns an error as if their is a field missing and there are not any
missing or empty fields.

Now if I "./apachectl restart", both of the above seems to work fine.
Then a couple hours, sometimes a day, sometimes a few days or even a week later
it happens again. We never know unless a client calls about the form
not working.

I'm thinking there may be some sort of process that gets killed.
Any ideas on what that process would be?
Any way to monitor the system to find out what process that would
be or what is happening to it?

I am lost with this issue.
Any help is greatly appreciated.

Thanks

 
 
 

Apache, cgi forms, cgi programs - issues - restart resolves issue??

Post by ger.. » Sat, 29 Jun 2002 01:39:11




Quote:> This is a very strange occurance.

> Running Apache 1.3.26 or other versions (tried several)
> Sun Ultra 2 w/1536 meg
> Solaris 8

> Same issue on other machines running similar configs

> We are running several web servers on this box.
> Maybe about 25 total. We also use a shopping cart program
> written in cgi. Our email form scripts are written in cgi.

> Error log reports malformed headers when a form is submitted
> while this is happening.

> Every so often the shopping cart program will not allow
> you to "view the next 25 items". Clicking that button just brings them
> back to the shopping carts home page.

Given you have tried several Apaches its probably not Apache.

With Solaris you get "sar" for gathering general info.
You can use "snoop" as well and watch what's going on at the
network level. Then there is "truss" which I have found very handy.
3rd party info gatherers: "top", "adrian" (www.setoolkit.com), and "lsof".

Quote:> Now if I "./apachectl restart", both of the above seems to work fine.
> Then a couple hours, sometimes a day, sometimes a few days or even a week later
> it happens again. We never know unless a client calls about the form
> not working.

Does "./apachectl graceful" work as well ? (for new connections).

Quote:> I'm thinking there may be some sort of process that gets killed.

I think its the cgi's and/or a resource issue : <
If its a resource issue "adrian" might help pinpoint it.

 
 
 

1. Apache, cgi forms, cgi programs - Issues and problems

Hi,

This is a very strange occurance.

Running Apache 1.3.19
Sun Ultra 2 w/512 meg

We are running several web servers on this box.
Maybe about 25 total. We also use a shopping cart program
written in cgi. Our email form scripts are written in cgi.
Ok, here is the weird and strange happenings we are running into.

Every so often the shopping cart program will not allow
you to "view the next 25 items". Clicking that button just brings them
back to the shopping carts home page.
When this happens with the cgi forms, submitting the form
returns an error as if their is a field missing and there are not any
missing or empty fields.

Now if I "./apachectl restart", both of the above seems to work fine.
Then a couple hours, sometimes a day, sometimes a few days or even a week later
it happens again. We never know unless a client calls about the form
not working.

I'm thinking there may be some sort of process that gets killed.
Any ideas on what that process would be?
Any way to monitor the system to find out what process that would
be or what is happening to it?

I am lost with this issue.
Any help is greatly appreciated.

Thanks

Marc

2. Fails: mounting Linux filesystem from ISC 3.0/4.0 via NFS

3. /cgi-bin/phf /cgi-bin/test-cgi /cgi-bin/handler

4. Metatool Help

5. Cannot execute CGI programs in /cgi-bin with Apache

6. Emachine runs 1280 x 1024

7. Apache CGI issues

8. Upgrading from Sol 2.3 to 2.5.1 on an SS5, caveats?

9. cgi program which is a daemon/starting daemon from cgi

10. Apache/CGI: How to toggle an ErrorDocument from a CGI ?

11. CGI works as program, not as FORM ACTION?!?!

12. WAP/WML cgi broken! apache/mod_perl CGI::WML

13. apache: give /home/mailman/cgi-bin permissions to run cgi-scripts.