I followed the readme documentation from the github (GitHub - GIScience/openrouteservice: š The open source route planner api with plenty of features.)
Basically i git cloned the repository and ran both docker compose up -d and neither worked. The issue seems to be that there is no profile loaded since http://localhost:8080/ors/v2/directions is returning ā{āerrorā:{ācodeā:2001,āmessageā:āParameter āprofileā is missing.ā},āinfoā:{āengineā:{ābuild_dateā:ā2023-06-13T12:36:00Zā,āversionā:ā7.1.0ā},ātimestampā:1695212234210}}ā
Here is my full logs from docker desktop, note the last bit with 0 memory usage by profiles.
2023-09-20 14:16:43 Running container as user root with id 0
2023-09-20 14:16:43 ORS Path: /home/ors
2023-09-20 14:16:43 Catalina Path: /home/ors/tomcat
2023-09-20 14:16:43 ### openrouteservice configuration ###
2023-09-20 14:16:43 Extract war file to /home/ors/tomcat/webapps/ors
2023-09-20 14:16:43 No ors-config.json in ors-conf folder. Copying original config from /home/ors/ors-core/ors-config.json
2023-09-20 14:16:43 Deploy ors with config from /home/ors/ors-conf/ors-config.json
2023-09-20 14:16:48 12:16:48.145 [main] INFO org.heigit.ors.config.AppConfig - Default path of 'ors-config.json' used for configuration
2023-09-20 14:16:48 12:16:48.150 [main] INFO org.heigit.ors.config.AppConfig - Loading configuration from /home/ors/tomcat/webapps/ors/WEB-INF/classes/ors-config.json
2023-09-20 14:16:48
2023-09-20 14:16:48 . ____ _ __ _ _
2023-09-20 14:16:48 /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
2023-09-20 14:16:48 ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
2023-09-20 14:16:48 \\/ ___)| |_)| | | | | || (_| | ) ) ) )
2023-09-20 14:16:48 ' |____| .__|_| |_|_| |_\__, | / / / /
2023-09-20 14:16:48 =========|_|==============|___/=/_/_/_/
2023-09-20 14:16:48 :: Spring Boot :: (v2.7.12)
2023-09-20 14:16:48
2023-09-20 14:16:48 20 Sep 12:16:48 INFO [ors.Application] - Starting Application v7.1.0 using Java 17.0.7 on 9a4929058a15 with PID 1 (/home/ors/tomcat/webapps/ors/WEB-INF/classes started by root in /home/ors)
2023-09-20 14:16:48 20 Sep 12:16:48 DEBUG [ors.Application] - Running with Spring Boot v2.7.12, Spring v5.3.27
2023-09-20 14:16:48 20 Sep 12:16:48 INFO [ors.Application] - No active profile set, falling back to 1 default profile: "default"
2023-09-20 14:16:52 20 Sep 12:16:52 INFO [ors.Application] - Started Application in 4.076 seconds (JVM running for 8.559)
2023-09-20 14:16:52 20 Sep 12:16:52 INFO [logging.LoggingUtility] - Logging configuration loaded from DEBUG_LOGGING.json, logging to file /home/ors/ors-core/logs/ors/ors-logs.log
2023-09-20 14:16:52 20 Sep 12:16:52 INFO [routing.RoutingProfileManager] - Total - 1024 MB, Free - 628.22 MB, Max: 2 GB, Used - 395.78 MB
2023-09-20 14:16:52 20 Sep 12:16:52 INFO [routing.RoutingProfileManager] -
2023-09-20 14:16:52 20 Sep 12:16:52 INFO [routing.RoutingProfileManager] - ====> Initializing profiles from '/home/ors/ors-core/data/osm_file.pbf' (1 threads) ...
2023-09-20 14:16:52 20 Sep 12:16:52 INFO [routing.RoutingProfileManager] - 1 tasks submitted.
2023-09-20 14:16:52 20 Sep 12:16:52 INFO [routing.RoutingProfile] - [1] Profiles: 'driving-car', location: '/home/ors/ors-core/data/graphs/car'.
2023-09-20 14:16:52 20 Sep 12:16:52 INFO [core.CoreLMPreparationHandler] - Loaded landmark splitting collection from
2023-09-20 14:16:52 20 Sep 12:16:52 INFO [extensions.ORSGraphHopper] - version 4.0|2023-06-12T14:59:08Z (7,20,5,4,5,7)
2023-09-20 14:16:52 20 Sep 12:16:52 INFO [extensions.ORSGraphHopper] - graph CH|car_ors|RAM_STORE|3D|turn_cost|,,,,, details:edges:0(0MB), nodes:0(0MB), name:(0MB), geo:0(0MB), bounds:1.7976931348623157E308,-1.7976931348623157E308,1.7976931348623157E308,-1.7976931348623157E308,1.7976931348623157E308,-1.7976931348623157E308, shortcuts:0 (0MB), nodesCH:-1 (0MB), shortcuts:0 (0MB), nodesCH:-1 (0MB), shortcuts:0 (0MB), nodesCH:-1 (0MB)
2023-09-20 14:16:52 20 Sep 12:16:52 INFO [extensions.ORSGraphHopper] - No custom areas are used, custom_areas.directory not given
2023-09-20 14:16:52 20 Sep 12:16:52 INFO [extensions.ORSGraphHopper] - start creating graph from /home/ors/ors-core/data/osm_file.pbf
2023-09-20 14:16:52 20 Sep 12:16:52 INFO [extensions.ORSGraphHopper] - using CH|car_ors|RAM_STORE|3D|turn_cost|,,,,, memory:totalMB:1024, usedMB:494
2023-09-20 14:16:52 20 Sep 12:16:52 ERROR [routing.RoutingProfileManager] - java.util.concurrent.ExecutionException: java.lang.IllegalStateException: Your specified OSM file does not exist:/home/ors/ors-core/data/osm_file.pbf
2023-09-20 14:16:52 20 Sep 12:16:52 ERROR [routing.RoutingProfileManager] - Failed to initialize RoutingProfileManager instance.
2023-09-20 14:16:52 java.util.concurrent.ExecutionException: java.lang.IllegalStateException: Your specified OSM file does not exist:/home/ors/ors-core/data/osm_file.pbf
2023-09-20 14:16:52 at java.util.concurrent.FutureTask.report(FutureTask.java:122) ~[?:?]
2023-09-20 14:16:52 at java.util.concurrent.FutureTask.get(FutureTask.java:191) ~[?:?]
2023-09-20 14:16:52 at org.heigit.ors.routing.RoutingProfileManager.initialize(RoutingProfileManager.java:181) ~[classes/:7.1.0]
2023-09-20 14:16:52 at org.heigit.ors.routing.RoutingProfileManager.getInstance(RoutingProfileManager.java:72) ~[classes/:7.1.0]
2023-09-20 14:16:52 at org.heigit.ors.servlet.listeners.ORSInitContextListener.lambda$contextInitialized$0(ORSInitContextListener.java:40) ~[classes/:7.1.0]
2023-09-20 14:16:52 at java.lang.Thread.run(Thread.java:833) [?:?]
2023-09-20 14:16:52 Caused by: java.lang.IllegalStateException: Your specified OSM file does not exist:/home/ors/ors-core/data/osm_file.pbf
2023-09-20 14:16:52 at com.graphhopper.reader.osm.OSMReader.readGraph(OSMReader.java:178) ~[graphhopper-core-v4.8.1.jar:?]
2023-09-20 14:16:52 at com.graphhopper.GraphHopper.importOSM(GraphHopper.java:740) ~[graphhopper-core-v4.8.1.jar:?]
2023-09-20 14:16:52 at com.graphhopper.gtfs.GraphHopperGtfs.importOSM(GraphHopperGtfs.java:67) ~[graphhopper-reader-gtfs-v4.8.1.jar:?]
2023-09-20 14:16:52 at com.graphhopper.GraphHopper.process(GraphHopper.java:704) ~[graphhopper-core-v4.8.1.jar:?]
2023-09-20 14:16:52 at com.graphhopper.GraphHopper.importOrLoad(GraphHopper.java:667) ~[graphhopper-core-v4.8.1.jar:?]
2023-09-20 14:16:52 at org.heigit.ors.routing.graphhopper.extensions.ORSGraphHopper.importOrLoad(ORSGraphHopper.java:166) ~[classes/:7.1.0]
2023-09-20 14:16:52 at org.heigit.ors.routing.RoutingProfile.initGraphHopper(RoutingProfile.java:193) ~[classes/:7.1.0]
2023-09-20 14:16:52 at org.heigit.ors.routing.RoutingProfile.<init>(RoutingProfile.java:140) ~[classes/:7.1.0]
2023-09-20 14:16:52 at org.heigit.ors.routing.RoutingProfileLoader.call(RoutingProfileLoader.java:39) ~[classes/:7.1.0]
2023-09-20 14:16:52 at org.heigit.ors.routing.RoutingProfileLoader.call(RoutingProfileLoader.java:25) ~[classes/:7.1.0]
2023-09-20 14:16:52 at java.util.concurrent.FutureTask.run(FutureTask.java:264) ~[?:?]
2023-09-20 14:16:52 at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539) ~[?:?]
2023-09-20 14:16:52 at java.util.concurrent.FutureTask.run(FutureTask.java:264) ~[?:?]
2023-09-20 14:16:52 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) ~[?:?]
2023-09-20 14:16:52 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) ~[?:?]
2023-09-20 14:16:52 ... 1 more
2023-09-20 14:16:52 20 Sep 12:16:52 INFO [routing.RoutingProfileManager] - ====> Recycling garbage...
2023-09-20 14:16:43 NOTE: Picked up JDK_JAVA_OPTIONS: --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.io=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/java.util.concurrent=ALL-UNNAMED --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED
2023-09-20 14:16:43 NOTE: Picked up JDK_JAVA_OPTIONS: --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.io=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/java.util.concurrent=ALL-UNNAMED --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED
2023-09-20 14:16:44 20-Sep-2023 12:16:44.105 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-8080"]
2023-09-20 14:16:47 20-Sep-2023 12:16:47.581 INFO [main] org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
2023-09-20 14:16:52 20-Sep-2023 12:16:52.243 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-8080"]
2023-09-20 14:16:52 20 Sep 12:16:52 INFO [routing.RoutingProfileManager] - Before: Total - 1024 MB, Free - 529.71 MB, Max: 2 GB, Used - 494.29 MB
2023-09-20 14:16:52 20 Sep 12:16:52 INFO [routing.RoutingProfileManager] - After: Total - 1024 MB, Free - 986.08 MB, Max: 2 GB, Used - 37.92 MB
2023-09-20 14:16:52 20 Sep 12:16:52 INFO [routing.RoutingProfileManager] - ========================================================================
2023-09-20 14:16:52 20 Sep 12:16:52 INFO [routing.RoutingProfileManager] - ====> Memory usage by profiles:
2023-09-20 14:16:52 20 Sep 12:16:52 INFO [routing.RoutingProfileManager] - Total: 0 B (0.0%)
2023-09-20 14:16:52 20 Sep 12:16:52 INFO [routing.RoutingProfileManager] - ========================================================================