[OSRM-talk] OSRM docker error

Daniel Patterson daniel at mapbox.com
Fri Jun 28 00:26:58 UTC 2019


Very likely you ran out of memory - I'd check your system logs to see if
the Linux kernel OOM killer terminated your process.  The process suddenly
stopping like this with no error is typical of that scenario.

Check that your docker install doesn't have some hard memory limits in
place - if so, you will probably need to increase them.

daniel

On Thu, Jun 6, 2019 at 10:42 AM Fabio Fraga Machado <fabio at iter.sc> wrote:

> Hi, folks.
>
> I'm trying to change from osrm VM to osrm docker, but i cant go to next
> step after extract my pbf file.
>
> # docker run -ti -v "${PWD}:/data" osrm/osrm-backend osrm-extract  -p
> /opt/car.lua /data/brazil-latest.osm.pbf
> [info] Parsed 0 location-dependent features with 0 GeoJSON polygons
> [info] Using script /opt/car.lua
> [info] Input file: brazil-latest.osm.pbf
> [info] Profile: car.lua
> [info] Threads: 2
> [info] Parsing in progress..
> [info] input file generated by osmium/1.8.0
> [info] timestamp: 2019-06-05T20:14: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] Parsing finished after 438.765 seconds
> [info] Raw input contains 102476783 nodes, 9400271 ways, and 6367
> relations, 53330 restrictions
> [info] Sorting used nodes        ... ok, after 5.26049s
> [info] Erasing duplicate nodes   ... ok, after 0.097733s
> [info] Sorting all nodes         ... ok, after 24.2996s
> [info] Building node id map      ... ok, after 34.9726s
> [info] Confirming/Writing used nodes     ... ok, after 36.7284s
> [info] Writing barrier nodes     ... ok, after 0s
> [info] Writing traffic light nodes     ... ok, after 0s
> [info] Processed 26706858 nodes
> [info] Sorting edges by start    ... ok, after 107.493s
> [info] Setting start coords      ... ok, after 129.864s
> [info] Sorting edges by target   ... ok, after 170.663s
> [info] Computing edge weights    ... ok, after 194.645s
> [info] Sorting edges by renumbered start ... ok, after 194.499s
> [info] Writing used edges       ... ok, after 116.735s -- Processed
> 29423534 edges
> [info] Writing way meta-data     ... ok, after 1.72054s -- Metadata
> contains << 3446120 entries.
> [info] Sorting used ways         ... ok, after 3.74104s
> [info] Collecting start/end information on 0 maneuver overrides...ok,
> after 0.040274s
> [info] Collecting start/end information on 0 maneuver overrides...ok,
> after 0s
> [info] Collecting start/end information on 53330 restrictions...ok, after
> 1.82737s
> [info] Collecting start/end information on 53330 restrictions...ok, after
> 10.3571s
> [info] writing street name index ... ok, after 1.52269s
> [info] extraction finished after 1553.41s
> [info] Generating edge-expanded graph representation
> [info] . 10% . 20% . 30% . 40% . 50% . 60% . 70% . 80% . 90% . 100%
> [info] Node compression ratio: 0.230783
> [info] Edge compression ratio: 0.301608
>
> When i run partition, I receive this message:
> # docker run -t -v "${PWD}:/data" osrm/osrm-backend osrm-partition
> /data/brazil-latest.osrm
> [error] Input file "/data/brazil-latest.osrm.ebg" not found!
>
> And i cant go on. What i did wrong?
> The files created after the extract is:
>
> # ls -la
> total 2090112
> drwxr-xr-x  2 root root        166 Jun  6 14:00 .
> dr-xr-x---. 7 root root        268 Jun  4 14:54 ..
> -rw-r--r--  1 root root  726801691 Jun  6 13:33 brazil-latest.osm.pbf
> -rw-r--r--  1 root root 1396580352 Jun  6 14:00 brazil-latest.osrm
> -rw-r--r--  1 root root   16878080 Jun  6 14:00 brazil-latest.osrm.names
> -rw-r--r--  1 root root       6144 Jun  6 14:00
> brazil-latest.osrm.properties
> -rw-r--r--  1 root root       3584 Jun  6 13:35
> brazil-latest.osrm.timestamp
>
>
> My docker version is:
> # docker version
> Client:
>  Version:           18.09.6
>  API version:       1.39
>  Go version:        go1.10.8
>  Git commit:        481bc77156
>  Built:             Sat May  4 02:34:58 2019
>  OS/Arch:           linux/amd64
>  Experimental:      false
>
> Server: Docker Engine - Community
>  Engine:
>   Version:          18.09.6
>   API version:      1.39 (minimum version 1.12)
>   Go version:       go1.10.8
>   Git commit:       481bc77
>   Built:            Sat May  4 02:02:43 2019
>   OS/Arch:          linux/amd64
>   Experimental:     false
>
>
> My OS is: CentOS 7
> Fabio Fraga Machado
> *SRE / DevOPs* @ iTER IOT Solutions
> 48  991862005 • www.iter.net.br
> Av. Josué di Bernardi, 23 - Campinas, São José - SC
> CEP 88101-200
> _______________________________________________
> OSRM-talk mailing list
> OSRM-talk at openstreetmap.org
> https://lists.openstreetmap.org/listinfo/osrm-talk
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/osrm-talk/attachments/20190627/b911b29e/attachment.html>


More information about the OSRM-talk mailing list