Hey everyone
I have installed the DHIS2 on windows 10, I am using Tomcat 9 and DHIS2 2.35.8. Installations are done smoothly and I am able to access it as well, but the issue is that whenever I try to create orgUnits, User, Tracker, and anything it allows me to fill in the details but as soon as I click on the save it doesn’t save it and generate an error.
Failed to load resource: the server responded with a status of 404 ()
maintenance-200c395ec895609255b3.js:1 API request failed with status 404
Request: GET …/api/29/userDataStore/maintenance
I am not able to resolve this error anybody can please help me what i am doing wrong .
Thanks
I am glad the installation went smoothly, and I hope you are using Java 11! Similarly to that topic, are you using HTTP or HTTPS when you access the instance? Would you like to share the configuration settings (without including sensitive data) if the suggested solution from the other post doesn’t work for you?
Hey Thank you for helping me out, I have tried the mentioned solution I have added
scheme=“https” in connection, server.xml but dhis2 stop working and when I removed it, started working again. so now what should I do
@Gassim i have added
relaxedQueryChars=“^{}[]|"”
in Connector (server.xml) but still when i open maintenance and try to create the orgUnit i got the following errors
Thanks for the update! We’d need to see the request in the Network tab (F12 -Console, → Network tab, click on the request with red line and then take a screenshot for response and headers).
Thanks!
Okay thanks @Tooba! I tried to search a bit more into this and it seems that similar errors (not exactly the same) but issues occur when the tomcat installation (and maybe the Java installation) aren’t compatible with the DHIS2 instance (https://jira.dhis2.org/browse/DHIS2-7269).
I see that you have installed Tomcat 9 which is good but maybe check if there are any updates that are required. So my suggestion which I took from the related topics mentioned in that old jira issue, is that you try to check your tomcat installation. And for Java, I’d say it’s Java 11? It’s the recommended version now.
Additionally, you would have to clear the browser cache and from the Data Administration app maybe do some maintenance.