[GeoNode-users] migration suggestions
Alessio Fabiani
alessio.fabiani at geo-solutions.it
Fri Oct 25 08:25:58 PDT 2019
Hi Eugenio,
so, the thing is that GeoNode 2.4 and 2.10 are barely compatible. Upgrading
the old version, even the look and feel, basically will require you to redo
almost everything.
My suggestion was to basically update only GeoServer and the GeoServer db,
start a GeoNode 2.10.x from scratch and apply the l&f customizations, then
run the updatelayers command.
The updatelayers command will configure the layers into GeoNode and
basically will update:
- title and abstract
- keywords
- style
All the other metadata fields must be set manually.
Trying to restore the databases is feasible, but requires a deep knowledge
of Django, GeoNode model and how migration works.
In this latter case, you will need not only to patch the model, but also to
update manually the "django_contentypes" in order to fixup the guardians
rules, due to the model polymorphism implementation of GeoNode.
Il giorno ven 25 ott 2019 alle ore 16:58 Eugenio Trumpy <
frippe12573 at hotmail.com> ha scritto:
> Hi Alessio,
>
> thank you for your prompt answer. However, I have a doubts(I apologise if
> it is stupid) about your hints:
>
> 1. for metadata do you mean the postgresql db? in case of yes, what do
> you mean with 'no much', I have 42 layers in 'geonode_data' and 20 maps 116
> layers and a couple of users in 'geonode' pgsql dbs. So can I dump and
> restore both databases? or the db structure is changed, so that I need a
> special procedure?
> 2. If I port the data only by geoserver, what I have after the
> updatelayers in the pgsql dbs? no metadata I presume, or only basic info
> taken from the old geoserver?
> 3. What about the porting of the look and feel of the sites I have?
> just copy the codes?
>
> Thanks a lot,
>
> Eugenio
> ------------------------------
> *Da:* Alessio Fabiani <alessio.fabiani at geo-solutions.it>
> *Inviato:* venerdì 25 ottobre 2019 16:27
> *A:* Eugenio Trumpy <frippe12573 at hotmail.com>
> *Cc:* geonode-users at lists.osgeo.org <geonode-users at lists.osgeo.org>
> *Oggetto:* Re: [GeoNode-users] migration suggestions
>
> Hello Eugenio,
> in the case you have no much metadata to configure and few users, my *hot*
> suggestion is to pass through GeoServer in order to port your datasets.
>
> So the steps would be the following ones:
>
> 1. Setup a new GeoServer 2.15.2 (
> https://build.geo-solutions.it/geonode/geoserver/latest/geoserver-2.15.2.war
> )
> 2. Transfer the Data Dir from the old GeoServer to the new one (I strongly
> suggest to backport **only** the workspace, datasets and styles, not the
> security subsystem)
> 3. Setup the new GeoNode instance
> 4. Run the "updatelayers" management command (see
> http://docs.geonode.org/en/master/admin/mgmt_commands/index.html#management-command-updatelayers
> )
> 5. Update manually the missing permissions and metadata
>
>
> Il giorno ven 25 ott 2019 alle ore 16:08 Eugenio Trumpy <
> frippe12573 at hotmail.com> ha scritto:
>
> Dear all,
>
> I have a running geonode at version 2.4 dev20160525015826 configured as
> multisite in a ubuntu server 16.04.6 LTS.
> The system administrator suggested me to update the server OS to 18.04.3
> LTS for many reasons that are not the topic of this email.
>
> I would like to know if there are suggested procedures to migrate my
> multisite project, data, ... to a newer version of geonode
> (the most update seems to be the vs.2.10).
> Just to let you know, for the previous installation I followed the custom
> installation,
> because in the server were already running postgresql, tomcat, and so on...
> Moreover, as said, I set the project to be used as multi-sites.
>
> So I need:
>
> 1. to install a fresh geonode version
> 2. set-up the multi-sites
> 3. dump the data from version 2.4
> 4. load the data in the new version
>
> Any hints or recommendations?
>
> Thanks,
>
> Eugenio
> _______________________________________________
> geonode-users mailing list
> geonode-users at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/geonode-users
>
>
>
> --
>
> ==
>
> GeoServer Professional Services from the experts! Visit
> http://goo.gl/it488V for more information.
> ==
> Ing. Alessio Fabiani
>
> @alfa7691
> Founder/Technical Lead
>
>
> GeoSolutions S.A.S.
> Via di Montramito 3/A - 55054 Massarosa (LU) - Italy
> phone: +39 0584 962313
> fax: +39 0584 1660272
> mob: +39 331 6233686
>
>
> http://www.geo-solutions.it
> http://twitter.com/geosolutions_it
> -------------------------------------------------------
>
> Con riferimento alla normativa sul trattamento dei dati personali (Reg. UE
> 2016/679 - Regolamento generale sulla protezione dei dati “GDPR”), si
> precisa che ogni circostanza inerente alla presente email (il suo
> contenuto, gli eventuali allegati, etc.) è un dato la cui conoscenza è
> riservata al/i solo/i destinatario/i indicati dallo scrivente. Se il
> messaggio Le è giunto per errore, è tenuta/o a cancellarlo, ogni altra
> operazione è illecita. Le sarei comunque grato se potesse darmene notizia.
>
>
> This email is intended only for the person or entity to which it is
> addressed and may contain information that is privileged, confidential or
> otherwise protected from disclosure. We remind that - as provided by
> European Regulation 2016/679 “GDPR” - copying, dissemination or use of this
> e-mail or the information herein by anyone other than the intended
> recipient is prohibited. If you have received this email by mistake, please
> notify us immediately by telephone or e-mail.
>
--
==
GeoServer Professional Services from the experts! Visit http://goo.gl/it488V
for more information.
==
Ing. Alessio Fabiani
@alfa7691
Founder/Technical Lead
GeoSolutions S.A.S.
Via di Montramito 3/A - 55054 Massarosa (LU) - Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 331 6233686
http://www.geo-solutions.it
http://twitter.com/geosolutions_it
-------------------------------------------------------
Con riferimento alla normativa sul trattamento dei dati personali (Reg. UE
2016/679 - Regolamento generale sulla protezione dei dati “GDPR”), si
precisa che ogni circostanza inerente alla presente email (il suo
contenuto, gli eventuali allegati, etc.) è un dato la cui conoscenza è
riservata al/i solo/i destinatario/i indicati dallo scrivente. Se il
messaggio Le è giunto per errore, è tenuta/o a cancellarlo, ogni altra
operazione è illecita. Le sarei comunque grato se potesse darmene notizia.
This email is intended only for the person or entity to which it is
addressed and may contain information that is privileged, confidential or
otherwise protected from disclosure. We remind that - as provided by
European Regulation 2016/679 “GDPR” - copying, dissemination or use of this
e-mail or the information herein by anyone other than the intended
recipient is prohibited. If you have received this email by mistake, please
notify us immediately by telephone or e-mail.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20191025/1b0af48c/attachment-0001.html>
More information about the geonode-users
mailing list