← Back to team overview

dhis2-users team mailing list archive

DHIS2_HOME in ubuntu

 

Hi all,

After setting setenv.sh and pointing both JAVA_HOME and DHIS2_HOME to their
appropriate places, and setting appropriate JAVA_OPTS, but still I cannot
still get DHIS to use the postgresql database rather than H2 database.

When I check catalina.out, it says that DHIS2_HOME points to the correct
place but in the next line it says Directory /home/dhis/config is not
writeable


to give you an idea,

hibernate.properties file is located in /home/dhis/config

and here's the content of setenv.sh which is located in
/usr/share/tomcat7/bin

export JAVA_HOME='/usr/lib/jvm/java-7-oracle'
export JAVA_OPTS='-Xmx2048m -Xms1024m -XX:MaxPermSize=500m
-XX:PermSize=300m'
export DHIS2_HOME='/home/dhis/config'

does anyone have any idea what i'm doing wrong?

For reference I've attached catalina.out

Attachment: catalina.out
Description: Binary data


Follow ups