Unable to get an appropriate route profile for driving-car Route Preference

Hi all, I’m currently making a project for research and am using OpenRouteService. This is my first time setting up a backend and running it locally (Windows 10 machine), and ran in to an issue with Docker.

I’m running this command:
docker run -dt --name ors-app -p 8080:8080 -e BUILD_GRAPHS=True -v /var/lib/docker/graphs:/ors-core/data/graphs -v /var/lib/docker/elevation_cache:/ors-core/data/elevation_cache -v C:/ors-config:/ors-conf -v C:/OSMFiles/north-america-latest.osm.pbf:/ors-core/data/osm_file.pbf -e “JAVA_OPTS=-Djava.awt.headless=true -server -XX:TargetSurvivorRatio=75 -XX:SurvivorRatio=64 -XX:MaxTenuringThreshold=3 -XX:+UseG1GC -XX:ParallelGCThreads=4 -Xms1g -Xmx2g” -e “CATALINA_OPTS=-Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=9001 -Dcom.sun.management.jmxremote.rmi.port=9001 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Djava.rmi.server.hostname=localhost” openrouteservice/openrouteservice:latest

This gets the ors-app up and running on port 8080 through Docker, and even after creating a separate folder (C:/OSMFiles), I successfully am able to map the ors-config:
ors-config.json exists in ors-conf folder. Copy config to /ors-core/openrouteservice/src/main/resources/ors-config.json

I am receiving the following error:
18 Apr 18:30:24 ERROR [routing.RoutingProfileManager] - Failed to initialize RoutingProfileManager instance.
java.util.concurrent.ExecutionException: java.lang.RuntimeException: Directory data/graphs/car does not exist and cannot be created to place lock file there: data/graphs/car/gh.lock
at java.util.concurrent.FutureTask.report(FutureTask.java:122) ~[?:?]
at java.util.concurrent.FutureTask.get(FutureTask.java:191) ~[?:?]
at org.heigit.ors.routing.RoutingProfileManager.initialize(RoutingProfileManager.java:178) ~[classes/:6.7.0]
at org.heigit.ors.routing.RoutingProfileManager.getInstance(RoutingProfileManager.java:72) ~[classes/:6.7.0]
at org.heigit.ors.servlet.listeners.ORSInitContextListener.lambda$contextInitialized$0(ORSInitContextListener.java:41) ~[classes/:6.7.0]
at java.lang.Thread.run(Thread.java:829) [?:?]
Caused by: java.lang.RuntimeException: Directory data/graphs/car does not exist and cannot be created to place lock file there: data/graphs/car/gh.lock
at com.graphhopper.storage.NativeFSLockFactory$NativeLock.tryLock(NativeFSLockFactory.java:110) ~[graphhopper-core-v0.13.21.jar:?]
at com.graphhopper.GraphHopper.process(GraphHopper.java:697) ~[graphhopper-core-v0.13.21.jar:?]
at com.graphhopper.GraphHopper.importOrLoad(GraphHopper.java:680) ~[graphhopper-core-v0.13.21.jar:?]
at org.heigit.ors.routing.graphhopper.extensions.ORSGraphHopper.importOrLoad(ORSGraphHopper.java:163) ~[classes/:6.7.0]
at org.heigit.ors.routing.RoutingProfile.initGraphHopper(RoutingProfile.java:184) ~[classes/:6.7.0]
at org.heigit.ors.routing.RoutingProfile.<init>(RoutingProfile.java:128) ~[classes/:6.7.0]
at org.heigit.ors.routing.RoutingProfileLoader.call(RoutingProfileLoader.java:35) ~[classes/:6.7.0]
at org.heigit.ors.routing.RoutingProfileLoader.call(RoutingProfileLoader.java:21) ~[classes/:6.7.0]
at java.util.concurrent.FutureTask.run(FutureTask.java:264) ~[?:?]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) ~[?:?]
at java.util.concurrent.FutureTask.run(FutureTask.java:264) ~[?:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) ~[?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) ~[?:?]

This results in the following error when visiting http://localhost:8080/ors/v2/directions/driving-car?start=40.59521011,-74.19850153&end=40.59521011,-74.19469144
:
{“error”:{“code”:2099,“message”:“Unable to get an appropriate route profile for RoutePreference = driving-car”},“info”:{“engine”:{“version”:“6.7.0”,“build_date”:“2022-04-18T18:28:38Z”},“timestamp”:1650306762174}}
Not really too sure what to do here, so any help would be much appreciated. Thanks.

Check your active profiles, please.

Sure, in my ors-config folder, in the ors-conf.json file I have:

  • profile-car - driving-car
  • profile-hgv - driving-hgv
  • profile-bike-regular - cycling-regular
  • profile-bike-mountain - cycling-mountain
  • profile-bike-road - cycling-road
  • profile-bike-electric - cycling-electric
  • profile-walking - foot-walking
  • profile-hiking - foot-hiking
  • profile-wheelchair - wheelchair

Can you post your config file, please?

JSON To HTML using codebeautify.org
info.base_url info.support_mail info.author_tag info.content_licence services.matrix.enabled services.matrix.maximum_routes services.matrix.maximum_routes_flexible services.matrix.maximum_search_radius services.matrix.maximum_visited_nodes services.matrix.allow_resolve_locations services.matrix.attribution services.isochrones.enabled services.isochrones.maximum_range_distance.0.profiles services.isochrones.maximum_range_distance.0.value services.isochrones.maximum_range_distance.1.profiles services.isochrones.maximum_range_distance.1.value services.isochrones.maximum_range_time.0.profiles services.isochrones.maximum_range_time.0.value services.isochrones.maximum_range_time.1.profiles services.isochrones.maximum_range_time.1.value services.isochrones.fastisochrones.maximum_range_distance.0.profiles services.isochrones.fastisochrones.maximum_range_distance.0.value services.isochrones.fastisochrones.maximum_range_distance.1.profiles services.isochrones.fastisochrones.maximum_range_distance.1.value services.isochrones.fastisochrones.maximum_range_time.0.profiles services.isochrones.fastisochrones.maximum_range_time.0.value services.isochrones.fastisochrones.maximum_range_time.1.profiles services.isochrones.fastisochrones.maximum_range_time.1.value services.isochrones.fastisochrones.profiles.default_params.enabled services.isochrones.fastisochrones.profiles.default_params.threads services.isochrones.fastisochrones.profiles.default_params.weightings services.isochrones.fastisochrones.profiles.default_params.maxcellnodes services.isochrones.fastisochrones.profiles.profile-hgv.enabled services.isochrones.fastisochrones.profiles.profile-hgv.threads services.isochrones.fastisochrones.profiles.profile-hgv.weightings services.isochrones.fastisochrones.profiles.profile-hgv.maxcellnodes services.isochrones.maximum_intervals services.isochrones.maximum_locations services.isochrones.allow_compute_area services.routing.enabled services.routing.mode services.routing.routing_description services.routing.routing_name services.routing.sources.0 services.routing.init_threads services.routing.attribution services.routing.elevation_preprocessed services.routing.profiles.active.0 services.routing.profiles.default_params.encoder_flags_size services.routing.profiles.default_params.graphs_root_path services.routing.profiles.default_params.elevation_provider services.routing.profiles.default_params.elevation_cache_path services.routing.profiles.default_params.elevation_cache_clear services.routing.profiles.default_params.instructions services.routing.profiles.default_params.maximum_distance services.routing.profiles.default_params.maximum_distance_dynamic_weights services.routing.profiles.default_params.maximum_distance_avoid_areas services.routing.profiles.default_params.maximum_waypoints services.routing.profiles.default_params.maximum_snapping_radius services.routing.profiles.default_params.maximum_avoid_polygon_area services.routing.profiles.default_params.maximum_avoid_polygon_extent services.routing.profiles.default_params.maximum_distance_alternative_routes services.routing.profiles.default_params.maximum_alternative_routes services.routing.profiles.default_params.maximum_distance_round_trip_routes services.routing.profiles.default_params.maximum_speed_lower_bound services.routing.profiles.default_params.preparation.min_network_size services.routing.profiles.default_params.preparation.min_one_way_network_size services.routing.profiles.default_params.preparation.methods.lm.enabled services.routing.profiles.default_params.preparation.methods.lm.threads services.routing.profiles.default_params.preparation.methods.lm.weightings services.routing.profiles.default_params.preparation.methods.lm.landmarks services.routing.profiles.default_params.execution.methods.lm.disabling_allowed services.routing.profiles.default_params.execution.methods.lm.active_landmarks services.routing.profiles.profile-car.profiles services.routing.profiles.profile-car.parameters.encoder_flags_size services.routing.profiles.profile-car.parameters.encoder_options services.routing.profiles.profile-car.parameters.maximum_distance services.routing.profiles.profile-car.parameters.elevation services.routing.profiles.profile-car.parameters.maximum_snapping_radius services.routing.profiles.profile-car.parameters.preparation.min_network_size services.routing.profiles.profile-car.parameters.preparation.min_one_way_network_size services.routing.profiles.profile-car.parameters.preparation.methods.ch.enabled services.routing.profiles.profile-car.parameters.preparation.methods.ch.threads services.routing.profiles.profile-car.parameters.preparation.methods.ch.weightings services.routing.profiles.profile-car.parameters.preparation.methods.lm.enabled services.routing.profiles.profile-car.parameters.preparation.methods.lm.threads services.routing.profiles.profile-car.parameters.preparation.methods.lm.weightings services.routing.profiles.profile-car.parameters.preparation.methods.lm.landmarks services.routing.profiles.profile-car.parameters.preparation.methods.core.enabled services.routing.profiles.profile-car.parameters.preparation.methods.core.threads services.routing.profiles.profile-car.parameters.preparation.methods.core.weightings services.routing.profiles.profile-car.parameters.preparation.methods.core.landmarks services.routing.profiles.profile-car.parameters.preparation.methods.core.lmsets services.routing.profiles.profile-car.parameters.execution.methods.ch.disabling_allowed services.routing.profiles.profile-car.parameters.execution.methods.lm.disabling_allowed services.routing.profiles.profile-car.parameters.execution.methods.lm.active_landmarks services.routing.profiles.profile-car.parameters.execution.methods.core.disabling_allowed services.routing.profiles.profile-car.parameters.execution.methods.core.active_landmarks services.routing.profiles.profile-car.parameters.ext_storages.WayCategory services.routing.profiles.profile-car.parameters.ext_storages.HeavyVehicle services.routing.profiles.profile-car.parameters.ext_storages.WaySurfaceType services.routing.profiles.profile-car.parameters.ext_storages.RoadAccessRestrictions.use_for_warnings services.routing.profiles.profile-hgv.profiles services.routing.profiles.profile-hgv.parameters.encoder_flags_size services.routing.profiles.profile-hgv.parameters.encoder_options services.routing.profiles.profile-hgv.parameters.maximum_distance services.routing.profiles.profile-hgv.parameters.elevation services.routing.profiles.profile-hgv.parameters.preparation.min_network_size services.routing.profiles.profile-hgv.parameters.preparation.min_one_way_network_size services.routing.profiles.profile-hgv.parameters.preparation.methods.ch.enabled services.routing.profiles.profile-hgv.parameters.preparation.methods.ch.threads services.routing.profiles.profile-hgv.parameters.preparation.methods.ch.weightings services.routing.profiles.profile-hgv.parameters.preparation.methods.core.enabled services.routing.profiles.profile-hgv.parameters.preparation.methods.core.threads services.routing.profiles.profile-hgv.parameters.preparation.methods.core.weightings services.routing.profiles.profile-hgv.parameters.preparation.methods.core.landmarks services.routing.profiles.profile-hgv.parameters.preparation.methods.core.lmsets services.routing.profiles.profile-hgv.parameters.execution.methods.ch.disabling_allowed services.routing.profiles.profile-hgv.parameters.execution.methods.core.disabling_allowed services.routing.profiles.profile-hgv.parameters.execution.methods.core.active_landmarks services.routing.profiles.profile-hgv.parameters.ext_storages.WayCategory services.routing.profiles.profile-hgv.parameters.ext_storages.HeavyVehicle.restrictions services.routing.profiles.profile-hgv.parameters.ext_storages.WaySurfaceType services.routing.profiles.profile-bike-regular.profiles services.routing.profiles.profile-bike-regular.parameters.encoder_options services.routing.profiles.profile-bike-regular.parameters.elevation services.routing.profiles.profile-bike-regular.parameters.ext_storages.WayCategory services.routing.profiles.profile-bike-regular.parameters.ext_storages.WaySurfaceType services.routing.profiles.profile-bike-regular.parameters.ext_storages.HillIndex services.routing.profiles.profile-bike-regular.parameters.ext_storages.TrailDifficulty services.routing.profiles.profile-bike-mountain.profiles services.routing.profiles.profile-bike-mountain.parameters.encoder_options services.routing.profiles.profile-bike-mountain.parameters.elevation services.routing.profiles.profile-bike-mountain.parameters.ext_storages.WayCategory services.routing.profiles.profile-bike-mountain.parameters.ext_storages.WaySurfaceType services.routing.profiles.profile-bike-mountain.parameters.ext_storages.HillIndex services.routing.profiles.profile-bike-mountain.parameters.ext_storages.TrailDifficulty services.routing.profiles.profile-bike-road.profiles services.routing.profiles.profile-bike-road.parameters.encoder_options services.routing.profiles.profile-bike-road.parameters.elevation services.routing.profiles.profile-bike-road.parameters.ext_storages.WayCategory services.routing.profiles.profile-bike-road.parameters.ext_storages.WaySurfaceType services.routing.profiles.profile-bike-road.parameters.ext_storages.HillIndex services.routing.profiles.profile-bike-road.parameters.ext_storages.TrailDifficulty services.routing.profiles.profile-bike-electric.profiles services.routing.profiles.profile-bike-electric.parameters.encoder_options services.routing.profiles.profile-bike-electric.parameters.elevation services.routing.profiles.profile-bike-electric.parameters.ext_storages.WayCategory services.routing.profiles.profile-bike-electric.parameters.ext_storages.WaySurfaceType services.routing.profiles.profile-bike-electric.parameters.ext_storages.HillIndex services.routing.profiles.profile-bike-electric.parameters.ext_storages.TrailDifficulty services.routing.profiles.profile-walking.profiles services.routing.profiles.profile-walking.parameters.encoder_options services.routing.profiles.profile-walking.parameters.elevation services.routing.profiles.profile-walking.parameters.ext_storages.WayCategory services.routing.profiles.profile-walking.parameters.ext_storages.WaySurfaceType services.routing.profiles.profile-walking.parameters.ext_storages.HillIndex services.routing.profiles.profile-walking.parameters.ext_storages.TrailDifficulty services.routing.profiles.profile-hiking.profiles services.routing.profiles.profile-hiking.parameters.encoder_options services.routing.profiles.profile-hiking.parameters.elevation services.routing.profiles.profile-hiking.parameters.ext_storages.WayCategory services.routing.profiles.profile-hiking.parameters.ext_storages.WaySurfaceType services.routing.profiles.profile-hiking.parameters.ext_storages.HillIndex services.routing.profiles.profile-hiking.parameters.ext_storages.TrailDifficulty services.routing.profiles.profile-wheelchair.profiles services.routing.profiles.profile-wheelchair.parameters.encoder_options services.routing.profiles.profile-wheelchair.parameters.elevation services.routing.profiles.profile-wheelchair.parameters.maximum_snapping_radius services.routing.profiles.profile-wheelchair.parameters.ext_storages.WayCategory services.routing.profiles.profile-wheelchair.parameters.ext_storages.WaySurfaceType services.routing.profiles.profile-wheelchair.parameters.ext_storages.Wheelchair.KerbsOnCrossings services.routing.profiles.profile-wheelchair.parameters.ext_storages.OsmId logging.enabled logging.level_file logging.location logging.stdout system_message.0.active system_message.0.text system_message.0.condition.request_service system_message.0.condition.request_profile system_message.0.condition.request_preference system_message.1.active system_message.1.text system_message.1.condition.api_format system_message.2.active system_message.2.text system_message.2.condition.api_version system_message.2.condition.time_after system_message.2.condition.time_before system_message.3.active system_message.3.text
https://openrouteservice.org/ support@openrouteservice.org openrouteservice LGPL 3.0 true 100 25 5000 100000 true openrouteservice.org, OpenStreetMap contributors true any 50000 driving-car, driving-hgv 100000 any 18000 driving-car, driving-hgv 3600 any 50000 driving-car, driving-hgv 500000 any 18000 driving-car, driving-hgv 10800 false 12 recommended 5000 false 12 recommended, shortest 5000 10 2 true true normal This is a routing file from openrouteservice openrouteservice routing data/osm_file.pbf 1 openrouteservice.org, OpenStreetMap contributors false car 8 data/graphs multi data/elevation_cache false true 100000 100000 100000 50 400 200000000 20000 100000 3 100000 80 200 200 true 1 recommended,shortest 16 true 8 driving-car 8 turn_costs=true|block_fords=false|use_acceleration=true 100000 true 350 200 200 true 1 fastest false 1 fastest,shortest 16 true 1 fastest,shortest 64 highways;allow_all true true 6 true 6 true driving-hgv 8 turn_costs=true|block_fords=false|use_acceleration=true 100000 true 200 200 true 1 recommended true 1 recommended,shortest 64 highways;allow_all true true 6 true cycling-regular consider_elevation=true|turn_costs=true|block_fords=false true cycling-mountain consider_elevation=true|turn_costs=true|block_fords=false true cycling-road consider_elevation=true|turn_costs=true|block_fords=false true cycling-electric consider_elevation=true|turn_costs=true|block_fords=false true foot-walking block_fords=false true foot-hiking block_fords=false true wheelchair block_fords=true true 50 true true DEBUG_LOGGING.json /var/log/ors true false This message would be sent with every routing bike fastest request routing cycling-regular,cycling-mountain,cycling-road,cycling-electric fastest false This message would be sent with every request for geojson response geojson false This message would be sent with every request on API v1 from January 2020 until June 2050 1 2020-01-01T00:00:00Z 2050-06-01T00:00:00Z false This message would be sent with every request
&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp

Can you post it without the beautifier, please?. It’s hard to read for me.

Yep, sorry about that.

{

“ors”: {

"info": {

  "base_url": "https://openrouteservice.org/",

  "support_mail": "support@openrouteservice.org",

  "author_tag": "openrouteservice",

  "content_licence": "LGPL 3.0"

},

"services": {

  "matrix": {

    "enabled": true,

    "maximum_routes": 100,

    "maximum_routes_flexible": 25,

    "maximum_search_radius": 5000,

    "maximum_visited_nodes": 100000,

    "allow_resolve_locations": true,

    "attribution": "openrouteservice.org, OpenStreetMap contributors"

  },

  "isochrones": {

    "enabled": true,

    "maximum_range_distance": [

      {

        "profiles": "any",

        "value": 50000

      },

      {

        "profiles": "driving-car, driving-hgv",

        "value": 100000

      }

    ],

    "maximum_range_time": [

      {

        "profiles": "any",

        "value": 18000

      },

      {

        "profiles": "driving-car, driving-hgv",

        "value": 3600

      }

    ],

    "fastisochrones": {

      "maximum_range_distance": [

        {

          "profiles": "any",

          "value": 50000

        },

        {

          "profiles": "driving-car, driving-hgv",

          "value": 500000

        }

      ],

      "maximum_range_time": [

        {

          "profiles": "any",

          "value": 18000

        },

        {

          "profiles": "driving-car, driving-hgv",

          "value": 10800

        }

      ],

      "profiles": {

        "default_params": {

          "enabled": false,

          "threads": 12,

          "weightings": "recommended",

          "maxcellnodes": 5000

        },

        "profile-hgv": {

          "enabled": false,

          "threads": 12,

          "weightings": "recommended, shortest",

          "maxcellnodes": 5000

        }

      }

    },

    "maximum_intervals": 10,

    "maximum_locations": 2,

    "allow_compute_area": true

  },

  "routing": {

    "enabled": true,

    "mode": "normal",

    "routing_description": "This is a routing file from openrouteservice",

    "routing_name": "openrouteservice routing",

    "sources": [

      "data/osm_file.pbf"

    ],

    "init_threads": 1,

    "attribution": "openrouteservice.org, OpenStreetMap contributors",

    "elevation_preprocessed": false,

    "profiles": {

      "active": [

        "car"

      ],

      "default_params": {

        "encoder_flags_size": 8,

        "graphs_root_path": "data/graphs",

        "elevation_provider": "multi",

        "elevation_cache_path": "data/elevation_cache",

        "elevation_cache_clear": false,

        "instructions": true,

        "maximum_distance": 100000,

        "maximum_distance_dynamic_weights": 100000,

        "maximum_distance_avoid_areas": 100000,

        "maximum_waypoints": 50,

        "maximum_snapping_radius": 400,

        "maximum_avoid_polygon_area": 200000000,

        "maximum_avoid_polygon_extent": 20000,

        "maximum_distance_alternative_routes": 100000,

        "maximum_alternative_routes": 3,

        "maximum_distance_round_trip_routes": 100000,

        "maximum_speed_lower_bound": 80,

        "preparation": {

          "min_network_size": 200,

          "min_one_way_network_size": 200,

          "methods": {

            "lm": {

              "enabled": true,

              "threads": 1,

              "weightings": "recommended,shortest",

              "landmarks": 16

            }

          }

        },

        "execution": {

          "methods": {

            "lm": {

              "disabling_allowed": true,

              "active_landmarks": 8

            }

          }

        }

      },

      "profile-car": {

        "profiles": "driving-car",

        "parameters": {

          "encoder_flags_size": 8,

          "encoder_options": "turn_costs=true|block_fords=false|use_acceleration=true",

          "maximum_distance": 100000,

          "elevation": true,

          "maximum_snapping_radius": 350,

          "preparation": {

            "min_network_size": 200,

            "min_one_way_network_size": 200,

            "methods": {

              "ch": {

                "enabled": true,

                "threads": 1,

                "weightings": "fastest"

              },

              "lm": {

                "enabled": false,

                "threads": 1,

                "weightings": "fastest,shortest",

                "landmarks": 16

              },

              "core": {

                "enabled": true,

                "threads": 1,

                "weightings": "fastest,shortest",

                "landmarks": 64,

                "lmsets": "highways;allow_all"

              }

            }

          },

          "execution": {

            "methods": {

              "ch": {

                "disabling_allowed": true

              },

              "lm": {

                "disabling_allowed": true,

                "active_landmarks": 6

              },

              "core": {

                "disabling_allowed": true,

                "active_landmarks": 6

              }

            }

          },

          "ext_storages": {

            "WayCategory": {},

            "HeavyVehicle": {},

            "WaySurfaceType": {},

            "RoadAccessRestrictions": {

              "use_for_warnings": true

            }

          }

        }

      },

      "profile-hgv": {

        "profiles": "driving-hgv",

        "parameters": {

          "encoder_flags_size": 8,

          "encoder_options": "turn_costs=true|block_fords=false|use_acceleration=true",

          "maximum_distance": 100000,

          "elevation": true,

          "preparation": {

            "min_network_size": 200,

            "min_one_way_network_size": 200,

            "methods": {

              "ch": {

                "enabled": true,

                "threads": 1,

                "weightings": "recommended"

              },

              "core": {

                "enabled": true,

                "threads": 1,

                "weightings": "recommended,shortest",

                "landmarks": 64,

                "lmsets": "highways;allow_all"

              }

            }

          },

          "execution": {

            "methods": {

              "ch": {

                "disabling_allowed": true

              },

              "core": {

                "disabling_allowed": true,

                "active_landmarks": 6

              }

            }

          },

          "ext_storages": {

            "WayCategory": {},

            "HeavyVehicle": {

              "restrictions": true

            },

            "WaySurfaceType": {}

          }

        }

      },

      "profile-bike-regular": {

        "profiles": "cycling-regular",

        "parameters": {

          "encoder_options": "consider_elevation=true|turn_costs=true|block_fords=false",

          "elevation": true,

          "ext_storages": {

            "WayCategory": {},

            "WaySurfaceType": {},

            "HillIndex": {},

            "TrailDifficulty": {}

          }

        }

      },

      "profile-bike-mountain": {

        "profiles": "cycling-mountain",

        "parameters": {

          "encoder_options": "consider_elevation=true|turn_costs=true|block_fords=false",

          "elevation": true,

          "ext_storages": {

            "WayCategory": {},

            "WaySurfaceType": {},

            "HillIndex": {},

            "TrailDifficulty": {}

          }

        }

      },

      "profile-bike-road": {

        "profiles": "cycling-road",

        "parameters": {

          "encoder_options": "consider_elevation=true|turn_costs=true|block_fords=false",

          "elevation": true,

          "ext_storages": {

            "WayCategory": {},

            "WaySurfaceType": {},

            "HillIndex": {},

            "TrailDifficulty": {}

          }

        }

      },

      "profile-bike-electric": {

        "profiles": "cycling-electric",

        "parameters": {

          "encoder_options": "consider_elevation=true|turn_costs=true|block_fords=false",

          "elevation": true,

          "ext_storages": {

            "WayCategory": {},

            "WaySurfaceType": {},

            "HillIndex": {},

            "TrailDifficulty": {}

          }

        }

      },

      "profile-walking": {

        "profiles": "foot-walking",

        "parameters": {

          "encoder_options": "block_fords=false",

          "elevation": true,

          "ext_storages": {

            "WayCategory": {},

            "WaySurfaceType": {},

            "HillIndex": {},

            "TrailDifficulty": {}

          }

        }

      },

      "profile-hiking": {

        "profiles": "foot-hiking",

        "parameters": {

          "encoder_options": "block_fords=false",

          "elevation": true,

          "ext_storages": {

            "WayCategory": {},

            "WaySurfaceType": {},

            "HillIndex": {},

            "TrailDifficulty": {}

          }

        }

      },

      "profile-wheelchair": {

        "profiles": "wheelchair",

        "parameters": {

          "encoder_options": "block_fords=true",

          "elevation": true,

          "maximum_snapping_radius": 50,

          "ext_storages": {

            "WayCategory": {},

            "WaySurfaceType": {},

            "Wheelchair": {

              "KerbsOnCrossings": "true"

            },

            "OsmId": {}

          }

        }

      }

    }

  }

},

"logging": {

  "enabled": true,

  "level_file": "DEBUG_LOGGING.json",

  "location": "/var/log/ors",

  "stdout": true

},

"system_message": [

  {

    "active": false,

    "text": "This message would be sent with every routing bike fastest request",

    "condition": {

      "request_service": "routing",

      "request_profile": "cycling-regular,cycling-mountain,cycling-road,cycling-electric",

      "request_preference": "fastest"

    }

  },

  {

    "active": false,

    "text": "This message would be sent with every request for geojson response",

    "condition": {

      "api_format": "geojson"

    }

  },

  {

    "active": false,

    "text": "This message would be sent with every request on API v1 from January 2020 until June 2050",

    "condition": {

      "api_version": 1,

      "time_after": "2020-01-01T00:00:00Z",

      "time_before": "2050-06-01T00:00:00Z"

    }

  },

  {

    "active": false,

    "text": "This message would be sent with every request"

  }

]

}

}

Try to set your profile in active profiles. It seems your active profile is not what you want.

Okay. Set the active profile to “driving-car” in the config, was still getting the same error message on the localhost website, and received this error in the Docker Log:

19 Apr 19:03:20 ERROR [routing.RoutingProfileManager] - Failed to initialize RoutingProfileManager instance.

java.lang.NullPointerException: null

at org.heigit.ors.routing.configuration.RouteProfileConfiguration.getProfilesTypes(RouteProfileConfiguration.java:113) ~[classes/:6.7.0]

at org.heigit.ors.routing.RoutingProfileManager.initialize(RoutingProfileManager.java:164) ~[classes/:6.7.0]

at org.heigit.ors.routing.RoutingProfileManager.getInstance(RoutingProfileManager.java:72) ~[classes/:6.7.0]

at org.heigit.ors.routing.RoutingProfileManager.isInitComplete(RoutingProfileManager.java:668) ~[classes/:6.7.0]

at org.heigit.ors.servlet.listeners.ORSKafkaConsumerInitContextListener.lambda$contextInitialized$0(ORSKafkaConsumerInitContextListener.java:47) ~[classes/:6.7.0]

at java.lang.Thread.run(Thread.java:829) [?:?]

Also these:
19:03:16.723 [localhost-startStop-1] INFO org.heigit.ors.config.AppConfig - Default path of ‘ors-config.json’ used for configuration

19 Apr 19:03:17 INFO [ors.Application] - No active profile set, falling back to default profiles: default

Are you sure you set the profiles correctly?

I would assume so. I followed this process:

I changed the code in the picture above to:
“profiles”: {

      "active": [

        "driving-car"

      ],

Am I missing something?

No, everything seems correct.
Try with this file, please:

{
  "ors": {
    "info": {
      "base_url": "https://openrouteservice.org/",
      "support_mail": "support@openrouteservice.org",
      "author_tag": "openrouteservice",
      "content_licence": "LGPL 3.0"
    },
    "services": {
      "matrix": {
        "enabled": true,
        "maximum_routes": 100,
        "maximum_routes_flexible": 25,
        "maximum_search_radius": 5000,
        "maximum_visited_nodes": 100000,
        "allow_resolve_locations": true,
        "attribution": "openrouteservice.org, OpenStreetMap contributors"
      },
      "isochrones": {
        "enabled": true,
        "maximum_range_distance": [
          {
            "profiles": "any",
            "value": 50000
          },
          {
            "profiles": "driving-car, driving-hgv",
            "value": 100000
          }
        ],
        "maximum_range_time": [
          {
            "profiles": "any",
            "value": 18000
          },
          {
            "profiles": "driving-car, driving-hgv",
            "value": 3600
          }
        ],
        "fastisochrones": {
          "maximum_range_distance": [
            {
              "profiles": "any",
              "value": 50000
            },
            {
              "profiles": "driving-car, driving-hgv",
              "value": 500000
            }
          ],
          "maximum_range_time": [
            {
              "profiles": "any",
              "value": 18000
            },
            {
              "profiles": "driving-car, driving-hgv",
              "value": 10800
            }
          ],
          "profiles": {
            "default_params": {
              "enabled": false,
              "threads": 12,
              "weightings": "recommended",
              "maxcellnodes": 5000
            },
            "profile-hgv": {
              "enabled": false,
              "threads": 12,
              "weightings": "recommended, shortest",
              "maxcellnodes": 5000
            }
          }
        },
        "maximum_intervals": 10,
        "maximum_locations": 2,
        "allow_compute_area": true
      },
      "routing": {
        "enabled": true,
        "mode": "normal",
        "routing_description": "This is a routing file from openrouteservice",
        "routing_name": "openrouteservice routing",
        "sources": [
          "data/osm_file.pbf"
        ],
        "init_threads": 1,
        "attribution": "openrouteservice.org, OpenStreetMap contributors",
        "elevation_preprocessed": false,
        "profiles": {
          "active": [
            "car"
          ],
          "default_params": {
            "encoder_flags_size": 8,
            "graphs_root_path": "data/graphs",
            "elevation_provider": "multi",
            "elevation_cache_path": "data/elevation_cache",
            "elevation_cache_clear": false,
            "instructions": true,
            "maximum_distance": 100000,
            "maximum_distance_dynamic_weights": 100000,
            "maximum_distance_avoid_areas": 100000,
            "maximum_waypoints": 50,
            "maximum_snapping_radius": 400,
            "maximum_avoid_polygon_area": 200000000,
            "maximum_avoid_polygon_extent": 20000,
            "maximum_distance_alternative_routes": 100000,
            "maximum_alternative_routes": 3,
            "maximum_distance_round_trip_routes": 100000,
            "maximum_speed_lower_bound": 80,
            "preparation": {
              "min_network_size": 200,
              "min_one_way_network_size": 200,
              "methods": {
                "lm": {
                  "enabled": true,
                  "threads": 1,
                  "weightings": "recommended,shortest",
                  "landmarks": 16
                }
              }
            },
            "execution": {
              "methods": {
                "lm": {
                  "disabling_allowed": true,
                  "active_landmarks": 8
                }
              }
            }
          },
          "profile-car": {
            "profiles": "driving-car",
            "parameters": {
              "encoder_flags_size": 8,
              "encoder_options": "turn_costs=true|block_fords=false|use_acceleration=true",
              "maximum_distance": 100000,
              "elevation": true,
              "maximum_snapping_radius": 350,
              "preparation": {
                "min_network_size": 200,
                "min_one_way_network_size": 200,
                "methods": {
                  "ch": {
                    "enabled": true,
                    "threads": 1,
                    "weightings": "fastest"
                  },
                  "lm": {
                    "enabled": false,
                    "threads": 1,
                    "weightings": "fastest,shortest",
                    "landmarks": 16
                  },
                  "core": {
                    "enabled": true,
                    "threads": 1,
                    "weightings": "fastest,shortest",
                    "landmarks": 64,
                    "lmsets": "highways;allow_all"
                  }
                }
              },
              "execution": {
                "methods": {
                  "ch": {
                    "disabling_allowed": true
                  },
                  "lm": {
                    "disabling_allowed": true,
                    "active_landmarks": 6
                  },
                  "core": {
                    "disabling_allowed": true,
                    "active_landmarks": 6
                  }
                }
              },
              "ext_storages": {
                "WayCategory": {},
                "HeavyVehicle": {},
                "WaySurfaceType": {},
                "RoadAccessRestrictions": {
                  "use_for_warnings": true
                }
              }
            }
          },
          "profile-hgv": {
            "profiles": "driving-hgv",
            "parameters": {
              "encoder_flags_size": 8,
              "encoder_options": "turn_costs=true|block_fords=false|use_acceleration=true",
              "maximum_distance": 100000,
              "elevation": true,
              "preparation": {
                "min_network_size": 200,
                "min_one_way_network_size": 200,
                "methods": {
                  "ch": {
                    "enabled": true,
                    "threads": 1,
                    "weightings": "recommended"
                  },
                  "core": {
                    "enabled": true,
                    "threads": 1,
                    "weightings": "recommended,shortest",
                    "landmarks": 64,
                    "lmsets": "highways;allow_all"
                  }
                }
              },
              "execution": {
                "methods": {
                  "ch": {
                    "disabling_allowed": true
                  },
                  "core": {
                    "disabling_allowed": true,
                    "active_landmarks": 6
                  }
                }
              },
              "ext_storages": {
                "WayCategory": {},
                "HeavyVehicle": {
                  "restrictions": true
                },
                "WaySurfaceType": {}
              }
            }
          },
          "profile-bike-regular": {
            "profiles": "cycling-regular",
            "parameters": {
              "encoder_options": "consider_elevation=true|turn_costs=true|block_fords=false",
              "elevation": true,
              "ext_storages": {
                "WayCategory": {},
                "WaySurfaceType": {},
                "HillIndex": {},
                "TrailDifficulty": {}
              }
            }
          },
          "profile-bike-mountain": {
            "profiles": "cycling-mountain",
            "parameters": {
              "encoder_options": "consider_elevation=true|turn_costs=true|block_fords=false",
              "elevation": true,
              "ext_storages": {
                "WayCategory": {},
                "WaySurfaceType": {},
                "HillIndex": {},
                "TrailDifficulty": {}
              }
            }
          },
          "profile-bike-road": {
            "profiles": "cycling-road",
            "parameters": {
              "encoder_options": "consider_elevation=true|turn_costs=true|block_fords=false",
              "elevation": true,
              "ext_storages": {
                "WayCategory": {},
                "WaySurfaceType": {},
                "HillIndex": {},
                "TrailDifficulty": {}
              }
            }
          },
          "profile-bike-electric": {
            "profiles": "cycling-electric",
            "parameters": {
              "encoder_options": "consider_elevation=true|turn_costs=true|block_fords=false",
              "elevation": true,
              "ext_storages": {
                "WayCategory": {},
                "WaySurfaceType": {},
                "HillIndex": {},
                "TrailDifficulty": {}
              }
            }
          },
          "profile-walking": {
            "profiles": "foot-walking",
            "parameters": {
              "encoder_options": "block_fords=false",
              "elevation": true,
              "ext_storages": {
                "WayCategory": {},
                "WaySurfaceType": {},
                "HillIndex": {},
                "TrailDifficulty": {}
              }
            }
          },
          "profile-hiking": {
            "profiles": "foot-hiking",
            "parameters": {
              "encoder_options": "block_fords=false",
              "elevation": true,
              "ext_storages": {
                "WayCategory": {},
                "WaySurfaceType": {},
                "HillIndex": {},
                "TrailDifficulty": {}
              }
            }
          },
          "profile-wheelchair": {
            "profiles": "wheelchair",
            "parameters": {
              "encoder_options": "block_fords=true",
              "elevation": true,
              "maximum_snapping_radius": 50,
              "ext_storages": {
                "WayCategory": {},
                "WaySurfaceType": {},
                "Wheelchair": {
                  "KerbsOnCrossings": "true"
                },
                "OsmId": {}
              }
            }
          }
        }
      }
    },
    "logging": {
      "enabled": true,
      "level_file": "DEBUG_LOGGING.json",
      "location": "/var/log/ors",
      "stdout": true
    },
    "system_message": [
      {
        "active": false,
        "text": "This message would be sent with every routing bike fastest request",
        "condition": {
          "request_service": "routing",
          "request_profile": "cycling-regular,cycling-mountain,cycling-road,cycling-electric",
          "request_preference": "fastest"
        }
      },
      {
        "active": false,
        "text": "This message would be sent with every request for geojson response",
        "condition": {
          "api_format": "geojson"
        }
      },
      {
        "active": false,
        "text": "This message would be sent with every request on API v1 from January 2020 until June 2050",
        "condition": {
          "api_version": 1,
          "time_after": "2020-01-01T00:00:00Z",
          "time_before": "2050-06-01T00:00:00Z"
        }
      },
      {
        "active": false,
        "text": "This message would be sent with every request"
      }
    ]
  }
}

Hi @eckoo,
also see the answer in:

Your error message states:

Also for help with the config take a look at the documentation.

Best regards

Tried that config file, received the same error.

Please, read the Amandus’ reply.