Any searchindex command results in elasticsearch not configured.
Steps to reproduce the behavior:
Run any searchindex: command.
I have tried to search for a solution on my own, but every article I find either does not work or is not my issue. I have set up Zammad in docker compose and elasticsearch as a docker container. I have set the address to elasticsearch everywhere I can find in the settings and verified it is available. I verified by running a curl command with the elasticsearch docker. Originally, I got an error due to an incompatible version of elasticsearch. I downgraded to an older version, and just get elasticsearch not configured.
rake zammad:searchindex:rebuild --trace
** Invoke zammad:searchindex:rebuild (first_time)
** Invoke zammad:searchindex:version_supported (first_time)
** Invoke zammad:searchindex:configured (first_time)
** Invoke environment (first_time)
** Execute environment
I, [2023-10-10T18:20:17.065625 #74] INFO – : ActionCable is using the redis instance at redis://10.30.0.10:6379.
I, [2023-10-10T18:20:17.078078#74-6300] INFO – : Using memcached as Rails cache store.
I, [2023-10-10T18:20:17.078218#74-6300] INFO – : Using the Redis back end for Zammad’s web socket session store.
** Execute zammad:searchindex:configured
Elasticsearch is not configured.
zammad@db3826abd7d2:~$ rake zammad:searchindex:rebuild --trace
** Invoke zammad:searchindex:rebuild (first_time)
** Invoke zammad:searchindex:version_supported (first_time)
** Invoke zammad:searchindex:configured (first_time)
** Invoke environment (first_time)
** Execute environment
I, [2024-01-03T06:38:47.586137 #64] INFO – : ActionCable is using the redis instance at redis://zammad-redis:6379.
I, [2024-01-03T06:38:47.599071#64-6760] INFO – : Using memcached as Rails cache store.
I, [2024-01-03T06:38:47.599214#64-6760] INFO – : Using the Redis back end for Zammad’s web socket session store.
** Execute zammad:searchindex:configured