Project-OSRM / osrm-backend

Open Source Routing Machine - C++ backend
http://map.project-osrm.org
BSD 2-Clause "Simplified" License
6.29k stars 3.32k forks source link

installation of OSRM-Backend #6032

Closed courageuse closed 1 month ago

courageuse commented 3 years ago

Hello, I am training to install OSRM-backend under ubuntu which is installed under the virtualbox and for its installation I followed this tutorial: https://www.yatis.io/how-to-install-osrm-and-nominatim- on-ubuntu-16-02-google-maps-alternative / at the level of "Installing OSRM" once I typed the following command: osrm-extract data / map.osm.pbf -p osrm-backend / profiles / car.lua

I got as an error message:

[info] parsed O location-dependent features with 0 GeoJSON polygons [info] using script osrm-backend/profiles/car.lua [info] Input file: algeria-latest.osm.pbf [info] Profiles: car.lua [info] Threads: 1 [info]: parsing in progress .. [info] input file generated by osmium/1/8.0 [info] timestamp: 2021-05-09T20:21:28Z [info] Using profile api version 4 [info] Found 3 turn restriction tags: [info] motorcar [info] motor_vehicle [info] vehicle [info] Paese relations ... terminate called after throwing an instance of 'osmium :: pbf_error' what (): PBF error: truncated data (EOF encountered) abound (core dumped)

that someone can help me solve it really it's urgent and thanks in advance

jcoupey commented 3 years ago

terminate called after throwing an instance of 'osmium :: pbf_error' what (): PBF error: truncated data (EOF encountered)

This seems to point to a problem in the data file you're using. You should make sure it's valid and not corrupt. Assuming you got the data from Geofabrik, that would mean at least verifying the checksum displayed on the website (or also downloading algeria-latest.osm.pbf.md5 and running md5sum -c algeria-latest.osm.pbf.md5).

courageuse commented 3 years ago

Hello,

Thank you mister jcoupey for your answer but where can we download algeria-latest.osm.pbf.md5 and where I have to write this command: md5sum -c algeria-latest.osm.pbf.md5

and thanks in advance.

nilsnolde commented 3 years ago

Please be careful when asking for help in dedicated channels such as project-specific issue trackers. We assume you have basic familiarity with OSM and Linux commands. I’d recommend you ask for help in other channels, such as coworkers or friends. Not even stackoverflow.com would respond kindly to your lack of research. Respect other people’s time, that’s really important or you’ll end up getting blocked from opening issues. It’s friendly advice at this point, please don’t take it the wrong way.

courageuse commented 3 years ago

thank you mister nilsnolde for your advice

github-actions[bot] commented 2 months ago

This issue seems to be stale. It will be closed in 30 days if no further activity occurs.