Skip to content

Timeout when using pmtiles extract #269

@megansmith-1

Description

@megansmith-1

I'm trying to do a partial download of the PMTiles map so that I can host it on Firebase. However, I repeatedly get a TCP timeout error.

The code I give it:
pmtiles extract https://build.protomaps.com/20260115.pmtiles basemap.pmtiles --bbox=-30,42,30,65

The response I get:

2026/01/15 17:16:48 extract.go:373: fetching 258 dirs, 258 chunks, 12 requests
2026/01/15 17:16:59 extract.go:413: Region tiles 26504197, result tile entries 11169714
2026/01/15 17:17:01 extract.go:422: fetching 11169714 tiles, 5499 chunks, 123 requests
fetching chunks   0% |                                                                                      | (20 MB/34 GB, 6.1 MB/s) [3s:1h33m34s]2026/01/15 17:17:25 main.go:185: Failed to extract, read tcp [2a00:23c8:b0b1:7701:1928:7716:f9a1:503f]:51441->[2606:4700:20::681a:7c3]:443: read: operation timed out

To debug, I tried this with smaller bounding boxes and the only one I could get to work was bbox=-1,-1,1,1 which equated to downloading a 980kB file in 2 seconds. Since this is super small I thought maybe there is bug?? If not, what is the best way for me to a partial download? I could download the whole file but that seems a waste of bandwidth since I want at most 25% of it and I also need to then upload it to my firebase bucket which tends to be slow.

Thank you in advance!!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions