Hey if any one can help would be best we have been able to manage to upgrade based on the change logs for commcare HQ , after the update /upgrade we have applied redeployment below issues pops up here the out put ,
172.19.4.35] out: 2022-12-08 15:58:23,187 INFO [dimagi.utils.couch.sync_docs] synced 'repeaters' in couchdb
[172.19.4.35] out:
[172.19.4.35] out:
[172.19.4.35] out: This migration cannot be run, as it depends on code that has since been removed.
[172.19.4.35] out: To fix this, follow the instructions below to run this migration from a previous version of the code.
[172.19.4.35] out: In order to prevent this in the future, we recommend running migrations at least once every 6 weeks.
[172.19.4.35] out: For reference, the current code has not run migrations for 5 days.
[172.19.4.35] out:
[172.19.4.35] out: Run the following commands to run the historical migration and get up to date:
[172.19.4.35] out: With a cloud setup:
[172.19.4.35] out: commcare-cloud <env> fab setup_limited_release --set code_branch=10f1b20a33ea07371e2b94c37e16ea81cfabcd53
[172.19.4.35] out:
[172.19.4.35] out: commcare-cloud <env> django-manage --release <release created by previous command> migrate_multi fixtures
[172.19.4.35] out:
[172.19.4.35] out: commcare-cloud <env> deploy commcare
[172.19.4.35] out:
[172.19.4.35] out: With a development setup:
[172.19.4.35] out: git checkout 10f1b20a33ea07371e2b94c37e16ea81cfabcd53
[172.19.4.35] out: ./manage.py migrate_multi fixtures
[172.19.4.35] out:
[172.19.4.35] out: If you are sure this migration is unnecessary, you can fake the migration:
[172.19.4.35] out: With a cloud setup:
[172.19.4.35] out: commcare-cloud <env> django-manage migrate_multi --fake fixtures 0008_sqllookuptables
[172.19.4.35] out:
[172.19.4.35] out: With a development setup:
[172.19.4.35] out: ./manage.py migrate_multi --fake fixtures 0008_sqllookuptables
[172.19.4.35] out:
[172.19.4.35] out:
Fatal error: sudo() received nonzero return code 1 while executing!
Requested: /home/cchq/www/echis/releases/2022-12-08_15.38/python_env/bin/python manage.py migrate_multi --noinput
Executed: sudo -S -p 'sudo password:' -H -u "cchq" /bin/bash -l -c "cd /home/cchq/www/echis/releases/2022-12-08_15.38 >/dev/null && /home/cchq/www/echis/re
leases/2022-12-08_15.38/python_env/bin/python manage.py migrate_multi --noinput"
Aborting.
[172.19.4.35] Executing task 'send_email'
``
while running the above instructions and deploy commcare ,
the following is shown commcare-cloud <env> django-manage --release <release created by previous command> populate_lookuptables
commcare-cloud <env> fab setup_limited_release --set code_branch=f829719365bca901f399bce0c543aeaa827fd630
commcare-cloud <env> django-manage --release <release created by previous command> populate_lookuptables
commcare-cloud <env> deploy commcare
i used the following command:
cchq echis deploy --set code_branch=f829719365bca901f399bce0c543aeaa827fd630 --branch=master
The issue makes it to be in loop ,for your information below change log throws an error
https://commcare-cloud.readthedocs.io/en/latest/changelog/0044-migrate-forms-to-sql.html
9:23
https://commcare-cloud.readthedocs.io/en/latest/changelog/0051-historical-auditcare-data-migration.html#historical-auditcare-data-migration