Error when running "commcare-cloud monolith django-manage preindex_everything"

Hi Fredrick,

It looks like the fix I offered in ElasticSearch installation error interacted poorly with some common environment settings; my guess from this message is that the issue you're facing is that Elasticsearch did not start up properly. You can check this by running commcare-cloud <env> django-manage check_services; I expect you'll see an error for Elasticsearch there.

We have applied another fix, so I believe if you pull the latest and run

commcare-cloud <env> deploy-stack --limit elasticsearch --tags=es_conf

you'll see an update to the elasticsearch configuration file. You should then be able to start elasticsearch and check that it came up properly, using something like commcare-cloud <env> service elasticsearch restart followed by the check_services command above again.

Once that's in order, I expect you'll be able to run this command again without this same error.

Best,
Danny