- os is ubuntu 20.04
- tomcat is tomcat9
- dhis is dhis 2.36
My dhis was running till yesterday. When i tried to run it today (19/Sep) then i got 404 error message.
The problem that i could observe was that the localhost.log contained the following line
SEVERE [main] org.apache.catalina.core.StandardContext.listenerStart Exception sending context initialized event to listener instance of class [org.springframework.web.context.ContextLoaderListener]
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘org.springframework.scheduling.annotation.ProxyAsyncConfiguration’: Unsatisfied dependency expressed through method ‘setConfigurers’ parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘databaseInfo’ defined in URL [jar:file:/home/dhis/tomcat-dhis/webapps/ROOT/WEB-INF/lib/dhis-support-system-2.36.0.jar!/org/hisp/dhis/system/database/DatabaseInfoFactoryBean.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘databaseInfoProvider’: Invocation of init method failed; nested exception is java.lang.IllegalStateException: Postgis extension is not installed. Execute “CREATE EXTENSION postgis;” as a superuser and start the application again
Please note that postgis is already installed. I had again installed as
psql -U postgres -d postgres -c “CREATE EXTENSION postgis”
and also psql -U dhis -d dhis2 -c “CREATE EXTENSION postgis”
I also installed postgis_topology
Then stopped and restarted dhis application and finally rebooted the system. Still I am getting same error.
Also please note that in order to upload the files i had to add “doc” extension to all them