Due to the need to upgrade from v 3.17.0 to v 4.6.0 . We came to a decision to first clone the instance and upgrade the clone in order to estimate how much time it will take and also what challenges will be encounter before doing the upgrade on the production.
Through the process of cloning the instance ,
We have created a snapshot from the volume of the production instance.
Created an AM image from the snapshot
Created the instance from the AMI (image)
The Ec2 instance created from the AMI is on v3.17.0 .
After cloning the instance and running it , we faced and error of 504 error nginx.
When trying to solve the error, we noticed that when we try accessing the medic-os container url on 5988,we get ( Connection reset by peer.)
then (Empty reply from s **
It seems that your container didn’t start up correctly. Can you check the logs from the medic-os container to see what is really going on?
There is some information about how to troubleshoot medic-os installations here: AWS Hosting in CHT 3.x | Community Health Toolkit
hi @diana
We found the issue as to why we were getting the 502 error. This is because of the limited resources we had used to clone the instance compared to the resources of the instance we were trying to clone. (from ( (t2 micro to t2 large)
The migration only prepares your data. You can follow any hosting guide you desire, as long as you use this data for your CouchDb installation.
However, I believe app developer hosting only offers single node deployments, and if you migrated to multi-node than you would have to use the guide under self hosting (multiple nodes - Docker).
@diana, I followed App Developer Hosting in CHT 4.x | Community Health Toolkit to upgrade the current instance, which we plan to start using today from CHT 3.17 to CHT 4.x on my localhost computer before replicating to the production VM, which currently doesn’t have data thus wont need migration service.
I did change the CouchDB password from the config, but got the error CouchDB UUID not set, default will be used.
The upgrade got stuck after running the code: CHT_COMPOSE_PROJECT_NAME=app-devl COUCHDB_SECRET=foo DOCKER_CONFIG_PATH=${PWD} COUCHDB_DATA=${PWD}/couchd CHT_COMPOSE_PATH=${PWD} COUCHDB_USER=medic COUCHDB_PASSWORD=password docker-compose up
Please advise if:
I missed a step in the upgrade preparation, especially CouchDB config settings from cht-couchdb.yml
If I will still use my earlier config directory to run our current application instance with docker-compose up -d, or the folder created with the upgrade files, cht-4-app-developer
Thank you