After Upgrade dashboard is showing 404 error

Dear All,
Our dhis2 is running on tomcat 8.5.39 and we did a server update and upgrade which affected our dashboard. All the dashboards were not accessible and they were showing 404 error.
The backend log was showing this:
INFO: Error parsing HTTP request header
Note: further occurrences of HTTP header parsing errors will be logged at DEBUG level.
java.lang.IllegalArgumentException: Invalid character found in the request target. The valid characters are defined in RFC 7230 and RFC 3986
at org.apache.coyote.http11.Http11InputBuffer.parseRequestLine(
at org.apache.coyote.http11.Http11Processor.service(
at org.apache.coyote.AbstractProcessorLight.process(
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(
at java.util.concurrent.ThreadPoolExecutor.runWorker(
at java.util.concurrent.ThreadPoolExecutor$
at org.apache.tomcat.util.threads.TaskThread$

So if anyone is having the same issue then you will need to add “relaxedQueryChars=”[]“” to your server.xml file and should look like this:
executor=“tomcatThreadPool” connectionTimeout=“20000” relaxedQueryChars=“[]” /> and then restart your tomcat or reboot your server. That fixed my issue


Hi @Gerald_Thomas,

Sorry for the late response on this; did you get a fix for this? Kindly let us know if you managed to sort this.


Dear James,
I used the maintenance app to fix the issue.

1 Like

Hello there,

Has anyone found a solution for this issue?

Thank you,