openrouteservice icon indicating copy to clipboard operation
openrouteservice copied to clipboard

Add log message for timeout during elevation download

Open jhaeu opened this issue 1 year ago • 2 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

Feature/Enhancement Proposal

Related to #1866 : When elevation is enabled, ORS tries to download required, not cached elevation files during startup. If a timeout occurs during elevation timeout, startup fails and only a misleading log message is shown:

Failed to either read or execute the ors configuration and its parameters: java.lang.RuntimeException: Couldn't process file /home/ors/files/osm_file.pbf, error: java.net.SocketTimeoutException: Connect timed out

Add a helpful log message, also containing the download URL.

Additional context

No response

Possible Implementation

No response

Forum Topic Link

No response

jhaeu avatar Oct 18 '24 10:10 jhaeu

I second this, I'm having what seems to be the same problem with a very similar error message:

Failed to either read or execute the ors configuration and its parameters: java.lang.RuntimeException: Couldn't process file C:\Users\amitrani\Documents\GitHub\openrouteservice\Brazil\brazil-latest.osm.pbf, error: java.net.SocketTimeoutException: Connect timed out

I tried turning off the elevation functionality with elevation: false and this seems to have allowed the setup process to run without error, so it seems likely that the error was due to the process being unable to download elevation tiles. A more informative error message would be very helpful to understand the issue.

Thanks

alex-mitrani avatar Oct 18 '24 22:10 alex-mitrani

I'm having the same problem, I cannot build graphs

Any way to disable building the elevation cache as I am not using the elevation API at all

joewragg avatar Oct 24 '24 06:10 joewragg