I’m running Zammad 6.4.0-26 using the official docker compose setup.
I can’t seem to initiate a reindex of Elasticsearch from the command line following the instructions here: Install with Docker — Zammad System Documentation documentation
From the host machine running the docker stack, I’m running the following command:
docker exec zammad-docker-compose-zammad-railsserver-1 /docker-entrypoint.sh rails r 'rake zammad:searchindex:rebuild'
I receive the following error in response:
Please specify a valid ruby command or the path of a script to run.
Run 'bin/rails runner -h' for help.
/usr/local/bundle/gems/railties-7.1.4.1/lib/rails/commands/runner/runner_command.rb:46: syntax error, unexpected label, expecting end-of-input
rake zammad:searchindex:rebuild
^~~~~~~~~~~~
The other command options in the documentation also return similar errors. Has the way to do this changed recently?
I suppose the other workaround would be to set ELASTICSEARCH_REINDEX
to true in my .env but that’s a slightly clunky approach as I’ll have to remove it once the indexing is done and I don’t think I can limit the number of cores it uses.