Description
OS is Windows 7.
Running Docker-Toolkit with boot2docker vm image in Oracle VM VirtualBox 5.2.4.
VM is allocated 28GB of memory, 200gb storage, 4 processors.
Downloaded multiple osm.pbf from both Geofabrik and Mapzen. Successfully re-produced on the Mapzen Detroit file and Geofabrik's North America, USA-Michigan, and Berlin files.
Reproducible with both osrm-backend latest docker image and also 5.14.2. Did not try other version.
Files are located in c:\users\public\mapdata so they are visible within Docker quickstart terminal.
Run the following commands from within that directory. I tried with all the files listed above and both osrm-backend (current) and the tagged v5.14.2. I'm only showing the current commands below.
$ docker run -t -v $(pwd):/data osrm/osrm-backend osrm-extract -p /opt/car.lua /data/detroit_michigan.osm.pbf
Generated this:
[info] Parsed 0 location-dependent features with 0 GeoJSON polygons
[info] Using script /opt/car.lua
[info] Input file: detroit_michigan.osm.pbf
[info] Profile: car.lua
[info] Threads: 4
[info] Parsing in progress..
[info] input file generated by osmconvert 0.8.5
[info] timestamp: 2017-12-25T15:04:02Z
[info] Using profile api version 4
[info] Found 3 turn restriction tags:
[info] motorcar
[info] motor_vehicle
[info] vehicle
[info] Parse relations ...
[info] Parse ways and nodes ...
[info] Using profile api version 4
[info] Using profile api version 4
[info] Using profile api version 4
Can't parse value: no_indications
Can't parse value: no_indications
Can't parse value: no_indications
Can't parse value: no_indications
Can't parse value: default
....
[info] Found 860 SCC (1 large, 859 small)
[info] SCC run took: 0.0610813s
[info] Building r-tree ...
[info] Constructing r-tree of 1344925 segments build on-top of 1218287 coordinat
es
[info] finished r-tree construction in 3.23277 seconds
[info] Writing edge-based-graph edges ...
[info] ok, after 2.06304s
[info] Processed 1711329 edges
[info] Expansion: 24935 nodes/sec and 17336 edges/sec
[info] To prepare the data for routing, run: ./osrm-contract "/data/detroit_mich
igan.osrm"
[info] RAM: peak bytes used: 695767040
So that looked successful. Following the guide here (https://hub.docker.com/r/osrm/osrm-backend/) I next run:
$ docker run -t -v $(pwd):/data osrm/osrm-backend osrm-partition /data/detroit_michigan.osrm
Which generates the error:
[info] Computing recursive bisection
[info] Loaded compressed node based graph: 908644 edges, 1218287 nodes
[info] running partition: 128 1.2 0.25 10 1000 # max_cell_size balance boundary cuts small_component_size
[info] Found 890958 SCC (1 large, 890957 small)
[info] SCC run took: 0.0660343s
[info] Full bisection done in 22.2809s
[info] Loaded node based graph to edge based graph mapping
[info] Loaded edge based graph for mapping partition ids: 3422078 edges, 847033 nodes
[info] Fixed 153237 unconnected nodes
[info] Edge-based-graph annotation:
[info] level 1 #cells 3884 bit size 12
[info] level 2 #cells 307 bit size 9
[info] level 3 #cells 21 bit size 5
[info] level 4 #cells 1 bit size 1
terminate called after throwing an instance of 'osrm::util::exception'
what(): File "/data/detroit_michigan.osrm.fileIndex" mapping failed: failed mapping file: Invalid argument: iostream errorinclude/util/mmap_file.hpp:33