[GeoNode-users] Issue on updateip in migration to 2.6

Annalisa Schiavon annalisa.schiavon at gmail.com
Mon Jul 3 02:14:49 PDT 2017


The preview link display a wms error:
<?xml version="1.0" encoding="UTF-8" standalone="no"?><!DOCTYPE
ServiceExceptionReport SYSTEM "
http://192.168.31.80/geoserver/schemas/wms/1.1.1/WMS_exception_1_1_1.dtd?access_token=SmC0lS6g2T3CKkXAM8UehzlPOSDEgZ%3Fservice%3DWMS">
<ServiceExceptionReport version="1.1.1" >   <ServiceException
code="LayerNotDefined" locator="layers">
      Could not find layer geonode:v_staz_aria_attive
</ServiceException></ServiceExceptionReport>

In geonode-oauth2 (Authentication) 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.
I've restared apache and tomcat but still the same error ...

I'm going to check all steps ...

Hi


2017-07-03 10:38 GMT+02:00 Simone Dalmasso <simone.dalmasso at gmail.com>:

> Ciao Annalisa,
>
> 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.
>
> For the stale layers, you can remove them from the admin panel.
>
> 2017-07-03 9:50 GMT+02:00 Annalisa Schiavon <annalisa.schiavon at gmail.com>:
>
>> Simone, yes I setted the proxy base url to:
>>
>>    - Proxy Base URL
>>    - Enable global services
>>
>>
>> I have read the docs you mention  http://docs.geonode.o
>> rg/en/master/tutorials/admin/geoserver_geonode_security/inde
>> x.html?highlight=oauth2 , now I'll check all steps.
>>
>> I have followed instructions here, applying them to ubuntu:
>> https://docs.google.com/document/d/1g_sD8NCzKRflkrbXZp0gqHmE
>> LG_B9hz8xCqKHaK-_O8/edit#bookmark=id.kb51dm9cqdlk
>>
>> I setted the ip address in geonode-oauth2 in a couple of lines they still
>> point to "localhost".
>>
>> Here it is an example of a wrong preview link:
>> http://192.168.31.80/geoserver/geonode/wms?access_token=SFtO
>> 1m1uwzKVWzOmJmsQi72nMQyEfi?service=WMS&version=1.1.0&requ
>> est=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
>>
>>
>> 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
>>
>> There are geonode commands for clean or syncronize databases? Some docs?
>> syncdb is now deprecated, right?
>>
>> Thank you so much
>> Annalisa
>>
>>
>> 2017-06-30 11:45 GMT+02:00 Simone Dalmasso <simone.dalmasso at gmail.com>:
>>
>>> Annalisa, for the geoserver preview make sure to set the proxy base url
>>> parameter in the geoserver global settings (from ui).
>>>
>>> For the thumbs it could be still some authentication issues, did you
>>> follow all the steps in the docs? http://docs.geonode.org/
>>> en/master/tutorials/admin/geoserver_geonode_security/index.h
>>> tml?highlight=oauth2
>>>
>>> 2017-06-30 11:30 GMT+02:00 Annalisa Schiavon <
>>> annalisa.schiavon at gmail.com>:
>>>
>>>> Well, I don't know why, but this morning layers and maps in geonode are
>>>> displayed correctly, no more pink tiles!
>>>> 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/thumbs dir to 664 (some files were 644)
>>>> and owner to www-data.
>>>>
>>>> Preview layers in Geoserver still doesn't work. I attach wms error.
>>>>
>>>> After these errors, geonode is thrown out and authentication fails, when
>>>> browsing in geoserver.
>>>>
>>>> I also attach errors.zip with logs from apache and tomcat.
>>>>
>>>> Thanks!
>>>>
>>>> 2017-06-29 14:22 GMT+02:00 Simone Dalmasso <simone.dalmasso at gmail.com>:
>>>>
>>>>> Annalisa, the distribution url is not used in GeoNode 2.6, it's in the
>>>>> db because the migrations don't delete fields.
>>>>> For the display issue check the http request made by the browser and
>>>>> you should be able to see more info about the error.
>>>>>
>>>>>
>>>>> 2017-06-29 11:48 GMT+02:00 Annalisa Schiavon <
>>>>> annalisa.schiavon at gmail.com>:
>>>>>
>>>>>> Hi all,
>>>>>> I'm migrating from geonode 2.4 to 2.6.
>>>>>> 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 launched
>>>>>> $geonode migrate --fake-initial.
>>>>>> 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.
>>>>>> I found this issue: https://github.com/GeoNode/geonode/issues/1694
>>>>>> .  How can I resolve? Preview layers in Geoserver doesn't work and layers
>>>>>> and maps in geonode aren't displayed.
>>>>>>
>>>>>> Thanks
>>>>>> Annalisa
>>>>>>
>>>>>> _______________________________________________
>>>>>> geonode-users mailing list
>>>>>> geonode-users at lists.osgeo.org
>>>>>> https://lists.osgeo.org/mailman/listinfo/geonode-users
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Simone
>>>>>
>>>>
>>>>
>>>
>>>
>>> --
>>> Simone
>>>
>>
>>
>
>
> --
> Simone
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20170703/c645e02a/attachment-0001.html>


More information about the geonode-users mailing list