<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
</head>
<body>
<div name="messageBodySection">
<div dir="auto">If the FQDN has changed then I believe that you need to run also this one <a href="https://github.com/GeoNode/geonode/blob/master/geonode/maps/management/commands/updatemaplayerip.py">https://github.com/GeoNode/geonode/blob/master/geonode/maps/management/commands/updatemaplayerip.py</a> for the maps</div>
</div>
<div name="messageSignatureSection"><br />
<div dir="auto">Ciao,
<div dir="auto">Francesco</div>
</div>
</div>
<div name="messageReplySection">Il 28 ott 2019, 16:01 +0100, Paolo Pasquali <paolo.pasquali@gmail.com>, ha scritto:<br />
<blockquote type="cite" class="spark_quote" style="margin: 5px 5px; padding-left: 10px; border-left: thin solid #1abc9c;">
<div dir="ltr">Yes, I am. I dumped the database and restored it on the new server.
<div><br /></div>
<div>I would like to re-do the migration in order to have a clearer idea of the required steps.</div>
<div>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?<br /></div>
<div>Does updatelayers fix all?</div>
<div><br /></div>
<div>Thanks,</div>
<div><br /></div>
<div>Bye,</div>
<div><br /></div>
<div>P.</div>
<div><br /></div>
<div><br /></div>
<div><br /></div>
<div><br /></div>
<div><br /></div>
<div><br /></div>
</div>
<br />
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Fri, Oct 25, 2019 at 8:08 PM Paolo Corti <<a href="mailto:pcorti@gmail.com" target="_blank">pcorti@gmail.com</a>> wrote:<br /></div>
<blockquote class="gmail_quote spark_quote" style="margin: 5px 5px; padding-left: 10px; border-left: thin solid #e67e22;">I don't think GeoServer is impacting here, as you said you have the<br />
problem only with maps and that error is raised by Django.<br />
Are you using the same Django database you were using in the other server?<br />
cheers<br />
Paolo<br />
<br />
On Fri, Oct 25, 2019 at 11:02 AM Paolo Pasquali<br />
<<a href="mailto:paolo.pasquali@gmail.com" target="_blank">paolo.pasquali@gmail.com</a>> wrote:<br />
><br />
> Ciao Paolo,<br />
><br />
> Thanks for the reply.<br />
> 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)<br />
> But the overlay appears.<br />
> Do you have any clue why this happens?<br />
><br />
> 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?<br />
><br />
> Thanks!<br />
><br />
> Ciao<br />
><br />
> P.<br />
><br />
><br />
><br />
> On Thu, Oct 24, 2019 at 4:39 PM Paolo Corti <<a href="mailto:pcorti@gmail.com" target="_blank">pcorti@gmail.com</a>> wrote:<br />
>><br />
>> Hi Paolo<br />
>> never seen this error. As a first check, did you try to test if maps<br />
>> open using GeoExplorer?<br />
>> cheers<br />
>> Paolo<br />
>><br />
>> On Wed, Oct 23, 2019 at 3:34 AM Paolo Pasquali <<a href="mailto:paolo.pasquali@gmail.com" target="_blank">paolo.pasquali@gmail.com</a>> wrote:<br />
>> ><br />
>> > Dear devs,<br />
>> ><br />
>> > I have an issue with map permissions after migrating.<br />
>> ><br />
>> > I have migrated my GeoNode 2.10.x (unstable with GeoExplorer) to another server upgrading to the latest stable version (with MapStore2).<br />
>> > 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.<br />
>> ><br />
>> > All seems ok except for maps. I'm getting an error when I try to view a map:<br />
>> > Failed to load resource: the server responded with a status of 401 (Unauthorized)<br />
>> > at mydomain/security/permission/xx<br />
>> > You are not allowed to change permissions for this resource<br />
>> ><br />
>> > Am I missing something?<br />
>> > Thanks in advance for your help!<br />
>> ><br />
>> > Best,<br />
>> ><br />
>> > Paolo<br />
>> ><br />
>> > _______________________________________________<br />
>> > geonode-devel mailing list<br />
>> > <a href="mailto:geonode-devel@lists.osgeo.org" target="_blank">geonode-devel@lists.osgeo.org</a><br />
>> > <a href="https://lists.osgeo.org/mailman/listinfo/geonode-devel" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/geonode-devel</a><br />
>><br />
>><br />
>><br />
>> --<br />
>> Paolo Corti<br />
>> Geospatial software developer<br />
>> web: <a href="http://www.paolocorti.net" rel="noreferrer" target="_blank">http://www.paolocorti.net</a><br />
>> twitter: @capooti<br />
>> skype: capooti<br />
>> #drt3jc1<br />
<br />
<br />
<br />
--<br />
Paolo Corti<br />
Geospatial software developer<br />
web: <a href="http://www.paolocorti.net" rel="noreferrer" target="_blank">http://www.paolocorti.net</a><br />
twitter: @capooti<br />
skype: capooti<br />
#drt3jc1<br /></blockquote>
</div>
_______________________________________________<br />
geonode-devel mailing list<br />
geonode-devel@lists.osgeo.org<br />
https://lists.osgeo.org/mailman/listinfo/geonode-devel<br /></blockquote>
</div>
</body>
</html>