DHIS2 404-not found error

DHIS2 404-not found error

Problem Statement: DHIS2 404-not found error: After running tomcat and ERROR: out of shared memory; HINT: You might need to increase max_locks_per_transaction

      
When are you getting this error: 

• When you run your tomcat service and try to access http://localhost:8080/dhis the above mentioned error is showing

Solutions: Please check the below settings: 
1. Check your environment variables from Properties >> Advanced System Settings >> 


Note: Don’t add DHIS2_HOME in user variables just add it in system variable like 2.
2. Check your C:\DHIS2\dhis.conf 

Note: check the spelling >> dhis.conf not dhis.config


3. Make sure that you have downloaded dhis2 right version 


Error type: ERROR: out of shared memory......

Solution: 
A. Go to your postgresql installed directory: C:\Program Files\PostgreSQL\11\data
B. Edit `postgresql.conf` and set max_locks_per_transaction = 1024
C. Restart your postgresql and tomcat