[Koha] many cig:error on opac-error.log and intranet-error.log

Alvaro Cornejo cornejo.alvaro at gmail.com
Tue Jun 22 09:31:41 NZST 2021


Hi

About the search errors, they probably come from missing data on the called
search. You might ignore it unless you are getting wrong data on the search
results.

The host semrush that is doing the searches is a bot that is crawling your
server.

You can control search bots permissions adjusting access using a robots.txt
file in your host

About addbiblio error, seems you are trying to add a biblio with data on
field "local-number__sort" but that field seems "disabled" into your
framework... just a guess

Regards,

Alvaro


|----------------------------------------------------------------------------------------|
 Stay safe / Cuídate/  Reste sécurisé
*7* Switch off as you go / Apaga lo que no usas /  Débranchez au fur et à
mesure.
 *q *Recycle always / Recicla siempre / Recyclez toujours
 P Print only if absolutely necessary / Imprime solo si es necesario /
Imprimez seulement si nécessaire


Le sam. 19 juin 2021 à 17:33, C P Hong <cfhong2000 at gmail.com> a écrit :

> Hello,
>
> I am seeing many error entries on opac-error.log.
>
> Sat Jun 19 18:15:47.054074 2021] [cgi:error] [pid 14502] [client
> 185.191.171.33:63720] AH01215: [Sat Jun 19 18:15:47 2021] opac-search.pl:
> Use of uninitialized value in hash element at
> /usr/share/koha/lib/C4/XSLT.pm line 359.:
> /usr/share/koha/opac/cgi-bin/opac/
> opac-search.pl
>
> [Sat Jun 19 18:15:47.054370 2021] [cgi:error] [pid 14502] [client
> 185.191.171.33:63720] AH01215: [Sat Jun 19 18:15:47 2021] opac-search.pl:
> Use of uninitialized value in scalar assignment at
> /usr/share/koha/lib/C4/Koha.pm line 550.:
> /usr/share/koha/opac/cgi-bin/opac/
> opac-search.pl
>
> [Sat Jun 19 18:15:47.076539 2021] [cgi:error] [pid 14502] [client
> 185.191.171.33:63720] AH01215: [Sat Jun 19 18:15:47 2021] opac-search.pl:
> Use of uninitialized value in hash element at
> /usr/share/koha/lib/C4/XSLT.pm line 359.:
> /usr/share/koha/opac/cgi-bin/opac/
> opac-search.pl
>
> [Sat Jun 19 18:15:47.076831 2021] [cgi:error] [pid 14502] [client
> 185.191.171.33:63720] AH01215: [Sat Jun 19 18:15:47 2021] opac-search.pl:
> Use of uninitialized value in scalar assignment at
> /usr/share/koha/lib/C4/Koha.pm line 550.:
> /usr/share/koha/opac/cgi-bin/opac/
> opac-search.pl
>
> [Sat Jun 19 18:15:47.099125 2021] [cgi:error] [pid 14502] [client
> 185.191.171.33:63720] AH01215: [Sat Jun 19 18:15:47 2021] opac-search.pl:
> Use of uninitialized value in hash element at
> /usr/share/koha/lib/C4/XSLT.pm line 359.:
> /usr/share/koha/opac/cgi-bin/opac/
> opac-search.pl
>
> [Sat Jun 19 18:15:47.099419 2021] [cgi:error] [pid 14502] [client
> 185.191.171.33:63720] AH01215: [Sat Jun 19 18:15:47 2021] opac-search.pl:
> Use of uninitialized value in scalar assignment at
> /usr/share/koha/lib/C4/Koha.pm line 550.:
> /usr/share/koha/opac/cgi-bin/opac/
> opac-search.pl
>
> [Sat Jun 19 18:15:47.121645 2021] [cgi:error] [pid 14502] [client
> 185.191.171.33:63720] AH01215: [Sat Jun 19 18:15:47 2021] opac-search.pl:
> Use of uninitialized value in hash element at
> /usr/share/koha/lib/C4/XSLT.pm line 359.:
> /usr/share/koha/opac/cgi-bin/opac/
> opac-search.pl
>
> [Sat Jun 19 18:15:47.121938 2021] [cgi:error] [pid 14502] [client
> 185.191.171.33:63720] AH01215: [Sat Jun 19 18:15:47 2021] opac-search.pl:
> Use of uninitialized value in scalar assignment at
> /usr/share/koha/lib/C4/Koha.pm line 550.:
> /usr/share/koha/opac/cgi-bin/opac/
> opac-search.pl
>
>
>
> I checked client ip address.
>
>
> Non-authoritative answer:
>
> 33.171.191.185.in-addr.arpa name = crawl27.bl.semrush.com.
>
>
>
> Any ideas what the errors mean. Do you know what this client is trying to
> do with my koha system? How do I fix the errors?
>
>
> On another log - intranet-error.log. I saw the error entry below. What does
> that mean? How do I fix the issue?
>
>
> FYI. I am running Koha version 20.11.03 and Elasticsearch version 6.8.9.
>
>
> Sat Jun 19 18:14:39.867657 2021] [cgi:error] [pid 14436] [client
> xxx.xxx.xxx.xxx:59533] AH01215: [Sat Jun 19 18:14:39 2021] addbiblio.pl:
> [Request] ** [http://localhost:9200]-[400] [illegal_argument_exception]
> Fielddata is disabled on text fields by default. Set fielddata=true on
> [local-number__sort] in order to load fielddata in memory by uninverting
> the inverted index. Note that this can however use significant memory.
> Alternatively use a keyword field instead., called from sub
> Search::Elasticsearch::Role::Client::Direct::__ANON__ at
> /usr/share/koha/lib/Koha/SearchEngine/Elasticsearch/Search.pm line 96. With
> vars: {'body' => {'status' => 400,'error' => {'grouped' => bless( do{\\(my
> $o = 1)}, 'JSON::PP::Boolean' ),'caused_by' => {'reason' => 'Fielddata is
> disabled on text fields by default. Set fielddata=true on
> [local-number__sort] in order to load fielddata in memory by uninverting
> the inverted index. Note that this can however use significant memory.
> Alternatively use a keyword field instead.','caused_by' => {'type' =>
> 'illegal_argument_exception','reason' => 'Fielddata is disabled on text
> fields by default. Set fielddata=true on [local-number__sort] in order to
> load fielddata in memory by uninverting the inverted index. Note that this
> can however use significant memory. Alternatively use a keyword field
> instead.'},'type' => 'illegal_argument_exception'},'reason' => 'all shards
> failed','root_cause' => [{'reason' => 'Fielddata is disabled on text fields
> by default. Set fielddata=true on [local-number__sort] in order to load
> fielddata in memory by uninverting the inverted index. Note that this can
> however use significant memory. Alternatively use a keyword field
> instead.','type' => 'illegal_argument_exception'}],'phase' =>
> 'query','failed_shards' => [{'node' => 'XixKhqGwRtinFdkt7uwTWw','index' =>
> 'koha_lib_authorities','shard' => 0,'reason' => {'type' =>
> 'illegal_argument_exception','reason' => 'Fielddata is disabled on text
> fields by default. Set fielddata=true on [local-number__sort] in order to
> load fielddata in memory by uninverting the inverted index. Note that this
> can however use significant memory. Alternatively use a keyword field
> instead.'}}],'type' => 'search_phase_execution_exception'}},'request' =>
> {'ignore' => [],'body' => {'size' => 20,'sort' => [{'local-number__sort' =>
> 'asc'}],'query' => {'bool' => {'filter' => {'term' => {'authtype.raw' =>
> 'PERSO_NAME'}},'must' => [{'term' => {'match-heading.ci_raw' => 'Schmidt
> Thomas E'}}]}},'from' => 0},'path' =>
> '/koha_lib_authorities/_search','mime_type' => 'application/json','qs' =>
> {},'serialize' => 'std','method' => 'GET'},'status_code' => 400}:
> /usr/share/koha/intranet/cgi-bin/cataloguing/addbiblio.pl, referer:
>
> http://xxx.xxx.org:8080/cgi-bin/koha/cataloguing/addbiblio.pl?biblionumber=10513
>
>
>
> Best Regards,
> Chee
> _______________________________________________
>
> Koha mailing list  http://koha-community.org
> Koha at lists.katipo.co.nz
> Unsubscribe: https://lists.katipo.co.nz/mailman/listinfo/koha
>


More information about the Koha mailing list