When I try to remove a layer through the management interface, I am getting a server error and the layer is not removed. After an upgrade, these layers are causing other problems, so how can I remove them without going through the management interface?
Garey Mills
–
Generate messages about directories that cannot be
read, files that cannot be opened … rather than being silent …
(from man du
)
On 27/08/2014 7:43 a.m., Garey Mills wrote:
When I try to remove a layer through the management interface, I am getting a server error and the layer is not removed. After an upgrade, these layers are causing other problems, so how can I remove them without going through the management interface?
You could try the REST interface. I hesitate to suggest editing the XML, (and then reload config from management interface) but that would be another possibility if REST fails too.
Notice: This email and any attachments are confidential.
If received in error please destroy and immediately notify us.
Do not copy or disclose the contents.
Phil - Thanks for your response. If I was to edit the XML, which files would I edit? I can’t find the layer names that I want to delete anywhere besides in workspaces//
Garey
···
On Tue, Aug 26, 2014 at 2:05 PM, Phil Scadden <p.scadden@anonymised.com> wrote:
On 27/08/2014 7:43 a.m., Garey Mills wrote:
When I try to remove a layer through the management interface, I am
getting a server error and the layer is not removed. After an upgrade,
these layers are causing other problems, so how can I remove them
without going through the management interface?
You could try the REST interface. I hesitate to suggest editing the XML,
(and then reload config from management interface) but that would be
another possibility if REST fails too.
Notice: This email and any attachments are confidential.
If received in error please destroy and immediately notify us.
Do not copy or disclose the contents.
Slashdot TV.
Video for Nerds. Stuff that matters.
http://tv.slashdot.org/
Geoserver-users mailing list
Geoserver-users@anonymised.comsts.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
–
Generate messages about directories that cannot be
read, files that cannot be opened … rather than being silent …
(from man du
)
Phil - Thanks for your response. If I was to edit the XML, which files would I edit? I can't find the layer names that I want to delete anywhere besides in workspaces/<workplace>/<store>
I have never done this. I also believe it depends on which version of geoserver you use.
I would try doing it by REST first.
However, what I believe would be enough, would be delete any entry
in data_dir/workspaces/<workspace>/namespace.xml and to delete the directory with the layer name as well. (2.5.1 layout). Definitely want to backup the data_dir first!
And try REST first
Notice: This email and any attachments are confidential.
If received in error please destroy and immediately notify us.
Do not copy or disclose the contents.