← Back to team overview

dhis2-devs team mailing list archive

Re: USING DHIS-LIVE ON LINUX UBUNTU

 

On Wed, Dec 4, 2013 at 3:31 PM, Kayode Odusote <odusote.kayode@xxxxxxxxx>wrote:

> Dear Lars and Knut,
>
> I have some problem which I hope you can explain or educate me on how to
> solve them.
>
> 1.  The first time I run the startup.sh, the dhis-live runs well (see
> attached) and I have the expected login page.  However, no Sierra Leone
> Demo data is loaded into it.
>

DHIS Live does not come with demo data, they have to be downloaded
separately and loaded into an empty Postgres database, and then you need to
change the hibernate.properties file to point to the new db.


> If I add data, these are saved until I exit from the server.  All that
> data is lost next time I run the script to start the application.
>

Not sure what causes this, could perhaps be write permissions?


> 2. After the server starts well with "startup.sh" once or twice, the next
> time the server is started, it becomes unavailable with error 503 (see
> attached).  The only way I was able to overcome this is to delete the
> dhis-live directory and re-create it from the zipped file.
>
> I attach the dhis.log file and the output from the terminal.
>
>
There does seem to be some problems with the H2 db. We should check this,
but I think you will not encounter them with MySql or Postgres.


> I expect that it should be possible to restart the server after the first
> time without running "startup.sh" as closing the server does not clear some
> of the files that are created by the script when it is run the first time.
>

Running ./startup.sh is the standard way to start.


> Can I use it with MySql instead of postgres?
>

Yes, but unfortunately we don't have the SL sample data in MySql format.
You could export some of the metadata and data from the online demo and
import to your local instance to quickly get started with something.

Knut


> Thanks.
>
> Kayode
>
>
> Regards.
>
>
>
> On Wed, Dec 4, 2013 at 11:56 AM, Knut Staring <knutst@xxxxxxxxx> wrote:
>
>> Hello Kayode,
>>
>> Of course, you could change the dhis-live/conf/hibernate.properties file
>> to link to Postgres rather than H2 if you prefer.
>>
>> Knut
>>
>>
>> On Wed, Dec 4, 2013 at 8:45 AM, Lars Helge Øverland <larshelge@xxxxxxxxx>wrote:
>>
>>> Hello Kayode,
>>>
>>> there should be no need for additional steps. ./startup.sh should be
>>> enough. I use Live on ubuntu regularly on my side. Let us know if you get
>>> any problems.
>>>
>>> best regards,
>>>
>>> Lars
>>> On Dec 3, 2013 4:51 PM, "Kayode Odusote" <odusote.kayode@xxxxxxxxx>
>>> wrote:
>>>
>>>> Dear All,
>>>>
>>>> Is there any additional information required to use the dhis-live CD
>>>> on Linux-Ubuntu apart from just running the startup.sh script?
>>>>
>>>> Is there any need to tweek the h2 database server?
>>>>
>>>> Thanks.
>>>>
>>>> Kayode ODUSOTE
>>>>
>>>> _______________________________________________
>>>> Mailing list: https://launchpad.net/~dhis2-devs
>>>> Post to     : dhis2-devs@xxxxxxxxxxxxxxxxxxx
>>>> Unsubscribe : https://launchpad.net/~dhis2-devs
>>>> More help   : https://help.launchpad.net/ListHelp
>>>>
>>>
>>> _______________________________________________
>>> Mailing list: https://launchpad.net/~dhis2-devs
>>> Post to     : dhis2-devs@xxxxxxxxxxxxxxxxxxx
>>> Unsubscribe : https://launchpad.net/~dhis2-devs
>>> More help   : https://help.launchpad.net/ListHelp
>>>
>>>
>>
>>
>> --
>> Knut Staring
>> Dept. of Informatics, University of Oslo
>> +4791880522
>> http://dhis2.org
>>
>
>


-- 
Knut Staring
Dept. of Informatics, University of Oslo
+4791880522
http://dhis2.org

References