Error starting ORS Local and Docker. Latest Version

Hi team,

I encountered an error while trying to run the ORS locally. Here is the log output:

[+] Running 1/0
 ⠿ Container ors-app  Created                                                                                                    0.0s
Attaching to ors-app
ors-app  | #################
ors-app  | # Container ENV #
ors-app  | #################
ors-app  | ✓ CONTAINER_LOG_LEVEL: INFO. Set CONTAINER_LOG_LEVEL=DEBUG for more details.
ors-app  | ⓘ Any config file settings can be overwritten by environment variables.
ors-app  | ⓘ Use 'CONTAINER_LOG_LEVEL=DEBUG' to see the full list of active environment variables for this container.
ors-app  | ###########################
ors-app  | # Container sanity checks #
ors-app  | ###########################
ors-app  | ⓘ Running container as user ors with id 1000 and group 1000
ors-app  | ✓ ORS_HOME: /home/ors exists and is writable.
ors-app  | ✓ The file /home/ors/config/example-ors-config.env is up to date
ors-app  | ✓ The file /home/ors/config/example-ors-config.yml is up to date
ors-app  | ✓ Using the existing ors-config.yml from: /home/ors/config/ors-config.yml
ors-app  | ⓘ Default to graphs folder: /home/ors/graphs
ors-app  | ⓘ Any ENV variables will have precedence over configuration variables from config files.
ors-app  | ✓ All checks passed. For details set CONTAINER_LOG_LEVEL=DEBUG.
ors-app  | #####################################
ors-app  | # Container file system preparation #
ors-app  | #####################################
ors-app  | ✓ The file /home/ors/files/example-heidelberg.test.pbf is up to date
ors-app  | ✓ Removed graphs at /home/ors/graphs/*.
ors-app  | ✓ Container file system preparation complete. For details set CONTAINER_LOG_LEVEL=DEBUG.
ors-app  | #######################################
ors-app  | # Prepare CATALINA_OPTS and JAVA_OPTS #
ors-app  | #######################################
ors-app  | ✓ CATALINA_OPTS and JAVA_OPTS ready. For details set CONTAINER_LOG_LEVEL=DEBUG.
ors-app  | #####################
ors-app  | # ORS startup phase #
ors-app  | #####################
ors-app  | ✓ 🙭 Ready to start the ORS application 🙭
ors-app  | 
ors-app  |   .   ____          _            __ _ _
ors-app  |  /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
ors-app  | ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
ors-app  |  \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
ors-app  |   '  |____| .__|_| |_|_| |_\__, | / / / /
ors-app  |  =========|_|==============|___/=/_/_/_/
ors-app  | 
ors-app  |  :: Spring Boot ::                (v3.4.1)
ors-app  | 
ors-app  | 2025-02-14 14:41:43 INFO                                                  main [ o.h.o.a.Application                      ]   Starting Application v9.1.0 using Java 21.0.4 with PID 1 (/ors.jar started by ors in /home/ors)
ors-app  | 2025-02-14 14:41:43 INFO                                                  main [ o.h.o.a.Application                      ]   The following 1 profile is active: "default"
ors-app  | 2025-02-14 14:41:43 INFO                                                  main [ o.h.o.a.ORSEnvironmentPostProcessor      ]   
ors-app  | 2025-02-14 14:41:43 INFO                                                  main [ o.h.o.a.ORSEnvironmentPostProcessor      ]   Configuration lookup started.
ors-app  | 2025-02-14 14:41:43 INFO                                                  main [ o.h.o.a.ORSEnvironmentPostProcessor      ]   Configuration file set by environment variable.
ors-app  | 2025-02-14 14:41:43 INFO                                                  main [ o.h.o.a.ORSEnvironmentPostProcessor      ]   Loaded file '/home/ors/config/ors-config.yml'.
ors-app  | 2025-02-14 14:41:43 INFO                                                  main [ o.h.o.a.ORSEnvironmentPostProcessor      ]   
ors-app  | 2025-02-14 14:41:43 INFO                                                  main [ o.h.o.a.ORSEnvironmentPostProcessor      ]   Environment variables overriding openrouteservice configuration parameters detected: 
ors-app  | 2025-02-14 14:41:43 INFO                                                  main [ o.h.o.a.ORSEnvironmentPostProcessor      ]   ors.config.location=/home/ors/config/ors-config.yml
ors-app  | 2025-02-14 14:41:43 INFO                                                  main [ o.h.o.a.ORSEnvironmentPostProcessor      ]   Configuration lookup finished.
ors-app  | 2025-02-14 14:41:43 INFO                                                  main [ o.h.o.a.ORSEnvironmentPostProcessor      ]   
ors-app  | 2025-02-14 14:41:45 INFO                                              ORS-Init [ o.h.o.a.s.l.ORSInitContextListener       ]   Initializing ORS...
ors-app  | 2025-02-14 14:41:45 INFO                                              ORS-Init [ o.h.o.r.RoutingProfileManager            ]   Total - 1024 MB, Free - 959.56 MB, Max: 2 GB, Used - 64.44 MB
ors-app  | 2025-02-14 14:41:45 INFO                                              ORS-Init [ o.h.o.r.RoutingProfileManager            ]   ====> Initializing 11 profiles (1 threads) ...
ors-app  | 2025-02-14 14:41:45 INFO                                              ORS-Init [ o.h.o.r.RoutingProfileManager            ]   11 profile configurations submitted as tasks.
ors-app  | 2025-02-14 14:41:45 ERROR                                             ORS-Init [ o.h.o.r.RoutingProfileManager            ]   
ors-app  | 2025-02-14 14:41:45 ERROR                                             ORS-Init [ o.h.o.r.RoutingProfileManager            ]   ExecutionException while initializing RoutingProfileManager: java.lang.IllegalStateException: Expected single profile in config
ors-app  | 2025-02-14 14:41:45 ERROR                                             ORS-Init [ o.h.o.r.RoutingProfileManager            ]   
ors-app  | 2025-02-14 14:41:45 INFO                                    ORS-pl-driving-car [ o.h.o.r.g.e.c.CorePreparationHandler     ]   Using 1 threads for ch preparation threads
ors-app  | 2025-02-14 14:41:45 INFO                                    ORS-pl-driving-car [ o.h.o.r.g.e.c.CoreLMPreparationHandler   ]   Using 1 threads for lm preparation threads
ors-app  | 2025-02-14 14:41:45 INFO                                    ORS-pl-driving-car [ o.h.o.r.g.e.c.CorePreparationHandler     ]   Using 1 threads for ch preparation threads
ors-app  | 2025-02-14 14:41:45 INFO                                    ORS-pl-driving-car [ o.h.o.r.g.e.c.CoreLMPreparationHandler   ]   Using 1 threads for lm preparation threads
ors-app  | 2025-02-14 14:41:45 INFO                                    ORS-pl-driving-car [ o.h.o.r.g.e.c.CoreLMPreparationHandler   ]   Loaded landmark splitting collection from 
ors-app  | 2025-02-14 14:41:45 INFO                                    ORS-pl-driving-car [ o.h.o.r.g.e.ORSGraphHopper               ]   version v4.9.6|2025-01-14T12:17:35Z (7,20,5,4,5,7)
ors-app  | 2025-02-14 14:41:45 INFO                                    ORS-pl-driving-car [ o.h.o.r.g.e.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)
ors-app  | 2025-02-14 14:41:45 INFO                                    ORS-pl-driving-car [ o.h.o.r.g.e.ORSGraphHopper               ]   No custom areas are used, custom_areas.directory not given
ors-app  | 2025-02-14 14:41:45 INFO                                    ORS-pl-driving-car [ o.h.o.r.g.e.ORSGraphHopper               ]   start creating graph from /home/ors/files/brazil-latest.osm.pbf
ors-app  | 2025-02-14 14:41:45 INFO                                    ORS-pl-driving-car [ o.h.o.r.g.e.ORSGraphHopper               ]   using CH|car_ors|RAM_STORE|3D|turn_cost|,,,,, memory:totalMB:1024, usedMB:207
ors-app  | 2025-02-14 14:41:46 INFO                                                  main [ o.h.o.a.Application                      ]   Started Application in 3.534 seconds (process running for 4.323)
ors-app  | 2025-02-14 14:41:46 INFO                                                  main [ o.h.o.a.Application                      ]   openrouteservice {"build_date":"2025-02-12T19:05:05Z","graph_version":"1","version":"9.1.0"}
ors-app  | 2025-02-14 14:41:46 INFO                         SpringApplicationShutdownHook [ o.h.o.a.s.l.ORSInitContextListener       ]   Shutting down openrouteservice {"build_date":"2025-02-12T19:05:05Z","graph_version":"1","version":"9.1.0"} and releasing resources.
ors-app exited with code 1

I am trying to use ORS locally but without success. Could you please help me resolve this issue?

Thank you!

Hi @Lucas_Rocha,

ExecutionException while initializing RoutingProfileManager: java.lang.IllegalStateException: Expected single profile in config
Probably an issue with your profile configuration.
Could you provide your ors-config.yml ?

is the default configuration:
########################################################################################################################

Minimal configuration example file for openrouteservice. For a description please visit:

Configuration | openrouteservice backend documentation

##########################################################################################
ors:
engine:
profile_default:
build:
source_file: files/brazil-latest.osm.pbf
profiles:
driving car:
enabled: true

Not an expert but my first idea would be that a “-” is missing between driving and car (see latest release of the default ors_config.yml). In my opinion, this would also match the error code.

Apart from that, I think you need to allocate more RAM to build graphs for Brazil.

This “-” did not appear in the response, but it is in the code. And analyzing, I allocated more memory for Brazil.

I noticed when I enable ors.engine.profiles.car.enabled=true this error occurs.

afaik this is not mandatory if the car profile is already activated in ors_config.yml. Alternatively try it with 1 instead of true, I remember having a similar error because of this

Hey,

could you elaborate what you mean by

Apart from that, how are you configuring ors?
With ENV variables from the docker-compose.yml or from an ors-config.yml?

Best regards

I set it to true, but the error persists considering the profile: “No profiles configured. Exiting.”

I am using docker-compose.yml and ors-config.yml

Hey,

I am not sure if I understand what you are saying.
Could you share your docker-compose.yml, your ors-config.yml and the structure of the folder you’re running in (i.e. all files/subdirectories, except for the content of any graph folder).

Best regards