Quantcast
Channel: Znuny Open Source Ticketsystem
Viewing all articles
Browse latest Browse all 307

Elasticsearch - errors while building index "tickets"

$
0
0
Hello!

I'm testing ES indexing for Znuny. My database is really big, (f.i: ticket_history has over 118 mln records, tickets over 11 mln), therefore testing such solution is essential.
During first indexing of ticket index I receive (in system log) three types of errors:

Fri Feb 16 09:08:48 2024 (Europe/Warsaw)errorOTRS-CGI-99Query failed for engine: Kernel::System::Search::Engine::ES. Message: [Request] ** [http://10.21.32.167:9200]-[400] Bad Request, called from sub Search::Elasticsearch::Transport::perform_request at /opt/otrs/Kernel/System/Search/Engine/ES.pm line 388. With vars: {'request' => {'path' => 'ticket/_update_by_query','serialize' => 'std','mime_type' => 'application/json','method' => 'POST','qs' => {'pipeline' => 'attachment_nested'},'body' => {'query' => {'terms' => {'TicketID' => [7762408,7762409,7762410,7762411,7762412,7762413,7762414,7762415,7762416,7762417]}}},'ignore' => []},'status_code' => 400,'body' => {'batches' => 1,'requests_per_second' => '-1','noops' => 0,'version_conflicts' => 0,'updated' => 0,'failures' => [{'cause' => {'reason' => 'runtime error','type' => 'script_exception','position' => {'offset' => 194,'start' => 167,'end' => 248},'caused_by' => {'reason' => 'Cannot cast java.lang.Integer to java.lang.String','type' => 'class_cast_exception'},'lang' => 'painless','script_stack' => ['java.base/java.lang.Class.cast(Class.java:4067)','ArticleID = Articles.get(i).ArticleID;

Fri Feb 16 09:08:47 2024 (Europe/Warsaw)errorOTRS-CGI-99Query failed for engine: Kernel::System::Search::Engine::ES. Message: [Request] ** [http://10.21.32.167:9200]-[400] Bad Request, called from sub Search::Elasticsearch::Transport::perform_request at /opt/otrs/Kernel/System/Search/Engine/ES.pm line 388. With vars: {'body' => {'timed_out' => bless( do{\(my $o = 0)}, 'JSON::PP::Boolean' ),'deleted' => 0,'throttled_millis' => 0,'throttled_until_millis' => 0,'total' => 10,'retries' => {'bulk' => 0,'search' => 0},'failures' => [{'index' => 'ticket','cause' => {'lang' => 'painless','caused_by' => {'reason' => 'Cannot cast java.lang.Integer to java.lang.String','type' => 'class_cast_exception'},'position' => {'end' => 248,'start' => 167,'offset' => 194},'script_stack' => ['java.base/java.lang.Class.cast(Class.java:4067)','ArticleID = Articles.get(i).ArticleID;

Fri Feb 16 09:08:46 2024 (Europe/Warsaw)errorOTRS-CGI-99Query failed for engine: Kernel::System::Search::Engine::ES. Message: [Request] ** [http://10.21.32.167:9200]-[400] Bad Request, called from sub Search::Elasticsearch::Transport::perform_request at /opt/otrs/Kernel/System/Search/Engine/ES.pm line 388. With vars: {'request' => {'ignore' => [],'qs' => {'pipeline' => 'attachment_nested'},'body' => {'query' => {'terms' => {'TicketID' => [7762438,7762439,7762440,7762441,7762442,7762443,7762444,7762445,7762446,7762447]}}},'mime_type' => 'application/json','method' => 'POST','serialize' => 'std','path' => 'ticket/_update_by_query'},'status_code' => 400,'body' => {'deleted' => 0,'timed_out' => bless( do{\(my $o = 0)}, 'JSON::PP::Boolean' ),'retries' => {'search' => 0,'bulk' => 0},'throttled_until_millis' => 0,'total' => 10,'throttled_millis' => 0,'took' => 51,'updated' => 0,'failures' => [{'status' => 400,'cause' => {'reason' => 'runtime error','type' => 'script_exception','script' => ' ...','caused_by' => {'reason' => 'Cannot cast java.lang.Integer to java.lang.String','type' => 'class_cast_exception'},'lang' => 'painless','position' => {'end' => 248,'start' => 167,'offset' => 194},'script_stack' => ['java.base/java.lang.Class.cast(Class.java:4067)','ArticleID = Articles.get(i).ArticleID;

Is this ES plugin problem or maybe my ES engine is misconfigured?

Daniel Lisiecki

Statistics: Posted by lis9 — 16 Feb 2024, 10:21 — Replies 0 — Views 19



Viewing all articles
Browse latest Browse all 307

Trending Articles