Open glacierians opened 5 years ago
It looks like it's getting stuck at parsing relations. What you can do is
There may be an invalid relation in the pbf file and osmconvert
maybe discards it.
@glacierians I can't reproduce the problem locally. Can you share the exact file that you used? Geofabrik updates their data regularly, so if it's a glitch in the actual .pbf
file as @daniel-j-h suggests, I might not be using the right data to trigger the problem.
Thanks for your responses. Since our initial approach worked, we didn’t dive too much into our issue with the .pbf
files. However, we recently discovered that if we use .osm.bz2
files then we can skip the conversion from .pbf
to .osm
through osmconvert
. When we used the .pbf
file directly with osrm-extract
, we observed abnormally low CPU (< 100%) and memory (< 1%) usages that indicated it didn’t take advantage of the multiple cores/threads on the instance. We also looked into using these osrm-extract
flags: -t [ --threads ]
.
We just started working through some initial steps to process the planet file using the .osm.bz2
file. We are not exactly sure what is causing our issues with the .pbf
files, but if the .osm.bz2
planet file works, then we have a good alternative approach.
I tried this Hawaii .pbf
from Geofrabik earlier today with our setup: https://download.geofabrik.de/north-america/us/hawaii-181216.osm.pbf. It still produced the same “stalled” results.
We also tried .pbf
files of different areas within the US and even North America. Those .pbf
files did not work until we converted it to .osm
.
@glacierians this helped us a ton, thanks so much for posting!
This issue seems to be stale. It will be closed in 30 days if no further activity occurs.
Our Current Setup:
We are seeing a weird behavior with .pbf files. With
osrm-extract
, it appears to stall at this step:Unfortunately, we are constrained by our customer to use RHEL 6.6 which is a bit outdated. We followed the documentation on the Building-OSRM wiki page for RHEL, but it seems to stall on that same step. We also tried using larger instance sizes and waiting overnight for it to finish.
Our
.stxxl
configuration:disk=/tmp/stxxl,250G,syscall
We found a workaround by converting the
.pbf
into an.osm
file through osmconvert, but we would like to understand whyosrm-extract
is not completing with.pbf
files in case it is indicative of a larger issue with our setup.Working Output:
We might have missed a step, so any help would be appreciated.
Thank you