[GeoNetwork-users] manual.json file error message

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/&gt;

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 : mailto:jp@anonymised.com
Web : www.pi-geosolutions.fr <http://www.pi-geosolutions.fr>
linkedin : jean-pommier <https://www.linkedin.com/in/jean-pommier/&gt;

_______________________________________________
GeoNetwork-users mailing list
mailto:GeoNetwork-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork

hi Juan Luis,

thanks for the explanation

Wait... there is a config directory in data/data/resources, it's different from data/config/ ? Why not in data/config then ? or data/data/resources/doc rather than config. It's very confusing all this

*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/&gt;

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/&gt;

    _______________________________________________
    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

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{&quot;size&quot;:0,&quot;query&quot;:{&quot;bool&quot;:{&quot;must&quot;:{&quot;terms&quot;:{&quot;isTemplate&quot;:[&quot;n&quot;]}},&quot;filter&quot;:{&quot;query_string&quot;:{&quot;query&quot;:&quot;(op0:(1) ) AND (draft:n OR draft:e)&quot;}}}},&quot;aggregations&quot;:{&quot;mainLanguage&quot;:{&quot;terms&quot;:{&quot;field&quot;:&quot;mainLanguage&quot;,&quot;size&quot;:10,&quot;exclude&quot;:&quot;&quot;}},&quot;otherLanguage&quot;:{&quot;terms&quot;:{&quot;field&quot;:&quot;otherLanguage&quot;,&quot;size&quot;:10,&quot;exclude&quot;:&quot;&quot;}}}}\n.\nError:\n{&quot;error&quot;:{&quot;root_cause&quot;:[{&quot;type&quot;:&quot;illegal_argument_exception&quot;,&quot;reason&quot;:&quot;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.&quot;}],&quot;type&quot;:&quot;search_phase_execution_exception&quot;,&quot;reason&quot;:&quot;all shards failed&quot;,&quot;phase&quot;:&quot;query&quot;,&quot;grouped&quot;:true,&quot;failed_shards&quot;:[{&quot;shard&quot;:0,&quot;index&quot;:&quot;gn-records&quot;,&quot;node&quot;:&quot;y8z2qYZqTL6l8_59r1DN3Q&quot;,&quot;reason&quot;:{&quot;type&quot;:&quot;illegal_argument_exception&quot;,&quot;reason&quot;:&quot;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.&quot;}}],&quot;caused_by&quot;:{&quot;type&quot;:&quot;illegal_argument_exception&quot;,&quot;reason&quot;:&quot;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.&quot;,&quot;caused_by&quot;:{&quot;type&quot;:&quot;illegal_argument_exception&quot;,&quot;reason&quot;:&quot;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.&quot;}}},&quot;status&quot;: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/&gt;

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/&gt;

    _______________________________________________
    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

If you don't specify anything else the config directory will be inside the data directory. However you can customize the location of the config directory [1] and point to the directory in the webapps folder using the geonetwork.config.dir propertty or GEONETWOR_CONFIG_DIR environment variable .

[1] https://www.geonetwork-opensource.org/manuals/4.0.x/en/install-guide/customizing-data-directory.html#advanced-data-directory-configuration

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 14:14:25 +0100 Jean Pommier <jean.pommier@anonymised.com..> wrote ---

hi Juan Luis,

thanks for the explanation

Wait... there is a config directory in data/data/resources, it's
      different from data/config/ ? Why not in data/config then ? or
      data/data/resources/doc rather than config. It's very confusing
      all this

Jean Pommier -- pi-Geosolutions

Ingénieur, consultant indépendant

Tél. : (+33) 6 09 23 21 36
E-mail : mailto:jp@anonymised.com
Web : http://www.pi-geosolutions.fr
linkedin : 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: mailto: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 mailto: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 : mailto:jp@anonymised.com
Web : http://www.pi-geosolutions.fr
linkedin : jean-pommier <https://www.linkedin.com/in/jean-pommier/&gt;

_______________________________________________
GeoNetwork-users mailing list
mailto:GeoNetwork-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork

Yes, thanks, I know that. What I mean is that we already had a config directory (geonetwork.config.dir / GEONETWORK_CONFIG_DIR) which is by default located at geonetwork/WEB-INF/data/config/

But this new file, manual.json, is stored in the resources directory (geonetwork.resources.dir / GEONETWORK_RESOURCES_DIR), in a subfolder named config (by default located at geonetwork/WEB-INF/data/data/resources/*config*/manual.json)

That's 2 folders named config, stored differently. It seems to me a bit confusing.

*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/&gt;

Le 24/03/2023 à 15:29, Juan Luis Rodriguez Ponce a écrit :

If you don't specify anything else the config directory will be inside the data directory. However you can customize the location of the config directory [1] and point to the directory in the webapps folder using the geonetwork.config.dir propertty or GEONETWOR_CONFIG_DIR environment variable .

[1] https://www.geonetwork-opensource.org/manuals/4.0.x/en/install-guide/customizing-data-directory.html#advanced-data-directory-configuration

<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 14:14:25 +0100 *Jean Pommier <jean.pommier@anonymised.com>* wrote ---

    hi Juan Luis,

    thanks for the explanation

    Wait... there is a config directory in data/data/resources, it's
    different from data/config/ ? Why not in data/config then ? or
    data/data/resources/doc rather than config. It's very confusing
    all this

    *Jean Pommier -- pi-Geosolutions*

    Ingénieur, consultant indépendant

    Tél. : (+33) 6 09 23 21 36
    E-mail : jp@anonymised.com <mailto:jp@anonymised.com>
    Web : www.pi-geosolutions.fr <http://www.pi-geosolutions.fr>
    linkedin : jean-pommier <https://www.linkedin.com/in/jean-pommier/&gt;

    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
        <https://github.com/geonetwork/core-geonetwork/pull/6559&gt;
        [1]
        https://github.com/geonetwork/core-geonetwork/blob/4.2.3/web/src/main/webapp/WEB-INF/data/data/resources/config/manual.json
        <https://github.com/geonetwork/core-geonetwork/blob/4.2.3/web/src/main/webapp/WEB-INF/data/data/resources/config/manual.json&gt;

        <https://www.geocat.net>

        Juan Luis Rodriguez Ponce
        E-mail: juanluisrp@anonymised.com <mailto: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>
        <mailto: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 <mailto:jp@anonymised.com>
            Web : www.pi-geosolutions.fr
            <http://www.pi-geosolutions.fr>
            <http://www.pi-geosolutions.fr
            <http://www.pi-geosolutions.fr>>
            linkedin : jean-pommier
            <https://www.linkedin.com/in/jean-pommier/
            <https://www.linkedin.com/in/jean-pommier/&gt;&gt;

            _______________________________________________
            GeoNetwork-users mailing list
            GeoNetwork-users@lists.sourceforge.net
            <mailto:GeoNetwork-users@lists.sourceforge.net>
            https://lists.sourceforge.net/lists/listinfo/geonetwork-users
            <https://lists.sourceforge.net/lists/listinfo/geonetwork-users&gt;
            GeoNetwork OpenSource is maintained at
            http://sourceforge.net/projects/geonetwork
            <http://sourceforge.net/projects/geonetwork&gt;