[GeoNode-devel] Upgrading GeoNode: map permissions
Paolo Pasquali
paolo.pasquali at gmail.com
Mon Oct 28 08:00:05 PDT 2019
Yes, I am. I dumped the database and restored it on the new server.
I would like to re-do the migration in order to have a clearer idea of the
required steps.
After dumping and restoring the db (I'm assuming there are no changes
between 2.10 versions) and copying some GeoServer folders (workspaces,
styles, uploaded and... permissions also?), which commands should I run?
Does updatelayers fix all?
Thanks,
Bye,
P.
On Fri, Oct 25, 2019 at 8:08 PM Paolo Corti <pcorti at gmail.com> wrote:
> I don't think GeoServer is impacting here, as you said you have the
> problem only with maps and that error is raised by Django.
> Are you using the same Django database you were using in the other server?
> cheers
> Paolo
>
> On Fri, Oct 25, 2019 at 11:02 AM Paolo Pasquali
> <paolo.pasquali at gmail.com> wrote:
> >
> > Ciao Paolo,
> >
> > Thanks for the reply.
> > I've just tried with GeoExplorer and I'm getting the same error: Failed
> to load resource: the server responded with a status of 401 (Unauthorized)
> > But the overlay appears.
> > Do you have any clue why this happens?
> >
> > However this behaviour can be fixed by manually updating the permissions
> via the the UI. Is there a command to update (or better restore) all map
> permissions at once?
> >
> > Thanks!
> >
> > Ciao
> >
> > P.
> >
> >
> >
> > On Thu, Oct 24, 2019 at 4:39 PM Paolo Corti <pcorti at gmail.com> wrote:
> >>
> >> Hi Paolo
> >> never seen this error. As a first check, did you try to test if maps
> >> open using GeoExplorer?
> >> cheers
> >> Paolo
> >>
> >> On Wed, Oct 23, 2019 at 3:34 AM Paolo Pasquali <
> paolo.pasquali at gmail.com> wrote:
> >> >
> >> > Dear devs,
> >> >
> >> > I have an issue with map permissions after migrating.
> >> >
> >> > I have migrated my GeoNode 2.10.x (unstable with GeoExplorer) to
> another server upgrading to the latest stable version (with MapStore2).
> >> > I have copied the workspaces, styles, uploaded and permissions
> folders from the old GeoServer data folder to the new one (after restoring
> the db). Then I've run some scripts such as updatemaplayerip,
> fix_baselayers, set_layer_permissions and sync_security_rules.
> >> >
> >> > All seems ok except for maps. I'm getting an error when I try to view
> a map:
> >> > Failed to load resource: the server responded with a status of 401
> (Unauthorized)
> >> > at mydomain/security/permission/xx
> >> > You are not allowed to change permissions for this resource
> >> >
> >> > Am I missing something?
> >> > Thanks in advance for your help!
> >> >
> >> > Best,
> >> >
> >> > Paolo
> >> >
> >> > _______________________________________________
> >> > geonode-devel mailing list
> >> > geonode-devel at lists.osgeo.org
> >> > https://lists.osgeo.org/mailman/listinfo/geonode-devel
> >>
> >>
> >>
> >> --
> >> Paolo Corti
> >> Geospatial software developer
> >> web: http://www.paolocorti.net
> >> twitter: @capooti
> >> skype: capooti
> >> #drt3jc1
>
>
>
> --
> Paolo Corti
> Geospatial software developer
> web: http://www.paolocorti.net
> twitter: @capooti
> skype: capooti
> #drt3jc1
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-devel/attachments/20191028/d65828a8/attachment.html>
More information about the geonode-devel
mailing list