Troubleshoot install with docker

Hi all,
I have a Centos 8 server with Docker version 20.10.16, build aa7e414 , docker-compose version 1.27.4, build 40524192 installed, I want to try openrouteservice Installation via Docker.
I have read documents
What I did:

  • git clone sourcecode
  • cd openrouteservice
  • cd docker
  • mkdir -p conf elevation_cache graphs logs/ors logs/tomcat
  • docker-compose up -d

docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
45572d05c8db openrouteservice/openrouteservice:latest “/bin/bash /ors-core…” 7 minutes ago Up 7 minutes 0.0.0.0:8080->8080/tcp, 0.0.0.0:9001->9001/tcp ors-app

docker logs ors-app

openrouteservice configuration

ors-config.json exists in ors-conf folder. Copy config to /ors-core/openrouteservice/src/main/resources/ors-config.json

Package openrouteservice and deploy to Tomcat

I cannot access to

http://myserverIP:8080/ors/v2/status
http://myserverIP:8080/ors/v2/health

I cannot telnet localhost or myserverIP 8080 , because tomcat in container not running, this is when I run

docker-compose up
Creating network “docker_default” with the default driver
Creating ors-app … done
Attaching to ors-app
ors-app | ### openrouteservice configuration ###
ors-app | No ors-config.json in ors-conf folder. Copy config from /ors-core/openrouteservice/src/main/resources/ors-config.json
ors-app | ### Package openrouteservice and deploy to Tomcat ###
(it hangs here forever)

Please give me some advice, thank you very much.

Hey,

Have a look here - looks like the same problem, steps to debug should be the same.
Please post your output or your findings here, though - these issues might not be related after all :slight_smile:

Best regards

Hi @jschnell
Thank for your reply, turns out the problem was I didn’t wait long enough.
I changed OSM data to vietnam-latest , increased memory to 5-6GB.
I waited four hours, until "status and “health” return ok, is that normal ?

Hey,

I’m glad to hear that :slight_smile:

the timing is heavily dependent on

  • your machine specs
  • your network (as I think the mvn package-step in the docker-entrypoint.sh pulls a lot of packages)
  • the size of (and density of road network in) your pbf file
  • the number of profiles activated in the ors-config.json
  • the amount of preparation activated in the ors-config.json

Overall, I’d say four hours is rather long, since the vietnam file is not too big, but not unheard of.