dhis2-users team mailing list archive
-
dhis2-users team
-
Mailing list archive
-
Message #10699
Re: Upgrading DHIS2 from 2.21 to 2.24
Important first step is make sure you make a snapshot of database and
keep a copy of the original war file (in case you need to revert back
to where you started).
You might also consider revamping your postgres by upgrading to
postgres 9.5 (apparently significant performance gains according to
Lars) and installing postgis according to instructions here
http://dhis2.github.io/dhis2-docs/master/en/implementer/html/ch08s03.html#d0e832
if you want to use new clustering capability. But you can do this as
a separate step to the general upgrade.
On 12 July 2016 at 13:55, Knut Staring <knutst@xxxxxxxxx> wrote:
> 3. Download all the upgrade scripts and war files:
>
> for ver in 22 23 24;
> do
> wget -O dhis-2.$ver.war
> https://www.dhis2.org/download/releases/2.$ver/dhis.war;
> wget
> https://raw.githubusercontent.com/dhis2/dhis2-utils/master/resources/sql/upgrade-2$ver.sql
> done
>
> 4. Read carefully all the upgrade notes at:
> https://www.dhis2.org/222-upgrade
> https://www.dhis2.org/223-upgrade
> https://www.dhis2.org/224-upgrade
>
> 5. shutdown nginx with
> sudo service nginx stop
>
> 6. start deploying war files and checking logs as we go. Apply
> upgrade scripts as necessary
>
> dhis2-deploy-war -f dhis-2.22.war dhis2; tail -f
> /var/lib/dhis2/dhis2/logs/catalina.out
>
> cat upgrade-223.sql |psql dhis2
> dhis2-deploy-war -f dhis-2.23.war dhis2; tail -f
> /var/lib/dhis2/dhis2/logs/catalina.out
>
> dhis2-deploy-war -f dhis-2.24.war dhis2; tail -f
> /var/lib/dhis2/dhis2/logs/catalina.out
>
> 7. clear nginx cache and restart
> sudo -s
> rm /var/cache/nginx/*
> exit
> sudo service nginx start
>
> On Mon, Jul 11, 2016 at 9:41 PM, gerald thomas <gerald17006@xxxxxxxxx>
> wrote:
>>
>> Dear All,
>> I have an urgent request to upgrade our national instance from 2.21 to
>> 2.24 which i am a bit skeptical about due to the various issues from
>> my colleagues using DHIS2. Please can I have the simplest steps to
>> achieve my goal and secondly, is it advisable to use the 2.24 on our
>> national instance.
>>
>> Thanks in advance for all your help.
>>
>> --
>> Regards,
>>
>> Gerald
>>
>> _______________________________________________
>> Mailing list: https://launchpad.net/~dhis2-users
>> Post to : dhis2-users@xxxxxxxxxxxxxxxxxxx
>> Unsubscribe : https://launchpad.net/~dhis2-users
>> 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-users
> Post to : dhis2-users@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~dhis2-users
> More help : https://help.launchpad.net/ListHelp
>
References