I just terminated the update 813=>820 in my local ORS environment. Now the local engine don’t starts, with the following error in my ors.log:
…
2024-11-07 12:01:09 ERROR [o.h.o.r.RoutingProfileManager ] -
2024-11-07 12:01:09 ERROR [o.h.o.r.RoutingProfileManager ] - Failed to either read or execute the ors configuration and its parameters: java.lang.IllegalStateException: Unable to load storage ‘ext_tolls’. corrupt file or directory?
2024-11-07 12:01:09 ERROR [o.h.o.r.RoutingProfileManager ] -
…
What it means? Obviously I don’t nothing changing, and with the previous ORS release (813) all was working fine…
Thanks for reaching out!
The reported behavior is probably due to the “tollways” graph storage being now enabled by default in v8.2.0, which was not the case with v8.1.3. Depending on whether you are interested in using the information on tollways for routing (e.g. to avoid them) or not, you basically have the following two options, respectively:
-
Ditch the graphs computed with v8.1.3 and recalculate them from scratch.
-
Disable
Tollways:
entries in your ORS configuration file.
Cheers
Andrzej
Hello Andrzej, thanks for your answer. I’m oriented to option 2, but in my ORS configuration file (ors-config.yml) I don’t have any ‘Tollways’ option. I tried to add in the file the row ‘Tollways: false’, but nothing is changed…
Excuse me Andrzej, but it’s not clear form me how I can disable ‘tollways’ in my ORS configuration file…
Thank you for your patience.
I may have actually been wrong about the ability to disable the tollways storage in v8.2.0. This feature will be available in the upcoming v9, sorry for the confusion. Apparently the only option for now is to delete the graphs folder and recalculate it from scratch.
Cheers,
Andrzej
I tried to delete the ‘car’ folder above ‘graphs’, the folder is recreated but nothing is changed and I continue to obtain the error…
At the moment the only way to not obtain the error is … to comment the ‘car’ profile in yml file…
Can you please share your configuration file which is causing the error? Cheers!
I’m sorry, but I don’t know how attach the yml the my post…
Just put it in as a code snippet…
Hello Andrzej, following you find my ORS setting file:
… start file …
server:
port: 8089
##### Logging settings #####
logging:
file:
name: C:/OpenrouteServices/ors.log
##### openrouteservice specific settings #####
ors:
engine:
source_file: maps/nord-ovest-italy.osm.pbf
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: 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:
lm:
active_landmarks: 6
core:
active_landmarks: 6
ext_storages:
WayCategory:
HeavyVehicle:
WaySurfaceType:
RoadAccessRestrictions:
use_for_warnings: true
bike-regular:
enabled: true
… end file …
All other lines are commented
Hello Andrzej, may be have you found the solution?
Thank you for providing your configuration file. I’ve used it to recreate your scenario:
- Start a fresh ORS v8.1.3 instance to compute the graphs
- Switch to ORS v8.2.0 and restart with the graphs computed in previous step
→ error! - Delete the complete
graphs/
folder and restart ORS v8.2.0
→ success!
Normally when you delete the contents of graphs/
folder all data is computed from scratch and the error message should go away. How are you clearing the graphs?
Hello andrzej, I don’t have anymore the ORS 813, at the moment I installed only the ORS 820. Following your suggestions I deleted the ‘graphs’ folder, then I edited my yml file and I enabled the 2 profiles ‘car’ and ‘bike-regular’. In this way at the start I don’t receive the error, but in the graphs folder I see only the ‘car’ sub-folder… Finally, if I run from Postman a call to ‘health’ ORS’s API I receive a ‘not ready’ status… It seems I’m having some issue enabling the second profile (in my case, the ‘bike-regular’ profile), I don’t understand…
If you need, I can send you my full yml setting file…
Hey,
not ready is the openrouteservice tellling you that it is currently building graphs.
nord-ovest-italy.osm.pbf
is >500MB in size, so I can easily imagine this taking more than an hour, depending on your machine of course.
I’d suggest you let ors run for a while to build graphs and see if that resolves the issue.
Best regards
hello jschnell, but why if I have only one profile enabled in my yml file then the building is immediate?
Now I understood, obviously you are right, jschnell!! Now the rebuild is terminated (23 minutes, this step was unknown and not very clear to me…), I see my 2 sub folders and all it works fine! Thanks to both of you for the patience/support. Now I know ORS a bit better…
Now I tried to migrate my local ORS from 820 to 900. The same yml that worked in 820 now not works with the 900… The engine is crashed and I see the error:
ExecutionException while initializing RoutingProfileManager: java.lang.IllegalStateException: Expected single profile in config
effectively I have 2 profile enabled, but if I delete one of them… I have the same error…
Wow. You are quick to migrate Nice.
Please have a look at the current documentation. The default profile names changed. E.g. car → driving-car.
We will bring docs versioning soon to make the differences between versions cleaner.
We will also release our config migration tool any day to make the transition smoother.
You can find a minimal config example for V9 here (yes, that is now all you need):
Hi Jules, yes I like to follow the last release, to try the new stuffs.
Thanks for the answer, that it means I can wait some day…
And thanks for your work, ORS is great!
Anyway I changed:
car => driving-car
bike-regular => cycling-regular
and now it works!