[GeoNode-users] Errors on layer info after upgrade

Paolo Corti pcorti at gmail.com
Fri Feb 19 07:47:12 PST 2016


Hi Annalisa
that is the only setting where you can change the location of the
GeoServer data directory.
p

On Fri, Feb 19, 2016 at 5:05 AM, Annalisa Schiavon
<annalisa.schiavon at gmail.com> wrote:
> I was wondering, there is a place in geonode where setting the
> Geoserver-data-dir?
> I've just modified web.xml file in /usr/share/geoserver/WEB-INF
>
> 2016-02-18 18:18 GMT+01:00 Annalisa Schiavon <annalisa.schiavon at gmail.com>:
>>
>> The layer info page doesn't caused errors on 2.4c1, but the "manage style"
>> operation caused no result on "load styles".
>> I don't know what value had sld_url.
>>
>> I upgrade ubuntu, after having update ppa references. Then I've changed
>> the geoserver data-dir, from default to my path. At this point I have 73
>> layers on geoserver and also on geonode, but the errors described above.
>> Than I run updatelayers, but with no result. I run again updatelayers,
>> adding some layers, and the new layers have the right value of sld_url and
>> the layer info page is OK forma the news.
>>
>> Il 18/feb/2016 03:28 PM, "Paolo Corti" <pcorti at gmail.com> ha scritto:
>>>
>>> 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