Details
-
Enhancement
-
Status: Closed
-
Should
-
Resolution: Fixed
-
Core 2.4.0
-
None
-
None
-
Low
Description
On some of our systems, we see a lot of errors in our logs that look like this:
ERROR - GZIPResponseWrapper.finishResponse(60) |2020-11-30 19:11:21,250| Error during closing writer or streamERROR - GZIPResponseWrapper.finishResponse(60) |2020-11-30 19:11:21,250| Error during closing writer or streamjava.io.IOException: This output stream has already been closed at org.openmrs.web.filter.GZIPResponseStream.close(GZIPResponseStream.java:55) at org.openmrs.web.filter.GZIPResponseWrapper.finishResponse(GZIPResponseWrapper.java:55) at org.openmrs.web.filter.GZIPFilter.doFilterInternal(GZIPFilter.java:60) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at org.openmrs.module.web.filter.ModuleFilterChain.doFilter(ModuleFilterChain.java:73) at
See attached log file snippet for what this looks like for just one request for the home page after starting up the server.
These errors are coupled with very slow page load times, and these issues appear to be related.
It is not 100% clear how to reproduce these conditions - whether it is a result of file / user permissions, deployment approach, etc. This particular set of conditions was found deploying one of our existing Rwanda distributions onto a Vagrant box running Ubuntu 20.04, Tomcat 7, and Java 8.