<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Dear Alessio and list,</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
I proceed a bit since my last email (2 two days ago).</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
However, still some trouble remain in the migration process I started to pass from the old geonode2.4 to the master version.</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<ol>
<li>Geoserver at version 2.16.2 is up and running with the backuped DATA_DIR, set outside geoserver. Solved the 404 error and the I re-publish again the layer from the missing store I mentioned in my previous email.</li><li>I set the wgsi module in apache2. The geonode is served now with the 'allowed_hosts' error. I think the issue could be related to the settings. In the 2.4 version I remember I set SITE_URL, should I set something similar even in this version?</li><li>I created a geonode postgresql empty db, while I restored the backup from that I was using in 2.4 version. How I should populate with the new data-schema the geonode metadata db? I remember there was the command python manage.py --syncdb, does still exist?
 I tried but I got error.</li></ol>
<div>Any suggestion on point #2 and #3?</div>
<div><br>
</div>
<div>Best regards,</div>
<div><br>
</div>
<div>Eugenio</div>
</div>
<div>
<div id="appendonsend"></div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>Da:</b> Eugenio Trumpy <frippe12573@hotmail.com><br>
<b>Inviato:</b> marted́ 17 marzo 2020 11:18<br>
<b>A:</b> Alessio Fabiani <alessio.fabiani@geo-solutions.it><br>
<b>Cc:</b> geonode-users@lists.osgeo.org <geonode-users@lists.osgeo.org><br>
<b>Oggetto:</b> R: [GeoNode-users] migration suggestions</font>
<div> </div>
</div>
<div dir="ltr">
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Dear Alessio,</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
maybe you remember my request of help dated end of October 2019.</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
I had, but I still have, to updated geonode 2.4 to the last version and you and Paolo Corti gave me some hints.</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Sincerely, I was a bit downhearted, because the procedure didn't seems so easy and quick and even because</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
I have installed geonode in multi-sites and I have more then 100 layers coming from different sources.</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
However, I take the occasion of this very strange period for us, to start the migration following your suggestions.</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Unfortunately, there are some steps not completely clear and I realised that the installation of geonode changed </div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
not a little since the last version (2.4) I installed.</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
In the following, I comment among your old lines and I ask you some clarification in
<span style="color:rgb(12,100,192)">blue</span>:</div>
<div>
<div>
<div dir="ltr">
<div><br>
</div>
<div>1. Setup a new GeoServer 2.15.2 ( <a href="https://build.geo-solutions.it/geonode/geoserver/latest/geoserver-2.15.2.war">https://build.geo-solutions.it/geonode/geoserver/latest/geoserver-2.15.2.war</a> ) <br>
</div>
<div><br>
</div>
<div><span style="color:rgb(12,100,192)">I did it. I downloaded the geoserver-2.16.2 version, I installed it on tomcat8, and I set the GEOSERVER_DATA_DIR outside geoserver,</span></div>
<div><span style="color:rgb(12,100,192)">by using the param in the web.xml, at the end geoserver runs.</span></div>
<div><br>
</div>
<div>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)</div>
<div><br>
</div>
<div><span style="color:rgb(12,100,192)">I ported even the data from the old geoserver to the new
</span><span style="background-color:rgb(255,255,255); display:inline!important; color:rgb(12,100,192)">GEOSERVER_DATA_DIR. I tranfered the following folder: gwc-layerss, legendsamples, styles, workspace, data</span></div>
<div><span style="background-color:rgb(255,255,255); display:inline!important; color:rgb(12,100,192)">Did I miss something? </span></div>
<div><span style="color:rgb(12,100,192)">I'm able to see geoserver datasets, but not all. 2 stores connected to postgresql
<span style="background-color:rgb(255,255,255); display:inline!important">are missing</span>. I added them manually, and I'm able to see the publishable layers, but they are more or less 45. Is there a way to publish them in one shot? I even try to do it manually
 and at the first attempt with the first layer I got this error message: </span><span style="color:rgb(12,100,192)">No GeoServerTileLayer named 'geonode:my_layer_name' exists</span></div>
<div><span style="color:rgb(12,100,192)">What does it mean? The layer results available, but if I test it as layer preview I have a http 404 error. The geoserver log reports: </span></div>
<div><span style="color:rgb(12,100,192)"><span>2020-03-17 10:01:50,175 ERROR [gwc.layer] - Error saving tile layer 'geonode:my_layer_name'<br>
</span><span>java.lang.IllegalArgumentException: TileLayer with same name already exists: geonode:my_layer_name: <LayerInfoImpl-110ff9fd:163f49ebe1b:-1b93></span><br>
</span></div>
<div><br>
</div>
<div>3. Setup the new GeoNode instance</div>
<div><br>
</div>
<div><span style="color:rgb(12,100,192)">I followed this documentation: </span><a href="https://docs.geonode.org/en/master/install/core/index.html#geonode-installation" id="LPlnk787454"><span style="color:rgb(12,100,192)">https://docs.geonode.org/en/master/install/core/index.html#geonode-installation</span></a></div>
<div><span style="color:rgb(12,100,192)">where I proceed <span style="background-color:rgb(255,255,255); display:inline!important">
not </span>to install in the virtualenv (I don't know how to use it, and I'm installing geonode not in local), I went for the production installation.</span></div>
<div><span style="color:rgb(12,100,192)">The guide is very different with the one I remembered for the version 2.4. Anyway I took the parts useful for me.</span></div>
<div><span style="color:rgb(12,100,192)">Although I have something wrong on geoserver, I proceed in the installation: I installed the dependences, I clone geonode from git,</span></div>
<div><span style="color:rgb(12,100,192)">I installed tomcat8 and geoserver (with an external data_dir), I restore my postgresql database dump (geonode and geonode_data).</span></div>
<div><span style="color:rgb(12,100,192)">I stopped at the webserver. The documentation recommend NGINX, but I have apache2 in my server.</span></div>
<div><span style="color:rgb(12,100,192)">My question is: Can I use Apache2? Is there a documentation to set up apache2 and geonode at this version? or I can follow the same concepts in the documentation we had for the geonode version 2.4. (In this latter case
 I have already set a virtualhost dedicated to geonode).</span></div>
<div><span style="color:rgb(12,100,192)"><br>
</span></div>
<div><span style="color:rgb(12,100,192)">I'm at this point. Then I should go on through the geoserver/geonode authorization, right?</span></div>
<div><br>
</div>
<div><br>
</div>
<div>4. Run the "updatelayers" management command (see <a href="http://docs.geonode.org/en/master/admin/mgmt_commands/index.html#management-command-updatelayers">http://docs.geonode.org/en/master/admin/mgmt_commands/index.html#management-command-updatelayers</a> )</div>
<div><br>
</div>
<div><span style="color:rgb(12,100,192)">still to be carried out</span></div>
<div><br>
</div>
<div>5. Update manually the missing permissions and metadata</div>
<div><br>
</div>
<div><span style="color:rgb(12,100,192); background-color:rgb(255,255,255); display:inline!important">still to be carried out - I saw in the online demo that now it is possible to import the metadata xml, which can help me to save time to restore.</span><br>
</div>
<div><span style="color:rgb(12,100,192); background-color:rgb(255,255,255); display:inline!important"><br>
</span></div>
<div><span style="color:rgb(0,0,0); background-color:rgb(255,255,255); display:inline!important">Could you clarify the points above mentioned?</span></div>
<div><span style="color:rgb(12,100,192); background-color:rgb(255,255,255); display:inline!important"><br>
</span></div>
<div><span style="color:rgb(0,0,0); background-color:rgb(255,255,255); display:inline!important">Thanks,</span></div>
<div><span style="color:rgb(12,100,192); background-color:rgb(255,255,255); display:inline!important"><br>
</span></div>
<div><span style="color:rgb(0,0,0); background-color:rgb(255,255,255); display:inline!important">Eugenio</span></div>
<div><br>
</div>
</div>
<br>
<div class="x_x_gmail_quote">
<div dir="ltr" class="x_x_gmail_attr">Il giorno ven 25 ott 2019 alle ore 16:08 Eugenio Trumpy <<a href="mailto:frippe12573@hotmail.com">frippe12573@hotmail.com</a>> ha scritto:<br>
</div>
<blockquote class="x_x_gmail_quote" style="margin:0px 0px 0px 0.8ex; border-left:1px solid rgb(204,204,204); padding-left:1ex">
<div dir="ltr">
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Dear all,</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
I have a running geonode at version 2.4 dev20160525015826 configured as multisite in a ubuntu server 16.04.6 LTS.</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
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.</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
I would like to know if there are suggested procedures to migrate my multisite project, data, ... to a newer version of geonode</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
(the most update seems to be the vs.2.10). </div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Just to let you know, for the previous installation I followed the custom installation,</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
because in the server were already running postgresql, tomcat, and so on...</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Moreover, as said, I set the project to be used as <span style="color:rgb(0,0,0); font-family:Calibri,Helvetica,sans-serif; font-size:12pt">multi-sites.</span></div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
So I need:</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<ol>
<li>to install a fresh geonode version</li><li>set-up the multi-sites</li><li>dump the data from version 2.4</li><li>load the data in the new version</li></ol>
<div>Any hints or recommendations?</div>
<div><br>
</div>
<div>Thanks,</div>
<div><br>
Eugenio</div>
</div>
</div>
</blockquote>
</div>
</div>
</div>
</div>
</div>
</body>
</html>