Re: Tomcat and IPv6

2020-03-17 Thread Martin Grigorov
Hi,

On Tue, Mar 17, 2020 at 9:22 PM 
wrote:

> We have a team having issues with Tomcat, AJP, and switching to IPv6. They
> are currently running version 9.0.31. Below are the errors being received:
>
> [Tue Mar 17 10:50:38 2020] [1412:139846332929792] [error]
> ajp_service::jk_ajp_common.c (2796): (Greenworker1) connecting to tomcat
> failed (rc=-3, errors=13, client_errors=0).
> [Tue Mar 17 10:50:38 2020] [1412:139846332929792] [error]
> service::jk_lb_worker.c (1686): All tomcat instances failed, no more
> workers left
> [Tue Mar 17 10:50:38 2020] [1408:139846332929792] [error]
> ajp_send_request::jk_ajp_common.c (1725): (Greenworker1) connecting to
> backend failed. Tomcat is probably not started or is listening on the wrong
> port (errno=111)
>
> Here is the connector from the server.xml
>
>  packetSize="65536"
> maxKeepAliveRequests="-1" protocol="AJP/1.3" secretRequired="false"
> address="::" />
>

Check Tomcat's logs.
Check whether it has bound at port 6209: netstat -antp | grep 6209

Martin


>
>
> And here is the info from web server workers.properties
>
> cat workers.properties
>
> # for OLTP web instance
> # Define a worker named 'worker1' (more workers can be added as comma
> separated values)
> worker.list=loadbalancer
>
> # Default Worker Properties
> worker.workerDefault.type=ajp13
> worker.workerDefault.port=6209
> worker.workerDefault.lbfactor=1
> worker.workerDefault.socket_timeout=300
> worker.workerDefault.socket_keepalive=true
> worker.workerDefault.connection_pool_timeout=300
> worker.workerDefault.connection_pool_minsize=1
> worker.workerDefault.connection_pool_size=225
> worker.workerDefault.max_packet_size=65536
>
> # Node #1 properties
> worker.Greenworker1.reference=worker.workerDefault
> worker.Greenworker1.host=
>
> # Node #2 properties
> #worker.Greenworker2.reference=worker.workerDefault
> #worker.Greenworker2.host=
>
> # Node #3 properties
> #worker.Greenworker3.reference=worker.workerDefault
> #worker.Greenworker3.host=
>
> # Load-balancing behaviour
> worker.loadbalancer.type=lb
> worker.loadbalancer.balance_workers=Greenworker1
> worker.loadbalancer.sticky_session=1
>
>
> For HOST1, etc. should this be the IPv6 address or what?
>
> Thanks,
>
> Dream * Excel * Explore * Inspire
> Jon McAlexander
> Asst Vice President
>
> Middleware Product Engineering
> Enterprise CIO | Platform Services | Middleware | Infrastructure Solutions
>
> Upcoming PTO: 11/8, 11/11, 11/15, 11/22, 11/28, 11/29, 12/2, 12/6, 12/13,
> 12/20 - 12/31
>
> 8080 Cobblestone Rd | Urbandale, IA 50322
> MAC: F4469-010
> Tel 515-988-2508 | Cell 515-988-2508
>
> jonmcalexan...@wellsfargo.com
>
>
> This message may contain confidential and/or privileged information. If
> you are not the addressee or authorized to receive this for the addressee,
> you must not use, copy, disclose, or take any action based on this message
> or any information herein. If you have received this message in error,
> please advise the sender immediately by reply e-mail and delete this
> message. Thank you for your cooperation.
>
>


Tomcat and IPv6

2020-03-17 Thread jonmcalexander
We have a team having issues with Tomcat, AJP, and switching to IPv6. They are 
currently running version 9.0.31. Below are the errors being received:

[Tue Mar 17 10:50:38 2020] [1412:139846332929792] [error] 
ajp_service::jk_ajp_common.c (2796): (Greenworker1) connecting to tomcat failed 
(rc=-3, errors=13, client_errors=0).
[Tue Mar 17 10:50:38 2020] [1412:139846332929792] [error] 
service::jk_lb_worker.c (1686): All tomcat instances failed, no more workers 
left
[Tue Mar 17 10:50:38 2020] [1408:139846332929792] [error] 
ajp_send_request::jk_ajp_common.c (1725): (Greenworker1) connecting to backend 
failed. Tomcat is probably not started or is listening on the wrong port 
(errno=111)

Here is the connector from the server.xml




And here is the info from web server workers.properties

cat workers.properties

# for OLTP web instance
# Define a worker named 'worker1' (more workers can be added as comma separated 
values)
worker.list=loadbalancer

# Default Worker Properties
worker.workerDefault.type=ajp13
worker.workerDefault.port=6209
worker.workerDefault.lbfactor=1
worker.workerDefault.socket_timeout=300
worker.workerDefault.socket_keepalive=true
worker.workerDefault.connection_pool_timeout=300
worker.workerDefault.connection_pool_minsize=1
worker.workerDefault.connection_pool_size=225
worker.workerDefault.max_packet_size=65536

# Node #1 properties
worker.Greenworker1.reference=worker.workerDefault
worker.Greenworker1.host=

# Node #2 properties
#worker.Greenworker2.reference=worker.workerDefault
#worker.Greenworker2.host=

# Node #3 properties
#worker.Greenworker3.reference=worker.workerDefault
#worker.Greenworker3.host=

# Load-balancing behaviour
worker.loadbalancer.type=lb
worker.loadbalancer.balance_workers=Greenworker1
worker.loadbalancer.sticky_session=1


For HOST1, etc. should this be the IPv6 address or what?

Thanks,

Dream * Excel * Explore * Inspire
Jon McAlexander
Asst Vice President

Middleware Product Engineering
Enterprise CIO | Platform Services | Middleware | Infrastructure Solutions

Upcoming PTO: 11/8, 11/11, 11/15, 11/22, 11/28, 11/29, 12/2, 12/6, 12/13, 12/20 
- 12/31

8080 Cobblestone Rd | Urbandale, IA 50322
MAC: F4469-010
Tel 515-988-2508 | Cell 515-988-2508

jonmcalexan...@wellsfargo.com


This message may contain confidential and/or privileged information. If you are 
not the addressee or authorized to receive this for the addressee, you must not 
use, copy, disclose, or take any action based on this message or any 
information herein. If you have received this message in error, please advise 
the sender immediately by reply e-mail and delete this message. Thank you for 
your cooperation.