# Error starting ORS Local and Docker. Latest Version

**URL:** https://ask.openrouteservice.org/t/error-starting-ors-local-and-docker-latest-version/6987
**Category:** openrouteservice
**Created:** [February 14, 2025, 2:48pm UTC](https://ask.openrouteservice.org/t/error-starting-ors-local-and-docker-latest-version/6987 "2025-02-14T14:48:59Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![Lucas\_Rocha](https://ask.openrouteservice.org/user_avatar/ask.openrouteservice.org/lucas_rocha/32/3506_2.png) [@Lucas\_Rocha](https://ask.openrouteservice.org/u/Lucas_Rocha)
#### Post date: [February 14, 2025, 2:48pm UTC](https://ask.openrouteservice.org/t/error-starting-ors-local-and-docker-latest-version/6987/1 "2025-02-14T14:48:59Z")

</div>

Hi team,

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

```auto
[+] 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!

---

<div class="post-metadata">

### Author: ![amandus](https://ask.openrouteservice.org/user_avatar/ask.openrouteservice.org/amandus/32/669_2.png) [@amandus](https://ask.openrouteservice.org/u/amandus)
#### Post date: [February 14, 2025, 4:36pm UTC](https://ask.openrouteservice.org/t/error-starting-ors-local-and-docker-latest-version/6987/2 "2025-02-14T16:36:15Z")

</div>

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

---

<div class="post-metadata">

### Author: ![Lucas\_Rocha](https://ask.openrouteservice.org/user_avatar/ask.openrouteservice.org/lucas_rocha/32/3506_2.png) [@Lucas\_Rocha](https://ask.openrouteservice.org/u/Lucas_Rocha)
#### Post date: [February 14, 2025, 5:20pm UTC](https://ask.openrouteservice.org/t/error-starting-ors-local-and-docker-latest-version/6987/3 "2025-02-14T17:20:30Z")

</div>

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

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

### [Configuration | openrouteservice backend documentation](https://giscience.github.io/openrouteservice/run-instance/configuration/)

##########################################################################################  
ors:  
engine:  
profile\_default:  
build:  
source\_file: files/brazil-latest.osm.pbf  
profiles:  
driving car:  
enabled: true

---

<div class="post-metadata">

### Author: ![marco-s](https://ask.openrouteservice.org/letter_avatar_proxy/v4/letter/m/a88e4f/32.png) [@marco-s](https://ask.openrouteservice.org/u/marco-s)
#### Post date: [February 14, 2025, 7:58pm UTC](https://ask.openrouteservice.org/t/error-starting-ors-local-and-docker-latest-version/6987/4 "2025-02-14T19:58:02Z")

</div>

Not an expert but my first idea would be that a “-” is missing between _driving_ and _car_ (see latest [release](https://github.com/GIScience/openrouteservice/releases) 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.

---

<div class="post-metadata">

### Author: ![Lucas\_Rocha](https://ask.openrouteservice.org/user_avatar/ask.openrouteservice.org/lucas_rocha/32/3506_2.png) [@Lucas\_Rocha](https://ask.openrouteservice.org/u/Lucas_Rocha)
#### Post date: [February 14, 2025, 8:15pm UTC](https://ask.openrouteservice.org/t/error-starting-ors-local-and-docker-latest-version/6987/6 "2025-02-14T20:15:20Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![marco-s](https://ask.openrouteservice.org/letter_avatar_proxy/v4/letter/m/a88e4f/32.png) [@marco-s](https://ask.openrouteservice.org/u/marco-s)
#### Post date: [February 14, 2025, 8:29pm UTC](https://ask.openrouteservice.org/t/error-starting-ors-local-and-docker-latest-version/6987/7 "2025-02-14T20:29:39Z")

</div>

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

---

<div class="post-metadata">

### Author: ![jschnell](https://ask.openrouteservice.org/user_avatar/ask.openrouteservice.org/jschnell/32/971_2.png) [@jschnell](https://ask.openrouteservice.org/u/jschnell)
#### Post date: [February 17, 2025, 9:34am UTC](https://ask.openrouteservice.org/t/error-starting-ors-local-and-docker-latest-version/6987/9 "2025-02-17T09:34:37Z")

</div>

Hey,

could you elaborate what you mean by

> [@Lucas\_Rocha](#):
>
> This “-” did not appear in the response, but it is in the code

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

Best regards

---

<div class="post-metadata">

### Author: ![Lucas\_Rocha](https://ask.openrouteservice.org/user_avatar/ask.openrouteservice.org/lucas_rocha/32/3506_2.png) [@Lucas\_Rocha](https://ask.openrouteservice.org/u/Lucas_Rocha)
#### Post date: [February 17, 2025, 6:38pm UTC](https://ask.openrouteservice.org/t/error-starting-ors-local-and-docker-latest-version/6987/10 "2025-02-17T18:38:46Z")

</div>

> [@marco-s](#):
>
> 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

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

---

<div class="post-metadata">

### Author: ![Lucas\_Rocha](https://ask.openrouteservice.org/user_avatar/ask.openrouteservice.org/lucas_rocha/32/3506_2.png) [@Lucas\_Rocha](https://ask.openrouteservice.org/u/Lucas_Rocha)
#### Post date: [February 17, 2025, 6:41pm UTC](https://ask.openrouteservice.org/t/error-starting-ors-local-and-docker-latest-version/6987/11 "2025-02-17T18:41:19Z")

</div>

> [@Lucas\_Rocha](#):
>
> but it is in the code

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

---

<div class="post-metadata">

### Author: ![jschnell](https://ask.openrouteservice.org/user_avatar/ask.openrouteservice.org/jschnell/32/971_2.png) [@jschnell](https://ask.openrouteservice.org/u/jschnell)
#### Post date: [February 18, 2025, 8:16am UTC](https://ask.openrouteservice.org/t/error-starting-ors-local-and-docker-latest-version/6987/12 "2025-02-18T08:16:31Z")

</div>

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
