[Geoserver-users] GeoServer Rest URL not reporting correct information

Replying to Andrea Aime,

image001.jpg

···

Never heard of it… in my experience when it says it’s not there, it’s

actually not there.

Is the creation of the store returning a HTTP 200? What exact response do

you get on

creation, and when it claims the store not to be there?

Also, when that happens, do you see it on the UI? Does it eventually show

up in the UI or REST?

Finally, how are you managing the clustering, any plugin, is the data dir

shared or replicated,

what OS are you using, and if any, what shared filesystem?

The creation of the store is returning an HTTP status of 200.

We believe the problem is that we have data coming in too fast and 2 or more GeoServers are trying to create the same layer at the same time.

When it claims the store is not there it is returning “No such coverage store: <STORE_NAME>,<LAYER_NAME>” when I use Firefox to browse to the coverage store

http://:8080/geoserver/rest/workspaces/<WORKSPACE_NAME>/coveragestores/<COVERAGE_STORE_NAME>.

When I use wget http://:8080/geoserver/rest/workspaces/<WORKSPACE_NAME>/coveragestores/<COVERAGE_STORE_NAME> it returns

“HTTP request sent, awaiting response… 404 Not Found”.

In the GeoServer UI, if I search for the duplicate coverage store I get this response: “Oops, something went wrong…”.

If I search for the layer, one layer is retuned. If I then click on the coverage store name it returns a red error at the top of the page ‘Could not find data coverage store “<COVERAGE_STORE_NAME>” in workspace “<WORKSPACE_NAME>”’.

In the geoserver log I see:

org.apache.wicket.WicketRuntimeException: Error attaching this container for rendering: [MarkupContainer [Component id = 26]]

at org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1765)

at org.apache.wicket.Component.onBeforeRender(Component.java:3946)

at org.apache.wicket.Component.internalBeforeRender(Component.java:1071)

at org.apache.wicket.Component.beforeRender(Component.java:1105)

Caused by: java.lang.RuntimeException: Don’t know what to do with this store null

at org.geoserver.web.data.store.StorePanel.storeNameLink(StorePanel.java:114)

at org.geoserver.web.data.store.StorePanel.getComponentForProperty(StorePanel.java:80)

at org.geoserver.web.wicket.GeoServerTablePanel$2$1.populateItem(GeoServerTablePanel.java:162)

I have not seen the coverage store ever eventually show up.

We are not using any plugins to manage the clustering (we weren’t successful getting them to work).

The data directory is a shared nfs.

We are using Red Hat Enterprise Linux Server release 6.4.

Amanda Schabowsky

SW Engineer, WMSS II program

Critical Networks/HARRIS CORPORATION

Office: +1-321-309-7497

harris.com / mailto:amanda.schabowsky@anonymised.com
407 N John Rodes Blvd / Melbourne, FL 32934 / USA

Harris_wR_2color_72dpi.jpg

On Thu, Jan 7, 2016 at 6:23 PM, Schabowsky, Amanda <aschabow@anonymised.com>
wrote:

I have not seen the coverage store ever eventually show up.

We are not using any plugins to manage the clustering (we weren’t
successful getting them to work).

They are both working in existing production enviroments, but yeah, not
exactly easy to setup.

The data directory is a shared nfs.

Yes, this setup is known _not_ to work. If you want to hit all GeoServer in
parallel, you'll
have to keep the data directories separate, one for each GeoServer (with
the risk of
a node getting out of synch when it goes down for any reason... but that's
why we have
the clustering plugins to start with).

Cheers
Andrea

--

GeoServer Professional Services from the experts! Visit
http://goo.gl/it488V for more information.

*Geosolutions' Winter Holidays from 24/12 to 6/1*

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549

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.

-------------------------------------------------------