Connect DHIS2 development module with Postgres

Hi everyone,

I am working actually on DHIS2 development and FHIR. I need to connect my development module with postgres instead of H2 but I am having issues. The instance still run on H2 even though I have followed the procedure described here https://github.com/se2/DHIS2.

Thank you for your help

···

Gérard Bisama
Tel:+243810890810

Hello Bisama,

The procedure described on the link https://github.com/se2/DHIS2 is not
updated as required for performing development and implementation setup on
your local machine, perhaps, it needs to update as per requirement. As the
situation you have
described in your email, it implies that your DHIS2 installation does not
been able to find "DHIS2_HOME" directory as you
might have been created as system environment variable in your machine.
DHIS2 installation starts with H2 database in only
when it does not been able to find "DHIS2_HOME" system environment variable
as its normal run time routine execution process.

Please follow the general instruction as described below in the attachment.
The document contains installation procedure for the setting up your
machine on window operating system as consideration.

Regards,

···

On Fri, Sep 23, 2016 at 1:40 PM, gérard Bisama <gerbis2000@gmail.com> wrote:

Hi everyone,

I am working actually on DHIS2 development and FHIR. I need to connect my
development module with postgres instead of H2 but I am having issues. The
instance still run on H2 even though I have followed the procedure
described here https://github.com/se2/DHIS2.

Thank you for your help

--
Gérard Bisama
Tel:+243810890810

_______________________________________________
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help : https://help.launchpad.net/ListHelp

--
Thanks and Regards

Brajesh Murari

Senior Technical Annalist | www.sdrc.co.in | Ph.:(+91)-9430124938 |

Hi Gérard,

What operating system are you on?

DHIS2 will search for an environment variable called DHIS2_HOME. This will be a pointer to the folder where your
hibernate.properties (now better to use dhis.conf) file is located.

For example:

export DHIS2_HOME='/home/dhis/config'

See the link below (search for DHIS2_HOME):

``

[http://dhis2.github.io/dhis2-docs/2.24/en/implementer/html/dhis2_implementation_guide_full.html#d5274e948](http://dhis2.github.io/dhis2-docs/2.24/en/implementer/html/dhis2_implementation_guide_full.html#d5274e948)

···

Knut

On 23 Sep 2016 10:18 a.m., “gérard Bisama” gerbis2000@gmail.com wrote:

Hi everyone,

I am working actually on DHIS2 development and FHIR. I need to connect my development module with postgres instead of H2 but I am having issues. The instance still run on H2 even though I have followed the procedure described here https://github.com/se2/DHIS2.

Thank you for your help


Gérard Bisama
Tel:+243810890810


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp

Hi All,

Thank you for your responses.

I am using Ubuntu 14.04. I have done all the configurations concerning the DHIS2_HOME and Java environment variables.

Am not able to connect to the database.

···

2016-09-23 10:12 GMT+00:00 Knut Staring knutst@gmail.com:

Hi Gérard,

What operating system are you on?

DHIS2 will search for an environment variable called DHIS2_HOME. This will be a pointer to the folder where your
hibernate.properties (now better to use dhis.conf) file is located.

For example:

export DHIS2_HOME='/home/dhis/config'

See the link below (search for DHIS2_HOME):

``

[http://dhis2.github.io/dhis2-docs/2.24/en/implementer/html/dhis2_implementation_guide_full.html#d5274e948](http://dhis2.github.io/dhis2-docs/2.24/en/implementer/html/dhis2_implementation_guide_full.html#d5274e948)

Knut

On 23 Sep 2016 10:18 a.m., “gérard Bisama” gerbis2000@gmail.com wrote:

Hi everyone,

I am working actually on DHIS2 development and FHIR. I need to connect my development module with postgres instead of H2 but I am having issues. The instance still run on H2 even though I have followed the procedure described here https://github.com/se2/DHIS2.

Thank you for your help


Gérard Bisama
Tel:+243810890810


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp

Gérard Bisama
Tel:+243810890810

Hi All, just want to say that I have solved the problem by creating the config file in the current user session instead of the dhis user. It seems to be related to the user privileges to have access to the /home/dhis/config/dhis.conf.

Thank you

···

2016-09-23 12:52 GMT+00:00 gérard Bisama gerbis2000@gmail.com:

Hi All,

Thank you for your responses.

I am using Ubuntu 14.04. I have done all the configurations concerning the DHIS2_HOME and Java environment variables.

Am not able to connect to the database.

2016-09-23 10:12 GMT+00:00 Knut Staring knutst@gmail.com:

Hi Gérard,

What operating system are you on?

DHIS2 will search for an environment variable called DHIS2_HOME. This will be a pointer to the folder where your
hibernate.properties (now better to use dhis.conf) file is located.

For example:

export DHIS2_HOME='/home/dhis/config'

See the link below (search for DHIS2_HOME):

``

[http://dhis2.github.io/dhis2-docs/2.24/en/implementer/html/dhis2_implementation_guide_full.html#d5274e948](http://dhis2.github.io/dhis2-docs/2.24/en/implementer/html/dhis2_implementation_guide_full.html#d5274e948)


Gérard Bisama
Tel:+243810890810

Knut

On 23 Sep 2016 10:18 a.m., “gérard Bisama” gerbis2000@gmail.com wrote:

Hi everyone,

I am working actually on DHIS2 development and FHIR. I need to connect my development module with postgres instead of H2 but I am having issues. The instance still run on H2 even though I have followed the procedure described here https://github.com/se2/DHIS2.

Thank you for your help


Gérard Bisama
Tel:+243810890810


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp

Gérard Bisama
Tel:+243810890810