Re: [Geoserver-users] Kubernetes & geoserver

2020-12-08 Thread mark

On 12/8/20 7:06 PM, Robert Smallwood via Geoserver-users wrote:

Hi,

If I create a geoserver install and set up the layers and a datastore in a 
workspace I know I can copy the workspace directory and its contents underneath 
as a way of replicating the configuration into a docker image..

When the docker image is run either in kubernetes or docker, the store 
disappears - there is a jasypt Exception reading the password to the predefined 
store. If you remove the line containing the encrypted password and re-run, the 
store remains but needs to be set up manually again..

Is there a way around this? Can you get the pwd into the datastore through env 
vars or do you know of a way to run post-install commands in a kubernetes 
environment..

Do I need to use the container lifecycle postStart to replace a token in the 
datastore.xml file with an env var?? Is that even possible as it expects the 
password to be encrypted?



I think you need to copy the whole geoserver datadirectory. AFAIK the 
encrypted passwords use a salt which is generated at startup in the 
datadir to have unique encryption on each install.
If you change the password to plain text in the datastore config file it 
would be portable.



-M


___
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


Re: [Geoserver-users] change Geoserver logo and background color of Login button

2020-12-08 Thread mark

On 12/7/20 4:28 PM, pham lan wrote:

Hello,

I am new to geoserver and not a developer. Could someone guide me how to 
replace Geoserver logo with my company's logo and how to change the 
background color of the Login button?


grafik.png



Changing the logo and other styling is not possible unless you make 
changes in the codebase build your own release AFAIK. Not being a 
developer would make that difficult I guess.


There are some limited possibilities of adding identifying information 
to the GUI using environment variables; see: 
https://docs.geoserver.org/latest/en/user/production/identify.html


-M


___
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] Kubernetes & geoserver

2020-12-08 Thread Robert Smallwood via Geoserver-users
Hi,

If I create a geoserver install and set up the layers and a datastore in a 
workspace I know I can copy the workspace directory and its contents underneath 
as a way of replicating the configuration into a docker image..

When the docker image is run either in kubernetes or docker, the store 
disappears - there is a jasypt Exception reading the password to the predefined 
store. If you remove the line containing the encrypted password and re-run, the 
store remains but needs to be set up manually again..

Is there a way around this? Can you get the pwd into the datastore through env 
vars or do you know of a way to run post-install commands in a kubernetes 
environment.. 

Do I need to use the container lifecycle postStart to replace a token in the 
datastore.xml file with an env var?? Is that even possible as it expects the 
password to be encrypted?

Cheers

Rob



___
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


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 
org.ge