Re: [Geoserver-users] HTTP ERROR 503 on startup after moving Geoserver data directory

2021-10-22 Thread Clint Hastings via Geoserver-users
 Easier to just rename the top level directory, like adding NOT at the end.
On Thursday, October 21, 2021, 04:02:36 PM MDT, Humphries, Graham 
 wrote:  
 
 Why don't you try moving the offending directory to another location on the 
file system and try to start Geoserver. If it is worse than before you can then 
move it back

-Original Message-
From: Steffen Reichel 
Sent: Thursday, 21 October 2021 8:25 PM
To: geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] HTTP ERROR 503 on startup after moving Geoserver 
data directory


On 20.10.21 14:03, Russ Hore wrote:
> Ah, I am not sure about Jetty but for Tomcat, it does not matter if
> the data folder is 777/rwxrwxrwx, if it is not listed in the
> tomcat.service file, it can't be written to, as far as I am aware
> under Tomcat9.
I'm 100% sure that Jetty / the Servlet can write to the data directory, because 
can I see it doing it - the logfile for example is in there. ;-)

Also the mountpoint of the datafolder did not change - my question may have 
been formulated a bit unprecise. I moved the data do a different partition (was 
running out of space on the old one) and mounted it to the same mountpoint as 
the old one. So from the point of view of Jetty nothing changed. There is 
simply a different partition behind the same mountpoint.

Thus my question still stands: Can I safely delete the offending configuration 
folder in gwc-layers or will this mess up something in the GWC configuration 
and make the situation worse? The error I'm getting is:

java.lang.IllegalStateException: Could not locate a layer or layer group with 
id LayerInfoImpl--fd40ab5:166e9af110c:-273f within GeoServer configuration, the 
GWC configuration seems to be out of synch

Kind regards,
Steffen


___
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
https://aus01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.ianturton.com%2Ftalks%2Ffoss4g.html%23%2F&data=04%7C01%7Cgraham.humphries%40stategrowth.tas.gov.au%7C31321d4b1f3a4fbb563508d99474dd91%7C64ebab8accf44b5ca2d32b4e972d96b2%7C0%7C0%7C637704052998412179%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=jJXinvicME%2Bj3MnzaQSr%2FWPYNireBrPpsFYO9PtCu%2B4%3D&reserved=0
- The GeoServer user list posting guidelines: 
https://aus01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fgeoserver.org%2Fcomm%2Fuserlist-guidelines.html&data=04%7C01%7Cgraham.humphries%40stategrowth.tas.gov.au%7C31321d4b1f3a4fbb563508d99474dd91%7C64ebab8accf44b5ca2d32b4e972d96b2%7C0%7C0%7C637704052998422174%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=KRg23F%2F2xS2yvwd3V%2FJCacBxAi6EuWULDAEUQdkmDHg%3D&reserved=0

If you want to request a feature or an improvement, also see this: 
https://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fgeoserver%2Fgeoserver%2Fwiki%2FSuccessfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer&data=04%7C01%7Cgraham.humphries%40stategrowth.tas.gov.au%7C31321d4b1f3a4fbb563508d99474dd91%7C64ebab8accf44b5ca2d32b4e972d96b2%7C0%7C0%7C637704052998422174%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=gEQUDw7Yq1PL5m37rYsFdQ2eSoyRUG2ruA4hwCypURw%3D&reserved=0


Geoserver-users@lists.sourceforge.net
https://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.sourceforge.net%2Flists%2Flistinfo%2Fgeoserver-users&data=04%7C01%7Cgraham.humphries%40stategrowth.tas.gov.au%7C31321d4b1f3a4fbb563508d99474dd91%7C64ebab8accf44b5ca2d32b4e972d96b2%7C0%7C0%7C637704052998422174%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=DXhOydoVNHf1FBDAamePM2YtIvohRFMM%2BU431jnsXXQ%3D&reserved=0



CONFIDENTIALITY NOTICE AND DISCLAIMER
The information in this transmission may be confidential and/or protected by 
legal professional privilege, and is intended only for the person or persons to 
whom it is addressed. If you are not such a person, you are warned that any 
disclosure, copying or dissemination of the information is unauthorised. If you 
have received the transmission in error, please immediately contact this office 
by telephone, fax or email, to inform us of the error and to enable 
arrangements to be made for the destruction of the transmission, or its return 
at our cost. No liability is accepted for any unauthorised use of the 
information contained in this transmission.


___
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoSe

Re: [Geoserver-users] GetCapabilities from a single feature

2021-10-22 Thread XAVIER RAYO SARRIAS
Thanks a lot, Jukka.

I'll try this envelope option.

Thanks!

El jue, 21 oct 2021 a las 13:52, Rahkonen Jukka (MML) (<
jukka.rahko...@maanmittauslaitos.fi>) escribió:

> Hi,
>
>
>
> Your assumption about what GetCapabilities possibly supports is wrong. You
> can read what WMS supports from the standard itself
> https://portal.ogc.org/files/?artifact_id=14416. You could have asked the
> real question right ahead “I want to obtain the Bbox of a single feature
> from my layer. How?”
>
>
>
> You can query the feature with WFS if the server supports WFS, take the
> geometry and compute the envelope. Or you can make WMS GetFeatureInfo
> request with info_format= application/vnd.ogc.gml if your server supports
> the format, take the geometry and compute the envelope. There may be other
> alternatives but those two came into my mind.
>
>
>
> -Jukka Rahkonen-
>
>
>
> *Lähettäjä:* XAVIER RAYO SARRIAS 
> *Lähetetty:* torstai 21. lokakuuta 2021 14.01
> *Vastaanottaja:* Marco Lechner 
> *Kopio:* geoserver-users@lists.sourceforge.net
> *Aihe:* Re: [Geoserver-users] GetCapabilities from a single feature
>
>
>
> Hi Marci,
>
> thanks for your answer. The truth is that I was thinking in
> Getcapabilities because I want to obtain the Bbox of a single feature from
> my layer. And I thought that maybe I could do a filter from the
> getcapabilities request.
>
> Any Idea?
>
>
>
> Thanks!
>
>
>
> El jue, 21 oct 2021 a las 12:57, Marco Lechner ()
> escribió:
>
> I assume you mean GetFeature not GetCapabilities:
>
>
>
> See
> https://docs.geoserver.org/latest/en/user/services/wfs/reference.html#getfeature
>
>
>
> with lots of examples
>
>
>
>
>
> *Von:* XAVIER RAYO SARRIAS 
> *Gesendet:* Donnerstag, 21. Oktober 2021 12:27
> *An:* geoserver-users@lists.sourceforge.net
> *Betreff:* [Geoserver-users] GetCapabilities from a single feature
>
>
>
> *WARNUNG:* Diese E-Mail kam von außerhalb der Organisation. Klicken Sie
> nicht auf Links oder öffnen Sie keine Anhänge, es sei denn, Sie kennen
> den/die Absender*in und wissen, dass der Inhalt sicher ist.
>
>
>
> Is it possible to make a GetCapabilities request from a single feature of
> a WFS service?
>
>
>
> Thanks!
>
>
___
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

If you want to request a feature or an improvement, also see this: 
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


[Geoserver-users] Unparseable date

2021-10-22 Thread Niklas Elelid

Dear list members,

I have a couple of ImageMosaic layers with TIME dimension running on 
Geoserver 2.18.2. The store for the mosaic data is a Postgres database.


Everything has been running fine until a couple of days when suddenly no 
tiles are served. Looking in the log file I find the below issue 
regarding date parsing, which I do not understand. To me that looks like 
a correct ISO-8601 date. This is the date format as stored in the 
database as well:


 4521107 | 
010320BE0B0100050039B4C87686EBFE404E6210389BD3564139B4C87686EBFE404E6210381DA55D41448B6C675C6930414E6210381DA55D41448B6C675C6930414E6210389BD3564139B4C87686EBFE404E6210389BD35641 
| 20211022T073000Z.tif | 2021-10-22T07:30:00Z


I swear I have personally not made any changes to the setup, it just 
stopped working. I however don't know if any update from the Linux 
hosting provider as taken place that could cause this.


I have deleted all files, all SQL records and recreated with the REST 
api command but the problem persists.


Thanks in advance for any help.

/Niklas

Logfile:

2021-10-22 11:07:49,386 WARN [catalog.util] - Unparseable date: 
"2021-10-22T07:30:00Z"

java.text.ParseException: Unparseable date: "2021-10-22T07:30:00Z"
    at java.base/java.text.DateFormat.parse(DateFormat.java:395)
    at 
org.geoserver.catalog.util.ReaderDimensionsAccessor.parseTimeOrRange(ReaderDimensionsAccessor.java:224)
    at 
org.geoserver.catalog.util.ReaderDimensionsAccessor.getTimeDomain(ReaderDimensionsAccessor.java:161)
    at 
org.geoserver.wms.dimension.impl.CoverageNearestValueSelectionStrategyImpl.findNearestTime(CoverageNearestValueSelectionStrategyImpl.java:109)
    at 
org.geoserver.wms.dimension.impl.CoverageNearestValueSelectionStrategyImpl.getDefaultValue(CoverageNearestValueSelectionStrategyImpl.java:81)

    at org.geoserver.wms.WMS.getDefaultTime(WMS.java:1480)
    at org.geoserver.wms.WMS.getWMSReadParameters(WMS.java:1091)
    at org.geoserver.wms.GetMap.executeInternal(GetMap.java:618)
    at org.geoserver.wms.GetMap.run(GetMap.java:300)
    at org.geoserver.wms.GetMap.run(GetMap.java:123)
    at 
org.geoserver.wms.DefaultWebMapService.getMap(DefaultWebMapService.java:246)
    at jdk.internal.reflect.GeneratedMethodAccessor313.invoke(Unknown 
Source)
    at 
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

    at java.base/java.lang.reflect.Method.invoke(Method.java:566)
    at 
org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:343)
    at 
org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:198)
    at 
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)
    at 
org.geoserver.kml.WebMapServiceKmlInterceptor.invoke(WebMapServiceKmlInterceptor.java:38)
    at 
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
    at 
org.geoserver.gwc.wms.CacheSeedingWebMapService.invoke(CacheSeedingWebMapService.java:55)
    at 
org.geoserver.gwc.wms.CacheSeedingWebMapService.invoke(CacheSeedingWebMapService.java:31)
    at 
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
    at 
org.geoserver.gwc.wms.CachingWebMapService.invoke(CachingWebMapService.java:61)
    at 
org.geoserver.gwc.wms.CachingWebMapService.invoke(CachingWebMapService.java:41)
    at 
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
    at 
org.geoserver.ows.util.RequestObjectLogger.invoke(RequestObjectLogger.java:50)
    at 
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
    at 
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:212)

    at com.sun.proxy.$Proxy104.getMap(Unknown Source)
    at jdk.internal.reflect.GeneratedMethodAccessor258.invoke(Unknown 
Source)
    at 
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

    at java.base/java.lang.reflect.Method.invoke(Method.java:566)
    at org.geoserver.ows.Dispatcher.execute(Dispatcher.java:877)
    at 
org.geoserver.ows.Dispatcher.handleRequestInternal(Dispatcher.java:265)
    at 
org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:177)
    at 
org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:52)
    at 
org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1040)
    at 
org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:943)
    at 
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006)
    at 
org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:898)

    at javax.servle