Re: [Dhis2-devs] [Bug 1625181] Re: Organisation Unit Data Lost After Restarting Web Server

2016-09-25 Thread Lars Helge Ă˜verland
Hi, this is all clearly explained in the installation guide: http://dhis2.github.io/dhis2-docs/master/en/implementer/html/install_server_setup.html#install_database_configuration regards, Lars On Sun, Sep 25, 2016 at 10:10 AM, Calle Hedberg wrote: > Scott, > >

Re: [Dhis2-devs] [Bug 1625181] Re: Organisation Unit Data Lost After Restarting Web Server

2016-09-25 Thread Calle Hedberg
Scott, The config file up to version 2.21 was called "hibernate.properties" >From 2.22 onwards this was changed to dhis.conf So it's a version issue. Regards Calle On 24 September 2016 at 23:56, Scott Allen <1625...@bugs.launchpad.net> wrote: > I think this is likely my personal user error

[Dhis2-devs] [Bug 1625181] Re: Organisation Unit Data Lost After Restarting Web Server

2016-09-24 Thread Scott Allen
I think this is likely my personal user error but somewhere along the lines I've gotten confused on if my config file should be named dhis.conf or hibernate.properties. I'm also confused on whether the file should use "hibernate.connection" or "connection.x" and if the correct notation for the

Re: [Dhis2-devs] [Bug 1625181] Re: Organisation Unit Data Lost After Restarting Web Server

2016-09-19 Thread Brajesh Murari
Its working. Thanks Alex. On Tue, Sep 20, 2016 at 2:22 AM, Alex Tumwesigye wrote: > Dear Murari, > > The correct dhis.conf is > connection.dialect = org.hibernate.dialect.PostgreSQLDialect > connection.driver_class = org.postgresql.Driver > connection.url =

Re: [Dhis2-devs] [Bug 1625181] Re: Organisation Unit Data Lost After Restarting Web Server

2016-09-19 Thread Alex Tumwesigye
Dear Murari, The correct dhis.conf is connection.dialect = org.hibernate.dialect.PostgreSQLDialect connection.driver_class = org.postgresql.Driver connection.url = jdbc:postgresql:dhis2 connection.username = dhis connection.password = dhis connection.schema = update See below.

Re: [Dhis2-devs] [Bug 1625181] Re: Organisation Unit Data Lost After Restarting Web Server

2016-09-19 Thread Brajesh Murari
Yes i replaced one line in dhis.conf hibernate.connection.schema = update by hibernate.hbm2ddl.auto = update and its working Thanks Knut On Mon, Sep 19, 2016 at 7:18 PM, Knut Staring wrote: > Try this in your dhis.conf: > > hibernate.dialect =

[Dhis2-devs] [Bug 1625181] Re: Organisation Unit Data Lost After Restarting Web Server

2016-09-19 Thread Knut Staring
Try this in your dhis.conf: hibernate.dialect = org.hibernate.dialect.PostgreSQLDialect hibernate.connection.driver_class = org.postgresql.Driver hibernate.connection.url = jdbc:postgresql:dhis2 hibernate.connection.username = dhis hibernate.connection.password = dhis hibernate.hbm2ddl.auto =

Re: [Dhis2-devs] [Bug 1625181] Re: Organisation Unit Data Lost After Restarting Web Server

2016-09-19 Thread Knut Staring
Your dhis.conf should look like this: hibernate.dialect = org.hibernate.dialect.PostgreSQLDialect hibernate.connection.driver_class = org.postgresql.Driver hibernate.connection.url = jdbc:postgresql:dhis2 hibernate.connection.username = dhis hibernate.connection.password = dhis

[Dhis2-devs] [Bug 1625181] Re: Organisation Unit Data Lost After Restarting Web Server

2016-09-19 Thread Brajesh Murari
Specially i did system integration testing with PostGres Data Base, i found data does't preserve and after restating server, it loses all data, i am not sure but it can be a bug or might be i am losing some system configuration issue which need to be taken care of apart form setting values like