[GeoNode-users] Deleted layers persist in Geonode
Nic Tait
ngtait at gmail.com
Mon Jun 6 09:39:09 PDT 2016
Thanks Simone
I believe the layers were added through Geoserver by cascading a remote WMS
service as a new store, subsequently layers and store were deleted in
Geoserver.The main Geonode screen reports the correct number of layers but
the deleted layers are still visible in 'Explore Layers'. Geonode appears
to function as normal apart from these 'ghost' layers that cannot be
deleted.
Regards
Nick
On Mon, Jun 6, 2016 at 8:02 AM, Simone Dalmasso <simone.dalmasso at gmail.com>
wrote:
> Could you tell us more on how you loaded the layers?
>
> Usually the best workflow is to manage them from within geonode and not
> directly on geoserver.
>
> PS, please always include the mailing list as others may benefit.
>
> 2016-06-03 13:11 GMT+02:00 <ngtait at gmail.com>:
>
>> Thanks Simo
>>
>> some of the error log below when I try to delete one layer
>>
>>
>> [Fri Jun 03 03:47:17.378725 2016] [:error] [pid 26607:tid
>> 140391119156992] Internal Server Error: /admin/layers/layer/
>> [Fri Jun 03 03:47:17.378755 2016] [:error] [pid 26607:tid
>> 140391119156992] Traceback (most recent call last):
>>
>> .........
>> lines of django errrors
>> .......
>>
>> [Fri Jun 03 03:47:17.378816 2016] [:error] [pid 26607:tid
>> 140391119156992] response = receiver(signal=self, sender=sender,
>> **named)
>> [Fri Jun 03 03:47:17.378818 2016] [:error] [pid 26607:tid
>> 140391119156992] File "/opt/geonode/geonode/geoserver/signals.py", line
>> 36, in geoserver_pre_delete
>> [Fri Jun 03 03:47:17.378820 2016] [:error] [pid 26607:tid
>> 140391119156992] cascading_delete(gs_catalog, instance.typename)
>> [Fri Jun 03 03:47:17.378821 2016] [:error] [pid 26607:tid
>> 140391119156992] File "/opt/geonode/geonode/geoserver/helpers.py", line
>> 230, in cascading_delete
>> [Fri Jun 03 03:47:17.378823 2016] [:error] [pid 26607:tid
>> 140391119156992] workspace, name = layer_name.split(':')
>> [Fri Jun 03 03:47:17.378825 2016] [:error] [pid 26607:tid
>> 140391119156992] ValueError: too many values to unpack
>> [Fri Jun 03 03:47:17.387151 2016] [:error] [pid 26607:tid
>> 140391119156992] [remote 5.133.21.84:40545] mod_wsgi (pid=26607):
>> Exception occurred processing WSGI script
>> '/var/www/geonode/wsgi/geonode.wsgi'.
>>
>> .......
>> more lines of django errors
>> ......
>>
>>
>> Nick
>>
>> <quote author='Simo D'>
>> Hi, do you have any stacktrace from /var/logs/apache2/error.log of when
>> you
>> try to delete one layer from the admin console?
>>
>> 2016-06-02 22:18 GMT+02:00 Stefan Steiniger <sstein at geo.uzh.ch>:
>>
>> > Perhaps the last option may be to check the Database(s) directly, e.g.
>> > connecting with PgAdmin.
>> >
>> > stefan
>> >
>> >
>> > On 02-06-2016 11:58, Nic Tait wrote:
>> >
>> >
>> > Hello Geonode users,
>> >
>> >
>> > I added layers to Geonode from an external service and then deleted them
>> > in Geoserver but they are still visible as empty layers in 'Explore
>> > Layers'
>> > and the 'Admin console' within Geonode
>> >
>> > I deleted the relevant layers , stores and workspace in Geoserver and
>> > cannot find any other reference in Geoserver and then ran the management
>> > command:
>> >
>> > 'python manage.py updatelayers --remove-deleted'
>> >
>> > which returned '[delete_failed]' for all the layers
>> >
>> >
>> > Layers are still visible in the admin console but get 'Internal Server
>> > Error' when trying to delete them this way.
>> >
>> > Have restarted Geonode with 'sudo service apache2 restart' as well to
>> see
>> > if that might fix but no luck
>> >
>> >
>> > Any ideas on how to proceed ?
>> >
>> > Regards,
>> >
>> > Nic
>> >
>> >
>> > _______________________________________________
>> > geonode-users mailing
>> > listgeonode-users at lists.osgeo.orghttp://
>> 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
>> >
>> >
>>
>>
>> --
>> Simone
>>
>> _______________________________________________
>> geonode-users mailing list
>> geonode-users at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/geonode-users
>>
>> </quote>
>> Quoted from:
>>
>> http://osgeo-org.1560.x6.nabble.com/Deleted-layers-persist-in-Geonode-tp5269594p5269682.html
>>
>>
>> _____________________________________
>> Sent from http://osgeo-org.1560.x6.nabble.com
>>
>>
>
>
> --
> Simone
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20160606/3c89373d/attachment.html>
More information about the geonode-users
mailing list