I am very new to DHIS, today I started looking into it and trying to develop one form which can be used to save data in database. and can display the same on frontend. any sample code, where I can find the workflow to achieve this. I did setup of dashboards-app-master. I think it is for frontend. and dhis-core is for backend. though it is not yet started and giving error at http://localhost:8080/dhis
I need some link, where I can understand the basic flow and understand what I need to develop form and login-authentication. Also if the same form I need to publish on andriod and as a web-page, what should I keep in mind in advance… Many thanks.
Another option (for testing environments) is to perform the installation on a Virtual Machine running Linux so you can follow the full official documentation.
For the Virtual Machine options you can use the Free and Open Source solution Virtualbox or the Windows Virtual PC (which usually comes by default in your PC).
The screenshots you provided have useful information starting from “Caused by”. Those indicate 1) That something else is already running on port 8080 and 2) that you are running out of shared memory and need to adjust the max_locks_per_transation. It can be useful to google for dhis2 and those messages, for example here is a previous discussion:
Perhaps you have have also not allocated enough memory for Java using the JAVA_OPTS setting.
I think your issue was resolved successfully with the below configuration and to change the “max_locks_per_transaction” as well as to set environment variables properly:
DHIS2 version: 2.32
Postgres: 12.1
Tomcat: 9.0.30
JDK-13.0.1
If you get any issues, don’t forget to let me know.
Thank you @julhas for your help its successfully installed but now I am facing with another issue and its that when I restore data from the old database or link OLD Database with DHIS the software stop working again, I think there is a Query or any other method for that, can you help me
I am installing on win 2019 using jdk 15, tomcat 9, postgres 13 and dhis2 2.35. I have set max_locks to 1024.
Using the following environment variables
Variable Name: DHIS2_HOME
Value: C:\DHIS2
Variable Name: JAVA_OPTS
Value: -Xms512m -Xmx1024m -XX:PermSize=256m -XX:MaxPermSize=768m
Path: C:\Program Files\Java\jdk-15.0.2\bin
After all these settings I still cant get the war file deployed. Yet the same settings are working on win 10.
HTTP Status 404 – Not Found
Type Status Report
Message The requested resource [/suface] is not available
Description The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.
Thank you for posting the detailed instructions for installing DHIS2. I tried the investigator to do all the specified steps, but I had a problem with synchronizing the old database. What do you think could be the problem? The code is written correctly, as it does not give errors.
I recently gave payment for a licensed Windows version, so there shouldn’t be any problems with the software either. I assumed I lacked enough experience to complete all the installation steps correctly.
I would be happy to communicate and analyze my work personally if someone has free time.
hi everyone
I have successfully installed DHIS2 V.36 into a local (Windows 10) environment (16GB memory) . However, the system crashes a few minutes after starting the Tomcat server connection may be due to the GC Overhead Limit Exceeded Error. Can you pls. help me to resolve the issue.
This sounds like a new issue different from the post you commented on.
But for now, I would start by looking at increasing the JVM Heap Size to allocate more memory to the Java Virtual Machine. What values do you have for the Xmsand-Xmx` options?