Local instance, .../ors/status shows empty page

I setup my local instance via docker, precisely following this tutorial Setup a Self-Hosted OpenRouteService Instance with Docker on Windows, Mac or Linux - YouTube, except of course, I downloaded germany-lastest.osm.bz2 from Geofabrik instead. The following things happen and I have failed to fix them for hours, I even uninstalled Windows and switched to Linux Mint…

  • opening http://localhost:8080/ors/v2/health in the browser says status: “not ready”

  • asking for car routes in Germany via your python library yields:
    openrouteservice.exceptions.ApiError: 500 ({‘error’: {‘code’: 2099, ‘message’: ‘Unable to get an appropriate route profile for RoutePreference = driving-car’…

  • asking to convert address string to coordinates via your python library causes HTTP 404 not found

What could the error be? In the video it worked straight away, the console also shows that the startup finished within 5 seconds… I also tried a small map and changing the max. RAM for Docker compose from 2 gigs to 10 gigs (I have 32 gigs in total). Also, it does not seem like my CPU is doing anything… :-/

PS: My frustration level is like 8 on a scale from 0-10, I’ve been trying to solve this since around 22:00 and it’s 5:04 now, so pleeeaase help me :frowning:

EDIT: The tomcat catalina log is showing some java class cast exceptions, could that be important?
It says maaaany times that some Threads/FutureTasks died, giving the reason:
java.lang.ClassCastException: class java.io.ObjectStreamClass$Caches$1 cannot be cast to class java.util.Map (java.io.ObjectStreamClass$Caches$1 and java.util.Map are in module java.base of loader ‘bootstrap’

EDIT2: Also, this log mentions Java 11, I read something about Java 17 in the building from source tutorial, is that important?

Hey,

there’s a few things that come to mind here. Firstly,

The tutorial is based on v6.7.0, and there’s quite a bit that has changed since then. Your difficulties may very well be due to the changes since then. Have a look here for setup instructions using docker.
When using the dockerhub images, make sure you docker pull-ed the latest image.

While the ORS can read osm xml, we’d recommend using the osm.pbf format.

This is probably due to graphs still building. Depending the number of profiles, this might very well take more than a few hours. Using a smaller OSM extract should speed this up significantly - the tutorial is using the “test” data set of Heidelberg and the car profile, which takes no more than 5 minutes to build.
Remember to delete your graphs-folder when changing the input data.

The geocoding service is not included in the openrouteservice. While our public API offers this, a local geocoding setup will have to use pelias directly.

Best regards

Hey,

thank you so much :slight_smile:
Fortunately, and quite surprisingly, the ‘Geoapify’ company has given me a free and powerful API key, so I don’t need the local openrouteservice instance anymore. Thank you so much for your generous help though, I’m gonna give the project a small donation.

Best regards,
Tobi