thanks Mark for that

Luis J Ramos 
CNT Infotech Corp. (www.cntinfotech.com) 
646.452.9349

----- Original Message -----
From: "Mark Thomas" <ma...@apache.org>
To: "users" <users@tomcat.apache.org>
Sent: Thursday, March 23, 2023 2:32:12 PM
Subject: Re: service() failed with http error 502

You have a mismatch between this attribute on the workers:

max_packet_size

It isn't set so the default of 8192 is used.

And this attribute on the AJP connector:

packetSize="65536"

Those attributes need to match on all workers and the AJP connector.

Mark



On 23/03/2023 18:19, Luis Ramos wrote:
> Hi,
> worker.list=tomcat01,tomcat02
> worker.tomcat01.type=ajp13
> worker.tomcat01.host=::1
> worker.tomcat01.port=8009
> worker.tomcat01.secret=namnetiq1
> worker.tomcat01.ping_timeout=1000
> worker.tomcat01.connect_timeout=10000
> worker.tomcat01.prepost_timeout=10000
> worker.tomcat01.socket_timeout=10
> worker.tomcat01.connection_pool_timeout=60
> worker.tomcat01.connection_pool_size=90
> worker.tomcat01.retries=2
> worker.tomcat01.reply_timeout=300000
> 
> worker.tomcat02.type=ajp13
> worker.tomcat02.host=::1
> worker.tomcat02.port=8009
> worker.tomcat02.secret=namnetiq1
> worker.tomcat02.ping_timeout=1000
> worker.tomcat02.connect_timeout=10000
> worker.tomcat02.prepost_timeout=10000
> worker.tomcat02.socket_timeout=10
> worker.tomcat02.connection_pool_timeout=60
> worker.tomcat02.connection_pool_size=90
> worker.tomcat02.retries=2
> worker.tomcat02.reply_timeout=300000
> 
> Luis J Ramos
> CNT Infotech Corp. (www.cntinfotech.com)
> 646.452.9349
> 
> ----- Original Message -----
> From: "Mark Thomas" <ma...@apache.org>
> To: "users" <users@tomcat.apache.org>
> Sent: Thursday, March 23, 2023 12:51:59 PM
> Subject: Re: service() failed with http error 502
> 
> And the workers.properties file?
> 
> Mark
> 
> 
> On 23/03/2023 16:13, Luis Ramos wrote:
>> Hi
>>    Apache Tomcat/9.0.65
>> from server.xml
>>
>>     <Connector protocol="AJP/1.3"
>>                  address="::1"
>>                  port="8009"
>>                  maxThreads="3000"
>>                  minSpareThreads="50"
>>                  connectionTimeout="121000"
>>             packetSize="65536"
>>             secretRequired="true" secret="namnetiq1"/>
>>       
>>
>> Luis J Ramos
>> CNT Infotech Corp. (www.cntinfotech.com)
>> 646.452.9349
>>
>> ----- Original Message -----
>> From: "Mark Thomas" <ma...@apache.org>
>> To: "users" <users@tomcat.apache.org>
>> Sent: Thursday, March 23, 2023 4:09:41 AM
>> Subject: Re: service() failed with http error 502
>>
>> On 22/03/2023 19:20, Luis Ramos wrote:
>>> Hi List.
>>> In and around last windows updates for our WIN2019 box, our tomcat 
>>> connector start to fail with the below error message.
>>> Setup is IIS 10->ISAPI connector => Tomcat 9 -> 
>>> https://tomcat.apache.org/connectors-doc/webserver_howto/iis.html
>>> Has someone seen this behaivor?
>>> To be able to open the system I am bypassing the connector and listening in 
>>> port 443 in server.xml directly.
>>
>> What Tomcat version are you using?
>>
>> Has there been any change in Tomcat version in the same time frame? If
>> so, please provide exact version information.
>>
>> Please provide the AJP connector configuration from Tomcat's server.xml
>>
>>> [Wed Mar 22 15:08:46.746 2023] [10780:14112] [error] 
>>> ajp_connection_tcp_get_message::jk_ajp_common.c (1408): (tomcat01) wrong 
>>> message size 18441 8192 from ::1:8009
>>
>> This suggests that Tomcat is configured with a different maximum AJP
>> message size than IIS.
>>
>> Please provide your workers.properties file.
>>
>> Mark
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
>> For additional commands, e-mail: users-h...@tomcat.apache.org
>> This e-mail message, including any attachment(s), is confidential and may 
>> also be legally privileged. It is intended solely for the addresse(s) and 
>> others authorized to receive it. If you are not the intended recipient you 
>> are hereby notified that any disclosure, copying, distribution or taking any 
>> action in reliance on the contents of this email is strictly prohibited and 
>> may be unlawful. If you have received this e-mail in error you are requested 
>> to delete it from your system and to notify us by replying to this message 
>> immediately. CNT Infotech is not liable for the improper transmission of 
>> this message nor for any damage sustained as a result of this message.
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
>> For additional commands, e-mail: users-h...@tomcat.apache.org
>>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
> This e-mail message, including any attachment(s), is confidential and may 
> also be legally privileged. It is intended solely for the addresse(s) and 
> others authorized to receive it. If you are not the intended recipient you 
> are hereby notified that any disclosure, copying, distribution or taking any 
> action in reliance on the contents of this email is strictly prohibited and 
> may be unlawful. If you have received this e-mail in error you are requested 
> to delete it from your system and to notify us by replying to this message 
> immediately. CNT Infotech is not liable for the improper transmission of this 
> message nor for any damage sustained as a result of this message.
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org
This e-mail message, including any attachment(s), is confidential and may also 
be legally privileged. It is intended solely for the addresse(s) and others 
authorized to receive it. If you are not the intended recipient you are hereby 
notified that any disclosure, copying, distribution or taking any action in 
reliance on the contents of this email is strictly prohibited and may be 
unlawful. If you have received this e-mail in error you are requested to delete 
it from your system and to notify us by replying to this message immediately. 
CNT Infotech is not liable for the improper transmission of this message nor 
for any damage sustained as a result of this message.



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

Reply via email to