Data Entry Module: DHIS2 2.38.1.1: Metadata taking long to load

Dear DHIS2 Community,

Users have been experiencing challenges with loading metadata in the aggregate data entry forms for a couple of weeks now, the system was okay prior. It takes sometimes, over 5 minutes to load the meta data, and sometimes does not load at all. Kindly assist.

Regards,
Cynthia

1 Like

Hi @ckambobe

Please share the Catalina.out log (without the sensitive info) + please check Network log as well

Does this issue happen even after clearing cache (browser cache) as well as (sever case, → Data Administration app → Maintenance)?

Thanks!

Hi @Gassim ,

Have tried clearing the cache, rerunning the war file… nothing is changing the situation.

06-Oct-2022 20:56:32.952 SEVERE [https-jsse-nio-443-exec-32] org.apache.catalina.core.StandardWrapperValve.invoke Servlet.service() for servlet [default] in context with path threw exception
org.springframework.security.web.firewall.RequestRejectedException: The request was rejected because the URL contained a potentially malicious String “//”
at org.springframework.security.web.firewall.StrictHttpFirewall.rejectedBlocklistedUrls(StrictHttpFirewall.java:456)
at org.springframework.security.web.firewall.StrictHttpFirewall.getFirewalledRequest(StrictHttpFirewall.java:429)
at org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:196)
at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:183)
at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:354)
at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:267)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:201)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)
at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:354)
at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:267)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:201)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
at org.springframework.orm.hibernate5.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:156)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:197)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:97)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:660)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:135)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)
at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:687)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:78)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:360)
at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:399)
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:890)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1789)
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
at org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1191)
at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.base/java.lang.Thread.run(Thread.java:834)

Regards,
Cynthia.

1 Like

Hi Cynthia,

Mwuli bwanji ?

Please try have a look at this previous thread, apply the setting and restart tomcat. See if this doesn’t help.

Kind regards from South Africa,
Potlaki

2 Likes

Greetings @Potlaki,

The relaxedQueryChars were set as advised in community, but that has not the solved the issue. I also attempted to restart the server, rerun the war file, run the maintenance, still getting the loading issue.

Hi Cynthia,

You may want to see how large the this response is. In the past, I have seen problems with invalid characters in this, but that does not sound like your problem.

https://yourserver/dhis-web-dataentry/getMetaData.action

You will of course need to change yourserver to which ever server you are accessing.

If there are a large number of organisation units, many datasets or complex data entry forms, this payload may be very large. This might help to explain why it takes so long, particular if users might have a slow connection.

Regards,
Jason

3 Likes

Hi @jason

You are right, didn’t think multple lock exceptions to the data sets could have such an impact on the data entry app. That’s what was causing the delays in loading - after I followed the link you shared, found that the payload was too large. I have since deleted all lock exceptions and the performance is back to normal.

Thank you! :clap:

2 Likes

This has also worked for me.
Thank you.

1 Like