Endpoints not working

I’ve deployed a Docker container with ORS. My issue is that I do get responses from Tomcat but not from any ors endpoint as I get a nice 404 on each of them.
Changes I’ve made to are just a PBF downloaded from Geofabrik.
Any guide on this?
Thanx in advance.

Hi @DC_Drummer

can you post the url’s and requests that you are making? Normally things like this locally are where the ors is missing in the url, so requests should be along the lines of http://localhost:8080/ors/v2/directions/...

Hi @adam
I have it on https://maps.dctech.dev/ors/v2/directions/driving-car?start=startlatlng&end=endlatlng
But I’m not able to get it working as expected :frowning:

what’s the output of docker ps and docker logs ors-app?

This is the only error I see:

20658 [e[1;31mERRORe[m] Failed to execute goal e[32morg.apache.maven.plugins:maven-war-plugin:3.2.3:ware[m e[1m(default-war)e[m on project e[36mopenrouteservicee[m: e[1;31mError assembling WAR: Problem creating war: Execution exceptione[m: Java heap space -> e[1m[Help 1]e[m
20666 [e[1;31mERRORe[m]
20666 [e[1;31mERRORe[m] To see the full stack trace of the errors, re-run Maven with the e[1m-ee[m switch.
20667 [e[1;31mERRORe[m] Re-run Maven using the e[1m-Xe[m switch to enable full debug logging.
20667 [e[1;31mERRORe[m]
20667 [e[1;31mERRORe[m] For more information about the errors and possible solutions, please read the following articles:
20668 [e[1;31mERRORe[m] e[1m[Help 1]e[m http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

OK, the first line tells you that you have run out of heap space, so you need to increase the amount of heap available to java / the container. The rule of thumb is normally the amount of ram needed to build is double the size of the pbf file for each profile. The bit you need to modify is the -Xms and -Xmx in the
-e "JAVA_OPTS=-Djava.awt.headless=true -server -XX:TargetSurvivorRatio=75 -XX:SurvivorRatio=64 -XX:MaxTenuringThreshold=3 -XX:+UseG1GC -XX:+ScavengeBeforeFullGC -XX:ParallelGCThreads=4 -Xms1g -Xmx2g"
that is passed when you start the docker container. Obviously also make sure that the system you are running it on has enough RAM

1 Like