<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Dear Eugenio,<div class=""><br class=""></div><div class="">beeing a bit under time pressure please excuse my short answer.</div><div class=""><br class=""></div><div class=""><br class=""><div><blockquote type="cite" class=""><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; -webkit-text-stroke-width: 0px; text-decoration: none; font-family: Calibri, Helvetica, sans-serif; font-size: 12pt;" class="">I inserted my domain in the ALLOWED_HOSTS, and changed the URLs of Geoserver and set-up the connection with 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; -webkit-text-stroke-width: 0px; text-decoration: none; font-family: Calibri, Helvetica, sans-serif; font-size: 12pt;" class="">I'm not sure geonode_data db connection works fine. How could I check it?</div></blockquote><div><br class=""></div><div>Check which connection is used by Django shell:</div><div><br class=""></div><div># enable your venv</div><div># set your correct settings with DJANGO_SETTINGS_MODULE</div><div><br class=""></div><div>DJANGO_SETTINGS_MODULE=my_geonode.local_settings python manage.py shell </div>from django import db</div><div>db.utils.settings.DATABASES['default']['NAME']</div><div><br class=""></div><div>... '/Users/ts/git/gitlabtest/env/src/geonode/geonode/development.db'</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>^ this shows I'm using sqlite. Namely development.db. I would expect something with postgres here in your case.</div><div><br class=""></div><div><br class=""></div><div><br class=""><blockquote type="cite" class=""><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; -webkit-text-stroke-width: 0px; text-decoration: none; font-family: Calibri, Helvetica, sans-serif; font-size: 12pt;" class="">As pointed by Alessio, I restored the geoserver data directories in the new instance. Geoserver is up and running with almost all the datasets I had in the old instance. So I see no problem from this side if I'm not wrong. The layers can be perfectly checked in geoserver 'Layer preview'.</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; -webkit-text-stroke-width: 0px; text-decoration: none; font-family: Calibri, Helvetica, sans-serif; font-size: 12pt;" class=""><br class=""></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; -webkit-text-stroke-width: 0px; text-decoration: none; font-family: Calibri, Helvetica, sans-serif; font-size: 12pt;" class="">I restored even the geonode db in the new server without issue, and by using directly settings.py file with the adjusted db connection, I was able to follow the instruction of db migration suggested in guide by Paolo.</div></blockquote><div><br class=""></div><div>If above gives you something with postgres still in terminal let's check which layers your database</div><div>holds.</div><div><br class=""></div><div>from geonode.layers.models import Layer</div><div>l = Layer.objects.all()</div>for i in l: print (i.title)</div><div><br class=""></div><div><br class=""></div><div>This should give you a listing of all your layer titles. </div><div>If not either your layers are not in geonode database found</div><div>or your local_setting is using a wrong database connection (which ends f.e in sqlite)</div><div><br class=""><blockquote type="cite" class=""><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; -webkit-text-stroke-width: 0px; text-decoration: none; font-family: Calibri, Helvetica, sans-serif; font-size: 12pt;" class="">I think I have now geoserver running, geonode db migrated and restored and geonode_data restored. I'm not sure that the set-up of the new authorization system geonode/geoserver is ok, I followed this documentation: <a href="https://docs.geonode.org/en/master/advanced/components/index.html#geoserver-2-12-x-and-above" class="">https://docs.geonode.org/en/master/advanced/components/index.html#geoserver-2-12-x-and-above</a></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; -webkit-text-stroke-width: 0px; text-decoration: none; font-family: Calibri, Helvetica, sans-serif; font-size: 12pt;" class="">Should be everything ok, but not sure, because for instance I cannot access geoserver directly from geonode (from the user menu).</div></blockquote><br class=""></div><div>I can offer to have a look at your settings but would need:</div><div>- screenshot of your <u class="">oauth2 and rest</u> setting on side of geoserver</div><div>- screenshot of your oauth2 settings on side of geonode</div><div>- the part from your local_settings for Geoserver endpoints.</div><div><br class=""></div><div><span class="Apple-tab-span" style="white-space:pre"> </span>* of course as p.m.</div><div><br class=""></div><div>Somewhere here I would expect something wrong.</div><div><br class=""></div><div><br class=""></div><div>Cheers,</div><div><br class=""></div><div>Toni</div><div><br class=""></div><div><br class=""></div><div><br class=""></div><div><br class=""></div><br class=""></div></body></html>