Thank you Juan Luis, it solved the issue.
However I'm getting another "possibly unhandled rejection" error, I thought it was related but isn't solved:
Possibly unhandled rejection: {"data":{"servlet":"spring","message":"Error is: Bad Request.\nRequest:\n{"size":0,"query":{"bool":{"must":{"terms":{"isTemplate":["n"]}},"filter":{"query_string":{"query":"(op0:(1) ) AND (draft:n OR draft:e)"}}}},"aggregations":{"mainLanguage":{"terms":{"field":"mainLanguage","size":10,"exclude":""}},"otherLanguage":{"terms":{"field":"otherLanguage","size":10,"exclude":""}}}}\n.\nError:\n{"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"Text fields are not optimised for operations that require per-document field data like aggregations and sorting, so these operations are disabled by default. Please use a keyword field instead. Alternatively, set fielddata=true on [otherLanguage] in order to load field data by uninverting the inverted index. Note that this can use significant memory."}],"type":"search_phase_execution_exception","reason":"all shards failed","phase":"query","grouped":true,"failed_shards":[{"shard":0,"index":"gn-records","node":"y8z2qYZqTL6l8_59r1DN3Q","reason":{"type":"illegal_argument_exception","reason":"Text fields are not optimised for operations that require per-document field data like aggregations and sorting, so these operations are disabled by default. Please use a keyword field instead. Alternatively, set fielddata=true on [otherLanguage] in order to load field data by uninverting the inverted index. Note that this can use significant memory."}}],"caused_by":{"type":"illegal_argument_exception","reason":"Text fields are not optimised for operations that require per-document field data like aggregations and sorting, so these operations are disabled by default. Please use a keyword field instead. Alternatively, set fielddata=true on [otherLanguage] in order to load field data by uninverting the inverted index. Note that this can use significant memory.","caused_by":{"type":"illegal_argument_exception","reason":"Text fields are not optimised for operations that require per-document field data like aggregations and sorting, so these operations are disabled by default. Please use a keyword field instead. Alternatively, set fielddata=true on [otherLanguage] in order to load field data by uninverting the inverted index. Note that this can use significant memory."}}},"status":400}.","url":"/geonetwork/srv/api/search/records/_search","status":"400"},"status":400,"config":{"method":"POST","transformRequest":[null],"transformResponse":[null],"jsonpCallbackParam":"callback","url":"../eng/../api/search/records/_search","data":{"size":0,"query":{"terms":{"isTemplate":["n"]}},"aggregations":{"mainLanguage":{"terms":{"field":"mainLanguage","size":10,"exclude":""}},"otherLanguage":{"terms":{"field":"otherLanguage","size":10,"exclude":""}}}},"headers":{"Accept":"application/json, text/plain, */*","Content-Type":"application/json;charset=utf-8","Accept-Language":"eng","X-XSRF-TOKEN":"ab8f2c83-1817-4176-bd98-38fab6d936eb"}},"statusText":"Bad Request","xhrStatus":"complete"}
Any idea ? Also a migration issue I suppose ?
*Jean Pommier -- pi-Geosolutions*
Ingénieur, consultant indépendant
Tél. : (+33) 6 09 23 21 36
E-mail : jp@anonymised.com
Web : www.pi-geosolutions.fr <http://www.pi-geosolutions.fr>
linkedin : jean-pommier <https://www.linkedin.com/in/jean-pommier/>
Le 24/03/2023 à 13:37, Juan Luis Rodriguez Ponce a écrit :
Hello Jean,
This is a new file added in PR #6559 [1] containing links to the documentation. Just download it from Github [2] and copy it to your GN data directory: ${GEONETWORK_DIR}/data/resources/config/manual.json.
If GN is starting with a new data directory it copies it from the WAR but if it's a migration you need to copy it manually.
Best regards,
Juan Luis.
[1]https://github.com/geonetwork/core-geonetwork/pull/6559
[1] https://github.com/geonetwork/core-geonetwork/blob/4.2.3/web/src/main/webapp/WEB-INF/data/data/resources/config/manual.json
<https://www.geocat.net>
Juan Luis Rodriguez Ponce
E-mail: juanluisrp@anonymised.com
https://www.geocat.net
Veenderweg 13
6721 WD Bennekom
The Netherlands
Tel: +31318416664
<#>
---- On Fri, 24 Mar 2023 12:46:22 +0100 *Jean Pommier via GeoNetwork-users <geonetwork-users@lists.sourceforge.net>* wrote ---
Hi,
I'm trying to migrate a GN instance from 4.0.6 to 4.2.3. I can see in
the browser's console some error about a "Possibly unhandled
rejection"
about a /geonetwork/config/manual.json file
It seems to be a new file, and I can't find anything about it in the
doc. Have I missed something ? What am I supposed to do about this ?
Thanks,
Jean
--
*Jean Pommier -- pi-Geosolutions*
Ingénieur, consultant indépendant
Tél. : (+33) 6 09 23 21 36
E-mail : jp@anonymised.com
Web : www.pi-geosolutions.fr <http://www.pi-geosolutions.fr>
linkedin : jean-pommier <https://www.linkedin.com/in/jean-pommier/>
_______________________________________________
GeoNetwork-users mailing list
GeoNetwork-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at
http://sourceforge.net/projects/geonetwork