Osrm-backend: Error input file ... not found

Created on 26 May 2017  路  6Comments  路  Source: Project-OSRM/osrm-backend

Sorry for probably stupid question, But I tried everything. I'm strugling with first command for installing docker image:

docker run -t -v $(pwd):/data osrm/osrm-backend osrm-extract -p /opt/car.lua /data/berlin-latest.osm.pbf

This is my terminal:
https://ibb.co/ddtvTF
I tried even download this file under docker image to "/data" catalog - the same
I tried to pass folder from few places under Ubuntu main system - the same

Please help.
Last image, Ubuntu 16, last docker version

Most helpful comment

For the record: solution is here: https://github.com/Project-OSRM/osrm-backend/issues/4253#issuecomment-313667032: - paths were wrong.

All 6 comments

@przelew You're missing a leading / in front of data/poland-latest.osm.pbf.

The flag -v $(pwd):/data creates the directory /data inside the docker container, and makes $(pwd) available there. The file /data/poland-latest.osm.pbf inside the container is referring to /home/ubuntu/poland-latest.osm.pbf on the host.

@danpat I did few things and it started to work (also your suggestion), thank you.

what did you do?? I have the exact same prob ...

+1 on "what did you do??"

It's all exactly the same but on latest mac os with latest docker...

File sharing with docker by default works with /Users and its subdirectories...

screen shot 2017-07-07 at 14 50 52

For the record: solution is here: https://github.com/Project-OSRM/osrm-backend/issues/4253#issuecomment-313667032: - paths were wrong.

I feel like the README should be updated to be more clear to everyone who's run into this issue.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Eichenherz picture Eichenherz  路  4Comments

AliKarami picture AliKarami  路  3Comments

ryanbishop12 picture ryanbishop12  路  4Comments

ardanika picture ardanika  路  3Comments

freenerd picture freenerd  路  4Comments