← Back to team overview

dhis2-users team mailing list archive

Re: [Dhis2-devs] [Bug 1520661] Re: All the data entered in DHIS2 installed in my laptop gets deleted after next fresh server start

 

I recommend you use dhis2-tools:

http://dhis2.github.io/dhis2-docs/2.21/en/implementer/html/ch20.html

On Mon, Feb 1, 2016 at 12:19 AM, Alistairs DIRUA <adirua@xxxxxxxxx> wrote:

> I am trying to create a local instance for our office, thus am installing
> as a server. Staff can access the DHIS2 and enter data. Once data is
> up-to-date, when will have it available online.
>
> Given this, can I still install DHIS2-Live, have it available on our LAN
> and start entering data. Later can I use the same DHIS2-Live instance and
> have it accessible online??
> On 27 Jan 2016 10:51 pm, "Knut Staring" <knutst@xxxxxxxxx> wrote:
>
>> Are you installing on a server, or just on your own laptop? If the
>> latter, I suggest you just use DHIS Live instead, much easier.
>>
>> However, if a server, then you will need to create a persistent
>> DHIS2_HOME environment variable
>>
>> Our instructions are vague - it just says it needs to be added "to your
>> environment" without explaning what that means.
>>
>> export JAVA_HOME='/usr/lib/jvm/java-8-oracle/'
>> export JAVA_OPTS='-Xmx7500m -Xms4000m'
>> export DHIS2_HOME='/home/dhis/config'
>>
>> See the section  System-wide environment variables here:
>> https://help.ubuntu.com/community/EnvironmentVariables
>>
>> On Wed, Jan 27, 2016 at 6:54 AM, Alistairs DIRUA <adirua@xxxxxxxxx>
>> wrote:
>>
>>> Still no luck!
>>>
>>> I changed the filename to "dhis.conf", updated the properties, but no
>>> success.
>>>
>>> When I invoke "echo $DHIS2_HOME", it does not print anything. The
>>> following is what I can see in my browser > "About DHIS2"
>>>
>>> About DHIS 2
>>>
>>> Web API:
>>>     Browse it here
>>> Current user:
>>>     admin
>>> Version:
>>>     2.22
>>> Build revision:
>>>     21775
>>> Build date:
>>>     2016-01-22 03:22
>>> User agent:
>>>     Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:43.0) Gecko/20100101
>>> Firefox/43.0
>>> Server date:
>>>     2016-01-27 15:08
>>> Last analytics table generation:
>>> Time since last analytics table generation:
>>> Last analytics table runtime:
>>> Environment variable:
>>>     DHIS2_HOME
>>> External configuration directory:
>>>     /home/dhis/config
>>> Database type:
>>>     DhisH2
>>> Database name:
>>>
>>> dhis2;DB_CLOSE_DELAY=-1;MVCC=TRUE;ALIAS_COLUMN_NAME=TRUE;DB_CLOSE_ON_EXIT=FALSE
>>> Database user:
>>>     sa
>>> Java opts:
>>>     -Xmx7500m -Xms4000m
>>> Java home:
>>>     /usr/lib/jvm/java-8-oracle/jre
>>> Java temporary directory:
>>>     /home/dhis/tomcat-dhis/temp
>>> Java version:
>>>     1.8.0_66
>>> Java vendor:
>>>     Oracle Corporation
>>> OS name:
>>>     Linux
>>> OS architecture:
>>>     amd64
>>> OS version:
>>>     3.13.0-76-generic
>>> Server memory:
>>>     Mem Total in JVM: 5449 Free in JVM: 3471 Max Limit: 6667
>>> CPU cores:
>>>     2
>>>
>>>
>>>
>>> On Wed, Jan 27, 2016 at 7:58 AM, Knut Staring <knutst@xxxxxxxxx> wrote:
>>>
>>>> Ok, since DHIS2 is using H2, that means that Tomcat has not found your
>>>> configuration file. Maybe this is because you are running the latest
>>>> version 2.22, for which the configuration file has changed name from
>>>> hibernate.properties to dhis.conf, as described in the release notes:
>>>> https://www.dhis2.org/222-upgrade
>>>>
>>>> Also, you should open a terminal window and type this to make sure:
>>>> echo $DHIS2_HOME
>>>>
>>>> On Tue, Jan 26, 2016 at 8:17 PM, Alistairs DIRUA <adirua@xxxxxxxxx>
>>>> wrote:
>>>>
>>>>> I am using Ubuntu 14.04 64 bit(full install) on a Laptop, 4GB Ram.
>>>>> And I installed it following the step-by-step listed here:
>>>>>
>>>>> http://dhis2.github.io/dhis2-docs/2.21/en/implementer/html/ch08s03.html
>>>>>
>>>>> Alistairs
>>>>> On 27 Jan 2016 12:16 am, "Knut Staring" <knutst@xxxxxxxxx> wrote:
>>>>>
>>>>>> Right, please tell us what platform you are using (Windows, Linux)
>>>>>> and how you went about installing.
>>>>>>
>>>>>> Knut
>>>>>>
>>>>>> On Tue, Jan 26, 2016 at 2:54 PM, Alistairs DIRUA <adirua@xxxxxxxxx>
>>>>>> wrote:
>>>>>>
>>>>>>> Knut,
>>>>>>>
>>>>>>> Confirmed, I am connected to H2.
>>>>>>> I am new to Ubuntu and Postgresql. How  can I make sure I am
>>>>>>> connected to Postgresql?
>>>>>>> On 26 Jan 2016 2:29 pm, "Knut Staring" <knutst@xxxxxxxxx> wrote:
>>>>>>>
>>>>>>>> You are not connected to Postgres, but to H2. Please confirm this
>>>>>>>> by going to Profile > About DHIS2
>>>>>>>> On Jan 26, 2016 1:21 AM, "Alistairs Dirua" <adirua@xxxxxxxxx>
>>>>>>>> wrote:
>>>>>>>>
>>>>>>>>> I am facing the same problem too..
>>>>>>>>> Please help!
>>>>>>>>>
>>>>>>>>> --
>>>>>>>>> You received this bug notification because you are a member of
>>>>>>>>> DHIS 2
>>>>>>>>> developers, which is subscribed to DHIS.
>>>>>>>>> https://bugs.launchpad.net/bugs/1520661
>>>>>>>>>
>>>>>>>>> Title:
>>>>>>>>>   All the data entered in DHIS2 installed in my laptop  gets
>>>>>>>>> deleted
>>>>>>>>>   after  next fresh server start
>>>>>>>>>
>>>>>>>>> Status in DHIS:
>>>>>>>>>   New
>>>>>>>>>
>>>>>>>>> Bug description:
>>>>>>>>>   Recently I've installed DHIS2 on my laptop. So as a fresh start,
>>>>>>>>> I
>>>>>>>>>   created  5 some organization units upto facility levels, created
>>>>>>>>> some
>>>>>>>>>   data elements, category options and combinations too. Then I
>>>>>>>>> logged
>>>>>>>>>   out from DHIS, shutdown the tomcat server from my terminal with
>>>>>>>>>   shutdown.sh command. Next time I started the server and logged
>>>>>>>>> in with
>>>>>>>>>   username: admin and password : district. But this time their is
>>>>>>>>> no
>>>>>>>>>   data that I have saved. I'm not sure if it is a bug but I tried
>>>>>>>>> the
>>>>>>>>>   same process twice and my data everything I create is lost next
>>>>>>>>> time I
>>>>>>>>>   run the server.
>>>>>>>>>
>>>>>>>>>   DHIS2 Version: 2.21
>>>>>>>>>   User Agent: Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:42.0)
>>>>>>>>> Gecko/20100101 Firefox/42.0
>>>>>>>>>   server: apache-tomcat-8.0.28
>>>>>>>>>
>>>>>>>>>   Right now I'm using server as localhost.
>>>>>>>>>
>>>>>>>>> To manage notifications about this bug go to:
>>>>>>>>> https://bugs.launchpad.net/dhis2/+bug/1520661/+subscriptions
>>>>>>>>>
>>>>>>>>> _______________________________________________
>>>>>>>>> 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
>>>>>> Norway: +4791880522
>>>>>> Skype: knutstar
>>>>>> http://dhis2.org
>>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> Knut Staring
>>>> Dept. of Informatics, University of Oslo
>>>> Norway: +4791880522
>>>> Skype: knutstar
>>>> http://dhis2.org
>>>>
>>>
>>>
>>
>>
>> --
>> Knut Staring
>> Dept. of Informatics, University of Oslo
>> Norway: +4791880522
>> Skype: knutstar
>> http://dhis2.org
>>
>


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

References