[GeoNode-users] [Geoserver-users] data dir migration from 2.7.x to 2.10.x
Eugenio Trumpy
frippe12573 at hotmail.com
Tue Apr 4 06:21:43 PDT 2017
Hi Alessio,
I lost my self among many attempts, so I started again:
* I deployed geoserver2.10 with my backuped data dir
* I checked:
* security\auth\geonodeAuthProvider
* security\filter\geonodeAnonymousFilter
* security\filter\geonodeCookieFilter
and they seem ok.
* restarted tomcat and I got: host parameter is null
I think this should be due to the different default setting of the authentication provider, what about?
My next step was to insert the data dir from the link you gave me http://build.geonode.org/geoserver/latest/ (data-2.10.x.zip)
and modify config.xml in security/auth/geonodeAuthProvider, I set the <baseurl>empty.
By the way in this way I went to the geoserver UI directly to set-up the authentication as the test version.
I was able to modify the 'authentication providers' in the 'Authentication, from provider chain I moved geonodeAuthProvider in Selected and I promote it at second place.
The I tried to modify 'data' since the well running geoserver test version has *.*.r * and *.*.w * whereas the geoserver 2.10 has *.*. r
and *.*. w GROUP_ADMIN,ROLE_ADMIN,ADMIN
If I tried to modify *.*. r I got this problem:
org.apache.wicket.WicketRuntimeException: Error attaching this container for rendering: [Palette [Component id = palette]]
Caused by: java.lang.RuntimeException: An error occurred while getting the model object for Component: [Palette [Component id = palette, page = org.geoserver.security.web.data.EditDataAccessRulePage, path = 11:form:roles:palette.Palette, isVisible = true, isVersioned = false], children = [Recorder [Component id = recorder]][Choices [Component id = choices]][Selection [Component id = selection]][PaletteButton [Component id = addButton]][PaletteButton [Component id = removeButton]][PaletteButton [Component id = moveUpButton]][PaletteButton [Component id = moveDownButton]][PaletteButton [Component id = addAllButton]][PaletteButton [Component id = removeAllButton]][Component id = availableHeader][Component id = selectedHeader]]
Am I going in the right direction or am I losing time?
In the latter case, maybe it would be batter to downgrade to 2.9.x?
What can you suggest?
E.
________________________________
Da: Alessio Fabiani <alessio.fabiani at geo-solutions.it>
Inviato: lunedì 3 aprile 2017 16.27
A: Eugenio Trumpy
Cc: Alessio Fabiani
Oggetto: Re: [Geoserver-users] data dir migration from 2.7.x to 2.10.x
Hmm, I'd suggest to get a copy of your old data dir and see if GeoServer is able to update it automatically.
In theory the only issues you should have should be on the "data/security". You can replace just this folder with the 2.10.x one from "http://build.geonode.org/geoserver/latest/" and than tune up the security configuration later from the GeoServer GUI.
The old GeoNode Authentication Providers still exist on the GeoServer distribution. You just need to diable the oauth2 providers and adjust the providers priority. You can use as a template an existent old running 2.7 version and do changes from GeoServer Admin GUI accordingly to that one.
Best Regards,
Alessio Fabiani.
==
GeoServer Professional Services from the experts!
Visit http://goo.gl/it488V for more information.
GeoSolutions Enterprise Services<http://goo.gl/it488V>
goo.gl
GeoSolutions offers enterprise support services to help you building enterprise-class Spatial Data Infrastructures leveraging on best-of-breed Open Source
==
Ing. Alessio Fabiani
@alfa7691
github<https://github.com/afabiani?tab=overview>
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://www.geo-solutions.it/>
http://twitter.com/geosolutions_it
-------------------------------------------------------
AVVERTENZE AI SENSI DEL D.Lgs. 196/2003
Le informazioni contenute in questo messaggio di posta elettronica e/o nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il loro utilizzo è consentito esclusivamente al destinatario del messaggio, per le finalità indicate nel messaggio stesso. Qualora riceviate questo messaggio senza esserne il destinatario, Vi preghiamo cortesemente di darcene notizia via e-mail e di procedere alla distruzione del messaggio stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso, divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od utilizzarlo per finalità diverse, costituisce comportamento contrario ai principi dettati dal D.Lgs. 196/2003.
The information in this message and/or attachments, is intended solely for the attention and use of the named addressee(s) and may be confidential or proprietary in nature or covered by the provisions of privacy act (Legislative Decree June, 30 2003, no.196 - Italy's New Data Protection Code).Any use not in accord with its purpose, any disclosure, reproduction, copying, distribution, or either dissemination, either whole or partial, is strictly forbidden except previous formal approval of the named addressee(s). If you are not the intended recipient, please contact immediately the sender by telephone, fax or e-mail and delete the information in this message that has been received in error. The sender does not give any warranty or accept liability as the content, accuracy or completeness of sent messages and accepts no responsibility for changes made after they were sent or for other risks which arise as a result of e-mail transmission, viruses, etc.
---------------------------------------------------------------------
On Mon, Apr 3, 2017 at 1:58 PM, Eugenio Trumpy <frippe12573 at hotmail.com<mailto:frippe12573 at hotmail.com>> wrote:
I restarted tomcat and then I was able to add the rule as you mentioned.
After that I leave blank the <baseUrl> in config.xml of auth/geonodeAuthProvider since I have geosites config.
I checked also geofence-server.properties and geofence-datasource-ovr.properties and are empty.
Here the geoserver log from the last restart:
https://paste.ubuntu.com/24306228/
Could I use the data dir deployed from geoserver2.10.x.war downloaded from http://build.geonode.org/geoserver/latest/ and include inside the children data dir I have in my backup?
Thank you again
Eugenio
________________________________
Da: Alessio Fabiani <alessio.fabiani at geo-solutions.it<mailto:alessio.fabiani at geo-solutions.it>>
Inviato: lunedì 3 aprile 2017 12.13
A: Eugenio Trumpy
Cc: Alessio Fabiani; geonode-users at lists.osgeo.org<mailto:geonode-users at lists.osgeo.org>
Oggetto: Re: [Geoserver-users] data dir migration from 2.7.x to 2.10.x
Mmm, in theory old providers should work. You will need to to set them manually. Maybe just upgrading the data dir from 2.7 should work with minor changes.
>From your stack trace it looks like there is a configuration issue. That's strange since geofence should use by default a file base db.
Can you double check geofence properties on you geoserver data dir?
Best Regards,
Alessio Fabiani.
==
GeoServer Professional Services from the experts!
Visit http://goo.gl/it488V for more information.
GeoSolutions Enterprise Services<http://goo.gl/it488V>
goo.gl<http://goo.gl>
GeoSolutions offers enterprise support services to help you building enterprise-class Spatial Data Infrastructures leveraging on best-of-breed Open Source
==
Ing. Alessio Fabiani
@alfa7691
github<https://github.com/afabiani?tab=overview>
Founder/Technical Lead
GeoSolutions S.A.S.
Via di Montramito 3/A
55054 Massarosa (LU)
Italy
phone: +39 0584 962313<tel:0584%20962313>
fax: +39 0584 1660272<tel:0584%20166%200272>
mob: +39 331 6233686<tel:331%20623%203686>
http://www.geo-solutions.it<http://www.geo-solutions.it/>
http://twitter.com/geosolutions_it
-------------------------------------------------------
AVVERTENZE AI SENSI DEL D.Lgs. 196/2003
Le informazioni contenute in questo messaggio di posta elettronica e/o nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il loro utilizzo è consentito esclusivamente al destinatario del messaggio, per le finalità indicate nel messaggio stesso. Qualora riceviate questo messaggio senza esserne il destinatario, Vi preghiamo cortesemente di darcene notizia via e-mail e di procedere alla distruzione del messaggio stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso, divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od utilizzarlo per finalità diverse, costituisce comportamento contrario ai principi dettati dal D.Lgs. 196/2003.
The information in this message and/or attachments, is intended solely for the attention and use of the named addressee(s) and may be confidential or proprietary in nature or covered by the provisions of privacy act (Legislative Decree June, 30 2003, no.196 - Italy's New Data Protection Code).Any use not in accord with its purpose, any disclosure, reproduction, copying, distribution, or either dissemination, either whole or partial, is strictly forbidden except previous formal approval of the named addressee(s). If you are not the intended recipient, please contact immediately the sender by telephone, fax or e-mail and delete the information in this message that has been received in error. The sender does not give any warranty or accept liability as the content, accuracy or completeness of sent messages and accepts no responsibility for changes made after they were sent or for other risks which arise as a result of e-mail transmission, viruses, etc.
---------------------------------------------------------------------
On Mon, Apr 3, 2017 at 11:43 AM, Eugenio Trumpy <frippe12573 at hotmail.com<mailto:frippe12573 at hotmail.com>> wrote:
Just tried, but on click 'GeoFence Data Rules' I got:
https://paste.ubuntu.com/24305737/
Do you think it is feasible to let geoserver 2.10 runs for geonode 2.4?
Do you suggest me to come back to geoserver 2.9?
E.
________________________________
Da: Alessio Fabiani <alessio.fabiani at geo-solutions.it<mailto:alessio.fabiani at geo-solutions.it>>
Inviato: lunedì 3 aprile 2017 11.14
A: Eugenio Trumpy
Cc: geonode-users at lists.osgeo.org<mailto:geonode-users at lists.osgeo.org>
Oggetto: Re: [Geoserver-users] data dir migration from 2.7.x to 2.10.x
Hello Eugenio,
pay attention, GeoServer 2.10.x version works against the new OAuth2 authentication.
However, try to enter on geoserver ui with the internal geoserver administrator (from the form insert admin / ****), go to geofence rules and add (if not exists) a new one with all defaults (ALLOW anything to all).
Best Regards,
Alessio Fabiani.
==
GeoServer Professional Services from the experts!
Visit http://goo.gl/it488V for more information.
GeoSolutions Enterprise Services<http://goo.gl/it488V>
goo.gl<http://goo.gl>
GeoSolutions offers enterprise support services to help you building enterprise-class Spatial Data Infrastructures leveraging on best-of-breed Open Source
==
Ing. Alessio Fabiani
@alfa7691
github<https://github.com/afabiani?tab=overview>
Founder/Technical Lead
GeoSolutions S.A.S.
Via di Montramito 3/A
55054 Massarosa (LU)
Italy
phone: +39 0584 962313<tel:0584%20962313>
fax: +39 0584 1660272<tel:0584%20166%200272>
mob: +39 331 6233686<tel:331%20623%203686>
http://www.geo-solutions.it<http://www.geo-solutions.it/>
http://twitter.com/geosolutions_it
-------------------------------------------------------
AVVERTENZE AI SENSI DEL D.Lgs. 196/2003
Le informazioni contenute in questo messaggio di posta elettronica e/o nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il loro utilizzo è consentito esclusivamente al destinatario del messaggio, per le finalità indicate nel messaggio stesso. Qualora riceviate questo messaggio senza esserne il destinatario, Vi preghiamo cortesemente di darcene notizia via e-mail e di procedere alla distruzione del messaggio stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso, divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od utilizzarlo per finalità diverse, costituisce comportamento contrario ai principi dettati dal D.Lgs. 196/2003.
The information in this message and/or attachments, is intended solely for the attention and use of the named addressee(s) and may be confidential or proprietary in nature or covered by the provisions of privacy act (Legislative Decree June, 30 2003, no.196 - Italy's New Data Protection Code).Any use not in accord with its purpose, any disclosure, reproduction, copying, distribution, or either dissemination, either whole or partial, is strictly forbidden except previous formal approval of the named addressee(s). If you are not the intended recipient, please contact immediately the sender by telephone, fax or e-mail and delete the information in this message that has been received in error. The sender does not give any warranty or accept liability as the content, accuracy or completeness of sent messages and accepts no responsibility for changes made after they were sent or for other risks which arise as a result of e-mail transmission, viruses, etc.
---------------------------------------------------------------------
On Mon, Apr 3, 2017 at 10:42 AM, Eugenio Trumpy <frippe12573 at hotmail.com<mailto:frippe12573 at hotmail.com>> wrote:
Hi Alessio,
I needed to update again the geonode geoserver.
I started from your suggestion wrote on the email below, so I downloaded geoserver 2.10 (instead 2.9 you pointed).
I thought were same procedure update from 2.7.x to 2.9.x but probably I'm wrong. I'm having some authentication problems,
here the log output:
https://paste.ubuntu.com/24305552/
for what I understood the main issues are:
2017-04-03 10:15:26,481 WARN [geonode.security] - Error connecting to the GeoNode server for authentication purposes
2017-04-03 10:16:50,156 WARN [geofence.internal] - GeoFence was not able to find any matching user on Security Context amd Services.
2017-04-03 10:16:50,218 ERROR [geoserver.ows] -
org.geoserver.platform.ServiceException: Could not find layer geonode:hypo_density_clipped
... and others related to other layers
I would remember that I'm working with a geosites configuration, which needs to leave blank the <baseUrl> in config.xml of auth/geonodeAuthProvider
What am I missing?
cheers
Eugenio
________________________________
Da: Eugenio Trumpy <frippe12573 at hotmail.com<mailto:frippe12573 at hotmail.com>>
Inviato: giovedì 2 marzo 2017 14.46
A: geonode-users at lists.osgeo.org<mailto:geonode-users at lists.osgeo.org>
Oggetto: I: [Geoserver-users] data dir migration from 2.7.x to 2.9.x
I checked the contents of the security directories/files between those you suggested in data-2.9.zip and those I had in my 2.7 data dir.
I just insert the right baseurl in the geonodeAuthProvider/config.xml and it works.
Now I have geonode 2.4 stable with geonode 2.9-snapshot.
I can confirm that layers that had the border (due to tne reprojection on the fly) are well represented!!
So changing the geoserver version solved the issue.
Thank you
E.
________________________________
Da: alessio.fabiani at gmail.com<mailto:alessio.fabiani at gmail.com> <alessio.fabiani at gmail.com<mailto:alessio.fabiani at gmail.com>> per conto di Alessio Fabiani <alessio.fabiani at geo-solutions.it<mailto:alessio.fabiani at geo-solutions.it>>
Inviato: giovedì 2 marzo 2017 10.13
A: Andrea Aime
Cc: Eugenio Trumpy; geoserver-users at lists.sourceforge.net<mailto:geoserver-users at lists.sourceforge.net>
Oggetto: Re: [Geoserver-users] data dir migration from 2.7.x to 2.9.x
Hi Eugenio,
try to replace the following "security" folders of your GeoServer data dir with the one here http://build.geonode.org/geoserver/latest/data-2.9.x.zip (backup the old ones first):
1. security\auth\geonodeAuthProvider
2. security\filter\geonodeAnonymousFilter
3. security\filter\geonodeCookieFilter
Later make sure to redo manually the GeoNode authentication filter configuration settings on the new security folder (just do a diff of XML files and be sure the GeoNode and GeoServer URLs are correct)
Best Regards,
Alessio Fabiani.
==
GeoServer Professional Services from the experts!
Visit http://goo.gl/it488V for more information.
GeoSolutions Enterprise Services<http://goo.gl/it488V>
goo.gl<http://goo.gl>
GeoSolutions offers enterprise support services to help you building enterprise-class Spatial Data Infrastructures leveraging on best-of-breed Open Source
==
Ing. Alessio Fabiani
@alfa7691
github<https://github.com/afabiani?tab=overview>
Founder/Technical Lead
GeoSolutions S.A.S.
Via di Montramito 3/A
55054 Massarosa (LU)
Italy
phone: +39 0584 962313<tel:0584%20962313>
fax: +39 0584 1660272<tel:0584%20166%200272>
mob: +39 331 6233686<tel:331%20623%203686>
http://www.geo-solutions.it
http://twitter.com/geosolutions_it
-------------------------------------------------------
AVVERTENZE AI SENSI DEL D.Lgs. 196/2003
Le informazioni contenute in questo messaggio di posta elettronica e/o nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il loro utilizzo è consentito esclusivamente al destinatario del messaggio, per le finalità indicate nel messaggio stesso. Qualora riceviate questo messaggio senza esserne il destinatario, Vi preghiamo cortesemente di darcene notizia via e-mail e di procedere alla distruzione del messaggio stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso, divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od utilizzarlo per finalità diverse, costituisce comportamento contrario ai principi dettati dal D.Lgs. 196/2003.
The information in this message and/or attachments, is intended solely for the attention and use of the named addressee(s) and may be confidential or proprietary in nature or covered by the provisions of privacy act (Legislative Decree June, 30 2003, no.196 - Italy's New Data Protection Code).Any use not in accord with its purpose, any disclosure, reproduction, copying, distribution, or either dissemination, either whole or partial, is strictly forbidden except previous formal approval of the named addressee(s). If you are not the intended recipient, please contact immediately the sender by telephone, fax or e-mail and delete the information in this message that has been received in error. The sender does not give any warranty or accept liability as the content, accuracy or completeness of sent messages and accepts no responsibility for changes made after they were sent or for other risks which arise as a result of e-mail transmission, viruses, etc.
---------------------------------------------------------------------
On Thu, Mar 2, 2017 at 9:57 AM, Andrea Aime <andrea.aime at geo-solutions.it<mailto:andrea.aime at geo-solutions.it>> wrote:
Hi Eugenio,
read below:
On Thu, Mar 2, 2017 at 9:10 AM, Eugenio Trumpy <frippe12573 at hotmail.com<mailto:frippe12573 at hotmail.com>> wrote:
org.geonode.security.HTTPClient.sendGET(HTTPClient.java:89)
org.geonode.security.DefaultSecurityClient.authenticate(DefaultSecurityClient.java:185)
org.geonode.security.DefaultSecurityClient.authenticateCookie(DefaultSecurityClient.java:116)
org.geonode.security.GeoNodeAuthenticationProvider.authenticate(GeoNodeAuthenticationProvider.java:66)You are hitting an issue with a plugin the GeoServer community is not maintaining, not sure we can help.
Plugins are version specific, I'd suggest you check with the GeoNode developers if there is a version compatible
with GeoServer 2.9 and see if there is any upgrade procedure you have to follow to use it
Cheers
Andrea
--
==
GeoServer Professional Services from the experts! Visit
http://goo.gl/it488V for more information.
==
Ing. Andrea Aime
@geowolf
Technical Lead
GeoSolutions S.A.S.
Via di Montramito 3/A
55054 Massarosa (LU)
phone: +39 0584 962313<tel:0584%20962313>
fax: +39 0584 1660272<tel:0584%20166%200272>
mob: +39 339 8844549<tel:339%20884%204549>
http://www.geo-solutions.it
http://twitter.com/geosolutions_it
AVVERTENZE AI SENSI DEL D.Lgs. 196/2003
Le informazioni contenute in questo messaggio di posta elettronica e/o nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il loro utilizzo è consentito esclusivamente al destinatario del messaggio, per le finalità indicate nel messaggio stesso. Qualora riceviate questo messaggio senza esserne il destinatario, Vi preghiamo cortesemente di darcene notizia via e-mail e di procedere alla distruzione del messaggio stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso, divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od utilizzarlo per finalità diverse, costituisce comportamento contrario ai principi dettati dal D.Lgs. 196/2003.
The information in this message and/or attachments, is intended solely for the attention and use of the named addressee(s) and may be confidential or proprietary in nature or covered by the provisions of privacy act (Legislative Decree June, 30 2003, no.196 - Italy's New Data Protection Code).Any use not in accord with its purpose, any disclosure, reproduction, copying, distribution, or either dissemination, either whole or partial, is strictly forbidden except previous formal approval of the named addressee(s). If you are not the intended recipient, please contact immediately the sender by telephone, fax or e-mail and delete the information in this message that has been received in error. The sender does not give any warranty or accept liability as the content, accuracy or completeness of sent messages and accepts no responsibility for changes made after they were sent or for other risks which arise as a result of e-mail transmission, viruses, etc.
-------------------------------------------------------
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Geoserver-users mailing list
Geoserver-users at lists.sourceforge.net<mailto:Geoserver-users at lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/geoserver-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20170404/04134afb/attachment-0001.html>
More information about the geonode-users
mailing list