← Back to team overview

dhis2-devs team mailing list archive

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

 

Hi

You don't need to download the java pg driver, this is already included in
the war file. What is probably happening (in both your cases) is that the
environment variable DHIS2_HOME is not available for tomcat, for windows
you probably need to set this up in system settings (control panel), and
for ubuntu, depending on how you installed it.. you need to make sure that
the DHIS2_HOME variable was exported to the shell script that is starting
your tomcat instance

--
Morten

On Sat, Nov 28, 2015 at 9:53 AM, सिग्देल सन्जोग <sigdelsanjog@xxxxxxxxx>
wrote:

> I Installed DHIS following the guidelines of Chapter 8. Installation
> <https://www.dhis2.org/doc/snapshot/en/implementer/html/ch08.html>
> And in the *hibernate.properties* I have linked the database name as
> well.
>
> In order to access the JDBC driver I also downloaded *libpg-java* but it
> didn't work.
> This time I updated the profile information but even those settings were
> not saved.
>
> <https://www.dhis2.org/doc/snapshot/en/implementer/html/ch08.html>
>
>
> *SanjogSigdel*
>
> *UnG, Computer Science*
>
> *DoCSE, Kathmandu University*
> *Dhulikhel, Nepal*
>
> On Sat, Nov 28, 2015 at 6:09 AM, Knut Staring <knutst@xxxxxxxxx> wrote:
>
>> How did you install DHIS2? Are you linking it to Postgres?
>>
>> Knut
>>
>> On Sat, Nov 28, 2015 at 12:19 AM, Sanjog Sigdel <sigdelsanjog@xxxxxxxxx>
>> wrote:
>>
>>> Public bug reported:
>>>
>>> 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.
>>>
>>> ** Affects: dhis2
>>>      Importance: Undecided
>>>          Status: New
>>>
>>>
>>> ** Tags: dataloss support technical
>>>
>>> --
>>> 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
>>>
>>
>>
>>
>> --
>> Knut Staring
>> Dept. of Informatics, University of Oslo
>> Norway: +4791880522
>> Skype: knutstar
>> http://dhis2.org
>>
>
>
> _______________________________________________
> 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
>
>

References