You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2012/05/29 19:11:31 UTC
[Bug 53321] New: worker name cannot be used in work er list if also
used in loadbalancer. throws 503 error
https://issues.apache.org/bugzilla/show_bug.cgi?id=53321
Priority: P2
Bug ID: 53321
Assignee: dev@tomcat.apache.org
Summary: worker name cannot be used in work er list if also
used in loadbalancer. throws 503 error
Severity: regression
Classification: Unclassified
OS: Linux
Reporter: abiacco@formatdynamics.com
Hardware: PC
Status: NEW
Version: 1.2.36
Component: mod_jk
Product: Tomcat Connectors
Bug being added per request from mturk
Centos 5.8, x86_64, apache 2.2.22, java 1.6.0_32, tomcat 7.0.27, apr
1.4.6 (also happens on another machine with apache 2.2.21 and java
1.6.0_29, rest of the versions are the same)
Connecting apache to tomcat ajp, same machine.
Once I upgraded to 1.2.36 I started receiving 503 errors when trying to
access my webapps through the loadbalancer worker.
1.2.32 and 1.2.35 work fine.
Will work if the worker (app-03) is removed from worker.list (config below)
Jk log shows:
[Wed May 23 15:56:32 2012] [32504:1138178368] [debug]
ajp_get_endpoint::jk_ajp_common.c (3154): acquired connection pool
slot=0 after 0 retries
[Wed May 23 15:56:32 2012] [32504:1138178368] [debug]
ajp_marshal_into_msgb::jk_ajp_common.c (626): ajp marshaling done
[Wed May 23 15:56:32 2012] [32504:1138178368] [debug]
ajp_service::jk_ajp_common.c (2449): processing app-03 with 2 retries
[Wed May 23 15:56:32 2012] [32504:1138178368] [debug]
ajp_send_request::jk_ajp_common.c (1623): (app-03) all endpoints are
disconnected.
[Wed May 23 15:56:32 2012] [32504:1138178368] [debug]
jk_open_socket::jk_connect.c (485): socket TCP_NODELAY set to On
[Wed May 23 15:56:32 2012] [32504:1138178368] [debug]
jk_open_socket::jk_connect.c (574): timeout 20 set for socket=22
[Wed May 23 15:56:32 2012] [32504:1138178368] [debug]
jk_open_socket::jk_connect.c (609): trying to connect socket 22 to
0.0.0.0:0
[Wed May 23 15:56:32 2012] [32504:1138178368] [debug]
jk_open_socket::jk_connect.c (635): socket 22 [errno=107] connected
[Wed May 23 15:56:32 2012] [32504:1138178368] [debug]
ajp_connection_tcp_send_message::jk_ajp_common.c (1183): sending to
ajp13 pos=4 len=5 max=16
[Wed May 23 15:56:32 2012] [32504:1138178368] [debug]
ajp_connection_tcp_send_message::jk_ajp_common.c (1183): 0000 12 34
00 01 0A 00 00 00 00 00 00 00 00 00 00 00 - .4..............
[Wed May 23 15:56:32 2012] [32504:1138178368] [debug]
jk_shutdown_socket::jk_connect.c (732): About to shutdown socket 22
[errno=107]
[Wed May 23 15:56:32 2012] [32504:1138178368] [debug]
jk_shutdown_socket::jk_connect.c (741): Failed sending SHUT_WR for
socket 22 [errno=107]
[Wed May 23 15:56:32 2012] [32504:1138178368] [info]
ajp_connection_tcp_send_message::jk_ajp_common.c (1215): sendfull for
socket 22 returned -32 (errno=32)
[Wed May 23 15:56:32 2012] [32504:1138178368] [info]
ajp_handle_cping_cpong::jk_ajp_common.c (902): can't send cping query
[Wed May 23 15:56:32 2012] [32504:1138178368] [error]
ajp_connect_to_endpoint::jk_ajp_common.c (1026): (app-03) cping/cpong
after connecting to the backend server failed (errno=32)
[Wed May 23 15:56:32 2012] [32504:1138178368] [error]
ajp_send_request::jk_ajp_common.c (1629): (app-03) connecting to backend
failed. Tomcat is probably not started or is listening on the wrong port
(errno=32)
[Wed May 23 15:56:32 2012] [32504:1138178368] [info]
ajp_service::jk_ajp_common.c (2622): (app-03) sending request to tomcat
failed (recoverable), because of error during request sending
(attempt=1)
httpd.conf settings are:
JkWorkersFile /path/to/workers.properties
JkWatchdogInterval 60
JkLogFile /path/to/GLOBAL-mod_jk.log
JkLogLevel debug
JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
JkOptions +ForwardKeySize +ForwardURIProxy -ForwardDirectories
JkRequestLogFormat "%w %R %V %B %T %m %U %s"
JkShmFile logs/jk-runtime-status
JkMount /webapp/* loadbalancer
workers.properties settings are:
worker.list=jkstatus,app-03,loadbalancer
worker.template.port=8009
worker.template.type=ajp13
worker.template.lbfactor=1
worker.template.connection_pool_timeout=30
worker.template.connect_timeout=30000
worker.template.recovery_options=4
worker.template.reply_timeout=31000
worker.template.socket_timeout=20
worker.template.socket_connect_timeout=5000
worker.template.ping_mode=A
worker.template.ping_timeout=20000
worker.app-03.host=127.0.0.1
worker.app-03.reference=worker.template
worker.jkstatus.type=status
worker.loadbalancer.sticky_session=1
worker.loadbalancer.type=lb
worker.loadbalancer.balance_workers=app-03
server.xml settings are:
<Connector port="8009" protocol="AJP/1.3"
maxThreads="1000" backlog="25"
maxPostSize="4194304"
enableLookups="false" connectionTimeout="30000"
keepAliveTimeout="10000"
redirectPort="8443" />
# netstat -anop | grep 8009
tcp 0 0 0.0.0.0:8009 0.0.0.0:*
LISTEN 30151/jsvc.exec off (0.00/0/0)
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
[Bug 53321] worker name cannot be used in work er list if also used
in loadbalancer. throws 503 error
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=53321
--- Comment #1 from Christopher Schultz <ch...@christopherschultz.net> ---
Reference to original thread on tomcat-user mailing list, for reference:
http://markmail.org/thread/tlwvkdsun3rfynw3
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
[Bug 53321] worker name cannot be used in worker list if also used
in loadbalancer. throws 503 error
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=53321
Konstantin Kolinko <kn...@gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Version|1.2.36 |unspecified
Resolution|--- |FIXED
Summary|worker name cannot be used |worker name cannot be used
|in work er list if also |in worker list if also used
|used in loadbalancer. |in loadbalancer. throws 503
|throws 503 error |error
--- Comment #2 from Konstantin Kolinko <kn...@gmail.com> ---
Fixed in 1.2.37.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org