Hello. I use openrouteservice for my research, and I host it locally. As of a few weeks ago, I was able to successfully set up and use openrouteservice in docker on my Windows 10 Home machine (these are the steps I took).
However, today when I ran the 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 /var/lib/docker/conf:/ors-conf -v C:/OSMFiles/north-dakota-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
as usual, docker suddenly gave me the following error immediately:
### openrouteservice configuration ### No ors-config.json in ors-conf folder. Copy config from /ors-core/openrouteservice/src/main/resources/ors-config.json cp: cannot create regular file '/ors-conf/ors-config.json': Permission denied
As a result, building the graphs seems to fail. Reading the docker logs, I seem to be getting other errors such as:
Failed to initialize RoutingProfileManager instance
Why am I getting this problem when everything was working fine just a few weeks ago? How can I put the
ors-config.json file where it needs to be? I’ve tried running both the command prompt and Docker as administrator but it’s still giving me the same issue.
I see that some changes were made to the ors backend related to docker (here for example) a few days ago, but I don’t understand the details.