Re: [Dhis2-users] Upgrading from 2.16 to 2.21 (using dhis2-tools)

2016-07-12 Thread Kamugunga Adolphe
Thank you Bob and Knut,
 I got the steps,

Regards,



*Adolphe Kamugunga*
*MIS Technical Advisor*
Mobile: +250 788 740 578
Email:kaa...@gmail.com
Skype: ka.adolphe



On 12 July 2016 at 16:19, Knut Staring  wrote:

> Hi Adolphe, please see Bob's guide below. I think the links still work.
> Note that step 3 is a shell script,  but you can also do this manually.
> Knut
> -- Forwarded message --
> From: "Bob Jolliffe" 
> Date: 9 Dec 2015 5:54 p.m.
> Subject: [Dhis2-users] Upgrading from 2.16 to 2.21 (using dhis2-tools)
> To: "dhis2-users" 
> Cc:
>
> I know questions about this comes up now and again.  I just finished
>> doing exactly this for a regional server today so I list my steps here
>> for those planning a similar process.
>>
>> Starting state was a server running ubuntu 12.04, openjdk 7 and dhis2
>> 2.16.
>>
>> Database backup was made and a copy kept off the server.
>>
>> 1.  Upgrade the OS to 14.04.  This is the longest (and scariest) step
>> - a big upgrade to do over the internet.  But the recommended
>> procedure (running 'sudo do-release-upgrade') worked fine.  Took a few
>> hours.  Ubuntu creates an emergency ssh backdoor on port 1022 while
>> this is going on, but fortunately I didn't have to use it.  But we did
>> have ufw firewall running so I took the precaution of opening that
>> port just in case (sudo ufw allow 1022).
>>
>> 2.  Install oracle java 8 :
>>
>> sudo apt-get install software-properties-common
>> sudo add-apt-repository ppa:webupd8team/java
>> sudo apt-get update
>> sudo apt-get install oracle-java8-installer
>> sudo update-java-alternatives -s java-8-oracle
>>
>> 3.  Download all the upgrade scripts and war files
>> for ver in 17 18 19 20 21;
>> 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/217-upgrade
>> https://www.dhis2.org/218-upgrade
>> https://www.dhis2.org/219-upgrade
>> https://www.dhis2.org/220-upgrade
>> https://www.dhis2.org/221-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.17.war dhis2; tail -f
>> /var/lib/dhis2/dhis2/logs/catalina.out
>>
>> dhis2-deploy-war -f dhis-2.18.war dhis2; tail -f
>> /var/lib/dhis2/dhis2/logs/catalina.out
>>
>> cat upgrade-219.sql |psql dhis2
>> dhis2-deploy-war -f dhis-2.19.war dhis2; tail -f
>> /var/lib/dhis2/dhis2/logs/catalina.out
>>
>> cat upgrade-220.sql |psql dhis2
>> dhis2-deploy-war -f dhis-2.12.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
>>
>> That's about it.  So far everything seems ok.  We just hope there are
>> not problems from messy metadata.  Probably it is a better I idea to
>> do integrity checks on the metadata right at the very start (I
>> forgot).
>>
>> Note I am holding back on 2.21 upgrade because of the issue with md5
>> passwords mentioned in the upgrade notes.   I'll give the users a day
>> or two to make sure they have tested their logins.  Will take 5
>> minutes to do when the time comes.
>>
>> Note that the OS upgrade is necessary to get the right tomcat version
>> through the package system.  We could have avoided by doing a custom
>> tomcat install, but I prefer to stick with the packages.
>>
>> Hope the above helps anyone else faced with this challenge.
>>
>> Bob
>>
>> ___
>> Mailing list: https://launchpad.net/~dhis2-users
>> Post to : dhis2-users@lists.launchpad.net
>> Unsubscribe : https://launchpad.net/~dhis2-users
>> More help   : https://help.launchpad.net/ListHelp
>>
>
___
Mailing list: https://launchpad.net/~dhis2-users
Post to : dhis2-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-users
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-users] Upgrading from DHIS2.old version like 2.18 to 2.24

2016-07-12 Thread Kamugunga Adolphe
Thank you very much Knut and Dan.

Regards,

Adolphe

*Adolphe Kamugunga*
*MIS Technical Advisor*
Mobile: +250 788 740 578
Email:kaa...@gmail.com
Skype: ka.adolphe
 RWANDA


On 12 July 2016 at 16:18, gerald thomas  wrote:

> Kamugunga,
>
>
> https://mail.google.com/mail/u/0/h/120jm67l1ek8c/?=155df1acfeb87be2=u=e=c#m_15187aa80c4a1ee9
>
> On 7/12/16, Knut Staring  wrote:
> > No direct. Have to go step by step. I will forward an email with the
> > details.
> > Knut
> > On 12 Jul 2016 4:02 p.m., "Kamugunga Adolphe"  wrote:
> >
> >> Dear community,
> >>
> >> Where can some one get old dhis2 war files  and upgrades notes
> especially
> >> the .sql files released for updgrade  in case i want to upgrade step by
> >> step from version to another till i reach the current to avoid jumping
> to
> >> recent version.
> >> Is direct jump to recent eg from 2.18 to 2.4  a best practices? if not
> >> what should the best practices?
> >>
> >>
> >> *Adolphe Kamugunga*
> >> *MIS Technical Advisor*
> >> Mobile: +250 788 740 578
> >> Email:kaa...@gmail.com
> >> Skype: ka.adolphe
> >>
> >>
> >>
> >> On 11 July 2016 at 18:43, Morina Matasi 
> >> wrote:
> >>
> >>> Thanks Knut. I tried steps in that link with no joy. I was using
> >>> standard
> >>> reports in DHIS2.19. These reports are .jrxml files done in Jasper
> >>> Reports.
> >>> My JRXML report runs well in DHIS2.19 but stops running in DHIS2.20 or
> >>> later. Am I the only one who faced this problem? Wasn't there an
> upgrade
> >>> plan for JRXML reports.
> >>>
> >>>
> >>>
> >>> On Mon, Jul 11, 2016 at 3:02 PM, Knut Staring 
> wrote:
> >>>
>  Hello,
> 
>  I have no experience with running Jasper reports on JDK 8, but a quick
>  googling showed up this:
> 
> 
> 
> https://community.jaspersoft.com/questions/844403/how-run-jasperreports-java-8
> 
>  On Mon, Jul 11, 2016 at 2:20 PM, Morina Matasi <
>  morena.motsi...@gmail.com> wrote:
> 
> > I need to upgrade my system from 2.19 to 2.24. I have first upgraded
> > to
> > 2.20 with Tomcat 8 and JDK 8. The system runs by the Jasper Reports
> > won't.
> > I get error:
> >
> > net.sf.jasperreports.engine.JRException: Errors were encountered when
> > compiling report expressions class file:
> > 1. The type java.lang.CharSequence cannot be resolved. It is
> indirectly
> > referenced from required .class files
> > value =
> >
> ((java.lang.String)field_organisationunitname.getValue()).equals(((java.lang.String)field_param_organisationunit_name.getValue()))?
> > //$JR_EXPR_ID=27$
> >
> >
> <>
> >
> > Did anyone had any issues with Jasper Reports running on JDK 8?
> >
> >
> > ___
> > Mailing list: https://launchpad.net/~dhis2-users
> > Post to : dhis2-users@lists.launchpad.net
> > 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@lists.launchpad.net
> >>> Unsubscribe : https://launchpad.net/~dhis2-users
> >>> More help   : https://help.launchpad.net/ListHelp
> >>>
> >>>
> >>
> >> ___
> >> Mailing list: https://launchpad.net/~dhis2-users
> >> Post to : dhis2-users@lists.launchpad.net
> >> Unsubscribe : https://launchpad.net/~dhis2-users
> >> More help   : https://help.launchpad.net/ListHelp
> >>
> >>
> >
>
>
> --
> Regards,
>
> Gerald
>
___
Mailing list: https://launchpad.net/~dhis2-users
Post to : dhis2-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-users
More help   : https://help.launchpad.net/ListHelp


[Dhis2-users] Fwd: Upgrading from 2.16 to 2.21 (using dhis2-tools)

2016-07-12 Thread Knut Staring
Hi Adolphe, please see Bob's guide below. I think the links still work.
Note that step 3 is a shell script,  but you can also do this manually.
Knut
-- Forwarded message --
From: "Bob Jolliffe" 
Date: 9 Dec 2015 5:54 p.m.
Subject: [Dhis2-users] Upgrading from 2.16 to 2.21 (using dhis2-tools)
To: "dhis2-users" 
Cc:

I know questions about this comes up now and again.  I just finished
> doing exactly this for a regional server today so I list my steps here
> for those planning a similar process.
>
> Starting state was a server running ubuntu 12.04, openjdk 7 and dhis2 2.16.
>
> Database backup was made and a copy kept off the server.
>
> 1.  Upgrade the OS to 14.04.  This is the longest (and scariest) step
> - a big upgrade to do over the internet.  But the recommended
> procedure (running 'sudo do-release-upgrade') worked fine.  Took a few
> hours.  Ubuntu creates an emergency ssh backdoor on port 1022 while
> this is going on, but fortunately I didn't have to use it.  But we did
> have ufw firewall running so I took the precaution of opening that
> port just in case (sudo ufw allow 1022).
>
> 2.  Install oracle java 8 :
>
> sudo apt-get install software-properties-common
> sudo add-apt-repository ppa:webupd8team/java
> sudo apt-get update
> sudo apt-get install oracle-java8-installer
> sudo update-java-alternatives -s java-8-oracle
>
> 3.  Download all the upgrade scripts and war files
> for ver in 17 18 19 20 21;
> 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/217-upgrade
> https://www.dhis2.org/218-upgrade
> https://www.dhis2.org/219-upgrade
> https://www.dhis2.org/220-upgrade
> https://www.dhis2.org/221-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.17.war dhis2; tail -f
> /var/lib/dhis2/dhis2/logs/catalina.out
>
> dhis2-deploy-war -f dhis-2.18.war dhis2; tail -f
> /var/lib/dhis2/dhis2/logs/catalina.out
>
> cat upgrade-219.sql |psql dhis2
> dhis2-deploy-war -f dhis-2.19.war dhis2; tail -f
> /var/lib/dhis2/dhis2/logs/catalina.out
>
> cat upgrade-220.sql |psql dhis2
> dhis2-deploy-war -f dhis-2.12.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
>
> That's about it.  So far everything seems ok.  We just hope there are
> not problems from messy metadata.  Probably it is a better I idea to
> do integrity checks on the metadata right at the very start (I
> forgot).
>
> Note I am holding back on 2.21 upgrade because of the issue with md5
> passwords mentioned in the upgrade notes.   I'll give the users a day
> or two to make sure they have tested their logins.  Will take 5
> minutes to do when the time comes.
>
> Note that the OS upgrade is necessary to get the right tomcat version
> through the package system.  We could have avoided by doing a custom
> tomcat install, but I prefer to stick with the packages.
>
> Hope the above helps anyone else faced with this challenge.
>
> Bob
>
> ___
> Mailing list: https://launchpad.net/~dhis2-users
> Post to : dhis2-users@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-users
> More help   : https://help.launchpad.net/ListHelp
>
___
Mailing list: https://launchpad.net/~dhis2-users
Post to : dhis2-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-users
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-users] Upgrading from DHIS2.old version like 2.18 to 2.24

2016-07-12 Thread gerald thomas
Kamugunga,

https://mail.google.com/mail/u/0/h/120jm67l1ek8c/?=155df1acfeb87be2=u=e=c#m_15187aa80c4a1ee9

On 7/12/16, Knut Staring  wrote:
> No direct. Have to go step by step. I will forward an email with the
> details.
> Knut
> On 12 Jul 2016 4:02 p.m., "Kamugunga Adolphe"  wrote:
>
>> Dear community,
>>
>> Where can some one get old dhis2 war files  and upgrades notes especially
>> the .sql files released for updgrade  in case i want to upgrade step by
>> step from version to another till i reach the current to avoid jumping to
>> recent version.
>> Is direct jump to recent eg from 2.18 to 2.4  a best practices? if not
>> what should the best practices?
>>
>>
>> *Adolphe Kamugunga*
>> *MIS Technical Advisor*
>> Mobile: +250 788 740 578
>> Email:kaa...@gmail.com
>> Skype: ka.adolphe
>>
>>
>>
>> On 11 July 2016 at 18:43, Morina Matasi 
>> wrote:
>>
>>> Thanks Knut. I tried steps in that link with no joy. I was using
>>> standard
>>> reports in DHIS2.19. These reports are .jrxml files done in Jasper
>>> Reports.
>>> My JRXML report runs well in DHIS2.19 but stops running in DHIS2.20 or
>>> later. Am I the only one who faced this problem? Wasn't there an upgrade
>>> plan for JRXML reports.
>>>
>>>
>>>
>>> On Mon, Jul 11, 2016 at 3:02 PM, Knut Staring  wrote:
>>>
 Hello,

 I have no experience with running Jasper reports on JDK 8, but a quick
 googling showed up this:


 https://community.jaspersoft.com/questions/844403/how-run-jasperreports-java-8

 On Mon, Jul 11, 2016 at 2:20 PM, Morina Matasi <
 morena.motsi...@gmail.com> wrote:

> I need to upgrade my system from 2.19 to 2.24. I have first upgraded
> to
> 2.20 with Tomcat 8 and JDK 8. The system runs by the Jasper Reports
> won't.
> I get error:
>
> net.sf.jasperreports.engine.JRException: Errors were encountered when
> compiling report expressions class file:
> 1. The type java.lang.CharSequence cannot be resolved. It is indirectly
> referenced from required .class files
> value =
> ((java.lang.String)field_organisationunitname.getValue()).equals(((java.lang.String)field_param_organisationunit_name.getValue()))?
> //$JR_EXPR_ID=27$
>
> <>
>
> Did anyone had any issues with Jasper Reports running on JDK 8?
>
>
> ___
> Mailing list: https://launchpad.net/~dhis2-users
> Post to : dhis2-users@lists.launchpad.net
> 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@lists.launchpad.net
>>> Unsubscribe : https://launchpad.net/~dhis2-users
>>> More help   : https://help.launchpad.net/ListHelp
>>>
>>>
>>
>> ___
>> Mailing list: https://launchpad.net/~dhis2-users
>> Post to : dhis2-users@lists.launchpad.net
>> Unsubscribe : https://launchpad.net/~dhis2-users
>> More help   : https://help.launchpad.net/ListHelp
>>
>>
>


-- 
Regards,

Gerald

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


Re: [Dhis2-users] [Dhis2-devs] Upgrading from DHIS2.old version like 2.18 to 2.24

2016-07-12 Thread dan
Hi Adolphe,

I highly recommend doing it in steps from version to version. If you follow the 
URL pattern you can find the older upgrade notes.
https://www.dhis2.org/218-upgrade
https://www.dhis2.org/219-upgrade

The same should work for the war files.
https://www.dhis2.org/download/releases/2.18/dhis.war
https://www.dhis2.org/download/releases/2.19/dhis.war

Good luck.

Dan Cocos
Principal, BAO Systems
+1 202-569-8751 | dco...@baosystems.com | http://www.baosystems.com |  2900 K 
Street, Suite 404, Washington D.C. 20007


> On Jul 12, 2016, at 10:02 AM, Kamugunga Adolphe  wrote:
> 
> Dear community,
> 
> Where can some one get old dhis2 war files  and upgrades notes especially the 
> .sql files released for updgrade  in case i want to upgrade step by step from 
> version to another till i reach the current to avoid jumping to recent 
> version.
> Is direct jump to recent eg from 2.18 to 2.4  a best practices? if not what 
> should the best practices?
> 
> 
> Adolphe Kamugunga
> MIS Technical Advisor
> Mobile: +250 788 740 578
> Email:kaa...@gmail.com
> Skype: ka.adolphe
> 
> 
> 
> On 11 July 2016 at 18:43, Morina Matasi  wrote:
> Thanks Knut. I tried steps in that link with no joy. I was using standard 
> reports in DHIS2.19. These reports are .jrxml files done in Jasper Reports. 
> My JRXML report runs well in DHIS2.19 but stops running in DHIS2.20 or later. 
> Am I the only one who faced this problem? Wasn't there an upgrade plan for 
> JRXML reports.
> 
> 
> 
> On Mon, Jul 11, 2016 at 3:02 PM, Knut Staring  wrote:
> Hello, 
> 
> I have no experience with running Jasper reports on JDK 8, but a quick 
> googling showed up this:
> 
> https://community.jaspersoft.com/questions/844403/how-run-jasperreports-java-8
> 
> On Mon, Jul 11, 2016 at 2:20 PM, Morina Matasi  
> wrote:
> I need to upgrade my system from 2.19 to 2.24. I have first upgraded to 2.20 
> with Tomcat 8 and JDK 8. The system runs by the Jasper Reports won't. I get 
> error:
> 
> net.sf.jasperreports.engine.JRException: Errors were encountered when 
> compiling report expressions class file:
> 1. The type java.lang.CharSequence cannot be resolved. It is indirectly 
> referenced from required .class files
> value = 
> ((java.lang.String)field_organisationunitname.getValue()).equals(((java.lang.String)field_param_organisationunit_name.getValue()))?
>  //$JR_EXPR_ID=27$
> 
> <>
> 
> 
> Did anyone had any issues with Jasper Reports running on JDK 8?
> 
> ___
> Mailing list: https://launchpad.net/~dhis2-users
> Post to : dhis2-users@lists.launchpad.net
> 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@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-users
> More help   : https://help.launchpad.net/ListHelp
> 
> 
> ___
> Mailing list: https://launchpad.net/~dhis2-devs
> Post to : dhis2-d...@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-devs
> More help   : https://help.launchpad.net/ListHelp


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


Re: [Dhis2-users] Upgrading from DHIS2.old version like 2.18 to 2.24

2016-07-12 Thread Knut Staring
No direct. Have to go step by step. I will forward an email with the
details.
Knut
On 12 Jul 2016 4:02 p.m., "Kamugunga Adolphe"  wrote:

> Dear community,
>
> Where can some one get old dhis2 war files  and upgrades notes especially
> the .sql files released for updgrade  in case i want to upgrade step by
> step from version to another till i reach the current to avoid jumping to
> recent version.
> Is direct jump to recent eg from 2.18 to 2.4  a best practices? if not
> what should the best practices?
>
>
> *Adolphe Kamugunga*
> *MIS Technical Advisor*
> Mobile: +250 788 740 578
> Email:kaa...@gmail.com
> Skype: ka.adolphe
>
>
>
> On 11 July 2016 at 18:43, Morina Matasi  wrote:
>
>> Thanks Knut. I tried steps in that link with no joy. I was using standard
>> reports in DHIS2.19. These reports are .jrxml files done in Jasper Reports.
>> My JRXML report runs well in DHIS2.19 but stops running in DHIS2.20 or
>> later. Am I the only one who faced this problem? Wasn't there an upgrade
>> plan for JRXML reports.
>>
>>
>>
>> On Mon, Jul 11, 2016 at 3:02 PM, Knut Staring  wrote:
>>
>>> Hello,
>>>
>>> I have no experience with running Jasper reports on JDK 8, but a quick
>>> googling showed up this:
>>>
>>>
>>> https://community.jaspersoft.com/questions/844403/how-run-jasperreports-java-8
>>>
>>> On Mon, Jul 11, 2016 at 2:20 PM, Morina Matasi <
>>> morena.motsi...@gmail.com> wrote:
>>>
 I need to upgrade my system from 2.19 to 2.24. I have first upgraded to
 2.20 with Tomcat 8 and JDK 8. The system runs by the Jasper Reports won't.
 I get error:

 net.sf.jasperreports.engine.JRException: Errors were encountered when 
 compiling report expressions class file:
 1. The type java.lang.CharSequence cannot be resolved. It is indirectly 
 referenced from required .class files
 value = 
 ((java.lang.String)field_organisationunitname.getValue()).equals(((java.lang.String)field_param_organisationunit_name.getValue()))?
  //$JR_EXPR_ID=27$
 
 <>

 Did anyone had any issues with Jasper Reports running on JDK 8?


 ___
 Mailing list: https://launchpad.net/~dhis2-users
 Post to : dhis2-users@lists.launchpad.net
 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@lists.launchpad.net
>> Unsubscribe : https://launchpad.net/~dhis2-users
>> More help   : https://help.launchpad.net/ListHelp
>>
>>
>
> ___
> Mailing list: https://launchpad.net/~dhis2-users
> Post to : dhis2-users@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-users
> More help   : https://help.launchpad.net/ListHelp
>
>
___
Mailing list: https://launchpad.net/~dhis2-users
Post to : dhis2-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-users
More help   : https://help.launchpad.net/ListHelp


[Dhis2-users] Upgrading from DHIS2.old version like 2.18 to 2.24

2016-07-12 Thread Kamugunga Adolphe
Dear community,

Where can some one get old dhis2 war files  and upgrades notes especially
the .sql files released for updgrade  in case i want to upgrade step by
step from version to another till i reach the current to avoid jumping to
recent version.
Is direct jump to recent eg from 2.18 to 2.4  a best practices? if not what
should the best practices?


*Adolphe Kamugunga*
*MIS Technical Advisor*
Mobile: +250 788 740 578
Email:kaa...@gmail.com
Skype: ka.adolphe



On 11 July 2016 at 18:43, Morina Matasi  wrote:

> Thanks Knut. I tried steps in that link with no joy. I was using standard
> reports in DHIS2.19. These reports are .jrxml files done in Jasper Reports.
> My JRXML report runs well in DHIS2.19 but stops running in DHIS2.20 or
> later. Am I the only one who faced this problem? Wasn't there an upgrade
> plan for JRXML reports.
>
>
>
> On Mon, Jul 11, 2016 at 3:02 PM, Knut Staring  wrote:
>
>> Hello,
>>
>> I have no experience with running Jasper reports on JDK 8, but a quick
>> googling showed up this:
>>
>>
>> https://community.jaspersoft.com/questions/844403/how-run-jasperreports-java-8
>>
>> On Mon, Jul 11, 2016 at 2:20 PM, Morina Matasi > > wrote:
>>
>>> I need to upgrade my system from 2.19 to 2.24. I have first upgraded to
>>> 2.20 with Tomcat 8 and JDK 8. The system runs by the Jasper Reports won't.
>>> I get error:
>>>
>>> net.sf.jasperreports.engine.JRException: Errors were encountered when 
>>> compiling report expressions class file:
>>> 1. The type java.lang.CharSequence cannot be resolved. It is indirectly 
>>> referenced from required .class files
>>> value = 
>>> ((java.lang.String)field_organisationunitname.getValue()).equals(((java.lang.String)field_param_organisationunit_name.getValue()))?
>>>  //$JR_EXPR_ID=27$
>>> 
>>> <>
>>>
>>> Did anyone had any issues with Jasper Reports running on JDK 8?
>>>
>>>
>>> ___
>>> Mailing list: https://launchpad.net/~dhis2-users
>>> Post to : dhis2-users@lists.launchpad.net
>>> 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@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-users
> More help   : https://help.launchpad.net/ListHelp
>
>
___
Mailing list: https://launchpad.net/~dhis2-users
Post to : dhis2-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-users
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-users] Upgrading DHIS2 from 2.21 to 2.24

2016-07-12 Thread Bob Jolliffe
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  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 
> 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@lists.launchpad.net
>> 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@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-users
> More help   : https://help.launchpad.net/ListHelp
>

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


Re: [Dhis2-users] Upgrading DHIS2 from 2.21 to 2.24

2016-07-12 Thread Knut Staring
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 
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@lists.launchpad.net
> 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@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-users
More help   : https://help.launchpad.net/ListHelp