Hi,

I need help desperately. Our IIS Web Server crashed and since
recovery, IIS could no longer connect to Tomcat correctly. The Browser
Displays "Service Temporarily Unavailable!"
jakarta/ISAPI/isapi_redirect. IIS is working and Tomcat Instances are
all running and accessible if I access the port. I cannot find any
reference to errno=-9995 from the connector debug. This setup was
working before the crash but since then, could not get it to run
anymore.

Environment:

Windows 2003 64 bit
IIS 6.0 64 bit mode
isapi_redirect.dll (64 bit) 1.2.27
IIS 6.0 running on IIS 5 Isolation Mode
Compression Enabled
Tomcat 5.5 running in 32bit mode (4 Instances)
IIS and Tomcat are on 1 machine

worker.properties file:

#First tomcat instance
worker.tomcat1.type=ajp13
worker.tomcat1.host=localhost
worker.tomcat1.port=8109
worker.tomcat1.lbfactor=1
#Define preferred failover node for tomcat1
worker.tomcat1.redirect=tomcat4

#Second tomcat instance
worker.tomcat2.type=ajp13
worker.tomcat2.host=localhost
worker.tomcat2.port=8209
worker.tomcat2.lbfactor=1
#Define preferred failover node for tomcat2
worker.tomcat2.redirect=tomcat4

#Third tomcat instance
worker.tomcat3.type=ajp13
worker.tomcat3.host=localhost
worker.tomcat3.port=8309
worker.tomcat3.lbfactor=1
#Define preferred failover node for tomcat3
worker.tomcat3.redirect=tomcat4

#Fourth tomcat instance
worker.tomcat4.type=ajp13
worker.tomcat4.host=localhost
worker.tomcat4.port=8409
worker.tomcat4.lbfactor=1
#Disable tomcat4 for all requests except failover
worker.tomcat4.activation=disabled

worker.loadbalancer.type=lb
worker.loadbalancer.sticky_session=1
worker.loadbalancer.balance_workers=tomcat1,tomcat2,tomcat3,tomcat4

server.xml

<Connector port="8109"
              enableLookups="false" redirectPort="8443"
protocol="AJP/1.3" compression="on"
       
compressableMimeType="text/html,text/xml,text/jsp,text/js,text/css,text/do,text/plain,application/xml,application/jsp,application/js,application/do,application/css,application"
/>

<Connector port="8088" maxHttpHeaderSize="8192"
              maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
              enableLookups="false" redirectPort="8443" acceptCount="100"
              connectionTimeout="20000" disableUploadTimeout="true" />



Debug from isapi_redirect

[debug] ajp_send_request::jk_ajp_common.c (1461): (tomcat3) all
endpoints are disconnected.
[error] jk_open_socket::jk_connect.c (435): socket() failed (errno=-9995)
[info] ajp_connect_to_endpoint::jk_ajp_common.c (922): Failed opening
socket to (127.0.0.1:8309) (errno=-9995)
[error] ajp_send_request::jk_ajp_common.c (1467): (tomcat3) connecting
to backend failed. Tomcat is probably not started or is listening on
the wrong port (errno=-9995)
[info] ajp_service::jk_ajp_common.c (2407): (tomcat3) sending request
to tomcat failed (recoverable), because of error during request
sending (attempt=1)
[debug] ajp_service::jk_ajp_common.c (2267): retry 1, sleeping for 100
ms before retrying
[debug] ajp_send_request::jk_ajp_common.c (1461): (tomcat3) all
endpoints are disconnected.
[error] jk_open_socket::jk_connect.c (435): socket() failed (errno=-9995)
[info] ajp_connect_to_endpoint::jk_ajp_common.c (922): Failed opening
socket to (127.0.0.1:8309) (errno=-9995)
[error] ajp_send_request::jk_ajp_common.c (1467): (tomcat3) connecting
to backend failed. Tomcat is probably not started or is listening on
the wrong port (errno=-9995)
[info] ajp_service::jk_ajp_common.c (2407): (tomcat3) sending request
to tomcat failed (recoverable), because of error during request
sending (attempt=2)
[error] ajp_service::jk_ajp_common.c (2426): (tomcat3) connecting to
tomcat failed.
[debug] ajp_reset_endpoint::jk_ajp_common.c (743): (tomcat3) resetting
endpoint with sd = 4294967295 (socket shutdown)
[debug] ajp_done::jk_ajp_common.c (2850): recycling connection pool
slot=0 for worker tomcat3
[info] service::jk_lb_worker.c (1347): service failed, worker tomcat3
is in error state
[debug] service::jk_lb_worker.c (1358): recoverable error... will try
to recover on other worker
[debug] get_most_suitable_worker::jk_lb_worker.c (969): found best
worker tomcat4 (tomcat4) using method 'Request'
[debug] service::jk_lb_worker.c (1133): service worker=tomcat4 route=tomcat1
[debug] ajp_get_endpoint::jk_ajp_common.c (2922): acquired connection
pool slot=0 after 0 retries
[debug] ajp_marshal_into_msgb::jk_ajp_common.c (605): ajp marshaling done
[debug] ajp_service::jk_ajp_common.c (2246): processing tomcat4 with 2 retries
[debug] ajp_send_request::jk_ajp_common.c (1461): (tomcat4) all
endpoints are disconnected.
[error] jk_open_socket::jk_connect.c (435): socket() failed (errno=-9995)
[info] ajp_connect_to_endpoint::jk_ajp_common.c (922): Failed opening
socket to (127.0.0.1:8409) (errno=-9995)
[error] ajp_send_request::jk_ajp_common.c (1467): (tomcat4) connecting
to backend failed. Tomcat is probably not started or is listening on
the wrong port (errno=-9995)
[info] ajp_service::jk_ajp_common.c (2407): (tomcat4) sending request
to tomcat failed (recoverable), because of error during request
sending (attempt=1)
[debug] ajp_service::jk_ajp_common.c (2267): retry 1, sleeping for 100
ms before retrying
[debug] ajp_send_request::jk_ajp_common.c (1461): (tomcat4) all
endpoints are disconnected.
[error] jk_open_socket::jk_connect.c (435): socket() failed (errno=-9995)
[info] ajp_connect_to_endpoint::jk_ajp_common.c (922): Failed opening
socket to (127.0.0.1:8409) (errno=-9995)
[error] ajp_send_request::jk_ajp_common.c (1467): (tomcat4) connecting
to backend failed. Tomcat is probably not started or is listening on
the wrong port (errno=-9995)
[info] ajp_service::jk_ajp_common.c (2407): (tomcat4) sending request
to tomcat failed (recoverable), because of error during request
sending (attempt=2)
[error] ajp_service::jk_ajp_common.c (2426): (tomcat4) connecting to
tomcat failed.
[debug] ajp_reset_endpoint::jk_ajp_common.c (743): (tomcat4) resetting
endpoint with sd = 4294967295 (socket shutdown)
[debug] ajp_done::jk_ajp_common.c (2850): recycling connection pool
slot=0 for worker tomcat4
[info] service::jk_lb_worker.c (1347): service failed, worker tomcat4
is in error state
[debug] service::jk_lb_worker.c (1358): recoverable error... will try
to recover on other worker
[debug] service::jk_lb_worker.c (1101): retry 1, sleeping for 100 ms
before retrying
[info] force_recovery::jk_lb_worker.c (577): worker tomcat1 is marked
for forced recovery
[info] force_recovery::jk_lb_worker.c (577): worker tomcat2 is marked
for forced recovery
[info] force_recovery::jk_lb_worker.c (577): worker tomcat3 is marked
for forced recovery
[info] force_recovery::jk_lb_worker.c (577): worker tomcat4 is marked
for forced recovery
[info] service::jk_lb_worker.c (1399): Forcing recovery once for 4 workers
[info] service::jk_lb_worker.c (1416): All tomcat instances failed, no
more workers left (attempt=0, retry=1)
[info] service::jk_lb_worker.c (1416): All tomcat instances failed, no
more workers left (attempt=1, retry=1)
[info] service::jk_lb_worker.c (1416): All tomcat instances failed, no
more workers left (attempt=2, retry=1)
[info] service::jk_lb_worker.c (1416): All tomcat instances failed, no
more workers left (attempt=3, retry=1)
[info] service::jk_lb_worker.c (1427): All tomcat instances are busy
or in error state
[error] service::jk_lb_worker.c (1432): All tomcat instances failed,
no more workers left
[error] HttpExtensionProc::jk_isapi_plugin.c (2199): service() failed
with http error 503

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to