[Geoserver-users] Geowebcache mapbox-vetor format

Hey all, this question relates to the stand alone geowebcache, not the
integrated one but hoping someone here can help as i've not heard anything
from the geowebcache mailing list.

I’m using the current release of geoserver and a stand alone geowebcache
along with the mapbox vector tile extension on tomcat 8.5.

I want to seed the tile cache for the
application/x-protobuf;type=mapbox-vector format but geowebcache errors when
I attempt to seed with this format. Other formats including png8 and geojson
work fine. Seeding in this format also works ok using the integrated
geowebcache in geoserver.

With logging set to debug I see the following stack trace when I initiate
the seed…
18 Apr 03:43:33 (GWC Seeder Thread-2) INFO [seed.SeedTask] - GWC Seeder
Thread-2 begins seeding layer : POLES
18 Apr 03:43:33 (GWC Seeder Thread-2) DEBUG
[httpclient.MultiThreadedHttpConnectionManager] -
HttpConnectionManager.getConnection: config =
HostConfiguration[host=https://xxxxx, timeout = 0
18 Apr 03:43:33 (GWC Seeder Thread-2) DEBUG
[httpclient.MultiThreadedHttpConnectionManager] - Getting free connection,
hostConfig=HostConfiguration[host=https://xxxx]
18 Apr 03:43:33 (GWC Seeder Thread-2) DEBUG [wire.header] - >> "GET
/wms?EXCEPTIONS=application%2Fvnd.ogc.se_xml&REQUEST=GetMap&FORMAT=application%2Fx-protobuf%3Btype%3Dmapbox-vector&SRS=EPSG%3A3857&BBOX=15512436.268307%2C-4808806.323477%2C95662469.628307%2C75341227.036523&VERSION=1.1.1&STYLES=&SERVICE=WMS&WIDTH=512&HEIGHT=512&TRANSPARENT=TRUE&LAYERS=map-insights%3APOLES
HTTP/1.1[\r][\n]"
18 Apr 03:43:33 (GWC Seeder Thread-2) DEBUG [httpclient.HttpMethodBase] -
Adding Host request header
18 Apr 03:43:33 (GWC Seeder Thread-2) DEBUG [wire.header] - >> "User-Agent:
Jakarta Commons-HttpClient/3.1[\r][\n]"
18 Apr 03:43:33 (GWC Seeder Thread-2) DEBUG [wire.header] - >> "Host:
xxxxxx[\r][\n]"
18 Apr 03:43:33 (GWC Seeder Thread-2) DEBUG [wire.header] - >> "[\r][\n]"
18 Apr 03:43:33 (GWC Seeder Thread-2) DEBUG [wire.header] - << "HTTP/1.1 200
[\r][\n]"
18 Apr 03:43:33 (GWC Seeder Thread-2) DEBUG [wire.header] - << "HTTP/1.1 200
[\r][\n]"
18 Apr 03:43:33 (GWC Seeder Thread-2) DEBUG [wire.header] - <<
"Cache-Control: max-age=43000, must-revalidate[\r][\n]"
18 Apr 03:43:33 (GWC Seeder Thread-2) DEBUG [wire.header] - <<
"Content-Disposition: inline; filename=map-insights-POLES[\r][\n]"
18 Apr 03:43:33 (GWC Seeder Thread-2) DEBUG [wire.header] - <<
"Content-Type: application/x-protobuf; type=mapbox-vector[\r][\n]"
18 Apr 03:43:33 (GWC Seeder Thread-2) DEBUG [wire.header] - << "Date: Tue,
18 Apr 2017 08:02:08 GMT[\r][\n]"
18 Apr 03:43:33 (GWC Seeder Thread-2) DEBUG [wire.header] - << "Expires:
Tue, 18 Apr 2017 19:58:48 GMT[\r][\n]"
18 Apr 03:43:33 (GWC Seeder Thread-2) DEBUG [wire.header] - << "Server:
nginx/1.10.1[\r][\n]"
18 Apr 03:43:33 (GWC Seeder Thread-2) DEBUG [wire.header] - <<
"X-Control-flow-delay-ms: 0[\r][\n]"
18 Apr 03:43:33 (GWC Seeder Thread-2) DEBUG [wire.header] - <<
"Content-Length: 0[\r][\n]"
18 Apr 03:43:33 (GWC Seeder Thread-2) DEBUG [wire.header] - << "Connection:
keep-alive[\r][\n]"
18 Apr 03:43:33 (GWC Seeder Thread-2) DEBUG [wire.header] - << "[\r][\n]"
18 Apr 03:43:33 (GWC Seeder Thread-2) DEBUG [httpclient.HttpMethodBase] -
Should NOT close connection in response to directive: keep-alive
18 Apr 03:43:33 (GWC Seeder Thread-2) DEBUG [httpclient.HttpConnection] -
Releasing connection back to connection manager.
18 Apr 03:43:33 (GWC Seeder Thread-2) DEBUG
[httpclient.MultiThreadedHttpConnectionManager] - Freeing connection,
hostConfig=HostConfiguration[host=https://xxxxxx]
18 Apr 03:43:33 (GWC Seeder Thread-2) DEBUG [util.IdleConnectionHandler] -
Adding connection at: 1492487013358
18 Apr 03:43:33 (GWC Seeder Thread-2) DEBUG
[httpclient.MultiThreadedHttpConnectionManager] - Notifying no-one, there
are no waiting threads
18 Apr 03:43:33 (GWC Seeder Thread-2) INFO [seed.GWCTask] - Thread group
finished SEED task after 0.122 seconds
18 Apr 03:43:33 (GWC Seeder Thread-2) ERROR [seed.MTSeeder] - All backends
(1) failed. Last request: 'https://xxxxx/wms?‘.
org.geowebcache.GeoWebCacheException: All backends (1) failed. Last request:
'https://xxxx/wms?’.
                at
org.geowebcache.layer.wms.WMSHttpHelper.makeRequest(WMSHttpHelper.java:142)
                at
org.geowebcache.layer.wms.WMSSourceHelper.makeRequest(WMSSourceHelper.java:88)
                at
org.geowebcache.layer.wms.WMSLayer.doNonMetatilingRequest(WMSLayer.java:512)
                at
org.geowebcache.layer.wms.WMSLayer.getNonMetatilingReponse(WMSLayer.java:473)
                at
org.geowebcache.layer.wms.WMSLayer.seedTile(WMSLayer.java:326)
                at
org.geowebcache.seed.SeedTask.doActionInternal(SeedTask.java:136)
                at org.geowebcache.seed.GWCTask.doAction(GWCTask.java:76)
                at org.geowebcache.seed.MTSeeder.call(MTSeeder.java:36)
                at org.geowebcache.seed.MTSeeder.call(MTSeeder.java:25)
                at java.util.concurrent.FutureTask.run(FutureTask.java:266)
                at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
                at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
                at java.lang.Thread.run(Thread.java:745)
18 Apr 03:43:33 (http-nio-8080-exec-6) DEBUG [servlet.DispatcherServlet] -
Null ModelAndView returned to DispatcherServlet with name 'geowebcache':
assuming HandlerAdapter completed request handling

The requests hit geoserver and look fine so i'm expecting it's an issue
writing them to disk?

Anyone got any ideas? Sorry if this is OT.

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Geowebcache-mapbox-vetor-format-tp5317721.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

I'm experiencing exactly the same problem as you with mapbox-vector format.
I've been watching a lot of information for days, but I can not find
anything about it.

I am using geowebcache standalone 1.13 and geoserver 2.13.0

Did you make it work?

Any help would be apreciated.

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

Are you trying to cascade a Mapbox layer using their WMTS capabilities endpoint, by any chance?

Todd

···

On Sat, Apr 28, 2018 at 3:24 PM, avantgeo <lozano.carlos@anonymised.com> wrote:

I’m experiencing exactly the same problem as you with mapbox-vector format.
I’ve been watching a lot of information for days, but I can not find
anything about it.

I am using geowebcache standalone 1.13 and geoserver 2.13.0

Did you make it work?

Any help would be apreciated.


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:

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@anonymised.com.382…sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Hey guys, i replied via email but thought it's worth posting here also.

I never solved the issue and ended up using the embedded GWC to generate the
cache. A key change i made to get that part working correctly was to set the
'metatiling factors' to 1 & 1. Vector doesn't support it and it should
ignored but it seems not. I found this by trial and error (brute force!).
I'm seeding in EPSG:900913 to an AWS EFS volume daily now its working really
nicely.

I never went back to the stand alone GWC after finding the metatiling issue
to see if that got it working as our requirements changed a bit and the
embedded GWC was an ok option. My gutter size setting is 0 too, not sure if
that makes a difference.

@avantgeo, maybe a hack but if you don't need to re-generate the tiles very
often you could always use the embedded GWC to generate them and Standalone
to publish them?

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