<div dir="ltr">The preview link display a wms error: <div><div><?xml version="1.0" encoding="UTF-8" standalone="no"?><!DOCTYPE ServiceExceptionReport SYSTEM "<a href="http://192.168.31.80/geoserver/schemas/wms/1.1.1/WMS_exception_1_1_1.dtd?access_token=SmC0lS6g2T3CKkXAM8UehzlPOSDEgZ%3Fservice%3DWMS">http://192.168.31.80/geoserver/schemas/wms/1.1.1/WMS_exception_1_1_1.dtd?access_token=SmC0lS6g2T3CKkXAM8UehzlPOSDEgZ%3Fservice%3DWMS</a>"> <ServiceExceptionReport version="1.1.1" > <ServiceException code="LayerNotDefined" locator="layers"></div><div> Could not find layer geonode:v_staz_aria_attive</div><div></ServiceException></ServiceExceptionReport></div></div><div><br></div><div>In <span style="font-family:arial,helvetica,sans-serif;font-size:12.8px">geonode-oauth2 (Authentication)</span> I had localhost in Access Token URI and Check Token Endpoint URL, so now I've setted it again to localhost ... All other lines have external address.</div><div>I've restared apache and tomcat but still the same error ...</div><div><br></div><div>I'm going to check all steps ...</div><div><br></div><div>Hi</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2017-07-03 10:38 GMT+02:00 Simone Dalmasso <span dir="ltr"><<a href="mailto:simone.dalmasso@gmail.com" target="_blank">simone.dalmasso@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Ciao Annalisa,<div><br></div><div>why that preview link is broken? It is ok that the oauth2 still has localhost in some places , in particular only "userAuthorizationUri", "logoutUri" and the geoserver line should have the external address, the other two need to have localhost.</div><div><br></div><div>For the stale layers, you can remove them from the admin panel.</div></div><div class="gmail_extra"><div><div class="h5"><br><div class="gmail_quote">2017-07-03 9:50 GMT+02:00 Annalisa Schiavon <span dir="ltr"><<a href="mailto:annalisa.schiavon@gmail.com" target="_blank">annalisa.schiavon@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Simone, yes I setted the proxy base url to:<div><div><ul style="margin:0px;padding:0px;border:0px;font-size:12px;font-family:Tahoma,"Lucida Sans Unicode","Lucida Grande",Verdana,sans-serif;vertical-align:baseline;list-style-type:none;color:rgb(38,37,35)"><li style="margin:0px 0px 0.3em;padding:4px 5px 2px 0px;border:0px;font-weight:inherit;font-style:inherit;font-family:inherit;vertical-align:baseline;display:block"><label for="m_-3251580580360043258m_-4813863758606337316m_4091591216542203969proxyBaseUrl" style="margin:0px;padding:0px 0px 1px;border:medium none;font-style:inherit;font-size:0.95em;font-family:inherit;vertical-align:baseline;color:rgb(34,34,34);display:block;line-height:1.5em">Proxy Base URL</label><input id="m_-3251580580360043258m_-4813863758606337316gmail-m_4091591216542203969gmail-proxyBaseUrl" class="m_-3251580580360043258m_-4813863758606337316gmail-m_4091591216542203969gmail-field m_-3251580580360043258m_-4813863758606337316gmail-m_4091591216542203969gmail-text" type="text" value="http://192.168.31.80/geoserver" name="proxyBaseUrl" style="background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial;color:rgb(51,51,51);border-width:1px;border-style:solid;border-color:rgb(124,124,124) rgb(195,195,195) rgb(221,221,221);width:25em;padding:0.2em;font-size:1em"></li><li class="m_-3251580580360043258m_-4813863758606337316gmail-m_4091591216542203969gmail-choiceItem" style="margin:0px 0px 0.3em;padding:4px 5px 2px 2em;border:0px;font-weight:inherit;font-style:inherit;font-family:inherit;vertical-align:baseline;display:block"><input id="m_-3251580580360043258m_-4813863758606337316gmail-m_4091591216542203969gmail-globalServices" type="checkbox" checked name="globalServices" style="background:rgb(255,255,255);color:rgb(0,0,0);display:block"><label for="m_-3251580580360043258m_-4813863758606337316m_4091591216542203969globalServices" style="margin:0px;padding:0px 0px 1px;border:medium none;font-style:inherit;font-family:inherit;vertical-align:baseline;color:rgb(34,34,34);display:inline;line-height:1.5em">Enable global services</label></li></ul></div></div><div><span style="font-size:12px"><font face="arial, helvetica, sans-serif"><br></font></span></div><div><font face="arial, helvetica, sans-serif">I have read the docs you mention <span style="font-size:12.8px"> </span><a href="http://docs.geonode.org/en/master/tutorials/admin/geoserver_geonode_security/index.html?highlight=oauth2" style="font-size:12.8px" target="_blank">http://docs.geonode.o<wbr>rg/en/master/tutorials/admin/g<wbr>eoserver_geonode_security/inde<wbr>x.html?highlight=oauth2</a> , now I'll check all steps.</font></div><div><font face="arial, helvetica, sans-serif"><br></font></div><div><font face="arial, helvetica, sans-serif">I have </font><span style="font-family:arial,helvetica,sans-serif">followed instructions here, applying them to ubuntu:</span></div><div><div style="font-size:12.8px"><a href="https://docs.google.com/document/d/1g_sD8NCzKRflkrbXZp0gqHmELG_B9hz8xCqKHaK-_O8/edit#bookmark=id.kb51dm9cqdlk" style="font-size:12.8px" target="_blank"><font face="arial, helvetica, sans-serif">https://docs.google.com/docume<wbr>nt/d/1g_sD8NCzKRflkrbXZp0gqHmE<wbr>LG_B9hz8xCqKHaK-_O8/edit#bookm<wbr>ark=id.kb51dm9cqdlk</font></a><br></div></div><div style="font-size:12.8px"><font face="arial, helvetica, sans-serif"><br></font></div><div style="font-size:12.8px"><font face="arial, helvetica, sans-serif">I setted the ip address in geonode-oauth2 in a couple of lines they still point to "localhost".</font></div><div style="font-size:12.8px"><font face="arial, helvetica, sans-serif"><br></font></div><div><font face="arial, helvetica, sans-serif"><span style="font-size:12.8px">Here it is an example of a wrong preview link: </span></font></div><div><font face="arial, helvetica, sans-serif"><span style="font-size:12.8px"><a href="http://192.168.31.80/geoserver/geonode/wms?access_token=SFtO1m1uwzKVWzOmJmsQi72nMQyEfi?service=WMS&version=1.1.0&request=GetMap&layers=geonode:v_staz_aria_attive&styles=&bbox=1647277.811,4991070.397,1798213.0,5117620.0&width=768&height=643&srs=EPSG:3003&format=application/openlayers" target="_blank">http://192.168.31.80/geoserver<wbr>/geonode/wms?access_token=SFtO<wbr>1m1uwzKVWzOmJmsQi72nMQyEfi?<wbr>service=WMS&version=1.1.0&requ<wbr>est=GetMap&layers=geonode:v_<wbr>staz_aria_attive&styles=&bbox=<wbr>1647277.811,4991070.397,179821<wbr>3.0,5117620.0&width=768&height<wbr>=643&srs=EPSG:3003&format=<wbr>application/openlayers</a> </span><br></font></div><div style="font-size:12.8px"><font face="arial, helvetica, sans-serif"><br></font></div><div style="font-size:12.8px"><font face="arial, helvetica, sans-serif"><br></font></div><div style="font-size:12.8px"><font face="arial, helvetica, sans-serif">Then, I've some old layers in geonode that doesn't more exists in geoserver. If I try to remove from geonode ui It fails. Also the "geonode updatelayers --remove-deleted" fails on those layers</font></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">There are geonode commands for clean or syncronize databases? Some docs? syncdb is now deprecated, right?</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">Thank you so much</div><div style="font-size:12.8px">Annalisa</div><div style="font-size:12.8px"><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2017-06-30 11:45 GMT+02:00 Simone Dalmasso <span dir="ltr"><<a href="mailto:simone.dalmasso@gmail.com" target="_blank">simone.dalmasso@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Annalisa, for the geoserver preview make sure to set the proxy base url parameter in the geoserver global settings (from ui).<div><br></div><div>For the thumbs it could be still some authentication issues, did you follow all the steps in the docs? <a href="http://docs.geonode.org/en/master/tutorials/admin/geoserver_geonode_security/index.html?highlight=oauth2" target="_blank">http://docs.geonode.org/<wbr>en/master/tutorials/admin/geos<wbr>erver_geonode_security/index.h<wbr>tml?highlight=oauth2</a></div></div><div class="gmail_extra"><div><div class="m_-3251580580360043258m_-4813863758606337316h5"><br><div class="gmail_quote">2017-06-30 11:30 GMT+02:00 Annalisa Schiavon <span dir="ltr"><<a href="mailto:annalisa.schiavon@gmail.com" target="_blank">annalisa.schiavon@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Well, I don't know why, but this morning layers and maps in geonode are displayed correctly, no more pink tiles!<div>Layer's thumbs aren't displayed even after having setted them with edit layer button, except for some. I set permissions to /var/www/geonode/uploaded/t<wbr>humbs dir to 664 (some files were 644) and owner to www-data.</div><div><br></div><div><span style="font-size:12.8px">Preview layers in Geoserver still doesn't work. I attach wms error.</span><br></div><div><br></div><div><span style="font-size:12.8px">After these errors, geonode is thrown out and authentication fails,</span><span style="font-size:12.8px"> </span><span style="font-size:12.8px">when browsing in geoserver.</span></div><div><br></div><div><span style="font-size:12.8px">I </span><span style="font-size:12.8px">also</span><span style="font-size:12.8px"> </span><span style="font-size:12.8px">attach errors.zip with logs from apache and tomcat.</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">Thanks!</span></div></div><div class="gmail_extra"><br><div class="gmail_quote">2017-06-29 14:22 GMT+02:00 Simone Dalmasso <span dir="ltr"><<a href="mailto:simone.dalmasso@gmail.com" target="_blank">simone.dalmasso@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Annalisa, the distribution url is not used in GeoNode 2.6, it's in the db because the migrations don't delete fields.<div>For the display issue check the http request made by the browser and you should be able to see more info about the error.</div><div><br><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="m_-3251580580360043258m_-4813863758606337316m_-1295062875984056793m_3635107555270123238h5">2017-06-29 11:48 GMT+02:00 Annalisa Schiavon <span dir="ltr"><<a href="mailto:annalisa.schiavon@gmail.com" target="_blank">annalisa.schiavon@gmail.com</a>></span>:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="m_-3251580580360043258m_-4813863758606337316m_-1295062875984056793m_3635107555270123238h5"><div dir="ltr">Hi all,<div>I'm migrating from geonode 2.4 to 2.6.</div><div>I've restored geonode DB and geonode-data DB (DB postgres with all my vector layers) in a new server (a fresh ubuntu 16.04) than I've <span style="font-size:12.8px">launched $geonode migrate --fake-initial.</span></div><div><span style="font-size:12.8px">I also launched a geonode-updateip 192.168.31.80 (my internal ip for now) for authentication issues. But the "distribution url" field in "base_resourcebase" table still has the old ip.</span></div><div><span style="font-size:12.8px">I found this issue: <a href="https://github.com/GeoNode/geonode/issues/1694" target="_blank">https://github.com/GeoN<wbr>ode/geonode/issues/1694</a> . How can I resolve? Preview layers in Geoserver doesn't work and layers and maps in geonode aren't displayed.</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">Thanks</span></div><span class="m_-3251580580360043258m_-4813863758606337316m_-1295062875984056793m_3635107555270123238m_4274033165614543015HOEnZb"><font color="#888888"><div><span style="font-size:12.8px">Annalisa</span></div></font></span></div>
<br></div></div>______________________________<wbr>_________________<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/mailma<wbr>n/listinfo/geonode-users</a><br>
<br></blockquote></div><span class="m_-3251580580360043258m_-4813863758606337316m_-1295062875984056793m_3635107555270123238HOEnZb"><font color="#888888"><br><br clear="all"><span class="m_-3251580580360043258HOEnZb"><font color="#888888"><span class="m_-3251580580360043258m_-4813863758606337316m_-1295062875984056793HOEnZb"><font color="#888888"><div><br></div>-- <br><div class="m_-3251580580360043258m_-4813863758606337316m_-1295062875984056793m_3635107555270123238m_4274033165614543015gmail_signature" data-smartmail="gmail_signature">Simone </div>
</font></span></font></span></font></span></div></div></div><span class="m_-3251580580360043258HOEnZb"><font color="#888888">
</font></span></blockquote></div><span class="m_-3251580580360043258HOEnZb"><font color="#888888"><br></font></span></div><span class="m_-3251580580360043258HOEnZb"><font color="#888888">
</font></span></blockquote></div><span class="m_-3251580580360043258HOEnZb"><font color="#888888"><br><br clear="all"><div><br></div></font></span></div></div><span class="m_-3251580580360043258HOEnZb"><font color="#888888"><span class="m_-3251580580360043258m_-4813863758606337316HOEnZb"><font color="#888888">-- <br><div class="m_-3251580580360043258m_-4813863758606337316m_-1295062875984056793gmail_signature" data-smartmail="gmail_signature">Simone </div>
</font></span></font></span></div>
</blockquote></div><br></div>
</blockquote></div><br><br clear="all"><div><br></div></div></div><span class="HOEnZb"><font color="#888888">-- <br><div class="m_-3251580580360043258gmail_signature" data-smartmail="gmail_signature">Simone </div>
</font></span></div>
</blockquote></div><br></div>