v1.1.* to v1.2.* Migration notes
Step 1: Prepare to migrate
Before you start migrating, consider these questions which we would ask you if we were offering support:
What version number you are currently using?
What version number you wish to upgrade to?
3. Have you made any NodeJS or React code customisations of any kind to opencrvs-core?
4. Have you integrated OpenCRVS to another system using an API, or documented system client?
5. Have you completely configured OpenCRVS?
6. Have you setup real registrar users in the system?
7. Are you already registering real citizens in testing or production?
8. Have you deployed OpenCRVS to a server environment? If so, answer these additional questions:
Please tell us if you have dedicated or shared servers
Do you have independent development (staging), quality assurance and production servers? Tell us what you have.
What are the specifications of your servers?
Are you running OpenCRVS on a cluster of 1, 3 or 5 servers?
Have you provisioned a backup server and automated emergency backups as documented?
How much free disk space and RAM is generally available on each server?
Step 2: Begin the migration locally on your computer first
We have worked hard to ensure that migrating from v1.1 to v1.2.* is as easy as possible. The most complex task really depends upon how much customisation you have made to your country configuration fork as you will be required to merge or rebase your fork with our release branch. (You must be familiar with the concept of Git merge or Git rebase). Please refer to the release notes and our release process including Gitflow branching approach.
Step 3: Upgrade your code
Navigate to your opencrvs-core directory, checkout the release-v1.2.0-beta or master branch and pull latest changes. Yarn install any dependency upgrades:
2. You will now have the release code. Your next step is to merge or rebase any changes you need from the country configuration repository fork.
3. Navigate to your forked country configuration repo
4. Ensure that the branches you have set up are ready according to the new forking instructions here. Specifically from step 9 to 17.
5. Fetch all our latest branches as step 17 will have added Farajaland as a remote:
6. Checkout your master-<your country code> branch, and merge or rebase from our release.
7. (Optional: if you are actively developing new features in your country configuration) Checkout and merge your master-<your country code> branch onto any other Git branches that are appropriate to you such as develop-<your country code> . Then checkout back to your master-<your country code> branch before proceeding!
8. If you are running OpenCRVS locally, simply start OpenCRVS. Migrations will automatically run on your data and you have finished upgrading OpenCRVS locally. Proceed to the next section if you have already deployed OpenCRVS to a remote server cluster.
Step 4: Upgrade your server environments
Before you commence, ensure that you have understood these warning operational steps:
Warning 1: Backup and test a restore of your v1.1* data on a new v1.1.* test server
Warning 2: Prepare operationally for a v1.2.* migration. Test the following steps on a test server first. Schedule the production migration when staff can cease operations.
If you have hosted an entirely new v1.1* OpenCRVS on a server, and you have a successful restoration from a v1.1* backup running on this server, and you have a 2nd copy of the backup of your configuration hosted elsewhere just in case, you are ready to proceed.
Configure a new set of v1.2.* servers following ALL the steps 3.3.1 to 3.3.5.
3. Deploy v1.2* following the new deploy instructions including the new secrets MINIO_ROOT_USER and MINIO_ROOT_PASSWORD and a default set of your country configuration factory reset backups.
4. Check you can login to OpenCRVS v1.2 successfully.
5. Check that you can login to the Minio console using your MINIO_ROOT_USER and MINIO_ROOT_PASSWORD at: https://minio-console.<your_domain>
6. OpenCRVS v1.2 is successfully installed, so now we must empty the database and restore it with your v1.1* data. Follow these manual restore process using these steps.
7. You can login to OpenCRVS v1.2.* and test that all your data has migrated successfully. Look at a registration that had previously attached supporting documentation, and you will notice that the documents are now served from Minio.