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

[BUG] download missing latest osm file #597

Closed
smellman opened this issue Jun 3, 2023 · 1 comment · Fixed by #608
Closed

[BUG] download missing latest osm file #597

smellman opened this issue Jun 3, 2023 · 1 comment · Fixed by #608
Labels
bug Something isn't working

Comments

@smellman
Copy link

smellman commented Jun 3, 2023

Describe the bug
New planet data released but download planet file function detect older planet file

To Reproduce
Steps to reproduce the behavior:

  1. run
set -e
java -Xmx24g \
  -jar planetiler.jar \
  `# Download the latest planet.osm.pbf from s3://osm-pds bucket` \
  --area=planet --bounds=world --download \
  `# Accelerate the download by fetching the 10 1GB chunks at a time in parallel` \
  --download-threads=10 --download-chunk-size-mb=1000 \
  --mbtiles=output.mbtiles \
  --nodemap-type=array --nodemap-storage=mmap 2>&1 | tee logs.txt
  1. Download data from 'https://osm-pds.s3.amazonaws.com/2023/planet-230501.osm.pbf` but planet-20230529.osm.pbf is correct.
0:00:03 INF [download] - Downloading https://osm-pds.s3.amazonaws.com/2023/planet-230501.osm.pbf to data/sources/planet.osm.pbf

Expected behavior
Download latest (planet-20230529.osm.pbf)

Screenshots
If applicable, add screenshots to help explain your problem (include tile IDs or latitude/longitude for visual issues
with generated maps)

Environment (please complete the following information):

  • OS: Debian GNU Linux bullesye
  • Java version and distribution: OpenJDK 64-Bit Server VM (build 17.0.6+10-Debian-1deb11u1, mixed mode, sharing)
  • Planetiler: 0.6.0 jar file
@smellman smellman added the bug Something isn't working label Jun 3, 2023
@erik
Copy link
Contributor

erik commented Jun 5, 2023

Seems the osm-pds S3 bucket index page that Planetiler fetches to grab the most recent version (https://osm-pds.s3.amazonaws.com/) is either cached or not updating correctly.

$ aws s3 ls osm-pds/2023
...
2023-06-05 10:21:28 74353561106 planet-230529.osm.pbf
...

$ curl https://osm-pds.s3.amazonaws.com/ | grep planet-230529.osm.pbf 

Planetiler could be updated to list files with the S3 API directly, but maybe there's an issue with the osm-pds pipeline at the moment https://github.com/mojodna/osm-pds-pipelines/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants