# V8 ors config problem

**URL:** <https://ask.openrouteservice.org/t/v8-ors-config-problem/5926>\
**Category:** openrouteservice\
**Created:** [March 30, 2024, 4:01pm UTC](https://ask.openrouteservice.org/t/v8-ors-config-problem/5926 "2024-03-30T16:01:28Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![dgokhan](https://ask.openrouteservice.org/user_avatar/ask.openrouteservice.org/dgokhan/32/2862_2.png) [@dgokhan](https://ask.openrouteservice.org/u/dgokhan)\
**Post date:** [March 30, 2024, 4:01pm UTC](https://ask.openrouteservice.org/t/v8-ors-config-problem/5926/1 "2024-03-30T16:01:28Z")

</div>

I installed the latest version (8.0.0) on a new server. I’ve made the necessary adjustments and still;

“error”: {  
“code”: 2099,  
“message”: “Unable to get an appropriate route profile for RoutePreference = driving-car”  
}

anyone give me a setting that works? (ors-config.yml)

---

<div class="post-metadata">

**Author:** ![ddunlop](https://ask.openrouteservice.org/letter_avatar_proxy/v4/letter/d/b5a626/32.png) [@ddunlop](https://ask.openrouteservice.org/u/ddunlop)\
**Post date:** [March 30, 2024, 4:17pm UTC](https://ask.openrouteservice.org/t/v8-ors-config-problem/5926/2 "2024-03-30T16:17:08Z")

</div>

I think the example config has some indentation issues if you uncomment the entire file.

As a starting point - here is what I am currently using, it only enables the matrix endpoint and only builds ch for the car profile

```auto
##### openrouteservice settings file #####
# This file contains parameters for openrouteservice.
# For a full list of possible parameters see https://giscience.github.io/openrouteservice/run-instance/configuration/

##### General server settings #####
server:
  port: 8080
  error:
    whitelabel:
      enabled: false
spring:
  profiles:
    active: default
  mvc:
    servlet:
    path: /
logging:
  pattern:
    console: "%d{yyyy-MM-dd HH:mm:ss} %highlight{%-7p} %style{%50t}{Cyan} %style{[%-40.40c{1.}]}{Bright Cyan} %m%n"
  # disable file logging, use the console logs for cloud watch
  file:
    name: null
  level:
    root: WARN
    org.heigit: INFO
##### openrouteservice specific settings #####
ors:
  cors:
    allowed_origins: "*"
    allowed_headers: Content-Type, X-Requested-With, accept, Origin, Access-Control-Request-Method, Access-Control-Request-Headers, Authorization
    preflight_max_age: 600
  # ##### ORS endpoints settings #####
  endpoints:
    routing:
      enabled: false
    matrix:
      enabled: true
      attribution: openrouteservice.org, OpenStreetMap contributors
      maximum_routes: 101
      maximum_routes_flexible: 25
      maximum_visited_nodes: 100000
      maximum_search_radius: 2000
      u_turn_costs: -1
    isochrones:
      enabled: false
    snap:
      enabled: false
  # ##### ORS engine settings #####
  engine:
    source_file: latest.osm.pbf
    init_threads: 2
    preparation_mode: false
    graphs_root_path: ./data/graphs
    graphs_data_access: RAM_STORE
    elevation:
      preprocessed: false
      data_access: MMAP
      cache_clear: false
      provider: multi
      cache_path: ./data/elevation_cache
    profiles:
      car:
        enabled: true
        profile: driving-car
        elevation: true
        encoder_options:
          turn_costs: true
          block_fords: false
          use_acceleration: true
        preparation:
          min_network_size: 200
          methods:
            ch:
              enabled: true
              threads: 2
              weightings: fastest
            lm:
              enabled: false
              threads: 1
              weightings: fastest,shortest
              landmarks: 16
            core:
              enabled: false
              threads: 1
              weightings: fastest,shortest
              landmarks: 64
              lmsets: highways;allow_all
          execution:
            methods:
              lm:
                active_landmarks: 6
              core:
                active_landmarks: 6
          ext_storages:

```

---

<div class="post-metadata">

**Author:** ![dgokhan](https://ask.openrouteservice.org/user_avatar/ask.openrouteservice.org/dgokhan/32/2862_2.png) [@dgokhan](https://ask.openrouteservice.org/u/dgokhan)\
**Post date:** [March 30, 2024, 6:29pm UTC](https://ask.openrouteservice.org/t/v8-ors-config-problem/5926/3 "2024-03-30T18:29:29Z")

</div>

Yeah, there’s a weird problem. I just want to use directions and matrix but settings won’t let me do that.

---

<div class="post-metadata">

**Author:** ![agocurti](https://ask.openrouteservice.org/user_avatar/ask.openrouteservice.org/agocurti/32/3396_2.png) [@agocurti](https://ask.openrouteservice.org/u/agocurti)\
**Post date:** [March 31, 2024, 12:40pm UTC](https://ask.openrouteservice.org/t/v8-ors-config-problem/5926/4 "2024-03-31T12:40:21Z")

</div>

Sorry, but it’s not clear to me how using the new v8 API. Acrtually I’m using API via Postman, and the call to Authenticate return the value 7.1.1:

 ![image](https://ask.openrouteservice.org/uploads/default/original/2X/c/c74ab3d58b306d2b413e0a59bd67fa1a9eb8878b.png)

What is the setting to use the new v8 API?

---

<div class="post-metadata">

**Author:** ![dgokhan](https://ask.openrouteservice.org/user_avatar/ask.openrouteservice.org/dgokhan/32/2862_2.png) [@dgokhan](https://ask.openrouteservice.org/u/dgokhan)\
**Post date:** [March 31, 2024, 3:06pm UTC](https://ask.openrouteservice.org/t/v8-ors-config-problem/5926/5 "2024-03-31T15:06:46Z")

</div>

Can you share your current settings? I can’t get it to work.

---

<div class="post-metadata">

**Author:** ![agocurti](https://ask.openrouteservice.org/user_avatar/ask.openrouteservice.org/agocurti/32/3396_2.png) [@agocurti](https://ask.openrouteservice.org/u/agocurti)\
**Post date:** [April 1, 2024, 7:49am UTC](https://ask.openrouteservice.org/t/v8-ors-config-problem/5926/6 "2024-04-01T07:49:41Z")

</div>

I don’t have specific settings. Simply I execute the calls from Postman. The only setting is the following:

 ![image](https://ask.openrouteservice.org/uploads/default/original/2X/5/53c20ef32fd027abdd8668af5286fbb64de30a61.png)

Perhaps must I change the baseUrl?

---

<div class="post-metadata">

**Author:** ![sascha](https://ask.openrouteservice.org/user_avatar/ask.openrouteservice.org/sascha/32/715_2.png) [@sascha](https://ask.openrouteservice.org/u/sascha)\
**Post date:** [April 2, 2024, 8:06am UTC](https://ask.openrouteservice.org/t/v8-ors-config-problem/5926/7 "2024-04-02T08:06:40Z")

</div>

@agocurti Note that the public API does not yet run v8. We are in the process of switching to it, but it will take some more time to update the deployment scripts and to rebuild the graphs.

---

<div class="post-metadata">

**Author:** ![dgokhan](https://ask.openrouteservice.org/user_avatar/ask.openrouteservice.org/dgokhan/32/2862_2.png) [@dgokhan](https://ask.openrouteservice.org/u/dgokhan)\
**Post date:** [April 3, 2024, 1:28am UTC](https://ask.openrouteservice.org/t/v8-ors-config-problem/5926/8 "2024-04-03T01:28:54Z")

</div>

rlly im going mad 😑

**docker-compose.yml** \> [docker-compose.yml - Online Notepad](https://anotepad.com/notes/mrqwrdca)  
**tr-ors-config.yml** \> [tr-ors-config.yml - Online Notepad](https://anotepad.com/notes/39pxtht2)

health \> [http://141.145.216.23:8080/ors/v2/health](http://141.145.216.23:8080/ors/v2/health)  
status \> [http://141.145.216.23:8080/ors/v2/status](http://141.145.216.23:8080/ors/v2/status)

ors-docker/files/turkey-lastest.osm.pbf \> [https://i.ibb.co/Ltzqsg4/image.png](https://i.ibb.co/Ltzqsg4/image.png)

I cant activate Turkey on my server. What am I doing wrong?

Thanks in advance for your help.

---

<div class="post-metadata">

**Author:** ![agocurti](https://ask.openrouteservice.org/user_avatar/ask.openrouteservice.org/agocurti/32/3396_2.png) [@agocurti](https://ask.openrouteservice.org/u/agocurti)\
**Post date:** [April 3, 2024, 7:10am UTC](https://ask.openrouteservice.org/t/v8-ors-config-problem/5926/9 "2024-04-03T07:10:43Z")

</div>

Hi Sascha, I understood. I think this is a good answer.  
I expected that the switch v7=\>v8 should have passed through an url change, then I will wait for a deploy for the public API.  
Is there some tutorial about how implement a local deploy for the v8 API?

Thanks for your work

---

<div class="post-metadata">

**Author:** ![sascha](https://ask.openrouteservice.org/user_avatar/ask.openrouteservice.org/sascha/32/715_2.png) [@sascha](https://ask.openrouteservice.org/u/sascha)\
**Post date:** [April 3, 2024, 7:56am UTC](https://ask.openrouteservice.org/t/v8-ors-config-problem/5926/10 "2024-04-03T07:56:08Z")

</div>

@agocurti How to run your own ORS instance is documented here: [Running your own openrouteservice instance | openrouteservice backend documentation](https://giscience.github.io/openrouteservice/run-instance/)

Best regrads

---

<div class="post-metadata">

**Author:** ![sascha](https://ask.openrouteservice.org/user_avatar/ask.openrouteservice.org/sascha/32/715_2.png) [@sascha](https://ask.openrouteservice.org/u/sascha)\
**Post date:** [April 3, 2024, 7:58am UTC](https://ask.openrouteservice.org/t/v8-ors-config-problem/5926/11 "2024-04-03T07:58:45Z")

</div>

@dgokhan Downloading the elevation data and the speedup preparation can take quite some time. Is it possible that you share the ORS-logs?

Best regards

---

<div class="post-metadata">

**Author:** ![agocurti](https://ask.openrouteservice.org/user_avatar/ask.openrouteservice.org/agocurti/32/3396_2.png) [@agocurti](https://ask.openrouteservice.org/u/agocurti)\
**Post date:** [April 3, 2024, 11:59am UTC](https://ask.openrouteservice.org/t/v8-ors-config-problem/5926/12 "2024-04-03T11:59:56Z")

</div>

Ok, TKS for your answer

---

<div class="post-metadata">

**Author:** ![dgokhan](https://ask.openrouteservice.org/user_avatar/ask.openrouteservice.org/dgokhan/32/2862_2.png) [@dgokhan](https://ask.openrouteservice.org/u/dgokhan)\
**Post date:** [April 3, 2024, 1:17pm UTC](https://ask.openrouteservice.org/t/v8-ors-config-problem/5926/13 "2024-04-03T13:17:24Z")

</div>

**Ors.log;**

2024-04-03 13:04:41 INFO [o.h.o.a.Application] - Starting Application v8.0.0 using Java 21.0.2 with PID 1 (/ors.jar started by root in /home/ors)  
2024-04-03 13:04:41 INFO [o.h.o.a.Application] - The following 1 profile is active: “default”  
2024-04-03 13:04:41 INFO [o.h.o.a.ORSEnvironmentPostProcessor] -  
2024-04-03 13:04:41 INFO [o.h.o.a.ORSEnvironmentPostProcessor] - Configuration lookup started.  
2024-04-03 13:04:41 INFO [o.h.o.a.ORSEnvironmentPostProcessor] - Configuration file set by environment variable.  
2024-04-03 13:04:41 INFO [o.h.o.a.ORSEnvironmentPostProcessor] - Loaded file ‘/home/ors/config/tr-ors-config.yml’  
2024-04-03 13:04:41 INFO [o.h.o.a.ORSEnvironmentPostProcessor] - Configuration lookup finished.  
2024-04-03 13:04:41 INFO [o.h.o.a.ORSEnvironmentPostProcessor] -  
2024-04-03 13:04:47 INFO [o.h.o.a.s.l.ORSInitContextListener] - Initializing ORS…  
2024-04-03 13:04:47 INFO [o.h.o.r.RoutingProfileManager] - Total - 1024 MB, Free - 961.04 MB, Max: 2 GB, Used - 62.96 MB  
2024-04-03 13:04:47 INFO [o.h.o.r.RoutingProfileManager] - ====\> Initializing profiles from ‘/home/ors/files/turkey-latest.osm.pbf’ (1 threads) …  
2024-04-03 13:04:47 INFO [o.h.o.r.RoutingProfileManager] - 1 profile configurations submitted as tasks.  
2024-04-03 13:04:47 INFO [o.h.o.r.RoutingProfile] - [1] Profiles: ‘driving-car’, location: ‘/home/ors/./graphs/car’.  
2024-04-03 13:04:48 INFO [o.h.o.r.g.e.c.CoreLMPreparationHandler] - Loaded landmark splitting collection from  
2024-04-03 13:04:48 INFO [o.h.o.r.g.e.ORSGraphHopper] - version v4.9.1|2024-01-17T09:08:46Z (7,20,5,4,5,7)  
2024-04-03 13:04:48 INFO [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.7976\>  
2024-04-03 13:04:49 INFO [o.h.o.r.g.e.ORSGraphHopper] - No custom areas are used, custom\_areas.directory not given  
2024-04-03 13:04:49 INFO [o.h.o.r.g.e.ORSGraphHopper] - start creating graph from /home/ors/files/turkey-latest.osm.pbf  
2024-04-03 13:04:49 INFO [o.h.o.r.g.e.ORSGraphHopper] - using CH|car\_ors|RAM\_STORE|3D|turn\_cost|, memory:totalMB:1024, usedMB:265  
2024-04-03 13:04:52 INFO [o.h.o.a.Application] - Started Application in 12.769 seconds (process running for 15.851)  
2024-04-03 13:04:52 INFO [o.h.o.a.Application] - openrouteservice {“build\_date”:“2024-03-21T14:04:52Z”,“version”:“8.0.0”}

ors-app logs expcetion;

 ![](https://ask.openrouteservice.org/uploads/default/original/2X/1/146e2e8688aa9d33eb93f014afb04acb7572467f.png)

> **[image hosted at ImgBB](https://ibb.co/5FxR688)**
>
> Image image hosted in ImgBB

---

<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:** [April 3, 2024, 1:27pm UTC](https://ask.openrouteservice.org/t/v8-ors-config-problem/5926/14 "2024-04-03T13:27:52Z")

</div>

A post was split to a new topic: [Running ors v8 as JAR - issues with profiles](https://ask.openrouteservice.org/t/running-ors-v8-as-jar-issues-with-profiles/5947)

---

<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:** [April 5, 2024, 10:24am UTC](https://ask.openrouteservice.org/t/v8-ors-config-problem/5926/15 "2024-04-05T10:24:28Z")

</div>

That’s an OutOfMemoryError…

Have you tried running it with more Memory?

See [System Requirements | openrouteservice backend documentation](https://giscience.github.io/openrouteservice/run-instance/system-requirements)

When using docker, you might also have to increase the resources you give to docker (docker settings).

Best regards
