On one of my monolith servers, I'm having trouble applying changelog 75. I've deployed Commcare HQ 5dae505f853a46f62962f7de212e4b02f4e0ab02 (11 Jan 2024) and want to ensure indices are reindexed before applying changelog 76.
Following changelog 75: 75. Reindex All Indices For Elasticsearch Upgrade — CommCareHQ Deployment documentation it's failing right out of the gate:
(monolith) cchq@monolith:~$ cd /home/cchq/www/monolith/current
(monolith) cchq@monolith:~/www/monolith/current$ source python_env/bin/activate
(python_env-3.9) (monolith) cchq@monolith:~/www/monolith/current$ INDEX_CNAME='apps'
(python_env-3.9) (monolith) cchq@monolith:~/www/monolith/current$ ./manage.py elastic_sync_multiplexed start ${INDEX_CNAME}
Traceback (most recent call last):
File "/home/cchq/www/monolith/releases/2024-01-19_09.49/./manage.py", line 190, in <module>
main()
File "/home/cchq/www/monolith/releases/2024-01-19_09.49/./manage.py", line 48, in main
execute_from_command_line(sys.argv)
File "/home/cchq/www/monolith/releases/2024-01-19_09.49/python_env/lib/python3.9/site-packages/django/core/management/__init__.py", line 419, in execute_from_command_line
utility.execute()
File "/home/cchq/www/monolith/releases/2024-01-19_09.49/python_env/lib/python3.9/site-packages/django/core/management/__init__.py", line 413, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/home/cchq/www/monolith/releases/2024-01-19_09.49/python_env/lib/python3.9/site-packages/django/core/management/base.py", line 354, in run_from_argv
self.execute(*args, **cmd_options)
File "/home/cchq/www/monolith/releases/2024-01-19_09.49/python_env/lib/python3.9/site-packages/django/core/management/base.py", line 398, in execute
output = self.handle(*args, **options)
File "/home/cchq/www/monolith/releases/2024-01-19_09.49/corehq/apps/es/management/commands/elastic_sync_multiplexed.py", line 537, in handle
cmd_func(
File "/home/cchq/www/monolith/releases/2024-01-19_09.49/corehq/apps/es/management/commands/elastic_sync_multiplexed.py", line 50, in start_reindex
raise IndexNotMultiplexedException("""Index not multiplexed!
corehq.apps.es.exceptions.IndexNotMultiplexedException: Index not multiplexed!
Sync can only be run on multiplexed indices
This is a fairly new server (installed in November last year). I've tested on all incices and the results are the same.
Any ideas? Thanks!