Hi All, We are facing an issue with Apache Tomcat 9. I had posted this issue in Bugzilla forum, and from there I was re-directed here.
The link to the bug is = https://bz.apache.org/bugzilla/show_bug.cgi?id=66476 I will elaborate the details here: - ---------------------------------- ERROR: - ---------------------------------- 10-Feb-2023 02:16:19.618 SEVERE [http-nio-80-Acceptor] org.apache.tomcat.util.net.Acceptor.run Socket accept failed java.io.IOException: Duplicate accept detected. This is a known OS bug. Please consider reporting that you are affected: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1924298 at org.apache.tomcat.util.net.NioEndpoint.serverSocketAccept(NioEndpoint.java:548) at org.apache.tomcat.util.net.NioEndpoint.serverSocketAccept(NioEndpoint.java:78) at org.apache.tomcat.util.net.Acceptor.run(Acceptor.java:129) at java.lang.Thread.run(Thread.java:748) ---------------------------------- ---------------------------------- Env details ---------------------------------- Apache Tomcat version : - Apache Tomcat/9.0.58 Frequency of occurrence : - Sometimes Reproducible consistently ? : - No, it appears sometimes ....randomly...and on tomcat restart it goes away but it may appear randomly sometime later OS = CentOS Kernel (uname -sr) = Linux 6.0.9-1.el7.elrepo.x86_64 Server arch = amd64 ---------------------------------- ---------------------------------- Setup: - ---------------------------------- We are using Camunda 7.16 BPMN tool which comes with inbuilt Apache Tomcat 9.0.58. This is deployed on our Linux VM (CentOS). The VM is within our company network, and ... via company's firewall another trusted application on Azure cloud (outside company network)...is only allowed to make REST API calls to Camunda (hosted on Tomcat). When Tomcat is started all works fine, requests placed from trusted application on Azure Cloud are able to reach our Tomcat and our application works on it, until out of the blue and randomly above error occurs and tomcat no longer serves request coming from external application on cloud. On the other hand, if we fire similar request from within our company network machines as many times as we want... as frequently as possible, in such scenario, the above error does not occur and Tomcat allows all internal requests. In other words, it seems above issue occurs only for external requests and not internal ones. What has been tried so far ?: - >From several posts after google search it was found that Linux Kernel version >could help. Previously it was 3.x and now it is upgraded to 6.0.9-1 and Apache >Tomcat version is 9.0.58... still we face the above error. ---------------------------------- ---------------------------------- Queries: - ---------------------------------- 1) Why it behaves strangely with external requests and not with internal ones ? 2) How can we consistently reproduce the issue ? 3) What could be the possible cause and how to fix it ? ---------------------------------- Any help in this regard can be very helpful. On Bugzilla, Mark has recommended to upgrade to Apache Tomcat 9.0.59 or higher. But we want to be sure that is the fix, because the error that we are getting is occurring only randomly and that too for external requests and not internal requests. Let me know if you need any more information. Thanks and Regards Omkar Patkar --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org