Re: [Geoserver-users] Problems while creating ImageMosaic from GeoTIFFs

2020-12-08 Thread Russ Hore
I have seen this problem where the folder containing the GeoTIFFs does not have 
wrote permission for the Tomcat user (I am assuming you are using Tomcat)

Russ
 
> On 8 Dec 2020, at 11:36, Julius Schmiedt  wrote:
> 
> Hello everybody,
> I face some troubles trying to create a ImageMosaic from local GeoTIFFs.
> 
> On first sight, this problem looks very similar to the issue Nicolas 
> Raggueneau posted here on Sept, 29 (14:44), but from my perspective his 
> solution is not fitting to our case.
> 
> In order to create a ImageMosaic from GeoTIFFs, I am following the steps 
> recommended by the tutorial (Data panel -> Stores -> Add new Store -> Raster 
> Data Source -> ImageMosaic).
> 
> I then select an existing workspace as well as name and description of the 
> data source (GeoTIFFs showing a certain bio index for several parts of a 
> german state). As a connection parameter I choose the path of the directory 
> where the files I want to mosaic reside. If I then click "save" I´m recieving 
> the following error:
> 
> Could not list layers for this store, an error occurred retrieving them: 
> Failed to create reader from 
> file:///mnt/geodienste_cle/ROSE/Lange_M/Sentinel2-Difference-Maps/DSWI/2019-2017/Baden-Wuerttemberg
>  <> and hints Hints: REPOSITORY = 
> org.geoserver.catalog.CatalogRepository@705a75c EXECUTOR_SERVICE = 
> java.util.concurrent.ThreadPoolExecutor@6f559107[Running, pool size = 0, 
> active threads = 0, queued tasks = 0, completed tasks = 0] System defaults: 
> FEATURE_FACTORY = org.geotools.feature.LenientFeatureFactoryImpl@7be885a0 
> FORCE_AXIS_ORDER_HONORING = http COMPARISON_TOLERANCE = 1.0E-8 
> GRID_COVERAGE_FACTORY = GridCoverageFactory TILE_ENCODING = null 
> LENIENT_DATUM_SHIFT = true FILTER_FACTORY = FilterFactoryImpl STYLE_FACTORY = 
> StyleFactoryImpl FORCE_LONGITUDE_FIRST_AXIS_ORDER = true
> 
> My GeoServer Version 2.17.3 is running on Java 11.0.8 (OpenJDK 64-Bit Server 
> VM) with Ubuntu 18.04.5 LTS. The corresponding part of the logs ist attached 
> for further details.
> 
> I would appreciate any recommondations for possible solutions of this problem.
> 
> With kind regards,
> -- 
> Julius Schmiedt
> Wissenschaftliche Hilfskraft
> 
> Department Landschaftsökologie
> Helmholtz-Zentrum für Umweltforschung GmbH - UFZ
> Permoserstraße 15 | 04318 Leipzig
> Tel.: +49 341 235 - 1058
> Email: julius.schmi...@ufz.de 
> Web: https://www.ufz.de 
> ___
> 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 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] Problems while creating ImageMosaic from GeoTIFFs

2020-12-08 Thread Julius Schmiedt

Hello everybody,

I face some troubles trying to create a ImageMosaic from local GeoTIFFs.

On first sight, this problem looks very similar to the issue Nicolas 
Raggueneau posted here on Sept, 29 (14:44), but from my perspective his 
solution is not fitting to our case.


In order to create a ImageMosaic from GeoTIFFs, I am following the steps 
recommended by the tutorial (Data panel -> Stores -> Add new Store -> 
Raster Data Source -> ImageMosaic).


I then select an existing workspace as well as name and description of 
the data source (GeoTIFFs showing a certain bio index for several parts 
of a german state). As a connection parameter I choose the path of the 
directory where the files I want to mosaic reside. If I then click 
"save" I´m recieving the following error:


/C//ould not list layers for this store, an error occurred retrieving 
them: Failed to create reader from 
file:///mnt/geodienste_cle/ROSE/Lange_M/Sentinel2-Difference-Maps/DSWI/2019-2017/Baden-Wuerttemberg 
and hints Hints: REPOSITORY = 
org.geoserver.catalog.CatalogRepository@705a75c EXECUTOR_SERVICE = 
java.util.concurrent.ThreadPoolExecutor@6f559107[Running, pool size = 0, 
active threads = 0, queued tasks = 0, completed tasks = 0] System 
defaults: FEATURE_FACTORY = 
org.geotools.feature.LenientFeatureFactoryImpl@7be885a0 
FORCE_AXIS_ORDER_HONORING = http COMPARISON_TOLERANCE = 1.0E-8 
GRID_COVERAGE_FACTORY = GridCoverageFactory TILE_ENCODING = null 
LENIENT_DATUM_SHIFT = true FILTER_FACTORY = FilterFactoryImpl 
STYLE_FACTORY = StyleFactoryImpl FORCE_LONGITUDE_FIRST_AXIS_ORDER = true /


My GeoServer Version 2.17.3 is running on Java 11.0.8 (OpenJDK 64-Bit 
Server VM) with Ubuntu 18.04.5 LTS. The corresponding part of the logs 
ist attached for further details.


I would appreciate any recommondations for possible solutions of this 
problem.


With kind regards,
--
*Julius Schmiedt*
Wissenschaftliche Hilfskraft

Department Landschaftsökologie
Helmholtz-Zentrum für Umweltforschung GmbH - UFZ
Permoserstraße 15 | 04318 Leipzig
Tel.: +49 341 235 - 1058
Email: julius.schmi...@ufz.de
Web: https://www.ufz.de
2020-12-08 10:52:00,368 ERROR [gce.imagemosaic] - Unable to create the mosaic, 
check the location:
location 
is:/mnt/geodienste_cle/ROSE/Lange_M/Sentinel2-Difference-Maps/DSWI/2019-2017/Baden-Wuerttemberg
location exists:true
location is a directory:true
location is writable:false
location is readable:true
location is hidden:false

2020-12-08 10:52:00,374 INFO [geoserver.web] - Getting list of coverages for 
saved store 
file:///mnt/geodienste_cle/ROSE/Lange_M/Sentinel2-Difference-Maps/DSWI/2019-2017/Baden-Wuerttemberg
java.lang.RuntimeException: Could not list layers for this store, an error 
occurred retrieving them: Failed to create reader from 
file:///mnt/geodienste_cle/ROSE/Lange_M/Sentinel2-Difference-Maps/DSWI/2019-2017/Baden-Wuerttemberg
 and hints Hints:
  REPOSITORY   = org.geoserver.catalog.CatalogRepository@705a75c

  EXECUTOR_SERVICE = java.util.concurrent.ThreadPoolExecutor@6f559107[Running, 
pool size = 0, active threads = 0, queued tasks = 0, completed tasks = 0]
System defaults:
  FEATURE_FACTORY  = 
org.geotools.feature.LenientFeatureFactoryImpl@7be885a0
  FORCE_AXIS_ORDER_HONORING= http   

  COMPARISON_TOLERANCE = 1.0E-8 

  GRID_COVERAGE_FACTORY= GridCoverageFactory

TILE_ENCODING  = null   

  LENIENT_DATUM_SHIFT  = true   

  FILTER_FACTORY   = FilterFactoryImpl  

  STYLE_FACTORY= StyleFactoryImpl   

  FORCE_LONGITUDE_FIRST_AXIS_ORDER = true   


at 
org.geoserver.web.data.layer.NewLayerPageProvider.getItemsInternal(NewLayerPageProvider.java:170)
at 
org.geoserver.web.data.layer.NewLayerPageProvider.getItems(NewLayerPageProvider.java:47)
at 
org.geoserver.web.wicket.GeoServerDataProvider.getFilteredItems(GeoServerDataProvider.java:190)
at 
org.geoserver.web.data.layer.NewLayerPageProvider.getFilteredItems(NewLayerPageProvider.java:186)
at 
org.geoserver.web.wicket.GeoServerDataProvider.size(GeoServerDataProvider.java:208)
at 
org.geoserver.web.wicket.GeoServerTablePanel$PagerDelegate.updateMatched(GeoServerTablePanel.java:664)
at 
org.geoserver.web.wicket.GeoServerTablePanel$PagerDelegate.(GeoServerTablePanel.java:659)
at 
org.geoserver.web.wicket.GeoServerTablePanel.(GeoServerTablePanel.java:237)
at 
org.geoserver.web.wicket.GeoServerTablePanel.(GeoServerTablePanel.java:106)
at