Infos:
- Used Zammad version: 6.0.0
- Used Zammad installation type: docker-compose
- Operating system: Ubuntu 22.04
I had broken my installation while trying to correct a mistake.
I accidentally did a docker compose down -v
.
Then I had to realize that I have to rebuild the system - which is of course clear after the command.
So I restored the last backup to have all my tickets back. This has also worked so far. However, it is noticeable that the automatic completion, for example, with a user to which I want to assign a company no longer works.
If I now execute the command rake zammad:searchindex:rebuild
I get:
I, [2023-07-27T09:19:50.384216 #50] INFO -- : ActionCable is using the redis instance at redis://zammad-redis:6379.
I, [2023-07-27T09:19:50.398599#50-6160] INFO -- : Using memcached as Rails cache store.
I, [2023-07-27T09:19:50.398744#50-6160] INFO -- : Using the Redis back end for Zammad's web socket session store.
Elasticsearch is not configured.
So I try to reconfigure the Elasticsearch:
rails r "Setting.set('es_url', 'http://zammad-elasticsearch:9200')"
then I get:
I, [2023-07-27T09:23:01.886172 #57] INFO -- : ActionCable is using the redis instance at redis://zammad-redis:6379.
I, [2023-07-27T09:23:01.897111#57-5380] INFO -- : Using memcached as Rails cache store.
I, [2023-07-27T09:23:01.897238#57-5380] INFO -- : Using the Redis back end for Zammad's web socket session store.
/opt/zammad/app/models/setting.rb:38:in `set': Can't find config setting 'es_url' (RuntimeError)
from /usr/local/bundle/gems/railties-6.1.7.4/lib/rails/commands/runner/runner_command.rb:45:in `<main>'
from /usr/local/bundle/gems/railties-6.1.7.4/lib/rails/commands/runner/runner_command.rb:45:in `eval'
from /usr/local/bundle/gems/railties-6.1.7.4/lib/rails/commands/runner/runner_command.rb:45:in `perform'
from /usr/local/bundle/gems/thor-1.2.2/lib/thor/command.rb:27:in `run'
from /usr/local/bundle/gems/thor-1.2.2/lib/thor/invocation.rb:127:in `invoke_command'
from /usr/local/bundle/gems/thor-1.2.2/lib/thor.rb:392:in `dispatch'
from /usr/local/bundle/gems/railties-6.1.7.4/lib/rails/command/base.rb:69:in `perform'
from /usr/local/bundle/gems/railties-6.1.7.4/lib/rails/command.rb:48:in `invoke'
from /usr/local/bundle/gems/railties-6.1.7.4/lib/rails/commands.rb:18:in `<main>'
from /usr/local/bundle/gems/bootsnap-1.16.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'
from /usr/local/bundle/gems/bootsnap-1.16.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'
from bin/rails:5:in `<main>'
When I look in the docker logs I get:
networkcretectionhelpdesk-zammad-scheduler-1 | Payload size: 0M
networkcretectionhelpdesk-zammad-scheduler-1 | I, [2023-07-27T09:27:34.365798#1-112140] INFO -- : 2023-07-27T09:27:34+0000: [Worker(host:b81a720cff35 pid:1)] Job SearchIndexJob [01f35436-57a9-4aee-ba51-811aeed2037c] from DelayedJob(default) with arguments: ["User", 3] (id=2473) (queue=default) COMPLETED after 0.0919
networkcretectionhelpdesk-zammad-scheduler-1 | I, [2023-07-27T09:27:34.368473#1-112140] INFO -- : 2023-07-27T09:27:34+0000: [Worker(host:b81a720cff35 pid:1)] Job SearchIndexAssociationsJob [c52685d5-5f04-4a2a-a756-dbe0af608b76] from DelayedJob(default) with arguments: ["User", 3] (id=2474) (queue=default) RUNNING
networkcretectionhelpdesk-zammad-scheduler-1 | E, [2023-07-27T09:27:34.435694#1-112140] ERROR -- : Unable to process post request to elasticsearch URL 'http://zammad-elasticsearch:9200/zammad_production_user/_doc/3?pipeline=zammad303115eb-d61f-44f3-a441-00d94c2f1e59'. Check the response and payload for detailed information:
networkcretectionhelpdesk-zammad-scheduler-1 |
networkcretectionhelpdesk-zammad-scheduler-1 |
networkcretectionhelpdesk-zammad-scheduler-1 | Response:
networkcretectionhelpdesk-zammad-scheduler-1 | #<UserAgent::Result:0x00007f21fa434270 @success=false, @body="{\"error\":{\"root_cause\":[{\"type\":\"illegal_argument_exception\",\"reason\":\"pipeline with id [zammad303115eb-d61f-44f3-a441-00d94c2f1e59] does not exist\"}],\"type\":\"illegal_argument_exception\",\"reason\":\"pipeline with id [zammad303115eb-d61f-44f3-a441-00d94c2f1e59] does not exist\"},\"status\":400}", @data=nil, @code="400", @content_type=nil, @error="Client Error: #<Net::HTTPBadRequest 400 Bad Request readbody=true>!", @header={"x-elastic-product"=>"Elasticsearch", "content-type"=>"application/json", "content-length"=>"289"}>
Does anyone have a tip on how to get the search completion running again?