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

Rework download-geofabrick to avoid frequent errors #746

Closed
nyurik opened this issue Dec 17, 2019 · 7 comments
Closed

Rework download-geofabrick to avoid frequent errors #746

nyurik opened this issue Dec 17, 2019 · 7 comments
Assignees
Labels
Milestone

Comments

@nyurik
Copy link
Member

nyurik commented Dec 17, 2019

Geofabrick area download frequently crashes, possibly due to it trying to list all available areas on every quickstart.sh run. This is wasteful and not really needed.

Example from a recent build

====> : Downloading testdata albania.osm.pbf
=============== download-geofabrik =======================
Download area : albania
[[ example: make download-geofabrik area=albania ]]
[[ list areas: make download-geofabrik-list ]]
docker-compose run --rm import-osm  ./download-geofabrik.sh albania
Creating network "openmaptiles_postgres_conn" with driver "bridge"
Creating volume "openmaptiles_pgdata" with default driver
Creating volume "openmaptiles_cache" with default driver
 DEBUG[0011] request URL: https://download.geofabrik.de/ failed with response: &{0 [] 0xc00015eb60 0xc0000ea500 <nil>} error=Get https://download.geofabrik.de/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
  INFO[0011] /import/geofabrik.yml generated.
 FATAL[0000] can't find albania        error=albania is not in config. Please use "list" command
Makefile:91: recipe for target 'download-geofabrik' failed
make: *** [download-geofabrik] Error 1
The command "./quickstart.sh" exited with 2.
Done. Your build exited with 1.
@nyurik nyurik self-assigned this Dec 17, 2019
@nyurik nyurik added the bug label Dec 17, 2019
@kylebarron
Copy link
Contributor

I'm hitting this bug too

@nyurik
Copy link
Member Author

nyurik commented Feb 7, 2020

I'm in the process of adding last missing pieces to the download-osm tool. It is already capable of doing most of the things download-geofabrik can do.

@andyzaharia
Copy link

andyzaharia commented Feb 8, 2020

Running into the same bug.

@inventionzhang
Copy link

Running into the same bug. how to solve it?thx

@kylebarron
Copy link
Contributor

kylebarron commented Mar 4, 2020

Every time I've tried to generate an mbtiles in the last month I've hit this. Are you close to merging download-osm?

@kylebarron
Copy link
Contributor

Sorry, I'm an idiot... I've been going through and generating U.S. states, and I've had an error message similar to the first post every time when trying to generate georgia. Well, Georgia's also a country so I meant to be running

./quickstart.sh georgia-us

@TomPohys TomPohys added this to the v3.12 milestone Apr 19, 2020
@TomPohys
Copy link
Member

From OpenMapTiles-Tools v4.1 is implemented new download-osm -> https://github.com/openmaptiles/openmaptiles-tools/releases/tag/v4.1.0

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

No branches or pull requests

5 participants