GIScience / openrouteservice

🌍 The open source route planner api with plenty of features.
https://openrouteservice.org
GNU General Public License v3.0
1.46k stars 399 forks source link

Add log message for timeout during elevation download #1867

Open jhaeu opened 2 weeks ago

jhaeu commented 2 weeks ago

Is there an existing issue for this?

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

alex-mitrani commented 2 weeks ago

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

joewragg commented 2 weeks ago

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