Operating System - HP-UX
1832285 Members
2655 Online
110041 Solutions
New Discussion

Re: Connection refused: unable to connect to cgi daemon after

 
ZZheng
Occasional Advisor

Connection refused: unable to connect to cgi daemon after

Hi,

When i am running a stressed test on apache2x, i go this error:
[Tue Nov 12 22:25:18 2002] [error] [client 192.168.30.73] (239)Connection refused: unable to connect to cgi daemon after
multiple tries: /opt/hpapache2/cgi-bin/nph-actuate.cgi
does any body has idea?

Seems this happens when the old sessions are closed and new sessions starting.

Reagards,

Zhe
7 REPLIES 7
U.SivaKumar_2
Honored Contributor

Re: Connection refused: unable to connect to cgi daemon after

Hi,

have you added these modules mod_cgi and mod_cgid in AddModule in httpd.conf ?

regards,
U.SivaKumar
Innovations are made when conventions are broken
ZZheng
Occasional Advisor

Re: Connection refused: unable to connect to cgi daemon after

Thanks,

Since i am using WPM model, so i added :

LoadModule cgid_module modules/mod_cgid.so

in httpd.conf.

Also this error happens when the new sessions are starting. but not every session got this error.


Regards,

Zhe
U.SivaKumar_2
Honored Contributor

Re: Connection refused: unable to connect to cgi daemon after

Hi,

edit httpd.conf

MaxKeepAliveRequests 0


restart apache server. Hope your problem is solved . Put the old value after stress testing

regards,
U.SivaKumar
Innovations are made when conventions are broken
ZZheng
Occasional Advisor

Re: Connection refused: unable to connect to cgi daemon after

Great,

I set MaxKeepAliveRequests to 512 before, i will change it to 0.

Let me bother you again in case if i still get the same problem.


Thanks,


Zhe
U.SivaKumar_2
Honored Contributor

Re: Connection refused: unable to connect to cgi daemon after

Sure
Innovations are made when conventions are broken
U.SivaKumar_2
Honored Contributor

Re: Connection refused: unable to connect to cgi daemon after

Also try doubling MaxClients parameter in httpd.conf and restart the apache.

MaxClients 500

revert back after stress test is over
regards,
U.SivaKumar

Innovations are made when conventions are broken
rick jones
Honored Contributor

Re: Connection refused: unable to connect to cgi daemon after

errno 239 implies that nothing was listening at the destination IP address and port number, but that the IP address was reachable. perhaps something died and did not get restarted in time to avert the error. (ignoring things like firewall filtering...)

if something were actually listening, but didn't respond in time, then I would have expected an errno 238 for ECONNTIMEDOUT

ftp://ftp.cup.hp.com/dist/networking/briefs/annotated_netstat.txt

[Admin: Above link is no longer valid]
may be of some help when tuning a stress test, though will not directly address an errno 239

there is no rest for the wicked yet the virtuous have no pillows