go-spatial / tegola

Tegola is a Mapbox Vector Tile server written in Go
http://tegola.io/
MIT License
1.25k stars 192 forks source link

[ERROR] handle_map_layer_zxy.go:201: error writing tile z, x, y - short write #960

Open kolisko opened 7 months ago

kolisko commented 7 months ago

tegola v0.19.0 with gcs storage cache got lot of errors

│ 2023-11-17 14:33:57 [ERROR] handle_map_layer_zxy.go:201: error writing tile z:8, x:248, y:183 - short write                                                                               
│ 2023-11-17 14:33:57 [ERROR] handle_map_layer_zxy.go:201: error writing tile z:5, x:24, y:13 - short write                                                                                 
│ 2023-11-17 14:33:57 [INFO] gcs.go:178: SET tegola/xxx/5/24/13: 23 bytes                                                                                                             
│ 2023-11-17 14:33:57 [INFO] gcs.go:178: SET tegola/xxx/8/248/183: 23 bytes                                                                                                           
│ 2023-11-17 14:33:57 [ERROR] handle_map_layer_zxy.go:201: error writing tile z:15, x:7652, y:20578 - short write                                                                           
│ 2023-11-17 14:33:57 [ERROR] handle_map_layer_zxy.go:201: error writing tile z:3, x:2, y:2 - short write                                                                                   
│ 2023-11-17 14:33:57 [INFO] gcs.go:178: SET tegola/xxx/15/7652/20578: 23 bytes                                                                                                       
│ 2023-11-17 14:33:57 [INFO] gcs.go:178: SET tegola/xxx/3/2/2: 23 bytes                                                                                                               
│ 2023-11-17 14:33:57 [ERROR] handle_map_layer_zxy.go:201: error writing tile z:19, x:514391, y:190234 - short write                                                                        
│ 2023-11-17 14:33:57 [INFO] gcs.go:178: SET tegola/xxx/19/514391/190234: 23 bytes                                                                                                    
│ 2023-11-17 14:33:57 [ERROR] handle_map_layer_zxy.go:201: error writing tile z:9, x:220, y:333 - short write                                                                               
│ 2023-11-17 14:33:57 [ERROR] handle_map_layer_zxy.go:201: error writing tile z:12, x:71, y:801 - short write                                                                               
│ 2023-11-17 14:33:57 [INFO] gcs.go:178: SET tegola/xxx/9/220/333: 23 bytes                                                                                                           
│ 2023-11-17 14:33:57 [INFO] gcs.go:178: SET tegola/xxx/12/71/801: 23 bytes                                                                                                           
│ 2023-11-17 14:33:58 [ERROR] handle_map_layer_zxy.go:201: error writing tile z:5, x:16, y:15 - short write                                                                                 
│ 2023-11-17 14:33:58 [INFO] gcs.go:178: SET tegola/xxx/5/16/15: 23 bytes                                                                                                             
│ 2023-11-17 14:33:58 [ERROR] handle_map_layer_zxy.go:201: error writing tile z:4, x:14, y:4 - short write                                                                                  
│ 2023-11-17 14:33:58 [ERROR] handle_map_layer_zxy.go:201: error writing tile z:8, x:253, y:187 - short write

config

  config.toml: |
    [webserver]
    port = ":8080"

    [webserver.headers]
    Cache-Control = "s-maxage=3600"

    [cache]
    # required
    type="gcs"
    bucket="bucket-name"   # Bucket is the name of the GCS bucket to operate on

    # optional
    basepath="tegola"           # Basepath is a path prefix added to all cache operations inside of the GCS bucket
    #max_zoom=8                  # MaxZoom determines the max zoom the cache to persist.

    [[providers]]
    name = "xxx"
    type = "mvt_postgis"
    uri = "postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${POSTGRES_HOST}:5432/${POSTGRES_DATABASE}" # PostGIS connection string (required)
    srid = 4326

      [[providers.layers]]
      name = "layer1"
      geometry_fieldname = "geometry"
      geometry_type="linestring"
      id_fieldname = "id_tegola"
      sql = "SELECT ST_AsMVTGeom(geometry, !BBOX!) AS geometry, id_tegola FROM route WHERE geometry && !BBOX!"

    [[maps]]
    name = "xxx"
    center = [15.0982, 50.7374, 7.0] # set the center of the map

      [[maps.layers]]
      provider_layer = "xxx.layer1"
      min_zoom = 1
      max_zoom = 20
ARolek commented 7 months ago

I believe @matheusmatos is the author on this cache provider. I don't generally work with GCP so I don't have much insight. Let's see if they chime in.