[GeoNode-users] Errors on layer info after upgrade

Paolo Corti pcorti at gmail.com
Thu Feb 18 06:37:11 PST 2016


Having said so, it will be better to implement some error handling in
the failing line:
https://github.com/GeoNode/geonode/blob/master/geonode/layers/models.py#L68

p

On Thu, Feb 18, 2016 at 9:27 AM, Paolo Corti <pcorti at gmail.com> wrote:
> Hi Annalisa
> this is strange indeed, because accordingly to what you did the value
> for sld_url shouldn't have changed (unless you run updatelayers on the
> layer), and that value indicates that at
> some point the layer was saved and this generated the error (every
> time the layer is saved the style table is synced with GeoServer).
> Are you sure that this page was not causing error also on 2.4c1?
> cheers
> p
>
> On Thu, Feb 18, 2016 at 9:19 AM, Annalisa Schiavon
> <annalisa.schiavon at gmail.com> wrote:
>> Maybe I found the error. In my layers_style table, the field "sld_url" is
>> like:
>> <bound method Style.body_href of <geoserver.style.Style object at
>> 0x7f9a0fda9610>>
>> or
>> http://localhost:8080/geoserver/rest/styles/depuratoripubblici.xml
>>
>> If I change the field to
>> "http://localhost:8080/geoserver/rest/styles/acque_transizione.sld", for
>> example, there's no errors for that layer.
>>
>> I've launched an updatelayers for all my layers, before found this, but it
>> doesn't correct the layer's styles. Is it linked to this issue:
>> https://github.com/GeoNode/geonode/issues/2329 ?
>>
>> However the updatelayers has deleted some layers, I don't know why, and then
>> it has re-created them, correctly.
>> So, now, I have to change manually all "sld_url" values or you have other
>> suggestions?
>>
>> Thanks
>> Annalisa
>>
>> 2016-02-18 14:44 GMT+01:00 Muhammad <mnabiahmad at gmail.com>:
>>>
>>> Hi Alessio
>>>
>>> See if data in field 'detail_url' from table base_resourcebase are
>>> correct. It should not be empty.
>>>
>>>
>>>
>>> On 02/18/2016 04:11 PM, Alessio Fabiani wrote:
>>>
>>> Did you specify the DB PORT on your local_settings.py?
>>>
>>> If so, be sure the value is quoted:
>>>
>>> "5432"
>>>
>>> if you remove the quotes you'll get an error similar to the one on the
>>> logs.
>>>
>>>
>>> Best Regards,
>>> Alessio Fabiani.
>>>
>>> ==
>>> GeoServer Professional Services from the experts!
>>> Visit http://goo.gl/it488V for more information.
>>> ==
>>>
>>> Ing. Alessio Fabiani
>>> @alfa7691
>>> Founder/Technical Lead
>>>
>>> GeoSolutions S.A.S.
>>> Via di Montramito 3/A
>>> 55054  Massarosa (LU)
>>> Italy
>>> phone: +39 0584 962313
>>> fax:     +39 0584 1660272
>>> mob:   +39 333 8128928
>>>
>>> http://www.geo-solutions.it
>>> http://twitter.com/geosolutions_it
>>>
>>> -------------------------------------------------------
>>>
>>> AVVERTENZE AI SENSI DEL D.Lgs. 196/2003
>>>
>>> Le informazioni contenute in questo messaggio di posta elettronica e/o
>>> nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il loro
>>> utilizzo è consentito esclusivamente al destinatario del messaggio, per le
>>> finalità indicate nel messaggio stesso. Qualora riceviate questo messaggio
>>> senza esserne il destinatario, Vi preghiamo cortesemente di darcene notizia
>>> via e-mail e di procedere alla distruzione del messaggio stesso,
>>> cancellandolo dal Vostro sistema. Conservare il messaggio stesso, divulgarlo
>>> anche in parte, distribuirlo ad altri soggetti, copiarlo, od utilizzarlo per
>>> finalità diverse, costituisce comportamento contrario ai principi dettati
>>> dal D.Lgs. 196/2003.
>>>
>>>
>>>
>>> The information in this message and/or attachments, is intended solely for
>>> the attention and use of the named addressee(s) and may be confidential or
>>> proprietary in nature or covered by the provisions of privacy act
>>> (Legislative Decree June, 30 2003, no.196 - Italy's New Data Protection
>>> Code).Any use not in accord with its purpose, any disclosure, reproduction,
>>> copying, distribution, or either dissemination, either whole or partial, is
>>> strictly forbidden except previous formal approval of the named
>>> addressee(s). If you are not the intended recipient, please contact
>>> immediately the sender by telephone, fax or e-mail and delete the
>>> information in this message that has been received in error. The sender does
>>> not give any warranty or accept liability as the content, accuracy or
>>> completeness of sent messages and accepts no responsibility  for changes
>>> made after they were sent or for other risks which arise as a result of
>>> e-mail transmission, viruses, etc.
>>>
>>> ---------------------------------------------------------------------
>>>
>>>
>>> On Thu, Feb 18, 2016 at 1:47 PM, Annalisa Schiavon
>>> <annalisa.schiavon at gmail.com> wrote:
>>>>
>>>> I have sld styles for all my layers. But on geoserver, the preview works
>>>> fine.
>>>> What field on DB I have to check?
>>>>
>>>> It may be due to the fact that I don't have upload sessions associated to
>>>> my layers?
>>>> I usually load layers on postgis, then I create layers in geoserver and
>>>> then I throw  geonode updatelayers from console.
>>>>
>>>>
>>>>
>>>> 2016-02-18 13:14 GMT+01:00 Amedeo Fadini <amefad at gmail.com>:
>>>>>
>>>>> 2016-02-18 12:54 GMT+01:00 Annalisa Schiavon
>>>>> <annalisa.schiavon at gmail.com>:
>>>>> > Hi all,
>>>>> > I've just upgrade geonode from 2.4c1 to 2.4 stable. No errors during
>>>>> > installation, no problem to log in geonode and geoserver, but the
>>>>> > layer info
>>>>> > page  gives "Internal Server Error".
>>>>> > It's all ok in maps, on layers list's, but when I click on a layer, it
>>>>> > gives
>>>>> > internal error.
>>>>> Accoridng to lines 73-74 of erro.log it seems that the script
>>>>> geonode/layers/models.py is unable to make the right url for sld style
>>>>> (index out of range)
>>>>> Do you have custom sld style associated to  the tested layer
>>>>> (rete_balneazione_2015)?
>>>>>
>>>>> Amedeo Fadini
>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> geonode-users mailing list
>>>> geonode-users at lists.osgeo.org
>>>> http://lists.osgeo.org/mailman/listinfo/geonode-users
>>>>
>>>
>>>
>>>
>>> _______________________________________________
>>> geonode-users mailing list
>>> geonode-users at lists.osgeo.org
>>> http://lists.osgeo.org/mailman/listinfo/geonode-users
>>>
>>>
>>>
>>> --
>>> best regards
>>>
>>> Muhammad Nabi Ahmad
>>> Twitter : mnabiahmad
>>> Blog    : https://scriptndebug.wordpress.com/
>>>
>>>
>>> _______________________________________________
>>> geonode-users mailing list
>>> geonode-users at lists.osgeo.org
>>> http://lists.osgeo.org/mailman/listinfo/geonode-users
>>>
>>
>>
>> _______________________________________________
>> geonode-users mailing list
>> geonode-users at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/geonode-users
>>
>
>
>
> --
> Paolo Corti
> Geospatial software developer
> web: http://www.paolocorti.net
> twitter: @capooti
> skype: capooti



-- 
Paolo Corti
Geospatial software developer
web: http://www.paolocorti.net
twitter: @capooti
skype: capooti


More information about the geonode-users mailing list