[GeoNetwork-users] batch import

Dear Jean,

tried to do what you suggest: I exported a backup in a zip file from the old geonetwork running instance,
then I set up the new version and I restored the backup renaming my backup.zip in backup.mef.
The procedure went well but unfortunately the categories were not reported.

I don't know where I was wrong...

Any hints would be helpful!

regards

E.

From: jean.pommier@anonymised.com
To: geonetwork-users@lists.sourceforge.net
Date: Tue, 4 Nov 2014 12:34:56 +0100
Subject: Re: [GeoNetwork-users] batch import

Hi,

Did you try an upgrade first ?
(http://geonetwork-opensource.org/manuals/2.10.3/eng/users/quickstartguide/installing/index.html#upgrading-to-a-new-version)
I guess it would be the preferred way...

Apart from that, MEF format (also called the ZIP fomat when doing an
export) supports GN categories, so it should be kept, yes.
I don't know with batch import, but using the Metadata insert menu entry
(if your ZIP file is not too big), it should work. Use the MEF format.

Cheers

Jean

Dear Jean and all,

as Jean supposed I had something wrong.
I had the category on GN slightly different from those stored in the backup.zip file.

I retrieved the different categories from each info.xml file in the backup (I used 'sed' command),
then I modified the categories in GN pay attention to have the same name (capital letters, spaces, and so on),
eventually I restored the backup ad the categories were maintained.

By the way now I have a new problem on batch import: the problem now is on the file uploaded for each metadata in the
old version of GN. After the restore I'm not able to download the files.
I guess should be a problem on the path, but I'm not sure...

GN store the uploaded file in:

/WEB-INF/data/data/metadata_data/

have I to only copy the old metadata_data dir in the new installation??

I'm afraid not...

Any comments or hints?

Regards

E.

Date: Wed, 5 Nov 2014 15:06:48 +0100
From: jean.pommier@anonymised.com
To: frippe12573@anonymised.com
Subject: Re: [GeoNetwork-users] batch import

    Hi Eugenion,

    Apparently it went well for Jo (see his last message, same thread),
    so I guess, you had something wrong.

    Is it possible you didn't really re-create the categories identical
    ?

    Maybe you should check how they are stored in the MEF file (since
    it's a ZIP, you ca unzip it and explore its content). And try
    exporting something from your new GN instance and check the
    categories exported from this new instance are called the same ?

    Cheers,

    Jean

Hi Eugenio,

Normally, the files to download were integrated in the MEF (ZIP) files. Check it.
My guess is the URL has changed, from your old geonetwork instance to the new one (either the webapp name, or the port). When you perform an import, I believe Geonetwork doesn't fix the URL, so it will still try to get the files using the old URL, instead of the new one.
Look at the URL it looks for.

If this is the case, you can directly make the change in the DB, it is often the quickest way. Which DB are you using ?

Jean

Le 10/11/2014 10:46, Eugenio Trumpy a écrit :

Dear Jean and all,

as Jean supposed I had something wrong.
I had the category on GN slightly different from those stored in the backup.zip file.

I retrieved the different categories from each info.xml file in the backup (I used 'sed' command),
then I modified the categories in GN pay attention to have the same name (capital letters, spaces, and so on),
eventually I restored the backup ad the categories were maintained.

By the way now I have a new problem on batch import: the problem now is on the file uploaded for each metadata in the
old version of GN. After the restore I'm not able to download the files.
I guess should be a problem on the path, but I'm not sure...

GN store the uploaded file in:

/WEB-INF/data/data/metadata_data/

have I to only copy the old metadata_data dir in the new installation??

I'm afraid not...

Any comments or hints?

Regards

E.

------------------------------------------------------------------------
Date: Wed, 5 Nov 2014 15:06:48 +0100
From: jean.pommier@anonymised.com
To: frippe12573@anonymised.com
Subject: Re: [GeoNetwork-users] batch import

Hi Eugenion,

Apparently it went well for Jo (see his last message, same thread), so I guess, you had something wrong.
Is it possible you didn't really re-create the categories identical ?
Maybe you should check how they are stored in the MEF file (since it's a ZIP, you ca unzip it and explore its content). And try exporting something from your new GN instance and check the categories exported from this new instance are called the same ?
Cheers,

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

Hi Jean,

I checked the MEF (zip) file, but inside there are not any file together with the metadata.
Of course the host name and port has been changed, for instance before in the old GN instance we had name_host:8080 now,
in the new GN we proxed the port so we have only name_host, moreover the name of the app is the same in both istances (i.e., geonetwork).

In the metadata in the old GN I had this link for download data:

http://old_host_name:8080/geonetwork/srv/en/resources.get?id=37222&fname=pozzi_sorgenti_S_Cesarea.zip&access=private

and now I have already modified it with the new host name in:

http://new_host_name/geonetwork/srv/en/resources.get?id=37222&fname=pozzi_sorgenti_S_Cesarea.zip&access=private

What I have noticed is that the file associated with the metadata are stored in /geonetwork/WEB-INF/data/ in the old GN,
but on restoring the backup in the new GN I don't see them in the same dir.

By the way do you know a way to import also the files associated to the metadata?

regards

Eugenio

Date: Tue, 11 Nov 2014 19:53:45 +0100
From: jean.pommier@anonymised.com
To: frippe12573@anonymised.com; geonetwork-users@lists.sourceforge.net
Subject: Re: [GeoNetwork-users] batch import

    Hi Eugenio,

    Normally, the files to download were integrated in the MEF (ZIP)
    files. Check it.

    My guess is the URL has changed, from your old geonetwork instance
    to the new one (either the webapp name, or the port). When you
    perform an import, I believe Geonetwork doesn't fix the URL, so it
    will still try to get the files using the old URL, instead of the
    new one.

    Look at the URL it looks for.

    If this is the case, you can directly make the change in the DB, it
    is often the quickest way. Which DB are you using ?

    Jean

    Le 10/11/2014 10:46, Eugenio Trumpy a
      écrit :

      Dear Jean and all,

        as Jean supposed I had something wrong.

        I had the category on GN slightly different from those stored in
        the backup.zip file.

        I retrieved the different categories from each info.xml file in
        the backup (I used 'sed' command),

        then I modified the categories in GN pay attention to have the
        same name (capital letters, spaces, and so on),

        eventually I restored the backup ad the categories were
        maintained.

        By the way now I have a new problem on batch import: the problem
        now is on the file uploaded for each metadata in the

        old version of GN. After the restore I'm not able to download
        the files.

        I guess should be a problem on the path, but I'm not sure...

        GN store the uploaded file in:

        /WEB-INF/data/data/metadata_data/

        have I to only copy the old metadata_data dir in the new
        installation??

        I'm afraid not...

        Any comments or hints?

        Regards

        E.

          Date: Wed, 5 Nov 2014 15:06:48 +0100

          From: jean.pommier@anonymised.com

          To: frippe12573@anonymised.com

          Subject: Re: [GeoNetwork-users] batch import

          Hi Eugenion,

          Apparently it went well for Jo (see his last message, same
          thread), so I guess, you had something wrong.

          Is it possible you didn't really re-create the categories
          identical ?

          Maybe you should check how they are stored in the MEF file
          (since it's a ZIP, you ca unzip it and explore its content).
          And try exporting something from your new GN instance and
          check the categories exported from this new instance are
          called the same ?

          Cheers,

          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

(attachments)

tagCloud.png

Dear all,

just to be clear I changed the object of the topic since the main issues on batch import are now solved.
However, as I reported in the last email here below, I have some problems on the files uploaded for each metadata.

The previous situation was: in my old GN I had about 580 metadata and some of them had the related uploaded
zip file. I think GN stores the uploaded file in WEB-INF/data/data/metadata_data but I don't know what happens in the export procedure.
Or does GN store the uploaded file in its mckoi db?

Anyway I exported all the metadata from the old GN and I restored the backup on the new GN.
Of course I changed the URL in the OnLineResources tag of the backuped metadata according to the new name server.

I suspect that the backup of the old GN was not complete, it missed the dir metadata_data where the uploaded zip should be.

What about?

Regards

Eugenio

Date: Tue, 11 Nov 2014 19:53:45 +0100
From: jean.pommier@anonymised.com
To: frippe12573@anonymised.com; geonetwork-users@lists.sourceforge.net
Subject: Re: [GeoNetwork-users] batch import

    Hi Eugenio,

    Normally, the files to download were integrated in the MEF (ZIP)
    files. Check it.

    My guess is the URL has changed, from your old geonetwork instance
    to the new one (either the webapp name, or the port). When you
    perform an import, I believe Geonetwork doesn't fix the URL, so it
    will still try to get the files using the old URL, instead of the
    new one.

    Look at the URL it looks for.

    If this is the case, you can directly make the change in the DB, it
    is often the quickest way. Which DB are you using ?

    Jean

    Le 10/11/2014 10:46, Eugenio Trumpy a
      écrit :

      Dear Jean and all,

        as Jean supposed I had something wrong.

        I had the category on GN slightly different from those stored in
        the backup.zip file.

        I retrieved the different categories from each info.xml file in
        the backup (I used 'sed' command),

        then I modified the categories in GN pay attention to have the
        same name (capital letters, spaces, and so on),

        eventually I restored the backup ad the categories were
        maintained.

        By the way now I have a new problem on batch import: the problem
        now is on the file uploaded for each metadata in the

        old version of GN. After the restore I'm not able to download
        the files.

        I guess should be a problem on the path, but I'm not sure...

        GN store the uploaded file in:

        /WEB-INF/data/data/metadata_data/

        have I to only copy the old metadata_data dir in the new
        installation??

        I'm afraid not...

        Any comments or hints?

        Regards

        E.

          Date: Wed, 5 Nov 2014 15:06:48 +0100

          From: jean.pommier@anonymised.com

          To: frippe12573@anonymised.com

          Subject: Re: [GeoNetwork-users] batch import

          Hi Eugenion,

          Apparently it went well for Jo (see his last message, same
          thread), so I guess, you had something wrong.

          Is it possible you didn't really re-create the categories
          identical ?

          Maybe you should check how they are stored in the MEF file
          (since it's a ZIP, you ca unzip it and explore its content).
          And try exporting something from your new GN instance and
          check the categories exported from this new instance are
          called the same ?

          Cheers,

          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

(attachments)

tagCloud.png

Hi Eugenio,

Yes, GN stores the files in WEB-INF/data/data/metadata_data unless you tell it to place the metadata_data folder somewhere else.
When you export some MEF files, the associated files should be exported with them. If you unzip the MEF archive, you'd find a 'public' folder, that will contain the thumbnail and picture, and a 'private' folder containing you associated files.
Please check that you have the files in this private folder (for metadata that do have associated file, of course)

Is your new instance accessible on internet ? I'd like to check something. As I told you, I would say that the issue is a change in the URL to access the catalog (and thus, to access the files) between your old instance and the new one.

Jean

Le 17/11/2014 10:30, Eugenio Trumpy a écrit :

Dear all,

just to be clear I changed the object of the topic since the main issues on batch import are now solved.
However, as I reported in the last email here below, I have some problems on the files uploaded for each metadata.

The previous situation was: in my old GN I had about 580 metadata and some of them had the related uploaded
zip file. I think GN stores the uploaded file in WEB-INF/data/data/metadata_data but I don't know what happens in the export procedure.
Or does GN store the uploaded file in its mckoi db?

Anyway I exported all the metadata from the old GN and I restored the backup on the new GN.
Of course I changed the URL in the OnLineResources tag of the backuped metadata according to the new name server.

I suspect that the backup of the old GN was not complete, it missed the dir metadata_data where the uploaded zip should be.

What about?

Regards

Eugenio

------------------------------------------------------------------------
Date: Tue, 11 Nov 2014 19:53:45 +0100
From: jean.pommier@anonymised.com
To: frippe12573@anonymised.com; geonetwork-users@lists.sourceforge.net
Subject: Re: [GeoNetwork-users] batch import

Hi Eugenio,

Normally, the files to download were integrated in the MEF (ZIP) files. Check it.
My guess is the URL has changed, from your old geonetwork instance to the new one (either the webapp name, or the port). When you perform an import, I believe Geonetwork doesn't fix the URL, so it will still try to get the files using the old URL, instead of the new one.
Look at the URL it looks for.

If this is the case, you can directly make the change in the DB, it is often the quickest way. Which DB are you using ?

Jean

Le 10/11/2014 10:46, Eugenio Trumpy a écrit :

    Dear Jean and all,

    as Jean supposed I had something wrong.
    I had the category on GN slightly different from those stored in
    the backup.zip file.

    I retrieved the different categories from each info.xml file in
    the backup (I used 'sed' command),
    then I modified the categories in GN pay attention to have the
    same name (capital letters, spaces, and so on),
    eventually I restored the backup ad the categories were maintained.

    By the way now I have a new problem on batch import: the problem
    now is on the file uploaded for each metadata in the
    old version of GN. After the restore I'm not able to download the
    files.
    I guess should be a problem on the path, but I'm not sure...

    GN store the uploaded file in:

    /WEB-INF/data/data/metadata_data/

    have I to only copy the old metadata_data dir in the new
    installation??

    I'm afraid not...

    Any comments or hints?

    Regards

    E.

    ------------------------------------------------------------------------
    Date: Wed, 5 Nov 2014 15:06:48 +0100
    From: jean.pommier@anonymised.com
    <mailto:jean.pommier@anonymised.com>
    To: frippe12573@anonymised.com <mailto:frippe12573@anonymised.com>
    Subject: Re: [GeoNetwork-users] batch import

    Hi Eugenion,

    Apparently it went well for Jo (see his last message, same
    thread), so I guess, you had something wrong.
    Is it possible you didn't really re-create the categories identical ?
    Maybe you should check how they are stored in the MEF file (since
    it's a ZIP, you ca unzip it and explore its content). And try
    exporting something from your new GN instance and check the
    categories exported from this new instance are called the same ?
    Cheers,

    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>

--

*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

Dear Jean,

starting from the fact tha GN store the uploaded file in WEB-INF/data/data/metadata_data,
I see that in my GN backup (I mean the old GN dir deployed in app server) there is no that directory
but I have only WEB-INF/data/data/removed where there are other subdir containing *.mef file.

On the other hand the backup of the metadata (I made it from the running old GN using 'export' command),
doesn 't contain any file in the 'private' directory.

I guess that's why on restoring the backup on the new GN I have no the resources needed for download.

Could be possible? How could solve this issue?

Regard

Eugenio

Date: Mon, 17 Nov 2014 10:46:43 +0100
From: jean.pommier@anonymised.com
To: frippe12573@anonymised.com; geonetwork-users@lists.sourceforge.net
Subject: Re: metadata uploaded file on GN migration was: batch import

    Hi Eugenio,

    Yes, GN stores the files in WEB-INF/data/data/metadata_data unless
    you tell it to place the metadata_data folder somewhere else.

    When you export some MEF files, the associated files should be
    exported with them. If you unzip the MEF archive, you'd find a
    'public' folder, that will contain the thumbnail and picture, and a
    'private' folder containing you associated files.

    Please check that you have the files in this private folder (for
    metadata that do have associated file, of course)

    Is your new instance accessible on internet ? I'd like to check
    something. As I told you, I would say that the issue is a change in
    the URL to access the catalog (and thus, to access the files)
    between your old instance and the new one.

    Jean

    Le 17/11/2014 10:30, Eugenio Trumpy a
      écrit :

      Dear all,

        just to be clear I changed the object of the topic since the
        main issues on batch import are now solved.

        However, as I reported in the last email here below, I have some
        problems on the files uploaded for each metadata.

        The previous situation was: in my old GN I had about 580
        metadata and some of them had the related uploaded

        zip file. I think GN stores the uploaded file in
        WEB-INF/data/data/metadata_data but I don't know what happens in
        the export procedure.

        Or does GN store the uploaded file in its mckoi db?

        Anyway I exported all the metadata from the old GN and I
        restored the backup on the new GN.

        Of course I changed the URL in the OnLineResources tag of the
        backuped metadata according to the new name server.

        I suspect that the backup of the old GN was not complete, it
        missed the dir metadata_data where the uploaded zip should be.

        What about?

        Regards

        Eugenio

Wow, it looks weird. On your old instance, was it still possible to download the data ? Or see the thumbnail ? Are you sure you didn't externalize the geonetwork datadir ? Can you still run the old instance ? First think to check would be that the old instance works properly...
I'm not even sure Geonetwork would start without having a metadata_data folder

If not, it looks like something bad happened.

Le 17/11/2014 12:16, Eugenio Trumpy a écrit :

Dear Jean,

starting from the fact tha GN store the uploaded file in WEB-INF/data/data/metadata_data,
I see that in my GN backup (I mean the old GN dir deployed in app server) there is no that directory
but I have only WEB-INF/data/data/removed where there are other subdir containing *.mef file.

On the other hand the backup of the metadata (I made it from the running old GN using 'export' command),
doesn 't contain any file in the 'private' directory.

I guess that's why on restoring the backup on the new GN I have no the resources needed for download.

Could be possible? How could solve this issue?

Regard

Eugenio

------------------------------------------------------------------------
Date: Mon, 17 Nov 2014 10:46:43 +0100
From: jean.pommier@anonymised.com
To: frippe12573@anonymised.com; geonetwork-users@lists.sourceforge.net
Subject: Re: metadata uploaded file on GN migration was: batch import

Hi Eugenio,

Yes, GN stores the files in WEB-INF/data/data/metadata_data unless you tell it to place the metadata_data folder somewhere else.
When you export some MEF files, the associated files should be exported with them. If you unzip the MEF archive, you'd find a 'public' folder, that will contain the thumbnail and picture, and a 'private' folder containing you associated files.
Please check that you have the files in this private folder (for metadata that do have associated file, of course)

Is your new instance accessible on internet ? I'd like to check something. As I told you, I would say that the issue is a change in the URL to access the catalog (and thus, to access the files) between your old instance and the new one.

Jean

Le 17/11/2014 10:30, Eugenio Trumpy a écrit :

    Dear all,

    just to be clear I changed the object of the topic since the main
    issues on batch import are now solved.
    However, as I reported in the last email here below, I have some
    problems on the files uploaded for each metadata.

    The previous situation was: in my old GN I had about 580 metadata
    and some of them had the related uploaded
    zip file. I think GN stores the uploaded file in
    WEB-INF/data/data/metadata_data but I don't know what happens in
    the export procedure.
    Or does GN store the uploaded file in its mckoi db?

    Anyway I exported all the metadata from the old GN and I restored
    the backup on the new GN.
    Of course I changed the URL in the OnLineResources tag of the
    backuped metadata according to the new name server.

    I suspect that the backup of the old GN was not complete, it
    missed the dir metadata_data where the uploaded zip should be.

    What about?

    Regards

    Eugenio

    ------------------------------------------------------------------------

--

*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

Thank you Jean,

I contacted the Sys Admin of the old GN, just this morning to check the old instance.

I will come back on you tomorrow morning I hope with some answer!

Thanks for now.

E.

Date: Mon, 17 Nov 2014 12:45:38 +0100
From: jean.pommier@anonymised.com
To: frippe12573@anonymised.com; geonetwork-users@lists.sourceforge.net
Subject: Re: metadata uploaded file on GN migration was: batch import

    Wow, it looks weird. On your old instance, was it still possible to
    download the data ? Or see the thumbnail ? Are you sure you didn't
    externalize the geonetwork datadir ? Can you still run the old
    instance ? First think to check would be that the old instance works
    properly...

    I'm not even sure Geonetwork would start without having a
    metadata_data folder

    If not, it looks like something bad happened.

    Le 17/11/2014 12:16, Eugenio Trumpy a
      écrit :

      Dear Jean,

        starting from the fact tha GN store the uploaded file in
        WEB-INF/data/data/metadata_data,

        I see that in my GN backup (I mean the old GN dir deployed in
        app server) there is no that directory

        but I have only WEB-INF/data/data/removed where there are other
        subdir containing *.mef file.

        On the other hand the backup of the metadata (I made it from the
        running old GN using 'export' command),

        doesn 't contain any file in the 'private' directory.

        I guess that's why on restoring the backup on the new GN I have
        no the resources needed for download.

        Could be possible? How could solve this issue?

        Regard

        Eugenio

          Date: Mon, 17 Nov 2014 10:46:43 +0100

          From: jean.pommier@anonymised.com

          To: frippe12573@anonymised.com;
          geonetwork-users@lists.sourceforge.net

          Subject: Re: metadata uploaded file on GN migration was: batch
          import

          Hi Eugenio,

          Yes, GN stores the files in WEB-INF/data/data/metadata_data
          unless you tell it to place the metadata_data folder somewhere
          else.

          When you export some MEF files, the associated files should be
          exported with them. If you unzip the MEF archive, you'd find a
          'public' folder, that will contain the thumbnail and picture,
          and a 'private' folder containing you associated files.

          Please check that you have the files in this private folder
          (for metadata that do have associated file, of course)

          Is your new instance accessible on internet ? I'd like to
          check something. As I told you, I would say that the issue is
          a change in the URL to access the catalog (and thus, to access
          the files) between your old instance and the new one.

          Jean

          Le 17/11/2014 10:30, Eugenio
            Trumpy a écrit :

            Dear all,

              just to be clear I changed the object of the topic since
              the main issues on batch import are now solved.

              However, as I reported in the last email here below, I
              have some problems on the files uploaded for each
              metadata.

              The previous situation was: in my old GN I had about 580
              metadata and some of them had the related uploaded

              zip file. I think GN stores the uploaded file in
              WEB-INF/data/data/metadata_data but I don't know what
              happens in the export procedure.

              Or does GN store the uploaded file in its mckoi db?

              Anyway I exported all the metadata from the old GN and I
              restored the backup on the new GN.

              Of course I changed the URL in the OnLineResources tag of
              the backuped metadata according to the new name server.

              I suspect that the backup of the old GN was not complete,
              it missed the dir metadata_data where the uploaded zip
              should be.

              What about?

              Regards

              Eugenio

    --

          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

Dear Jean and all,

eventually we took a look on the old GN instance, we discovered a data dir outside the GN,
that's why when I made the backup on the old instance in the new server I didn't found
any data related to the metadata (just to be clear: no files there were in the Private directory in
the exported metadata - I mean the file .zip (mef)).
The we migrated the data dir in the new instance of GN (in the new server) and everything went well,
in particular we put the data dir in the default data dir in: WEB-INF/data/data/metadata_data
and it worked fine!

I think everything is now ok, I can say that we made a complete migration from an old version (2.8.x),
to a new 2.10.3 in a new server for all the metadata (581) maintaining the also the correct categories.

Thanks to all

Eugenio

Date: Mon, 17 Nov 2014 12:45:38 +0100
From: jean.pommier@anonymised.com
To: frippe12573@anonymised.com; geonetwork-users@lists.sourceforge.net
Subject: Re: metadata uploaded file on GN migration was: batch import

    Wow, it looks weird. On your old instance, was it still possible to
    download the data ? Or see the thumbnail ? Are you sure you didn't
    externalize the geonetwork datadir ? Can you still run the old
    instance ? First think to check would be that the old instance works
    properly...

    I'm not even sure Geonetwork would start without having a
    metadata_data folder

    If not, it looks like something bad happened.

    Le 17/11/2014 12:16, Eugenio Trumpy a
      écrit :

      Dear Jean,

        starting from the fact tha GN store the uploaded file in
        WEB-INF/data/data/metadata_data,

        I see that in my GN backup (I mean the old GN dir deployed in
        app server) there is no that directory

        but I have only WEB-INF/data/data/removed where there are other
        subdir containing *.mef file.

        On the other hand the backup of the metadata (I made it from the
        running old GN using 'export' command),

        doesn 't contain any file in the 'private' directory.

        I guess that's why on restoring the backup on the new GN I have
        no the resources needed for download.

        Could be possible? How could solve this issue?

        Regard

        Eugenio

          Date: Mon, 17 Nov 2014 10:46:43 +0100

          From: jean.pommier@anonymised.com

          To: frippe12573@anonymised.com;
          geonetwork-users@lists.sourceforge.net

          Subject: Re: metadata uploaded file on GN migration was: batch
          import

          Hi Eugenio,

          Yes, GN stores the files in WEB-INF/data/data/metadata_data
          unless you tell it to place the metadata_data folder somewhere
          else.

          When you export some MEF files, the associated files should be
          exported with them. If you unzip the MEF archive, you'd find a
          'public' folder, that will contain the thumbnail and picture,
          and a 'private' folder containing you associated files.

          Please check that you have the files in this private folder
          (for metadata that do have associated file, of course)

          Is your new instance accessible on internet ? I'd like to
          check something. As I told you, I would say that the issue is
          a change in the URL to access the catalog (and thus, to access
          the files) between your old instance and the new one.

          Jean

          Le 17/11/2014 10:30, Eugenio
            Trumpy a écrit :

            Dear all,

              just to be clear I changed the object of the topic since
              the main issues on batch import are now solved.

              However, as I reported in the last email here below, I
              have some problems on the files uploaded for each
              metadata.

              The previous situation was: in my old GN I had about 580
              metadata and some of them had the related uploaded

              zip file. I think GN stores the uploaded file in
              WEB-INF/data/data/metadata_data but I don't know what
              happens in the export procedure.

              Or does GN store the uploaded file in its mckoi db?

              Anyway I exported all the metadata from the old GN and I
              restored the backup on the new GN.

              Of course I changed the URL in the OnLineResources tag of
              the backuped metadata according to the new name server.

              I suspect that the backup of the old GN was not complete,
              it missed the dir metadata_data where the uploaded zip
              should be.

              What about?

              Regards

              Eugenio

    --

          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

(attachments)

tagCloud.png