Hi Christopher,

Please find my response inline.


Is that the Tomcat "manager" web application? It's not usually called
"Deploymanager" which is why I'm confirming.
>> Are you able to observe any errors from the client end?

  *
We have renamed the default manager to "Deploymanager" . Please find the 
screenshot.
  *
Note: This sudden strange behaviour is not common in all the applications and 
for few users. No change in the existing environment. We are very much confused 
on this behavior,  we have tried to deploying a war file wherein both the 
server and client are in same subnet, it was working fine.

[cid:3f7bd78a-bea9-4239-a1e7-ab1646ed82c1]
Okay, good. How close are you getting to that limit? I'm sure you aren't
hitting that, since Tomcat would be logging a completely different error
in that case.

>>>Yes, we are not hitting the set limit. And we are not able to get any error 
>>>logged in catalina.out, the error which i shared you is from localhost.log

Okay, last dumb question: are you using any kind of non-local
file-storage like NFS or similar?

Are you getting NO OTHER ERRORS on the server side?

>>> No, we are not using any non-local file storage like NFS. No other is 
>>> logged so far.  We have also tried to clear cache by deleting the deployed 
>>> folder in tomcat under 
>>> /tomcat/apache-tomcat/work/Catalina/localhost/deployed_folder  and 
>>> restarted the tomcat service. No luck still, very confused this behavior.

Regards,

DivyaBharathi.S

TCS - Infra Midrange SME

Malaysia Airlines Berhad



________________________________
From: Christopher Schultz <ch...@christopherschultz.net>
Sent: Friday, January 17, 2025 8:38 PM
To: users@tomcat.apache.org <users@tomcat.apache.org>
Subject: Re: REG: FAIL - Deploy Upload Failed, Exception: [Processing of 
multipart/form-data request failed. java.net.SocketTimeoutException]

CAUTION! This email originated from outside of MAG

Divyabharathi,

On 1/17/25 8:40 AM, Divyabharathi Sundaram wrote:
>> The client is disconnecting for some reason. What is the client? curl?
>> ant? Something else?
> > We are trying to deploy the war file from browser
> ( eg: http://localhost:8080/Deploymanager)

Is that the Tomcat "manager" web application? It's not usually called
"Deploymanager" which is why I'm confirming.
>> Are you able to observe any errors from the client end?
>
 > [no response]

What can you see in the browser's Developer Tools?
- Network tab (or similar)
- Console tab (or similar)

>> How big is the WAR file you are trying to upload?
>> We have set the 128 Mib /100 Mib, and war file used for deployment is
less than the set limit.
> eg:
>   <max-file-size>134217728</max-file-size>
>        <max-request-size>134217728</max-request-size>
>        <file-size-threshold>0</file-size-threshold>

Okay, good. How close are you getting to that limit? I'm sure you aren't
hitting that, since Tomcat would be logging a completely different error
in that case.

>> What is the network-distance between the client and the server?
 >
> Both are in same intranet, but subnet is different.

Okay, last dumb question: are you using any kind of non-local
file-storage like NFS or similar?

Are you getting NO OTHER ERRORS on the server side?

-chris

> ________________________________
> From: Christopher Schultz <ch...@christopherschultz.net>
> Sent: Thursday, January 16, 2025 7:49 PM
> To: users@tomcat.apache.org <users@tomcat.apache.org>
> Subject: Re: REG: FAIL - Deploy Upload Failed, Exception: [Processing of 
> multipart/form-data request failed. java.net.SocketTimeoutException]
>
> CAUTION! This email originated from outside of MAG
>
> Divyabharathi,
>
> On 1/16/25 9:14 AM, Divyabharathi Sundaram wrote:
>> Hi Team,
>>
>> Tomcat version : 9.0.82 & 9.0.96
>> Issue: Not able to deploy from tomcat console with http protocol
>> Error:  SEVERE [http-nio-8080-exec-25] 
>> org.apache.catalina.core.ApplicationContext.log HTMLManager: FAIL - Deploy 
>> Upload Failed, Exception: [Processing of multipart/form-data request failed. 
>> java.net.SocketTimeoutException]
>>
>> We are encountering deployment issue from tomcat console. When we try to 
>> upload the file and deploy from tomcat console, it throws the error " the 
>> site cannot be reached". We were able to deploy without any issues from 
>> tomcat console before, for the past few weeks we are encountering this issue 
>> in tomcat version 9.0.82 & 9.0.96. As a workaround, we have tried increasing 
>> the connection timeout value, Deployment file size limit, max header size 
>> but nothing helps. Kindly assist us to resolve the issue.
>>
>> Below is the error we are facing when we deploy from tomcat console. Manual 
>> deployment by placing the file under webapps is working fine without any 
>> error.
>>
>> 13-Jan-2025 15:00:40.268 SEVERE [http-nio-8080-exec-25] 
>> org.apache.catalina.core.ApplicationContext.log HTMLManager: FAIL - Deploy 
>> Upload Failed, Exception: [Processing of multipart/form-data request failed. 
>> java.net.SocketTimeoutException]
>>           org.apache.tomcat.util.http.fileupload.impl.IOFileUploadException: 
>> Processing of multipart/form-data request failed. 
>> java.net.SocketTimeoutException
>>                   at 
>> org.apache.tomcat.util.http.fileupload.FileUploadBase.parseRequest(FileUploadBase.java:296)
>>                   at 
>> org.apache.catalina.connector.Request.parseParts(Request.java:2624)
>>                   at 
>> org.apache.catalina.connector.Request.parseParameters(Request.java:2957)
>>                   at 
>> org.apache.catalina.connector.Request.getParameter(Request.java:1087)
>>                   at 
>> org.apache.catalina.connector.RequestFacade.getParameter(RequestFacade.java:309)
>>                   at 
>> org.apache.catalina.filters.CsrfPreventionFilter.doFilter(CsrfPreventionFilter.java:334)
>>                   at 
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:168)
>>                   at 
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:144)
>>                   at 
>> org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:51)
>>                   at 
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:168)
>>                   at 
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:144)
>>                   at 
>> org.apache.catalina.filters.HttpHeaderSecurityFilter.doFilter(HttpHeaderSecurityFilter.java:129)
>>                   at 
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:168)
>>                   at 
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:144)
>>                   at 
>> org.apache.catalina.filters.HttpHeaderSecurityFilter.doFilter(HttpHeaderSecurityFilter.java:129)
>>                   at 
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:168)
>>                   at 
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:144)
>>                   at 
>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:168)
>>                   at 
>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:90)
>>                   at 
>> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:597)
>>                   at 
>> org.apache.catalina.valves.RequestFilterValve.process(RequestFilterValve.java:355)
>>                   at 
>> org.apache.catalina.valves.RemoteAddrValve.invoke(RemoteAddrValve.java:54)
>>                   at 
>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:130)
>>                   at 
>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:93)
>>                   at 
>> org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:660)
>>                   at 
>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74)
>>                   at 
>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:346)
>>                   at 
>> org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:383)
>>                   at 
>> org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:63)
>>                   at 
>> org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:937)
>>                   at 
>> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1791)
>>                   at 
>> org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:52)
>>                   at 
>> org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1190)
>>                   at 
>> org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659)
>>                   at 
>> org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:63)
>>                   at java.lang.Thread.run(Thread.java:750)
>>           Caused by: org.apache.catalina.connector.ClientAbortException: 
>> java.net.SocketTimeoutException
>>                   at 
>> org.apache.catalina.connector.InputBuffer.realReadBytes(InputBuffer.java:312)
>>                   at 
>> org.apache.catalina.connector.InputBuffer.checkByteBufferEof(InputBuffer.java:615)
>>                   at 
>> org.apache.catalina.connector.InputBuffer.read(InputBuffer.java:358)
>>                   at 
>> org.apache.catalina.connector.CoyoteInputStream.read(CoyoteInputStream.java:132)
>>                   at 
>> java.io.FilterInputStream.read(FilterInputStream.java:133)
>>                   at 
>> org.apache.tomcat.util.http.fileupload.util.LimitedInputStream.read(LimitedInputStream.java:132)
>>                   at 
>> org.apache.tomcat.util.http.fileupload.MultipartStream$ItemInputStream.makeAvailable(MultipartStream.java:953)
>>                   at 
>> org.apache.tomcat.util.http.fileupload.MultipartStream$ItemInputStream.read(MultipartStream.java:857)
>>                   at 
>> java.io.FilterInputStream.read(FilterInputStream.java:133)
>>                   at 
>> org.apache.tomcat.util.http.fileupload.util.LimitedInputStream.read(LimitedInputStream.java:132)
>>                   at 
>> java.io.FilterInputStream.read(FilterInputStream.java:107)
>>                   at 
>> org.apache.tomcat.util.http.fileupload.util.Streams.copy(Streams.java:96)
>>                   at 
>> org.apache.tomcat.util.http.fileupload.FileUploadBase.parseRequest(FileUploadBase.java:292)
>>                   ... 35 more
>>                   Suppressed: 
>> org.apache.catalina.connector.ClientAbortException: 
>> java.net.SocketTimeoutException
>>                           at 
>> org.apache.catalina.connector.InputBuffer.realReadBytes(InputBuffer.java:312)
>>                           at 
>> org.apache.catalina.connector.InputBuffer.checkByteBufferEof(InputBuffer.java:615)
>>                           at 
>> org.apache.catalina.connector.InputBuffer.read(InputBuffer.java:358)
>>                           at 
>> org.apache.catalina.connector.CoyoteInputStream.read(CoyoteInputStream.java:132)
>>                           at 
>> java.io.FilterInputStream.read(FilterInputStream.java:133)
>>                           at 
>> org.apache.tomcat.util.http.fileupload.util.LimitedInputStream.read(LimitedInputStream.java:132)
>>                           at 
>> org.apache.tomcat.util.http.fileupload.MultipartStream$ItemInputStream.makeAvailable(MultipartStream.java:953)
>>                           at 
>> org.apache.tomcat.util.http.fileupload.MultipartStream$ItemInputStream.close(MultipartStream.java:897)
>>                           at 
>> org.apache.tomcat.util.http.fileupload.MultipartStream$ItemInputStream.close(MultipartStream.java:876)
>>                           at 
>> java.io.FilterInputStream.close(FilterInputStream.java:181)
>>                           at 
>> org.apache.tomcat.util.http.fileupload.util.LimitedInputStream.close(LimitedInputStream.java:163)
>>                           at 
>> org.apache.tomcat.util.http.fileupload.util.Streams.copy(Streams.java:92)
>>                           ... 36 more
>>                   Caused by: java.net.SocketTimeoutException
>>                           at 
>> org.apache.tomcat.util.net.NioEndpoint$NioSocketWrapper.fillReadBuffer(NioEndpoint.java:1314)
>>                           at 
>> org.apache.tomcat.util.net.NioEndpoint$NioSocketWrapper.read(NioEndpoint.java:1231)
>>                           at 
>> org.apache.coyote.http11.Http11InputBuffer.fill(Http11InputBuffer.java:793)
>>                           at 
>> org.apache.coyote.http11.Http11InputBuffer.access$400(Http11InputBuffer.java:41)
>>                           at 
>> org.apache.coyote.http11.Http11InputBuffer$SocketInputBuffer.doRead(Http11InputBuffer.java:1199)
>>                           at 
>> org.apache.coyote.http11.filters.IdentityInputFilter.doRead(IdentityInputFilter.java:96)
>>                           at 
>> org.apache.coyote.http11.Http11InputBuffer.doRead(Http11InputBuffer.java:244)
>>                           at 
>> org.apache.coyote.Request.doRead(Request.java:626)
>>                           at 
>> org.apache.catalina.connector.InputBuffer.realReadBytes(InputBuffer.java:303)
>>                           ... 47 more
>>           Caused by: java.net.SocketTimeoutException
>>                   at 
>> org.apache.tomcat.util.net.NioEndpoint$NioSocketWrapper.fillReadBuffer(NioEndpoint.java:1314)
>>                   at 
>> org.apache.tomcat.util.net.NioEndpoint$NioSocketWrapper.read(NioEndpoint.java:1231)
>>                   at 
>> org.apache.coyote.http11.Http11InputBuffer.fill(Http11InputBuffer.java:793)
>>                   at 
>> org.apache.coyote.http11.Http11InputBuffer.access$400(Http11InputBuffer.java:41)
>>                   at 
>> org.apache.coyote.http11.Http11InputBuffer$SocketInputBuffer.doRead(Http11InputBuffer.java:1199)
>>                   at 
>> org.apache.coyote.http11.filters.IdentityInputFilter.doRead(IdentityInputFilter.java:96)
>>                   at 
>> org.apache.coyote.http11.Http11InputBuffer.doRead(Http11InputBuffer.java:244)
>>                   at org.apache.coyote.Request.doRead(Request.java:626)
>>                   at 
>> org.apache.catalina.connector.InputBuffer.realReadBytes(InputBuffer.java:303)
>>
>
> The client is disconnecting for some reason. What is the client? curl?
> ant? Something else?
>
> Are you able to observe any errors from the client end?
>
> How big is the WAR file you are trying to upload?
>
> What is the network-distance between the client and the server?
>
> -chris
>
>
> ---------------------------------------------------------------------
> 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

Reply via email to