Issue with update-config

I set up a VM using HyperVisor and installed CommCare as a monolith then transferred the drive image to another system with a different LAN configuration. After editing the config files to reflect the new IP and running an update-config I was unable to get services up. After a bit of digging, I noticed the following files still reference the old IP:


the /etc/hosts file had two lines and referenced both old and new IP addresses against the server domain name.

Just to add to the list - other files that required manual editing include:

update-config only updates the CommCareHQ application configuration

This includes django and formplayer .

You might need to re-run deploy_stack.yml to propagate that sort of change everywhere. There are also more targeted playbooks or tags that can be run, depending on the scope of the change. deploy_stack should run in check mode first, which should let you inspect the diff to see if you’ve missed any files.

1 Like