Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Timeout when exporting world-wide data #217

Open
georgbachmann opened this issue Feb 22, 2020 · 3 comments
Open

Timeout when exporting world-wide data #217

georgbachmann opened this issue Feb 22, 2020 · 3 comments

Comments

@georgbachmann
Copy link

I am currently trying to export a dataset worldwide, but there are large areas without data. So I don't have anything data where the oceans are f.e.
All of my queries (postgres) are fast. I did debug my setting a log for queries that take too long.
Still I get an error when trying to export

/usr/local/lib/node_modules/tilelive/bin/tilelive-copy:100
        if (err) throw err;
                 ^

Error: Copy operation timed out
    at Timeout.<anonymous> (/usr/local/lib/node_modules/tilelive/lib/tilelive.js:390:22)
    at Timeout.wrapper (timers.js:408:11)
    at tryOnTimeout (timers.js:224:11)
    at Timer.listOnTimeout (timers.js:198:5)

The theory with the oceans is just because my dataset is still empty when I view what was exported until the timeout. It's an empty mbtiles file. Is that possible? Or what other cause could my timeout have? How can I get more debug information? Any idea?
I am using tilelive-copy in docker btw.

@mkelitz
Copy link

mkelitz commented Mar 25, 2021

Same error here, any way to fix?

@raphael10-collab
Copy link

I'm hitting the same issue:

root@vmi1046457:~/openmaptiles# sudo make generate-tiles-pg
docker-compose run --rm --user=0:0 openmaptiles-tools bash -c 'style-tools recompose openmaptiles.yaml build/style/style.json \
        style/style-header.json && \
        spritezero build/style/sprite /style/icons && spritezero --retina build/style/sprite@2x /style/icons'
Creating openmaptiles_openmaptiles-tools_run ... done
Starting postgres docker compose target using default image (no recreate if exists)
Wait for PostgreSQL to start...
docker-compose run --rm --user=0:0 openmaptiles-tools pgwait
Creating openmaptiles_openmaptiles-tools_run ... done
Generating tiles into data/tiles.mbtiles (will delete if already exists) using PostGIS ST_MVT()...
docker-compose run -T --rm --user=0:0 openmaptiles-tools generate-tiles
Creating openmaptiles_openmaptiles-tools_run ... done
2022-11-02 19-21-01 Generating zoom 0..14 inside (-180.0,-90.0,180.0,90.0) from 1 servers, using 10 connections per server, 10 parallel streams...
+ tilelive-copy --scheme=pyramid --bounds=-180.0,-90.0,180.0,90.0 --minzoom=0 --maxzoom=14 --timeout=1800000 --exit --retry=2 --concurrency=10 'pgquery://?database=openstreetmap&host=172.17.0.1&port=5432&username=osm&password=postgrespwd&funcZXY=getmvt&maxpool=10&minzoom=0&maxzoom=14' mbtiles:///export/tiles.mbtiles
tilelive-pgquery v1.2.0
Tilejson Spec:
       tilejson = 2.1.0
           name = PgQuery 1.2.0
         format = pbf
             id = openmaptiles
    attribution = <a href="https://www.openstreetmap.org/copyright" target="_blank">&copy; OpenStreetMap contributors</a>
         bounds = -180,-85.0511,180,85.0511
         center = -12.2168,28.6135,4
        minzoom = 0
        maxzoom = 14
    pixel_scale = 256
      maskLevel = 8
        version = 3.9

Server information for 172.17.0.1:5432:
                         version() = PostgreSQL 15.0 (Ubuntu 15.0-1.pgdg22.04+1) on x86_64-pc-linux-gnu, compiled by gcc (Ubuntu 11.2.0-19ubuntu1) 11.2.0, 64-bit
            postgis_full_version() = POSTGIS="3.3.1 3786b21" [EXTENSION] PGSQL="150" GEOS="3.10.2-CAPI-1.16.0" PROJ="8.2.1" LIBXML="2.9.13" LIBJSON="0.15" LIBPROTOBUF="1.3.3" WAGYU="0.5.0 (Internal)"
                               jit = on WARNING: disable JIT in PG 11-12 for complex queries
                    shared_buffers = 15GB
                          work_mem = 1GB
              maintenance_work_mem = 8GB
              effective_cache_size = 20GB
          effective_io_concurrency = 1
                   max_connections = 100
              max_worker_processes = 8
              max_parallel_workers = 8
   max_parallel_workers_per_gather = 2
                       wal_buffers = 16MB
                      min_wal_size = 80MB
                      max_wal_size = 1GB
                  random_page_cost = 4
         default_statistics_target = 100
      checkpoint_completion_target = 0.9

Verifying pgquery data source by retrieving a tile at [14,9268,3575] from 172.17.0.1:5432/openstreetmap...
a tile at [14,9268,3575] from 172.17.0.1:5432/openstreetmap was generated in 68507ms.  The result is 15532 bytes detected as gzipped data. 31483 bytes uncompressed.
Test tile begins with 1a. This byte often corresponds to a valid vector tile.
[1m 10.8s]   0.0000%      1/357.91m @    0/s | ✓ 0 □ 0 | 291012d 4h 51m 25.0s left/usr/lib/node_modules/@mapbox/tilelive/bin/tilelive-copy:100
        if (err) throw err;
                 ^

Error: Copy operation timed out
    at Timeout.<anonymous> (/usr/lib/node_modules/@mapbox/tilelive/lib/tilelive.js:392:22)
    at listOnTimeout (internal/timers.js:557:17)
    at processTimers (internal/timers.js:500:7)
ERROR: 1
make: *** [Makefile:461: generate-tiles-pg] Error 1

@HumeyraTEZCAN
Copy link

I am facing the same issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants