Searching, auto-suggest email addresses isnt working
Hi,
I was updating from latest Zammad v5 to 6.1.0. I’ve thought this is the right time to clean up the docker-compose file, so I’ve used the default one from github (zammad-docker-compose/docker-compose.yml at master · zammad/zammad-docker-compose · GitHub), so I re-wrote my config (I had a custom Traefik configured) as soon as I’ve launched up the compose file, the search function didn’t work. I’ve entered into the elasticsearch container, tried to re-index everything, but:
root@ce329f2d99c8:/opt/zammad# rake zammad:searchindex:rebuild
I, [2023-11-27T11:33:08.768537 #80] INFO – : ActionCable is using the redis instance at redis://zammad-redis:6379.
I, [2023-11-27T11:33:08.781466#80-6320] INFO – : Using memcached as Rails cache store.
I, [2023-11-27T11:33:08.781611#80-6320] INFO – : Using the Redis back end for Zammad’s web socket session store.
Elasticsearch is not configured.
My .env file has the following settings for elasticsearch:
@Bence98007 did the zammad-init container start properly? Can you please post its output? It’s supposed to pick up the ES variables and configure Zammad’s database settings for ES from them.
Indeed, the init container does set the correct url which I’ve tested via Curl:
zammad-init | I, [2023-11-27T11:17:17.944527#23-5540] INFO – : Using memcached as Rails cache store.
zammad-init | I, [2023-11-27T11:17:17.944638#23-5540] INFO – : Using the Redis back end for Zammad’s web socket session store.
zammad-init | I, [2023-11-27T11:17:22.026145#23-5540] INFO – : Setting.set(‘es_url’, “http://zammad-elasticsearch:9200”)
Can you then please check if the ES container has all the relevant ENV passed to it? My next suspicion is that it does not have (all) database information and thus keeps using the nulldb driver which means the DB is empty, and can therefore not even connect to ES.
Please see the x-shared section in zammad-docker-compose for a definition of settings that should be visible to all containers running the Zammad Rails stack.