[OSRM-talk] osrm-datastore error code 21

Daniel Patterson daniel at mapbox.com
Fri Jan 26 17:31:35 UTC 2018


Kieran,

  Hmm, we could probably improve the error handling here and make the
message a bit more useful.

  The problem is probably one of:

    1) Permission problems accessing /tmp/osrm.lock
    2) Permission problems creating shared memory

  Code 21 is:

$ errno 21
EISDIR 21 Is a directory

  So I'd suspect some bad filesystem permissions somewhere.  You can try
running the `osrm-datastore` command under `strace` and see if you can spot
the syscal that's failing with - that might give a hint as to what's going
wrong.

daniel

On Fri, Jan 26, 2018 at 8:57 AM, Kieran Caplice <kieran.caplice at temetra.com>
wrote:

> Hello,
>
> I'm wondering if anyone can help out with this error I'm getting when
> running osrm-datastore under a non-root user:
>
> root at htzh /opt/osrm # su - osrm -c "osrm-datastore
> /opt/osrm/data/planet-latest/planet-latest.osrm"
> [info] Loading data into REGION_1
> [info] load names from: "/opt/osrm/data/planet-latest/
> planet-latest.osrm.names"
> [info] Allocating shared memory of 96772768369 bytes
> [error] Error while attempting to allocate shared memory: Invalid
> argument, code 21
> terminate called after throwing an instance of 'osrm::util::exception'
>   what():  Invalid argumentinclude/storage/shared_memory.hpp:308
> root at htzh /opt/osrm # su - osrm -c "ulimit -a | grep max"
> max locked memory       (kbytes, -l) 128849018880
> max memory size         (kbytes, -m) unlimited
> max user processes              (-u) 1031189
>
> Available shared memory for the user has been increased in
> /etc/security/limits.conf as per the wiki page, as shown above.
>
> The server has 256GB of RAM, with at least 200GB available most of the
> time. I successfully ran osrm-datastore and osrm-routed as the root user
> earlier, but we would ideally run it under a separate user.
>
> Thanks in advance.
>
> Kind regards,
> Kieran Caplice
>
>
> _______________________________________________
> 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/20180126/e55daa26/attachment.html>


More information about the OSRM-talk mailing list