Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Software error when Elasticsearch is not configured and rake searchindex:rebuild #3276

Closed
martini opened this issue Nov 9, 2020 · 0 comments
Assignees
Milestone

Comments

@martini
Copy link
Collaborator

martini commented Nov 9, 2020

Infos:

  • Used Zammad version: 3.5
  • Installation method (source, package, ..): any
  • Operating system: any
  • Database + version: any
  • Elasticsearch version: any
  • Browser + version: any

Expected behavior:

  • Show nice error message if rake searchindex:rebuild is used and no Elasticsearch is configured.

Actual behavior:

  • Software error is shown in rake searchindex:rebuild
rake searchindex:rebuild
rake aborted!
NoMethodError: undefined method `split' for nil:NilClass
/home/me/src/zammad/lib/tasks/search_index_es.rake:338:in `es_version_supported?'
/home/me/src/zammad/lib/tasks/search_index_es.rake:183:in `block (2 levels) in <main>'
Tasks: TOP => searchindex:rebuild => searchindex:version_supported
(See full trace by running task with --trace)

Steps to reproduce the behavior:

  • zammad run rails r "Setting.set('es_url', '')"
  • zammad run rake searchindex:rebuild
@martini martini added this to the 3.6.0 milestone Nov 9, 2020
@martini martini self-assigned this Nov 9, 2020
zammad-sync added a commit that referenced this issue Nov 10, 2020
zammad-sync added a commit that referenced this issue Nov 16, 2020
zammad-sync added a commit that referenced this issue Dec 23, 2020
zammad-sync added a commit that referenced this issue Jan 25, 2021
zammad-sync added a commit that referenced this issue Feb 24, 2021
zammad-sync added a commit that referenced this issue Mar 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants