[Geoserver-users] How to fix Error: Tile Layers out of synch ?

2018-05-08 Thread Martin Davis
We get the following error message when invoking the Tile Caching / Tile
Layers panel in the web UI:

Caused by: java.lang.IllegalStateException: Could not locate a layer or
layer group with id LayerInfoImpl--2c3fc31e:159ff9b77e2:-7f6a within
GeoServer configuration, the GWC configuration seems to be out of synch

Is there any way to fix this?  Perhaps by deleting objects from the data
directory?  Even better would be a way to fix it from the Web UI itself,
since we don't have easy access to the server.

There are previous reports of the same issue [1][2].  Seems like a
candidate for some more gracefully failure handling..


[1] https://osgeo-org.atlassian.net/browse/GEOS-7202
[2] https://sourceforge.net/p/geoserver/mailman/message/34484893/
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot___
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] Error when running GeoServer with GWC S3 BlobStore plugin installed

2018-05-08 Thread Trashmonk
Hi All,

I have GeoServer 2.13 installed and I would like to use the GWC S3 BlobStore
plugin which I downloaded from here:

http://ares.opengeo.org/geoserver/master/community-latest/geoserver-2.13-SNAPSHOT-gwc-s3-plugin.zip

I followed the instructions from here:

http://docs.geoserver.org/latest/en/user/community/gwc-s3/index.html

I unzipped the contents into WEB-INF/lib directory as per the instructions
however when I startup GeoServer I get a bunch of errors, here is the log
file:

https://pastebin.com/BYdR4jp9

Does anyone know how to fix this problem?



--
Sent from: http://osgeo-org.1560.x6.nabble.com/GeoServer-User-f3786390.html

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
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] Geoserver to serve tiles in {z}/{x}/{y}

2018-05-08 Thread Barbara Pilbin
All:

Thank you very much for your patience with me. I am seeing the tiles. I am
currently testing with the topp:states demo layer (png).
They are showing up opaque (it seems) and they are in the wrong position,
but I am trying to figure all of that out now.

I just wanted to thank you for your assistance.

Barbara

On Mon, May 7, 2018 at 9:58 AM, Barbara Pilbin 
wrote:

> Jukka and Brad,
>
> I appreciate your time to respond.  Thanks!
>
> I had been building out the URL as you suggested. :) I hadn't been using
> the demo layer before. Now, I am working with it as a known base.
>
> It does help to see the log (using powershell to tail the file in
> VERBOSE_LOGGING).
>
> I am getting the following in the log:
>
> >>> start >>>
>
> 2018-05-07 07:49:38,653 DEBUG [ows.OWSHandlerMapping] - Matching patterns
> for request [/gwc/service/tms/1.0.0/topp:states@EPSG:4326@png/4/6/5.png]
> are [/gwc/service/**]
> 2018-05-07 07:49:38,653 DEBUG 
> [security.IncludeQueryStringAntPathRequestMatcher]
> - Checking match of request : 'Path: /gwc/service/tms/1.0.0/topp:
> states@epsg:4326@png/4/6/2.png, QueryString: null'; against
> '/j_spring_security_check'
> 2018-05-07 07:49:38,654 DEBUG [ows.OWSHandlerMapping] - URI Template
> variables for request [/gwc/service/tms/1.0.0/topp:states@EPSG:4326@png
> /4/6/5.png] are {}
> 2018-05-07 07:49:38,655 DEBUG [ows.OWSHandlerMapping] - Mapping
> [/gwc/service/tms/1.0.0/topp:states@EPSG:4326@png/4/6/5.png] to
> HandlerExecutionChain with handler [org.geoserver.ows.Dispatcher@b692c1]
> and 1 interceptor
> 2018-05-07 07:49:38,654 DEBUG 
> [security.IncludeQueryStringAntPathRequestMatcher]
> - Checking match of request : 'Path: /gwc/service/tms/1.0.0/topp:
> states@epsg:4326@png/4/6/8.png, QueryString: null'; against '/'
> 2018-05-07 07:49:38,656 DEBUG 
> [security.IncludeQueryStringAntPathRequestMatcher]
> - Checking match of request : 'Path: /gwc/service/tms/1.0.0/topp:
> states@epsg:4326@png/4/6/8.png, QueryString: null'; against
> '/j_spring_security_check'
> 2018-05-07 07:49:38,656 DEBUG 
> [security.IncludeQueryStringAntPathRequestMatcher]
> - Checking match of request : 'Path: /gwc/service/tms/1.0.0/topp:
> states@epsg:4326@png/4/6/8.png, QueryString: null'; against
> '/j_spring_security_check/'
> 2018-05-07 07:49:38,657 DEBUG 
> [security.IncludeQueryStringAntPathRequestMatcher]
> - Checking match of request : 'Path: /gwc/service/tms/1.0.0/topp:
> states@epsg:4326@png/4/6/8.png, QueryString: null'; against
> '/j_spring_security_logout'
> 2018-05-07 07:49:38,657 DEBUG 
> [security.IncludeQueryStringAntPathRequestMatcher]
> - Checking match of request : 'Path: /gwc/service/tms/1.0.0/topp:
> states@epsg:4326@png/4/6/8.png, QueryString: null'; against
> '/j_spring_security_logout/'
> 2018-05-07 07:49:38,654 DEBUG 
> [security.IncludeQueryStringAntPathRequestMatcher]
> - Checking match of request : 'Path: /gwc/service/tms/1.0.0/topp:
> states@epsg:4326@png/4/6/2.png, QueryString: null'; against
> '/j_spring_security_check/'
> 2018-05-07 07:49:38,658 DEBUG 
> [security.IncludeQueryStringAntPathRequestMatcher]
> - Checking match of request : 'Path: /gwc/service/tms/1.0.0/topp:
> states@epsg:4326@png/4/6/2.png, QueryString: null'; against
> '/j_spring_security_logout'
> 2018-05-07 07:49:38,658 DEBUG 
> [security.IncludeQueryStringAntPathRequestMatcher]
> - Checking match of request : 'Path: /gwc/service/tms/1.0.0/topp:
> states@epsg:4326@png/4/6/2.png, QueryString: null'; against
> '/j_spring_security_logout/'
> 2018-05-07 07:49:38,657 DEBUG 
> [security.IncludeQueryStringAntPathRequestMatcher]
> - Checking match of request : 'Path: /gwc/service/tms/1.0.0/topp:
> states@epsg:4326@png/4/6/8.png, QueryString: null'; against '/rest/**'
> 2018-05-07 07:49:38,657 DEBUG [geoserver.filters] - Compressing output for
> mimetype: text/plain
> 2018-05-07 07:49:38,659 DEBUG [ows.OWSHandlerMapping] - Matching patterns
> for request [/gwc/service/tms/1.0.0/topp:states@EPSG:4326@png/4/6/6.png]
> are [/gwc/service/**]
> 2018-05-07 07:49:38,659 DEBUG 
> [security.IncludeQueryStringAntPathRequestMatcher]
> - Checking match of request : 'Path: /gwc/service/tms/1.0.0/topp:
> states@epsg:4326@png/4/6/8.png, QueryString: null'; against '/gwc/rest/**'
> 2018-05-07 07:49:38,659 DEBUG 
> [security.IncludeQueryStringAntPathRequestMatcher]
> - Checking match of request : 'Path: /gwc/service/tms/1.0.0/topp:
> states@epsg:4326@png/4/6/2.png, QueryString: null'; against '/rest/**'
> 2018-05-07 07:49:38,660 DEBUG 
> [security.IncludeQueryStringAntPathRequestMatcher]
> - Checking match of request : 'Path: /gwc/service/tms/1.0.0/topp:
> states@epsg:4326@png/4/6/8.png, QueryString: null'; against '/**'
> 2018-05-07 07:49:38,661 DEBUG 
> [security.IncludeQueryStringAntPathRequestMatcher]
> - Request matched by universal pattern '/**'
> 2018-05-07 07:49:38,660 DEBUG 
> [filter.GeoServerSecurityContextPersistenceFilter$1]
> - SecurityContextHolder now cleared, as request processing completed
> 2018-05-07 07:49:38,660 DEBUG

Re: [Geoserver-users] Server error when trying to publish an image pyramid

2018-05-08 Thread Todd Jacobus
An interesting update to anyone who may be interested:  I switched from a
jpeg compression to a lzw compression method when building pyramids with
gdal_retile and now the image stack is read and published by GeoServer
without issue.  I'm not sure what the cause of this issue is, but it works.

Best,
Todd

On Fri, May 4, 2018 at 11:29 AM, Todd Jacobus  wrote:

> Hi all,
>
> I followed the GeoServer pyramid building tutorial
> 
>  using
> gdal_retile which worked beautifully for the sample Blue Marble image
> provided--I was able to create tiles and publish in GeoServer without
> issue.  However, I'm now running the exact same workflow (same exact
> gdal_retile parameters while tile images are hosted in the same location on
> the server) for a single tiff image (71.8mb) that is a little larger than
> the tutorial image (33.2mb) and now geoserver encounters an error (see
> complete stack trace below).  My ideas:
>
> -Could this be a geospatial issue, involving projection metadata?
> -Could this be an issue with the image having an alpha value?  The
> workflow detailed in the JDBC database tutorial
> 
>  suggests
> computing a color table using the rgb2pct tool.  Is this something work
> trying?
>
> I'm still new at this, but I'm at a loss for new ideas, while there
> doesn't seem to be much information on the web.  Thank you very much for
> your time in working on this with me.
>
> Best,
> Todd
>
>
> Here is the gdal_retile command I executed: gdal_retile -v -r bilinear
> -levels 4 -ps 2048 2048 -co "TILED=YES" -co "COMPRESS=JPEG" -targetDir
> bmpyramid global_500m_dbm_stylized_3.tif
>
> Here's the gdalinfo output for the original geotif:
>
> Driver: GTiff/GeoTIFF
> Files: K:\Marine_Basemap\global_500m_dbm_MapBox_nd.tif
> Size is 77796, 38194
> Coordinate System is:
> GEOGCS["WGS 84",
> DATUM["WGS_1984",
> SPHEROID["WGS 84",6378137,298.257223563,
> AUTHORITY["EPSG","7030"]],
> AUTHORITY["EPSG","6326"]],
> PRIMEM["Greenwich",0],
> UNIT["degree",0.0174532925199433],
> AUTHORITY["EPSG","4326"]]
> Origin = (-180.0083326,90.008654440287117)
> Pixel Size = (0.0046277,-0.0046277)
> Metadata:
>   AREA_OR_POINT=Area
>   TIFFTAG_DOCUMENTNAME=F:\Leaflet_Mapbox\500m_dbm_
> stylized\grid\edited_areas\global_500m_dbm_stylized_3.tif
>   TIFFTAG_RESOLUTIONUNIT=2 (pixels/inch)
>   TIFFTAG_XRESOLUTION=72
>   TIFFTAG_YRESOLUTION=72
> Image Structure Metadata:
>   COMPRESSION=DEFLATE
>   INTERLEAVE=PIXEL
> Corner Coordinates:
> Upper Left  (-180.008,  90.0086544) (180d 0'30.00"W, 90d 0'31.16"N)
> Lower Left  (-180.008, -86.7417194) (180d 0'30.00"W, 86d44'30.19"S)
> Upper Right ( 180.0082159,  90.0086544) (180d 0'29.58"E, 90d 0'31.16"N)
> Lower Right ( 180.0082159, -86.7417194) (180d 0'29.58"E, 86d44'30.19"S)
> Center  (  -0.587,   1.6334675) (  0d 0' 0.21"W,  1d38' 0.48"N)
> Band 1 Block=77796x1 Type=Byte, ColorInterp=Red
>   NoData Value=0
> Band 2 Block=77796x1 Type=Byte, ColorInterp=Green
>   NoData Value=0
> Band 3 Block=77796x1 Type=Byte, ColorInterp=Blue
>   NoData Value=0
> Band 4 Block=77796x1 Type=Byte, ColorInterp=Alpha
>   NoData Value=0
>
> Server stack trace:
>
> org.apache.wicket.WicketRuntimeException: Method onRequest of interface
> org.apache.wicket.behavior.IBehaviorListener targeted at
> org.apache.wicket.ajax.markup.html.AjaxLink$1@27008518 on component
> [AjaxLink [Component id = link]] threw an exception at org.apache.wicket.
> RequestListenerInterface.internalInvoke(RequestListenerInterface.java:268)
> at org.apache.wicket.RequestListenerInterface.invoke(
> RequestListenerInterface.java:241) at org.apache.wicket.core.
> request.handler.ListenerInterfaceRequestHandler.invokeListener(
> ListenerInterfaceRequestHandler.java:248) at org.apache.wicket.core.
> request.handler.ListenerInterfaceRequestHandler.respond(
> ListenerInterfaceRequestHandler.java:234) at org.apache.wicket.request.
> cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:895) at
> org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:64)
> at org.apache.wicket.request.cycle.RequestCycle.execute(RequestCycle.java:265)
> at org.apache.wicket.request.cycle.RequestCycle.
> processRequest(RequestCycle.java:222) at org.apache.wicket.request.
> cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:293) at
> org.apache.wicket.protocol.http.WicketFilter.processRequestCycle(WicketFilter.java:261)
> at org.apache.wicket.protocol.http.WicketFilter.
> processRequest(WicketFilter.java:203) at org.apache.wicket.protocol.
> http.WicketServlet.doGet(WicketServlet.java:137) at javax.servlet.http.
> HttpServlet.service(HttpServlet.java:622) at javax.servlet.http.
> HttpServlet.service(HttpServlet.java:729) at org.springframework.web.
> servlet.mvc.ServletWra

[Geoserver-users] Fwd: Fwd: Displaying the picture in geoserver

2018-05-08 Thread Nauwanga Nauwanga
my apologies,
 I have changed the src as follows
 

based on the below explanation, not as given earlier but still does not work

Thank you Ian,

I tried to convert one sample picture to an active url to test using Google
drive, the Url works once I am signed in to my gmail (previewing the
picture link works just fine in chrome).
I took the link and placed it in my attribute table (for one point feature)
,it looks like this https://drive.google.com/uc?id=10ZOOUuX1ImkDtTJCu-U2n7w-
0aeLapKM
then I changed the img src in the content ftl to the following


buildvwg_2018=attribute column heading with the link for the feature picture
This still does not work.

I will give it more tries and revert back.




On Mon, May 7, 2018 at 7:16 PM, Ian Turton  wrote:

> Do you have an example URL for an image? is that stored in your database?
>
> if so then all you need is an 
> where you replace thumb nail with the attribute name.
>
> If you don't have the full URL stored in the database then you'll need to
> add the root of the URL to the attribute. https://myurl.myserver.com/images/${feature.THUMBNAIL.value}";>
>
> Ian
>
> On 7 May 2018 at 17:04, Nauwanga Nauwanga 
> wrote:
>
>> Dear All,
>>
>> For quite sometimes now, I have been trying to figure out how to get
>> pictures to display in Geoserver but still not working. I got someone to
>> help me configure the IP address but still does not work.
>>
>>
>> The question I have is how do I create the qualified url that I should
>> call in the content ftl as suggested by Mark?
>>
>> After creating the working url, does the individual pictures in the
>> attribute table also needs to be qualified url? how do I create this?
>> because I would like each point to have its picture showing together with
>> the attribute information.
>>
>>
>> My pictures are stored in normal folders and I created paths in the
>> attribute table. I did a QGIS to web app and I manage to get the pictures
>> to show without so much struggle only a few configuration but I now I also
>> need it it to work on the other application using Geoserver.
>>
>> Thank you so much for the hints/recommendation.
>>
>> Regards
>> Amelia
>>
>>
>>
>> On Sun, Apr 22, 2018 at 1:20 PM, Mark Prins  wrote:
>>
>>>
>>>
>>> 2018-04-21 16:31 GMT+02:00 Nauwanga Nauwanga 
>>> :
>>>

   

   
 


 The tutorial suggested that  I should refer to my Internet visible
 server address instead of localhost, or its IP if I have fixed IPs, I do
 not understand this very very well,


>>> the img src should end up to be a fully qualified url to the image in
>>> the featureinfo response so the browser knows where to get it; it cannot be
>>> a file path. It can be localhost, but the the url will only resolve if the
>>> webbrowser and the webserver hosting the image are on the same machine, it
>>> can be a relative link to the geoserver url if you are hosting the image on
>>> the same webserver as geoserver, I'm assuming you aren't.
>>>
>>> Mark
>>>
>>> --
>>> Disclaimer;
>>> This message is just a reflection of what I thought at the time of
>>> sending. The message may contain information that is not intended for you
>>> or that you don't understand.
>>>
>>> 
>>> --
>>> Check out the vibrant tech community on one of the world's most
>>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>>> ___
>>> 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-req
>>> uesting-and-integrating-new-features-and-improvements-in-GeoServer
>>>
>>>
>>> Geoserver-users@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>>>
>>>
>>
>>
>> 
>> --
>> Check out the vibrant tech community on one of the world's most
>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>> ___
>> 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-req
>> uesting-and-integrating-new-features-and-improvements-in-GeoServer
>>
>>

Re: [Geoserver-users] Geoscript Extension

2018-05-08 Thread Yasmine Benlefki
I  apologize I forget to delete the unnecessary part of the log.
Please check this one.

ᐧ

2018-05-08 12:03 GMT+01:00 Yasmine Benlefki :

> Hi again,
>
> Thanks a lot for your help.
> So I looked at the log file I can see that there are some errors. I am
> trying to figure out the source of the error but since I never worked with
> java it will take me some time.
> You will find it below if you have time  to check it.
> Have a great day
> ᐧ
>
> 2018-05-08 8:04 GMT+01:00 Peter Smythe :
>
>> I would move script up one level to before default.
>>
>> Have you tried Settings > Global > Logging Settings to VERBOSE_LOGGING,
>> and then seeing what the error messages are in About & Status > GeoServer
>> Logs?
>>
>> I'm sorry, I have other priorities to attend to before upgrading to
>> v2.13, so I cannot try to get it working on my side any time soon.
>>
>> Peter
>>
>>
>> On 8 May 2018 at 00:54, Yasmine Benlefki 
>> wrote:
>>
>>> Hi Peter,
>>>
>>> Thank you very much.
>>>
>>> I tried to add  /script/** to the authentification but it didn't fix the
>>> problem :(
>>>
>>> Let me know please if you could make it work or if you have any idea
>>> that can help.
>>> Best regards
>>>
>>> ᐧ
>>>
>>> 2018-05-07 21:54 GMT+01:00 Peter Smythe :
>>>
 Hi Yasmine

 I'm so glad that you got it working!  Yes, I have used the scripting
 extension in v2.11, and then it broke in v2.12.  I have yet to upgrade to
 v2.13 so I can't check exactly what the problem is.

 I do have a private installation note that it was necessary to:  add
 /script/** to the Authentication > Filter Chains with no security.
 (Menu > Settings > Authentication > Filter chains > + Add service
 chain, and move Basic auth to selected) Close & Save

 I hope that works for you.  Otherwise, I will have to look in the
 morning when I am back at work.  I live in South Africa, GMT+2.

 Regards

 Peter

 On 7 May 2018 at 21:14, Yasmine Benlefki 
 wrote:

> Hi Peter,
> I am really stuck and I hope u can help.
> So I downloaded the newer version of geoserver, with wps and  python
> extension, I also added  the gs-script-web.jar (since it wasn't present in
> the extension zip) from  http://mvnrepository.com/artif
> act/org.geoserver.script/gs-script-web
> As in the tutorial I got the script file and menu.
> I was also able to create a service and use it from the demo, my
> problem now is when I create a new application and wanna use it (by going
> to the link ip-adree/script/apps/name_application ) I get the 404
> error.
> Have u ever used this extension? Is there anything I am missing here?
>
> Thanks
>
> ᐧ
>
> 2018-05-06 12:41 GMT+01:00 Yasmine Benlefki  >:
>
>> Hi,
>> I just tried with geoserver_v2.13.0 and I got the same error...
>> Here is the code I am testing with:
>> def app(environ, start_response):
>>start_response('200 OK', [('Content-type','text/plain')])
>>return 'Hello world!'
>>
>> Thanks
>> ᐧ
>>
>> 2018-05-05 20:36 GMT+01:00 Yasmine Benlefki <
>> benlefkiyasm...@gmail.com>:
>>
>>> I just find it. I will try with this version and let you know if it
>>> works.
>>> Thank you
>>> ᐧ
>>>
>>> 2018-05-05 20:24 GMT+01:00 Yasmine Benlefki <
>>> benlefkiyasm...@gmail.com>:
>>>
 Hi Peter,
 Thank you for your response.
 That makes sense, yes I can download geoserver v2.13.0 but the
 problem is that I downloaded the script module from this website
 http://ares.boundlessgeo.com/geoserver/ and there isn't any for v
 2.13 yet.
 Any ideas where can I get it?
 Thanks again.
 ᐧ

 2018-05-05 20:07 GMT+01:00 Peter Smythe :

> Hi Yassou
>
> If I recall correctly, the Scripting module does not work in v2.12
> because of a change in the rest implementation, but it has been fixed 
> in
> later versions.  Are you able to download the latest version of 
> geoserver
> v2.13.0?
>
> Regards
>
> Peter
>
> On 5 May 2018 at 19:52, Yassou  wrote:
>
>> Dear,
>>
>> I am having some problems when I use GeoServer scripting
>> extension version
>> 2.12.2.
>> After unzipping the jar files inside WEB-INF/lib and restarting
>> geoserver
>> the scripts folder is created but not the scripts menu.
>> Also, when I create an app inside scripts/apps folder, for
>> example, a hello
>> world by defining a new folder hello with a main.py file and  by
>> visiting
>> the link ip-adress/script/apps/hello I get the error 404. And
>> {"scripts":
>> ["hello"]} when  I visit ip-address/script/apps.
>>
>> Thank you
>