Infos:
- Used Zammad version: 2.3.x
- Used Zammad installation source: DEB (https://docs.zammad.org/en/latest/install-ubuntu.html)
- Operating system: Ubuntu 16.04 LTS
- Browser + version: Chrome Version 63.0.3239.132
Expected behavior:
- Search for users and companies possible!
Actual behavior:
-
After installing Elasticsearch in the latest version, I wanted to create the index. Here I get an error.
salter@TICKET:~$ sudo zammad run rake searchindex:rebuild
[sudo] Passwort für salter:
drop indexes…done
delete pipeline (pipeline)… done
create indexes…done
create pipeline (pipeline)… done
reload data…
reload Ticket
- started at 2018-01-31 18:57:16 UTC
- took 0 seconds
reload Organization
- started at 2018-01-31 18:57:16 UTC
- took 0 seconds
reload User
- started at 2018-01-31 18:57:16 UTC
rake aborted!
Unable to send User.find(122).search_index_update_backend backend: #<RuntimeError: Unable to process POST at http://localhost:9200/zammad_production/User/122?pipeline=zammad670370484791 (size: 0M)
#<UserAgent::Result:0x0000560ea16221f8 @success=false, @body=nil, @data=nil, @code=“400”, @content_type=nil, @error=“Client Error: #<Net::HTTPBadRequest 400 Bad Request readbody=true>!”>>
/opt/zammad/app/models/concerns/has_search_index_backend.rb:138:inrescue in block in search_index_reload' /opt/zammad/app/models/concerns/has_search_index_backend.rb:133:in
block in search_index_reload’
/opt/zammad/app/models/concerns/has_search_index_backend.rb:130:ineach' /opt/zammad/app/models/concerns/has_search_index_backend.rb:130:in
search_index_reload’
/opt/zammad/lib/tasks/search_index_es.rake:156:inblock (3 levels) in <top (required)>' /opt/zammad/lib/tasks/search_index_es.rake:152:in
each’
/opt/zammad/lib/tasks/search_index_es.rake:152:inblock (2 levels) in <top (required)>' /opt/zammad/lib/tasks/search_index_es.rake:167:in
block (2 levels) in <top (required)>’
/opt/zammad/vendor/bundle/ruby/2.4.0/gems/rake-12.3.0/exe/rake:27:in<top (required)>' /opt/zammad/vendor/bundle/ruby/2.4.0/gems/bundler-1.15.1/lib/bundler/cli/exec.rb:74:in
load’
/opt/zammad/vendor/bundle/ruby/2.4.0/gems/bundler-1.15.1/lib/bundler/cli/exec.rb:74:inkernel_load' /opt/zammad/vendor/bundle/ruby/2.4.0/gems/bundler-1.15.1/lib/bundler/cli/exec.rb:27:in
run’
/opt/zammad/vendor/bundle/ruby/2.4.0/gems/bundler-1.15.1/lib/bundler/cli.rb:360:inexec' /opt/zammad/vendor/bundle/ruby/2.4.0/gems/bundler-1.15.1/lib/bundler/vendor/thor/lib/thor/command.rb:27:in
run’
/opt/zammad/vendor/bundle/ruby/2.4.0/gems/bundler-1.15.1/lib/bundler/vendor/thor/lib/thor/invocation.rb:126:ininvoke_command' /opt/zammad/vendor/bundle/ruby/2.4.0/gems/bundler-1.15.1/lib/bundler/vendor/thor/lib/thor.rb:369:in
dispatch’
/opt/zammad/vendor/bundle/ruby/2.4.0/gems/bundler-1.15.1/lib/bundler/cli.rb:20:indispatch' /opt/zammad/vendor/bundle/ruby/2.4.0/gems/bundler-1.15.1/lib/bundler/vendor/thor/lib/thor/base.rb:444:in
start’
/opt/zammad/vendor/bundle/ruby/2.4.0/gems/bundler-1.15.1/lib/bundler/cli.rb:10:instart' /opt/zammad/vendor/bundle/ruby/2.4.0/gems/bundler-1.15.1/exe/bundle:35:in
block in <top (required)>’
/opt/zammad/vendor/bundle/ruby/2.4.0/gems/bundler-1.15.1/lib/bundler/friendly_errors.rb:121:inwith_friendly_errors' /opt/zammad/vendor/bundle/ruby/2.4.0/gems/bundler-1.15.1/exe/bundle:27:in
<top (required)>’
/opt/zammad/bin/bundle:3:inload' /opt/zammad/bin/bundle:3:in
’
In Zammad I can easily search for tickets. But I don’t get a result with users. The user from the error message with the ID 122, exists!
The only assumption I have, I have deleted some users using the REST API command Delete. These are also no longer visible! A query using GET does not produce a result either. Could it be because of this thing?
Steps to reproduce the behavior:
- I have already described.
I am happy about support, hints and tips!
Many thanks, and many greetings from Germany to the world!