Geonetwork Upgrade from 3.0.3 to 3.4.4

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Geonetwork Upgrade from 3.0.3 to 3.4.4

Ndeville
Hello everyone,

I'm trying to upgrade the version of geonetwork we use from 3.0.3 to 3.4.4
to benefit from all the improvement that have been added.
However I'm struggling to upgrade while keeping all the metadata records,
the users accounts and the database.

For the metadata records, I tried to copy/paste the /data folder in WEF-INF,
but I loose the users account and part of the metadata files (the ones that
are not harvested from somewhere else).
For the database I made a copy of the one I used (h2 database) and I tried
to change the database link in jdbc.properties of the newly installed
version but I get errors messages too.

Is there somewhere a guide that summarize the steps to follow? The manual on
the geonetwork website is unfortunately not really helpful at the moment.
https://geonetwork-opensource.org/manuals/3.4.x/is/maintainer-guide/updating/manual-update.html

Thanks for your help,
Nicolas



--
Sent from: http://osgeo-org.1560.x6.nabble.com/GeoNetwork-users-f3860293.html


_______________________________________________
GeoNetwork-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork
Reply | Threaded
Open this post in threaded view
|

Re: Geonetwork Upgrade from 3.0.3 to 3.4.4

Ndeville
Hello again,

I'm sure I'm not the first one to struggle to update Geonetwork ;) !!

I see in the source code of the geonetwork 3.4 there are shell scripts
call update-version but those script disappear when the program is
compiled...

My version on the prod server is 3.0.3 and I would like to go to 3.4.4.

I'm not an IT specialist (although learning a lot trying to upgrade
geonetwork and compiling a new version with ISO19115-3 plugin) so a few
hints would be much appreciated!

Thanks,

Have a nice day,

Nicolas

On 28/01/19 10:12, Ndeville wrote:

> Hello everyone,
>
> I'm trying to upgrade the version of geonetwork we use from 3.0.3 to 3.4.4
> to benefit from all the improvement that have been added.
> However I'm struggling to upgrade while keeping all the metadata records,
> the users accounts and the database.
>
> For the metadata records, I tried to copy/paste the /data folder in WEF-INF,
> but I loose the users account and part of the metadata files (the ones that
> are not harvested from somewhere else).
> For the database I made a copy of the one I used (h2 database) and I tried
> to change the database link in jdbc.properties of the newly installed
> version but I get errors messages too.
>
> Is there somewhere a guide that summarize the steps to follow? The manual on
> the geonetwork website is unfortunately not really helpful at the moment.
> https://geonetwork-opensource.org/manuals/3.4.x/is/maintainer-guide/updating/manual-update.html
>
> Thanks for your help,
> Nicolas
>
>
>
> --
> Sent from: http://osgeo-org.1560.x6.nabble.com/GeoNetwork-users-f3860293.html
>
>
> _______________________________________________
> GeoNetwork-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/geonetwork-users
> GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork

--
Nicolas de Ville
Belgian Marine Data Centre (BMDC)
OD-Nature, Royal Belgian Institute of Natural Sciences
02/627.42.79
www.bmdc.be
geonetwork.bmdc.be


_______________________________________________
GeoNetwork-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork
Reply | Threaded
Open this post in threaded view
|

Re: Geonetwork Upgrade from 3.0.3 to 3.4.4

Jose Garcia
Hi

The script you indicate it's for development only, to create new releases.

To upgrade the database from old version to newer version, if you setup the
new version of GeoNetwork to point to the database and startup GeoNetwork,
it should be updated automatically.

But it's true that the upgrade process specially if upgrading from old
versions is not as reliable as should be. If there's any error upgrading
the database should appear in the log file, please post it here to check
the error(s) reported.

Regards,
Jose García

On Wed, Jan 30, 2019 at 5:03 PM Nicolas De Ville de Goyet <
[hidden email]> wrote:

> Hello again,
>
> I'm sure I'm not the first one to struggle to update Geonetwork ;) !!
>
> I see in the source code of the geonetwork 3.4 there are shell scripts
> call update-version but those script disappear when the program is
> compiled...
>
> My version on the prod server is 3.0.3 and I would like to go to 3.4.4.
>
> I'm not an IT specialist (although learning a lot trying to upgrade
> geonetwork and compiling a new version with ISO19115-3 plugin) so a few
> hints would be much appreciated!
>
> Thanks,
>
> Have a nice day,
>
> Nicolas
>
> On 28/01/19 10:12, Ndeville wrote:
> > Hello everyone,
> >
> > I'm trying to upgrade the version of geonetwork we use from 3.0.3 to
> 3.4.4
> > to benefit from all the improvement that have been added.
> > However I'm struggling to upgrade while keeping all the metadata records,
> > the users accounts and the database.
> >
> > For the metadata records, I tried to copy/paste the /data folder in
> WEF-INF,
> > but I loose the users account and part of the metadata files (the ones
> that
> > are not harvested from somewhere else).
> > For the database I made a copy of the one I used (h2 database) and I
> tried
> > to change the database link in jdbc.properties of the newly installed
> > version but I get errors messages too.
> >
> > Is there somewhere a guide that summarize the steps to follow? The
> manual on
> > the geonetwork website is unfortunately not really helpful at the moment.
> >
> https://geonetwork-opensource.org/manuals/3.4.x/is/maintainer-guide/updating/manual-update.html
> >
> > Thanks for your help,
> > Nicolas
> >
> >
> >
> > --
> > Sent from:
> http://osgeo-org.1560.x6.nabble.com/GeoNetwork-users-f3860293.html
> >
> >
> > _______________________________________________
> > GeoNetwork-users mailing list
> > [hidden email]
> > https://lists.sourceforge.net/lists/listinfo/geonetwork-users
> > GeoNetwork OpenSource is maintained at
> http://sourceforge.net/projects/geonetwork
>
> --
> Nicolas de Ville
> Belgian Marine Data Centre (BMDC)
> OD-Nature, Royal Belgian Institute of Natural Sciences
> 02/627.42.79
> www.bmdc.be
> geonetwork.bmdc.be
>
>
> _______________________________________________
> GeoNetwork-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/geonetwork-users
> GeoNetwork OpenSource is maintained at
> http://sourceforge.net/projects/geonetwork
>


--













*Vriendelijke groeten / Kind regards,Jose García
<http://www.geocat.net/>Veenderweg 136721 WD BennekomThe NetherlandsT: +31
(0)318 416664 <+31318416664> <https://www.facebook.com/geocatbv>
<https://twitter.com/geocat_bv>
<https://plus.google.com/u/1/+GeocatNetbv/posts>Please consider the
environment before printing this email.*

_______________________________________________
GeoNetwork-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork
Reply | Threaded
Open this post in threaded view
|

Re: Geonetwork Upgrade from 3.0.3 to 3.4.4

zer0mode
In reply to this post by Ndeville
It might help first running a freshly deployed version. Once you're certain
that it launches correctly on your system, you start with configuring to
plug the existing DB.

Verify user permissions once you copy the data folder. tomcat should have
the rights over those contents.



--
Sent from: http://osgeo-org.1560.x6.nabble.com/GeoNetwork-users-f3860293.html


_______________________________________________
GeoNetwork-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork
Reply | Threaded
Open this post in threaded view
|

Re: Geonetwork Upgrade from 3.0.3 to 3.4.4

Ndeville
Hello,

Thanks for your input.
I managed to upgrade while keeping the data directory and the database.
To do that I used the version 3.6 of geonetwork.

- I add the path to the data directory in the
/core/src/main/resources/config-spring-geonetwork.xml file
- additionally I added the ISO19115-3 plugin with the add-schema.sh file

Then I compiled the war file

- Finally I changed the database information in the jdbc.properties file
(name, pwd, path)

And now it seems I have every info from my previous GN in the new version.

Cheers,



--
Sent from: http://osgeo-org.1560.x6.nabble.com/GeoNetwork-users-f3860293.html


_______________________________________________
GeoNetwork-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork