Hi,

Not sure if you're hitting the same problem here, but I recall a related discussion happening a while back at:

https://github.com/Project-OSRM/osrm-backend/issues/1724

At least it provides a few hints on permissions and shared memory.

Julien

Le 26/01/2018 à 18:31, Daniel Patterson a écrit :
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.capl...@temetra.com <mailto:kieran.capl...@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@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@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@openstreetmap.org <mailto:OSRM-talk@openstreetmap.org>
    https://lists.openstreetmap.org/listinfo/osrm-talk
    <https://lists.openstreetmap.org/listinfo/osrm-talk>




_______________________________________________
OSRM-talk mailing list
OSRM-talk@openstreetmap.org
https://lists.openstreetmap.org/listinfo/osrm-talk


_______________________________________________
OSRM-talk mailing list
OSRM-talk@openstreetmap.org
https://lists.openstreetmap.org/listinfo/osrm-talk

Reply via email to