I've encountered this same (or similar) problem many times. I think its something we should definitely have some integration tests for and try to figure out where its failing. It makes perfect sense to many people to delete layers via the admin, but it often fails.
Ariel, let us know if you find an existing ticket, otherwise, I can replicate it locally and file one if you dont beat me to it. Jeff On Thu, Mar 15, 2012 at 7:56 AM, Ariel Nunez <[email protected]>wrote: > The issue is caused by the 'post_save' hooks in the Layer model. They try > to do things from geonetwork as well as geoserver and will abort the delete > operation if something goes wrong. > > To get something more useful than a generic 'Internal Error' you can turn > DEBUG=True in your /etc/geonode/local_settings.py file, restart apache and > re-try the operation. Once you have a more meaningful error you can paste > somewhere (for example: http://pastebin.ca/ ) and give us the link here > to inspect it in more detail. > > I am unsure about what the generic solution to the problem should be, or > whether or not we have a ticket related to it. But will try to find out. > > Ariel. > > On Thu, Mar 15, 2012 at 10:45 AM, Andrew Ross <[email protected]> wrote: > >> ** >> Hey guys, >> We had this error when the St. Lucian GeoNode was upgraded. It seems >> similar to the issue that CAPRA has as well. >> >> Andrew./ >> >> >> -------- Original Message -------- Subject: [geonode] Cannot delete >> data layers in GeoNode Date: Thu, 15 Mar 2012 10:41:46 -0400 From: Jim >> Joseph <[email protected]> <[email protected]> Reply-To: >> [email protected] To: [email protected] >> >> >> Dear colleagues; >> >> Grateful for your help. I uploaded some data layers in GeoNode. I >> wanted to delete some of them by using the admin module. I was able to do >> so in some cases but I am having trouble deleting 3 layers. When I select >> the layer, select the delete function and confirm that I want to delete the >> layer I get logged out of the Django Admin screen and it says "Internal >> server error". >> >> The layer name still shows on the list from the main data search screen, >> but if I select it to view the layer I get the same internal error screen. >> How do I delete the layer permanently. >> >> (Ariel it is the soils and placenames layer on our installation - ID 2, >> 8 and 24) >> >> Jim Joseph >> GeoData Coordinator >> Ministry of Physical Development >> Saint Lucia >> >> >
