<div dir="ltr"><div><span style="color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif;font-size:12pt">Dear Eugenio,</span></div><div><span style="color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif;font-size:12pt"><br></span></div><div><div><br></div>> <span style="color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif;font-size:12pt">However, updatelayers doesn't produce any </span><div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">update and although I'm able to see the layers, in the layer maps and in the </div><div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">maps I cannot see the data (both raster and vector).</div></div><div><span style="color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif;font-size:12pt"><br></span></div><div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">Do you mean the map client doesn't render the layer/thumbnail?<br>Have you already check from using GeoServer layer preview page that GeoServer itself can render the layer?<br>Geonode retrieve layer feature data and images from GeoServer, so if it doesn't render, check that GeoServer is able to render the layer.</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)"><br></div><div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">Regards,</div><div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">Rizky Maulana Nugraha</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, 31 Mar 2020 at 06:07, Eugenio Trumpy <<a href="mailto:frippe12573@hotmail.com">frippe12573@hotmail.com</a>> wrote:<br></div><blockquote class="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)">
Hi Toni and 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 made some steps forward in the migration process.</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
By using directly the settings.py file I'm able to connect to the right db,</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
and I was even able to run successfully python manage.py migrate.</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
The latter produced an increasing of table in the db an geonode now </div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
see all my layers and maps. However, updatelayers doesn't produce any </div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
update and although I'm able to see the layers, in the layer maps and in the </div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
maps I cannot see the data (both raster and vector).</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Do you know the reasons?</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
In the settings file I set the postgresql geonode_data db</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
as well as the geoserver URL.</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)">
Any hints?</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)">
Best regards,</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)">
Eugenio</div>
<div>
<div id="gmail-m_-2556107935740729785appendonsend"></div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<hr style="display:inline-block;width:98%">
<div id="gmail-m_-2556107935740729785divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>Da:</b> Toni Schönbuchner <<a href="mailto:toni.schoenbuchner@csgis.de" target="_blank">toni.schoenbuchner@csgis.de</a>><br>
<b>Inviato:</b> sabato 21 marzo 2020 14:30<br>
<b>A:</b> Eugenio Trumpy <<a href="mailto:frippe12573@hotmail.com" target="_blank">frippe12573@hotmail.com</a>><br>
<b>Cc:</b> geonode-users <<a href="mailto:geonode-users@lists.osgeo.org" target="_blank">geonode-users@lists.osgeo.org</a>><br>
<b>Oggetto:</b> Re: migration suggestions</font>
<div> </div>
</div>
<div style="overflow-wrap: break-word;">Dear Eugenio,
<div><br>
</div>
<div>first of all, please be prepared that a migration is not a walk in the park.</div>
<div>You might need some background knowledge about the db scheme and how </div>
<div>is everything is wired together. Further I think the whole multisites idea is not</div>
<div>maintained since long time and hence I would suggest that you first try to port your</div>
<div>data to a single site 2.10.3 instance. </div>
<div><br>
</div>
<div>You're saying them amount of tables changed after running migrate? That</div>
<div>is a good sign. The most interesting here is if the manage command threw errors?</div>
<div><br>
</div>
<div>Further yes, a wrong settings file could lead to a wrong database usage.</div>
<div>(Just rename the old and you will see ;) </div>
<div><br>
</div>
<div>In case of geonode_project you can try to set local_settings here.</div>
<div><br>
</div>
<div><a href="https://github.com/GeoNode/geonode-project/blob/2.10.3/project_name/wsgi.py#L38" target="_blank">https://github.com/GeoNode/geonode-project/blob/2.10.3/project_name/wsgi.py#L38</a></div>
<div><br>
</div>
<div><br>
</div>
<div>Best regards</div>
<div><br>
</div>
<div>Toni</div>
<div>
<div><br>
<blockquote type="cite">
<div>Am 21.03.2020 um 14:20 schrieb Eugenio Trumpy <<a href="mailto:frippe12573@hotmail.com" target="_blank">frippe12573@hotmail.com</a>>:</div>
<br>
<div>
<div style="font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;font-family:Calibri,Helvetica,sans-serif;font-size:12pt">
Dear Toni,</div>
<div style="font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;font-family:Calibri,Helvetica,sans-serif;font-size:12pt">
<br>
</div>
<div style="font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;font-family:Calibri,Helvetica,sans-serif;font-size:12pt">
thank you to have answered to mail last email.</div>
<div style="font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;font-family:Calibri,Helvetica,sans-serif;font-size:12pt">
My situation is the following:</div>
<div style="font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;font-family:Calibri,Helvetica,sans-serif;font-size:12pt">
<br>
</div>
<div style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none">
<ul style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt">
<li>I have a geonode 2.4 running on a server 'A' configured to run as multi-site which embeds something like 120 layers, 20 maps and 3 users. <span style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt">In server 'A' is running ubuntu
 14.04, which is obsolete.</span></li><li><span style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt">I have also server 'B' where ubuntu is at the version 18.04.</span></li><li><span style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt">I want to migrate my genode 2.4 running instance as multisites from server 'A' to 'B'.</span></li><li><span style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt">I have asked some weeks ago here in the list what would have been the best solution, consider I'm not a developer and I never used the virtualenv. I installed the 2.4
 version for production.</span></li><li>For the migration I was following some suggestions from Alessio: </li></ul>
<div>
<blockquote style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;margin:0px 0px 0px 40px;border:none;padding:0px">
<ol>
<li>Setup a new GeoServer 2.15.2 ( <a href="https://build.geo-solutions.it/geonode/geoserver/latest/geoserver-2.15.2.war" rel="nofollow" style="font-size:1em;color:rgb(85,26,139)" target="_blank">https://build.geo-solutions.it/geonode/geoserver/latest/geoserver-2.15.2.war</a> ) </li><li>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)</li><li>Setup the new GeoNode instance</li><li>Run the "updatelayers" management command (see <a href="http://docs.geonode.org/en/master/admin/mgmt_commands/index.html#management-command-updatelayers" rel="nofollow" style="font-size:1em;color:rgb(85,26,139)" target="_blank">http://docs.geonode.org/en/master/admin/mgmt_commands/index.html#management-command-updatelayers</a> )</li><li>Update manually the missing permissions and metadata</li></ol>
</blockquote>
</div>
</div>
<blockquote style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;margin:0px 0px 0px 40px;border:none;padding:0px">
<blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"></blockquote>
</blockquote>
<ul style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none">
<li><span style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt">I completed step 1 with geoserver 2.16.2 - I installed the data_dir outside geoserver - and it runs fine</span></li><li><span style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt">I completed step 2 and I'm able to see all the layers I had in server 'A'</span></li><li><span style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt">I set up a fresh geonode instance, even thanks to you help. I installed geonode from GIT, so I should have the master version (2.10).</span></li><li><span style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt">Within the step 2 I restored in server 'A' the two postgresql db I had inserver 'A'</span></li><li><span style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt">Since I remembered some steps of the custom configuration I did for version 2.4 (and I never used NGINX) I configured APACHE2.</span></li><li><span style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt">Currently in server 'B' I'm able to see the geonode home page, but I cannot see my layers as well as I cannot enter as administrator.</span></li><li><span style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt">I followed you suggestions and I </span></li><li><span style="font-size:12pt">ALTER TABLE public.layers_layer DROP COLUMN service_id</span></li><li><span style="font-size:12pt">successfully</span></li><li><span style="font-size:12pt">and I gave the command </span></li><li><span style="font-size:12pt">django python manage.py migrate --fake-initial</span></li><li><span style="font-size:12pt">but I'm still not able to enter as administrator</span></li><li><span style="font-size:12pt">I realized even that the db schema apparently didn't change (e.g. I had 75 tables in the old version and I still have 75 tables in the newer version, I don't if the fields are modified instead)</span></li><li><span style="font-size:12pt">to have the version 2.10 running I followed your suggestion to insert my domain in the ALLOWED_HOSTS variable inside local_settings.py. I did it but it didn't work as long as I insert the same in settings.py.
 For this reason I'm supposing that local_settings.py is not active in some way and for the same reason it doesn't allow to connect to the db. Am I right? <br>
</span></li></ul>
<div style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none">
Once the administrator login will be solved: </div>
<div style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none">
<ul>
<li>I should configure this new running geonode instance for multisites - Could I restore in someway the look & feels I had in the old instance?</li><li>check the authorization between geonode and geoserver<br>
</li></ul>
<div>I hope this can help you to have a clearer vision of 'whats going on'...</div>
</div>
<div style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none">
<br>
</div>
<div style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none">
Best regards,</div>
<div style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none">
<br>
</div>
<div style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none">
Eugenio</div>
<div style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none">
<div id="gmail-m_-2556107935740729785x_appendonsend"></div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt"><br>
</div>
<hr style="display:inline-block;width:770.266px">
<div id="gmail-m_-2556107935740729785x_divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt"><b>Da:</b><span> </span>Toni Schönbuchner <<a href="mailto:toni.schoenbuchner@csgis.de" target="_blank">toni.schoenbuchner@csgis.de</a>><br>
<b>Inviato:</b><span> </span>sabato 21 marzo 2020 13:45<br>
<b>A:</b><span> </span>Eugenio Trumpy <<a href="mailto:frippe12573@hotmail.com" target="_blank">frippe12573@hotmail.com</a>><br>
<b>Cc:</b><span> </span>geonode-users <<a href="mailto:geonode-users@lists.osgeo.org" target="_blank">geonode-users@lists.osgeo.org</a>><br>
<b>Oggetto:</b><span> </span>Re: migration suggestions</font>
<div> </div>
</div>
<div style="overflow-wrap: break-word;">Hi Eugenio,
<div><br>
</div>
<div>I would need to have a look what is going on. But yes local_settings should override settings.</div>
<div>The correct command for migrations is python manage.py migrate ... (instead of syncdb)</div>
<div><br>
</div>
<div>best regards</div>
<div><br>
</div>
<div>toni<br>
<div><br>
<blockquote type="cite" style="margin-top:0px;margin-bottom:0px">
<div>Am 20.03.2020 um 19:58 schrieb Eugenio Trumpy <<a href="mailto:frippe12573@hotmail.com" target="_blank">frippe12573@hotmail.com</a>>:</div>
<br>
<div>
<div style="font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;font-family:Calibri,Helvetica,sans-serif;font-size:12pt">
Dear Toni,</div>
<div style="font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;font-family:Calibri,Helvetica,sans-serif;font-size:12pt">
<br>
</div>
<div style="font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;font-family:Calibri,Helvetica,sans-serif;font-size:12pt">
I followed your hints.</div>
<div style="font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;font-family:Calibri,Helvetica,sans-serif;font-size:12pt">
I put the domain in the ALLOWED_HOSTS and now I visualise the home page.</div>
<div style="font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;font-family:Calibri,Helvetica,sans-serif;font-size:12pt">
Just a question, I had to put the domain the settings.py file because it didn't work in local_setting.py, why? Don't local_setting override setting.py?</div>
<div style="font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;font-family:Calibri,Helvetica,sans-serif;font-size:12pt">
Then I modify local_setting.py to set credential to access geonode db.</div>
<div style="font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;font-family:Calibri,Helvetica,sans-serif;font-size:12pt">
Then I alter the table you suggested and I run python manage.py --syncdb but the number of tables didn't change, is that correct?</div>
<div style="font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;font-family:Calibri,Helvetica,sans-serif;font-size:12pt">
The geonode home page is visualised but I'm not able to enter with the old administrator credential.</div>
<div style="font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;font-family:Calibri,Helvetica,sans-serif;font-size:12pt">
I presume there is no connection with the db. Should I use again setting.py instead of local_setting.py?</div>
<div style="font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;font-family:Calibri,Helvetica,sans-serif;font-size:12pt">
<br>
</div>
<div style="font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;font-family:Calibri,Helvetica,sans-serif;font-size:12pt">
Thanks in advance,</div>
<div style="font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;font-family:Calibri,Helvetica,sans-serif;font-size:12pt">
<br>
</div>
<div style="font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;font-family:Calibri,Helvetica,sans-serif;font-size:12pt">
Eugenio</div>
<div style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none">
<div id="gmail-m_-2556107935740729785x_x_appendonsend"></div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt"><br>
</div>
<hr style="display:inline-block;width:770.266px">
<div id="gmail-m_-2556107935740729785x_x_divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt"><b>Da:</b><span> </span>Toni Schönbuchner <<a href="mailto:toni.schoenbuchner@csgis.de" target="_blank">toni.schoenbuchner@csgis.de</a>><br>
<b>Inviato:</b><span> </span>giovedì 19 marzo 2020 20:37<br>
<b>A:</b><span> </span>Eugenio Trumpy <<a href="mailto:frippe12573@hotmail.com" target="_blank">frippe12573@hotmail.com</a>><br>
<b>Cc:</b><span> </span>geonode-users <<a href="mailto:geonode-users@lists.osgeo.org" target="_blank">geonode-users@lists.osgeo.org</a>><br>
<b>Oggetto:</b><span> </span>Re: migration suggestions</font>
<div> </div>
</div>
<div><font size="2"><span style="font-size:11pt">
<div>Dear Eugenio,<br>
<br>
<br>
>        • 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?<br>
<br>
Allowed hosts is a security mechanism by Django  to define Domains that serve your instance.<br>
<a href="https://docs.djangoproject.com/en/3.0/ref/settings/#allowed-hosts" target="_blank">https://docs.djangoproject.com/en/3.0/ref/settings/#allowed-hosts</a><br>
<br>
To overcome an 504 error you can add something like<br>
<br>
ALLOWED_HOSTS = ['localhost' '127.0.0.1' 'your<span> </span><a href="http://domain.com/" target="_blank">domain.com</a>']<br>
<br>
to your settings.py or local_settings.p However, we all more and more avoid touching the settings file and try to configure everything<br>
with environment variables. So with a manual setup you can try to add it to your uwsgi config:<br>
<a href="https://docs.geonode.org/en/master/install/core/index.html#serving-geonode-geoserver-via-nginx" target="_blank">https://docs.geonode.org/en/master/install/core/index.html#serving-geonode-geoserver-via-nginx</a><br>
<br>
>        • 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.<br>
<br>
I'm unsure If I correctly understand. But the rough flow looks like:<br>
<br>
        • Export your geonode 2.4 Database<br>
        • Import it to a fresh Database<br>
        • Be sure to correctly set permissions for your User<br>
        • Change your settings.py for using the new database and in case the correct user<br>
        • Fix some inconsistency within your new database. Run f.e. with pgadmin or by psql from console<br>
                • ALTER TABLE public.layers_layer DROP COLUMN service_id<br>
        • Run the migrations, this should update your database scheme from 2.4 to 2.10<br>
                • DJANGO_SETTINGS_MODULE=YOURGEONODE.local_settings django python manage.py migrate --fake-initial<br>
<br>
You will need to change those commands to fit your setup further run into errors here and<br>
there but hopefully this steps help you to find out of the forest.<br>
<br>
Cheers,<br>
<br>
Toni<br>
<br>
<br>
-----------------------------------------------<br>
CSGIS<br>
<br>
-----------------------------------------------<br>
Spinnereistraße 7<br>
Halle 18 04179 Leipzig<br>
-----------------------------------------------<br>
Web            <span> </span><a href="https://csgis.de/" target="_blank">https://csgis.de</a><br>
-----------------------------------------------<br>
<br>
Hinweis gemäß § 33 BDSG<br>
Daten der Verfahrensbeteiligten werden gespeichert. Dieses Dokument ist ausschließlich für den<span> </span><br>
Adressaten bestimmt. Der Inhalt der E-Mail ist vertraulich. Falls Sie diese E-Mail versehentlich<span> </span><br>
erhalten haben, rufen Sie uns unter obiger Rufnummer umgehend an und löschen Sie diese Nachricht<span> </span><br>
von Ihrem Computer. Jegliche Art von Reproduktionen, Verbreitung, Vervielfältigung, Veränderung,<span> </span><br>
Verteilung und/oder Veröffentlichung dieser E-Mail ist verboten.</div>
</span></font></div>
</div>
</div>
</blockquote>
</div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</div>

_______________________________________________<br>
geonode-users mailing list<br>
<a href="mailto:geonode-users@lists.osgeo.org" target="_blank">geonode-users@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/geonode-users" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/geonode-users</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr">Rizky Maulana Nugraha<div>Software Developer - Kartoza<br><div><a href="mailto:rizky@kartoza.com" target="_blank">rizky@kartoza.com</a></div></div></div></div>