Unable to access or preview forms after migrating instance to new server and domain name

Hi Team,

I have migrate an Central instance on a server and also change the domain name following this tuto: https://dev.to/kagundajm/odk-central-domain-change-a-painless-backup-and-restore-tutorial-4gpk

1. What is the issue? Please be detailed.
After migration, I can't access or preview forms after migrating instance to new server and domain name . The message error is : Survey information for this id is incomplete.

2. What steps can we take to reproduce this issue?
https://dev.to/kagundajm/odk-central-domain-change-a-painless-backup-and-restore-tutorial-4gpk

3. What have you tried to fix the issue?

4. Upload any forms or screenshots you can share publicly below.

Hi! I have been exploring the same lately. I need to perform the same too (migration and changing domain name). Stumbled upon the same link as you. But again, I was not confident about the procedure shared in the link.

Later, I even stumbled upon a response by @yanokwa over this thread for the same:

I am still unsure if it is a good idea to follow the procedure mentioned on: https://dev.to/kagundajm/odk-central-domain-change-a-painless-backup-and-restore-tutorial-4gpk

I guess the procedure shared by @yanokwa is quite different than what is being told in that article?!

The recommended approach (mentioned by @yanokwa) is to make a snapshot of the whole machine.

The approach in the article linked above involves making a backup of the database (using an API call that builds and returns this database dump). This should partially work, but we are putting less effort into maintaining this path these days. The main issue with this approach is that not everything needed for backing up/restoring is stored in the database... some key pieces of information that Enketo uses for public links are stored in a Redis database running in a docker container (and that's why half of the above article is dedicated to trying to move those around). So I am not surprised that there is a problem when trying to fill out the form via Enketo.

If you were to publish a new version of your form (even if you didn't change anything about the form except the version number), I believe it would generate a new working Enketo link on your new domain. You can check by making a new draft of your form and seeing if the preview works.

2 Likes

Hi @ktuite !

Thank you very much for clarifying the same..! I discovered that article a few months ago, but never had confidence to follow the steps mentioned.