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
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?