← Back to team overview

dhis2-users team mailing list archive

Re: Need some help

 

My recommendation for Windows would normally be to just download and
unzip DHIS2 Live. Then you don't have to worry about the environment
variable.

The problem below happens only when DHIS2 does not locate your
external hibernate.properties file, and therefore uses the default H2.

The reason is probably that you have not created a DHIS2_HOME
environment variable or don't have a hibernate.properties file.
DHIS2_HOME should always point to the folder where you have your
hibernate.properties file. Sometimes you have to reboot Windows in
order for Tomcat to register the environment variable. One way to
check if you have the environment variable defined is to open a
command window and type the following:

 echo %DHIS2_HOME%

If you have it, try rebooting. If you don't, let me know if you need
instructions on how to install it.

But it is easier to go with DHIS2 Live, and just modify the
hibernate.properties file to point to your PostgreSQL database

Knut

On Mon, Oct 17, 2011 at 5:13 PM, Knut Staring <knutst@xxxxxxxxx> wrote:
> Stephen,
>
> This message usually means one of two things: Either the application
> cannot find your hibernate.properties file, or the content (database
> name, username, password) is incorrect, so it cannot connect to the
> database and therefore goes with the default built in H2 database.
>
> Knut
>
> On Mon, Oct 17, 2011 at 5:06 PM, Stephen Gbanyan <mambu9@xxxxxxxxx> wrote:
>> Hi All,
>>
>> I got this message when I got through installing the dhis (the
>> database is currently running in-memory.  this useful for testing
>> purposes but might happen because your database configuration was not
>> picked up.  Please make sure this is intentional. Your data will be
>> destroyed when the application shut down).
>>
>> Can someone please help.
>>
>> Stephen
>>
>> _______________________________________________
>> Mailing list: https://launchpad.net/~dhis2-users
>> Post to     : dhis2-users@xxxxxxxxxxxxxxxxxxx
>> Unsubscribe : https://launchpad.net/~dhis2-users
>> More help   : https://help.launchpad.net/ListHelp
>>
>
>
>
> --
> Knut Staring
> Informatics, U. of Oslo
> http://hisp.uio.no
> +4791880522
>



-- 
Knut Staring
Informatics, U. of Oslo
http://hisp.uio.no
+4791880522


Follow ups

References