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

Elasticsearch auto configuration do not work in installer.pl #558

Closed
StefanRother-OTOBO opened this issue Oct 21, 2020 · 0 comments
Closed
Assignees
Labels
bug Something isn't working as intended
Milestone

Comments

@StefanRother-OTOBO
Copy link
Contributor

Hi,

In OTOBO 10.0.4 we have the problem, that the auto installation and activation (at least using docker) not work.
I check the logs and found the following error:

elastic_1 | "stacktrace": ["java.lang.IllegalStateException: you must set the number of shards before setting/reading primary terms"

After that I'll checked the code in Kernel/Modules/Installer.pm line 857 and found:

my $IndexConfig = $Kernel::OM->Get('Kernel::Config')->Get('Elasticsearch::ArticleIndexCreationSettings');

In installer.pl this setting don't exists at this moment. So I add the setting in Kernel/Config/Defaults.pm:

Elasticsearch settings needed for installer.pl

$Self->{'Elasticsearch::ArticleIndexCreationSettings'} = {
'NS' => '1',
'NR' => '0',
};

Now everything look fine for me.

@sven, do I miss something?

Thanks!

Stefan

@StefanRother-OTOBO StefanRother-OTOBO added the bug Something isn't working as intended label Oct 21, 2020
@StefanRother-OTOBO StefanRother-OTOBO added this to the OTOBO 10.0.5 milestone Oct 21, 2020
StefanRother-OTOBO added a commit that referenced this issue Oct 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working as intended
Projects
None yet
Development

No branches or pull requests

2 participants