Upgrade of Customize war file

Dear All,
One of your health unit in Sierra Leone has a standalone dhis2 server
which is running on a customize war file version 2.5 and build
version 4995. Currently, they had decided to upgrade it and host it on
a cloud server.
Please can some help me with the procedure of upgrading this server.

···

--
Regards,

Gerald

Hi Gerald

Is this the server in the national office or one of the district servers (you can respond to me off list)? My understanding is that Romain already went through the process of upgrading the old national database on the linode. So what you are taking about now is something different to what has already been done?

Anyway, the very first task would be to get a backup dump of the postgres database which is running on the standalone machine and the customised dhis 2.5 war file. Then if you are deploying on a cloud server you might want to start by just replicating exactly what is there ie.

  1. create a dhis instance (using the dhis2-tools package)

  2. restore the backup database to the dhis instance database

  3. deploy the old war file which you have from the standalone. (you can use the -f option of dhis2-deploy-war for this).

From here you should verify that you have an exact replica running on the linode of what you had before on the standalone.

Upgrading to later dhis2 versions is generally best done incrementally (of course from 2.5 to 2.15 is a long way to go). But you are likely to get the best results by working through 2.6, 2.7, 2.8 … etc. Doing this on the linode with dhis2-deploy-war should be reasonably painless, with each increment taking no more than a few minutes.

Before setting forth on this exercise it is also probably worthwhile to try and fix any inconsistencies and metadata integrity issues that might exist in the old database. Getting rid of things like orphaned categoryoptions and the like at this stage might prevent issues arising as you attempt to upgrade.

One big caveat …

I am a bit nervous to read that you have a customised war file. Naturally these customisations will not be present in later stock versions of dhis that you upgrade to. What you will need to do depends entirely on what the customisations are. Can you give some more info on how the war is customised (and maybe by who)?

Regards

Bob

···

On 29 July 2014 11:05, gerald thomas gerald17006@gmail.com wrote:

Dear All,

One of your health unit in Sierra Leone has a standalone dhis2 server

which is running on a customize war file version 2.5 and build

version 4995. Currently, they had decided to upgrade it and host it on

a cloud server.

Please can some help me with the procedure of upgrading this server.

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

Dear All,
Bob, this is a different server from that which is located at the
national office or those at the regional areas.
If i am to upgrade this dhis server in steps from 2.6, 2.7, 2.8,
........... 2.15; where can i find these war files???

···

On 7/29/14, Bob Jolliffe <bobjolliffe@gmail.com> wrote:

Hi Gerald

Is this the server in the national office or one of the district servers
(you can respond to me off list)? My understanding is that Romain already
went through the process of upgrading the old national database on the
linode. So what you are taking about now is something different to what
has already been done?

Anyway, the very first task would be to get a backup dump of the postgres
database which is running on the standalone machine and the customised dhis
2.5 war file. Then if you are deploying on a cloud server you might want
to start by just replicating exactly what is there ie.

1. create a dhis instance (using the dhis2-tools package)
2. restore the backup database to the dhis instance database
3. deploy the old war file which you have from the standalone. (you can
use the -f option of dhis2-deploy-war for this).

From here you should verify that you have an exact replica running on the
linode of what you had before on the standalone.

Upgrading to later dhis2 versions is generally best done incrementally (of
course from 2.5 to 2.15 is a long way to go). But you are likely to get
the best results by working through 2.6, 2.7, 2.8 ... etc. Doing this on
the linode with dhis2-deploy-war should be reasonably painless, with each
increment taking no more than a few minutes.

Before setting forth on this exercise it is also probably worthwhile to try
and fix any inconsistencies and metadata integrity issues that might exist
in the old database. Getting rid of things like orphaned categoryoptions
and the like at this stage might prevent issues arising as you attempt to
upgrade.

One big caveat ...

I am a bit nervous to read that you have a customised war file. Naturally
these customisations will not be present in later stock versions of dhis
that you upgrade to. What you will need to do depends entirely on what the
customisations are. Can you give some more info on how the war is
customised (and maybe by who)?

Regards
Bob

On 29 July 2014 11:05, gerald thomas <gerald17006@gmail.com> wrote:

Dear All,
One of your health unit in Sierra Leone has a standalone dhis2 server
which is running on a customize war file version 2.5 and build
version 4995. Currently, they had decided to upgrade it and host it on
a cloud server.
Please can some help me with the procedure of upgrading this server.

--
Regards,

Gerald

_______________________________________________
Mailing list: DHIS 2 Users in Launchpad
Post to : dhis2-users@lists.launchpad.net
Unsubscribe : DHIS 2 Users in Launchpad
More help : ListHelp - Launchpad Help

--
Regards,

Gerald

Dear all,
Any help about for the following war files (2.6, 2.7, 2.8, 2.9,
etc)???
Please it is urgent!!!!

···

---------- Forwarded message ----------
From: gerald thomas <gerald17006@gmail.com>
Date: Tue, 29 Jul 2014 17:00:21 +0000
Subject: Re: [Dhis2-users] Upgrade of Customize war file
To: Bob Jolliffe <bobjolliffe@gmail.com>
Cc: dhis2-users <dhis2-users@lists.launchpad.net>

Dear All,
Bob, this is a different server from that which is located at the
national office or those at the regional areas.
If i am to upgrade this dhis server in steps from 2.6, 2.7, 2.8,
........... 2.15; where can i find these war files???

On 7/29/14, Bob Jolliffe <bobjolliffe@gmail.com> wrote:

Hi Gerald

Is this the server in the national office or one of the district servers
(you can respond to me off list)? My understanding is that Romain already
went through the process of upgrading the old national database on the
linode. So what you are taking about now is something different to what
has already been done?

Anyway, the very first task would be to get a backup dump of the postgres
database which is running on the standalone machine and the customised dhis
2.5 war file. Then if you are deploying on a cloud server you might want
to start by just replicating exactly what is there ie.

1. create a dhis instance (using the dhis2-tools package)
2. restore the backup database to the dhis instance database
3. deploy the old war file which you have from the standalone. (you can
use the -f option of dhis2-deploy-war for this).

From here you should verify that you have an exact replica running on the
linode of what you had before on the standalone.

Upgrading to later dhis2 versions is generally best done incrementally (of
course from 2.5 to 2.15 is a long way to go). But you are likely to get
the best results by working through 2.6, 2.7, 2.8 ... etc. Doing this on
the linode with dhis2-deploy-war should be reasonably painless, with each
increment taking no more than a few minutes.

Before setting forth on this exercise it is also probably worthwhile to try
and fix any inconsistencies and metadata integrity issues that might exist
in the old database. Getting rid of things like orphaned categoryoptions
and the like at this stage might prevent issues arising as you attempt to
upgrade.

One big caveat ...

I am a bit nervous to read that you have a customised war file. Naturally
these customisations will not be present in later stock versions of dhis
that you upgrade to. What you will need to do depends entirely on what the
customisations are. Can you give some more info on how the war is
customised (and maybe by who)?

Regards
Bob

On 29 July 2014 11:05, gerald thomas <gerald17006@gmail.com> wrote:

Dear All,
One of your health unit in Sierra Leone has a standalone dhis2 server
which is running on a customize war file version 2.5 and build
version 4995. Currently, they had decided to upgrade it and host it on
a cloud server.
Please can some help me with the procedure of upgrading this server.

--
Regards,

Gerald

_______________________________________________
Mailing list: DHIS 2 Users in Launchpad
Post to : dhis2-users@lists.launchpad.net
Unsubscribe : DHIS 2 Users in Launchpad
More help : ListHelp - Launchpad Help

--
Regards,

Gerald

--
Regards,

Gerald

I am not pretty much sure about the web archive resource files older than version dhis2.10,

but from and later versions war files are still available on DHIS2 continuous integration ( CI )

https://apps.dhis2.org/ci/

You would required to send FTP request for retrieving these files and save some where on

your local machine.

···

On Thu, Jul 31, 2014 at 5:01 PM, gerald thomas gerald17006@gmail.com wrote:

Dear all,

Any help about for the following war files (2.6, 2.7, 2.8, 2.9,

etc)???

Please it is urgent!!!

---------- Forwarded message ----------

From: gerald thomas gerald17006@gmail.com

Date: Tue, 29 Jul 2014 17:00:21 +0000

Subject: Re: [Dhis2-users] Upgrade of Customize war file

To: Bob Jolliffe bobjolliffe@gmail.com

Cc: dhis2-users dhis2-users@lists.launchpad.net

Dear All,

Bob, this is a different server from that which is located at the

national office or those at the regional areas.

If i am to upgrade this dhis server in steps from 2.6, 2.7, 2.8,

… 2.15; where can i find these war files???

On 7/29/14, Bob Jolliffe bobjolliffe@gmail.com wrote:

Hi Gerald

Is this the server in the national office or one of the district servers

(you can respond to me off list)? My understanding is that Romain already

went through the process of upgrading the old national database on the

linode. So what you are taking about now is something different to what

has already been done?

Anyway, the very first task would be to get a backup dump of the postgres

database which is running on the standalone machine and the customised dhis

2.5 war file. Then if you are deploying on a cloud server you might want

to start by just replicating exactly what is there ie.

  1. create a dhis instance (using the dhis2-tools package)
  1. restore the backup database to the dhis instance database
  1. deploy the old war file which you have from the standalone. (you can

use the -f option of dhis2-deploy-war for this).

From here you should verify that you have an exact replica running on the

linode of what you had before on the standalone.

Upgrading to later dhis2 versions is generally best done incrementally (of

course from 2.5 to 2.15 is a long way to go). But you are likely to get

the best results by working through 2.6, 2.7, 2.8 … etc. Doing this on

the linode with dhis2-deploy-war should be reasonably painless, with each

increment taking no more than a few minutes.

Before setting forth on this exercise it is also probably worthwhile to try

and fix any inconsistencies and metadata integrity issues that might exist

in the old database. Getting rid of things like orphaned categoryoptions

and the like at this stage might prevent issues arising as you attempt to

upgrade.

One big caveat …

I am a bit nervous to read that you have a customised war file. Naturally

these customisations will not be present in later stock versions of dhis

that you upgrade to. What you will need to do depends entirely on what the

customisations are. Can you give some more info on how the war is

customised (and maybe by who)?

Regards

Bob

On 29 July 2014 11:05, gerald thomas gerald17006@gmail.com wrote:

Dear All,

One of your health unit in Sierra Leone has a standalone dhis2 server

which is running on a customize war file version 2.5 and build

version 4995. Currently, they had decided to upgrade it and host it on

a cloud server.

Please can some help me with the procedure of upgrading this server.

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

Regards,

Gerald

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

Regards

Brajesh Murari

Phone: (+91)-96-43-208375(O)

   (+91)-99-53-787977(P)

P please consider the environment before printing this email

Hi Gerald,
I agree with Bob that upgrading version by version should be the safest (though quite tedious) way.

However, it might be worth thinking through what data is actually on this server and perhaps consider alternative ways of bringing the data (and metadata) over to a 2.16 instance, either through exports or directly in the database.

Probably you are quite familiar with the data (how much, what kind)?

Maintenance → Data Statistics should give you an oveview of the amounts of data and metadata.

···

On Thu, Jul 31, 2014 at 1:31 PM, gerald thomas gerald17006@gmail.com wrote:

Dear all,

Any help about for the following war files (2.6, 2.7, 2.8, 2.9,

etc)???

Please it is urgent!!!

---------- Forwarded message ----------

From: gerald thomas gerald17006@gmail.com

Date: Tue, 29 Jul 2014 17:00:21 +0000

Subject: Re: [Dhis2-users] Upgrade of Customize war file

To: Bob Jolliffe bobjolliffe@gmail.com

Cc: dhis2-users dhis2-users@lists.launchpad.net

Dear All,

Bob, this is a different server from that which is located at the

national office or those at the regional areas.

If i am to upgrade this dhis server in steps from 2.6, 2.7, 2.8,

… 2.15; where can i find these war files???

On 7/29/14, Bob Jolliffe bobjolliffe@gmail.com wrote:

Hi Gerald

Is this the server in the national office or one of the district servers

(you can respond to me off list)? My understanding is that Romain already

went through the process of upgrading the old national database on the

linode. So what you are taking about now is something different to what

has already been done?

Anyway, the very first task would be to get a backup dump of the postgres

database which is running on the standalone machine and the customised dhis

2.5 war file. Then if you are deploying on a cloud server you might want

to start by just replicating exactly what is there ie.

  1. create a dhis instance (using the dhis2-tools package)
  1. restore the backup database to the dhis instance database
  1. deploy the old war file which you have from the standalone. (you can

use the -f option of dhis2-deploy-war for this).

From here you should verify that you have an exact replica running on the

linode of what you had before on the standalone.

Upgrading to later dhis2 versions is generally best done incrementally (of

course from 2.5 to 2.15 is a long way to go). But you are likely to get

the best results by working through 2.6, 2.7, 2.8 … etc. Doing this on

the linode with dhis2-deploy-war should be reasonably painless, with each

increment taking no more than a few minutes.

Before setting forth on this exercise it is also probably worthwhile to try

and fix any inconsistencies and metadata integrity issues that might exist

in the old database. Getting rid of things like orphaned categoryoptions

and the like at this stage might prevent issues arising as you attempt to

upgrade.

One big caveat …

I am a bit nervous to read that you have a customised war file. Naturally

these customisations will not be present in later stock versions of dhis

that you upgrade to. What you will need to do depends entirely on what the

customisations are. Can you give some more info on how the war is

customised (and maybe by who)?

Regards

Bob

On 29 July 2014 11:05, gerald thomas gerald17006@gmail.com wrote:

Dear All,

One of your health unit in Sierra Leone has a standalone dhis2 server

which is running on a customize war file version 2.5 and build

version 4995. Currently, they had decided to upgrade it and host it on

a cloud server.

Please can some help me with the procedure of upgrading this server.

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

Regards,

Gerald

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

+4791880522

http://dhis2.org

On the dhis2.org site and the continuous integration server there are war files going back to version 2.10. If anybody knows of an archive of older war files then please let Gerald know. Failing which I guess he (or some kind samaritan) will have to build them.

You might also be able to migrate from 2.5 to 2.10. All of the sql diffs should be there in 2.10 so its worth a try. In practice gong one step at a time will have been better tested.

But Gerald, you still have not replied regarding the customisation. How is it customised and/or who customised it? Whether upgrading from a customised 2.5 to a stock 2.6 will work at all is going to be completely dependent on what is customised.

···

On 31 July 2014 12:31, gerald thomas gerald17006@gmail.com wrote:

Dear all,

Any help about for the following war files (2.6, 2.7, 2.8, 2.9,

etc)???

Please it is urgent!!!

---------- Forwarded message ----------

From: gerald thomas gerald17006@gmail.com

Date: Tue, 29 Jul 2014 17:00:21 +0000

Subject: Re: [Dhis2-users] Upgrade of Customize war file

To: Bob Jolliffe bobjolliffe@gmail.com

Cc: dhis2-users dhis2-users@lists.launchpad.net

Dear All,

Bob, this is a different server from that which is located at the

national office or those at the regional areas.

If i am to upgrade this dhis server in steps from 2.6, 2.7, 2.8,

… 2.15; where can i find these war files???

On 7/29/14, Bob Jolliffe bobjolliffe@gmail.com wrote:

Hi Gerald

Is this the server in the national office or one of the district servers

(you can respond to me off list)? My understanding is that Romain already

went through the process of upgrading the old national database on the

linode. So what you are taking about now is something different to what

has already been done?

Anyway, the very first task would be to get a backup dump of the postgres

database which is running on the standalone machine and the customised dhis

2.5 war file. Then if you are deploying on a cloud server you might want

to start by just replicating exactly what is there ie.

  1. create a dhis instance (using the dhis2-tools package)
  1. restore the backup database to the dhis instance database
  1. deploy the old war file which you have from the standalone. (you can

use the -f option of dhis2-deploy-war for this).

From here you should verify that you have an exact replica running on the

linode of what you had before on the standalone.

Upgrading to later dhis2 versions is generally best done incrementally (of

course from 2.5 to 2.15 is a long way to go). But you are likely to get

the best results by working through 2.6, 2.7, 2.8 … etc. Doing this on

the linode with dhis2-deploy-war should be reasonably painless, with each

increment taking no more than a few minutes.

Before setting forth on this exercise it is also probably worthwhile to try

and fix any inconsistencies and metadata integrity issues that might exist

in the old database. Getting rid of things like orphaned categoryoptions

and the like at this stage might prevent issues arising as you attempt to

upgrade.

One big caveat …

I am a bit nervous to read that you have a customised war file. Naturally

these customisations will not be present in later stock versions of dhis

that you upgrade to. What you will need to do depends entirely on what the

customisations are. Can you give some more info on how the war is

customised (and maybe by who)?

Regards

Bob

On 29 July 2014 11:05, gerald thomas gerald17006@gmail.com wrote:

Dear All,

One of your health unit in Sierra Leone has a standalone dhis2 server

which is running on a customize war file version 2.5 and build

version 4995. Currently, they had decided to upgrade it and host it on

a cloud server.

Please can some help me with the procedure of upgrading this server.

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

Regards,

Gerald

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

Hi Gerald,

I had a similar issue trying to upgrade from 2.0 to 2.15. Bob is right, you can start with 2.10 and work your way up. That worked for me.

BR

Busoye

···

On 31 Jul 2014, at 14:11, Bob Jolliffe bobjolliffe@gmail.com wrote:

On the dhis2.org site and the continuous integration server there are war files going back to version 2.10. If anybody knows of an archive of older war files then please let Gerald know. Failing which I guess he (or some kind samaritan) will have to build them.

You might also be able to migrate from 2.5 to 2.10. All of the sql diffs should be there in 2.10 so its worth a try. In practice gong one step at a time will have been better tested.

But Gerald, you still have not replied regarding the customisation. How is it customised and/or who customised it? Whether upgrading from a customised 2.5 to a stock 2.6 will work at all is going to be completely dependent on what is customised.

On 31 July 2014 12:31, gerald thomas gerald17006@gmail.com wrote:

Dear all,

Any help about for the following war files (2.6, 2.7, 2.8, 2.9,

etc)???

Please it is urgent!!!

---------- Forwarded message ----------

From: gerald thomas gerald17006@gmail.com

Date: Tue, 29 Jul 2014 17:00:21 +0000

Subject: Re: [Dhis2-users] Upgrade of Customize war file

To: Bob Jolliffe bobjolliffe@gmail.com

Cc: dhis2-users dhis2-users@lists.launchpad.net

Dear All,

Bob, this is a different server from that which is located at the

national office or those at the regional areas.

If i am to upgrade this dhis server in steps from 2.6, 2.7, 2.8,

… 2.15; where can i find these war files???

On 7/29/14, Bob Jolliffe bobjolliffe@gmail.com wrote:

Hi Gerald

Is this the server in the national office or one of the district servers

(you can respond to me off list)? My understanding is that Romain already

went through the process of upgrading the old national database on the

linode. So what you are taking about now is something different to what

has already been done?

Anyway, the very first task would be to get a backup dump of the postgres

database which is running on the standalone machine and the customised dhis

2.5 war file. Then if you are deploying on a cloud server you might want

to start by just replicating exactly what is there ie.

  1. create a dhis instance (using the dhis2-tools package)
  1. restore the backup database to the dhis instance database
  1. deploy the old war file which you have from the standalone. (you can

use the -f option of dhis2-deploy-war for this).

From here you should verify that you have an exact replica running on the

linode of what you had before on the standalone.

Upgrading to later dhis2 versions is generally best done incrementally (of

course from 2.5 to 2.15 is a long way to go). But you are likely to get

the best results by working through 2.6, 2.7, 2.8 … etc. Doing this on

the linode with dhis2-deploy-war should be reasonably painless, with each

increment taking no more than a few minutes.

Before setting forth on this exercise it is also probably worthwhile to try

and fix any inconsistencies and metadata integrity issues that might exist

in the old database. Getting rid of things like orphaned categoryoptions

and the like at this stage might prevent issues arising as you attempt to

upgrade.

One big caveat …

I am a bit nervous to read that you have a customised war file. Naturally

these customisations will not be present in later stock versions of dhis

that you upgrade to. What you will need to do depends entirely on what the

customisations are. Can you give some more info on how the war is

customised (and maybe by who)?

Regards

Bob

On 29 July 2014 11:05, gerald thomas gerald17006@gmail.com wrote:

Dear All,

One of your health unit in Sierra Leone has a standalone dhis2 server

which is running on a customize war file version 2.5 and build

version 4995. Currently, they had decided to upgrade it and host it on

a cloud server.

Please can some help me with the procedure of upgrading this server.

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

Regards,

Gerald

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


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