Unable to deploy docker image

Hello,

We’re currently trying to deploy ORS to a Google Cloud Run instance. We can run the project locally and it works fine. There are a few constraints with using Cloud Run:

  • We can’t use docker-compose as each server instance is simply one docker container. For that reason we have to run ORS using just docker. We do this locally and it works fine.

  • We can’t use docker volumes. Since the cloud run instance is essentially ephemeral, there is no concept of volumes. This isn’t too bad, it just means our caching ability is limited, but this shouldn’t affect the functionality of the system.

However, when deploying, we are faced with a message that we don’t face when running locally. It simply fails to initiate. Here are the most recent logs:

2022-05-30 18:52:55.462 BST
30 May 17:52:55 INFO [ors.Application] - No active profile set, falling back to default profiles: default
2022-05-30 19:14:10.262 BST
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
2022-05-30 19:14:10.262 BST
SLF4J: Defaulting to no-operation (NOP) logger implementation
2022-05-30 19:14:10.262 BST
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
2022-05-30 19:36:38.663 BST
2022-05-30 18:36:37,562 INFO [ors.Application] - Started Application in 3380.7 seconds (JVM running for 6594.144)
2022-05-30 19:36:38.663 BST
30 May 18:36:37 INFO [ors.Application] - Started Application in 3380.7 seconds (JVM running for 6594.144)
2022-05-30 19:36:59.162 BST
2022-05-30 18:36:59,062 INFO [logging.LoggingUtility] - Logging configuration loaded from DEBUG_LOGGING.json, logging to file /var/log/ors/ors-logs.log
2022-05-30 19:36:59.162 BST
30 May 18:36:59 INFO [logging.LoggingUtility] - Logging configuration loaded from DEBUG_LOGGING.json, logging to file /var/log/ors/ors-logs.log
2022-05-30 19:37:03.862 BST
30-May-2022 18:37:03.462 WARNING [localhost-startStop-1] org.apache.catalina.util.SessionIdGeneratorBase.createSecureRandom Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [2,500] milliseconds.
2022-05-30 19:37:03.862 BST
2022-05-30 18:37:03,463 INFO [routing.RoutingProfileManager] - Total - 4.01 GB, Free - 3.79 GB, Max: 15 GB, Used - 219.06 MB
2022-05-30 19:37:03.862 BST
30 May 18:37:03 INFO [routing.RoutingProfileManager] - Total - 4.01 GB, Free - 3.79 GB, Max: 15 GB, Used - 219.06 MB
2022-05-30 19:37:04.062 BST
2022-05-30 18:37:03,862 INFO [routing.RoutingProfileManager] -
2022-05-30 19:37:05.061 BST
30 May 18:37:03 INFO [routing.RoutingProfileManager] -
2022-05-30 19:37:17.663 BST
2022-05-30 18:37:17,662 INFO [routing.RoutingProfileManager] - ====> Initializing profiles from 'data/osm_file.pbf' (1 threads) ...
2022-05-30 19:37:17.862 BST
30 May 18:37:17 INFO [routing.RoutingProfileManager] - ====> Initializing profiles from 'data/osm_file.pbf' (1 threads) ...
2022-05-30 19:37:17.862 BST
2022-05-30 18:37:17,862 INFO [routing.RoutingProfileManager] -
2022-05-30 19:37:18.662 BST
30 May 18:37:17 INFO [routing.RoutingProfileManager] -
2022-05-30 19:37:20.262 BST
2022-05-30 18:37:20,262 INFO [routing.RoutingProfileManager] -
2022-05-30 19:37:22.662 BST
30 May 18:37:20 INFO [routing.RoutingProfileManager] -
2022-05-30 19:37:28.862 BST
30-May-2022 18:37:28.762 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployWAR Deployment of web application archive [/usr/local/tomcat/webapps/ors.war] has finished in [6,643,770] ms
2022-05-30 19:37:29.762 BST
30-May-2022 18:37:29.762 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [/usr/local/tomcat/webapps/ROOT]
2022-05-30 19:37:39.262 BST
2022-05-30 18:37:39,262 INFO [routing.RoutingProfile] - [1] Profiles: 'foot-walking', location: 'data/graphs/walking'.
2022-05-30 19:37:40.362 BST
30 May 18:37:39 INFO [routing.RoutingProfile] - [1] Profiles: 'foot-walking', location: 'data/graphs/walking'.
2022-05-30 19:37:55.365 BST
30-May-2022 18:37:55.365 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [/usr/local/tomcat/webapps/ROOT] has finished in [25,603] ms
2022-05-30 19:37:55.365 BST
30-May-2022 18:37:55.365 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [/usr/local/tomcat/webapps/docs]
2022-05-30 19:38:23.262 BST
30-May-2022 18:38:23.262 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [/usr/local/tomcat/webapps/docs] has finished in [27,800] ms
2022-05-30 19:38:23.262 BST
30-May-2022 18:38:23.262 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [/usr/local/tomcat/webapps/examples]
2022-05-30 19:46:40.762 BST
30-May-2022 18:46:40.762 WARNING [localhost-startStop-1] org.apache.catalina.util.SessionIdGeneratorBase.createSecureRandom Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [499] milliseconds.
2022-05-30 19:46:59.162 BST
30-May-2022 18:46:58.862 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [/usr/local/tomcat/webapps/examples] has finished in [515,600] ms
2022-05-30 19:46:59.361 BST
30-May-2022 18:46:59.162 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [/usr/local/tomcat/webapps/host-manager]
2022-05-30 19:48:11.962 BST
30-May-2022 18:48:11.962 WARNING [localhost-startStop-1] org.apache.catalina.util.SessionIdGeneratorBase.createSecureRandom Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [1,100] milliseconds.
2022-05-30 19:48:14.362 BST
30-May-2022 18:48:13.962 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [/usr/local/tomcat/webapps/host-manager] has finished in [74,800] ms
2022-05-30 19:48:14.762 BST
30-May-2022 18:48:14.562 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [/usr/local/tomcat/webapps/manager]
2022-05-30 19:49:13.462 BST
30-May-2022 18:49:13.462 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [/usr/local/tomcat/webapps/manager] has finished in [59,100] ms
2022-05-30 19:49:19.162 BST
30-May-2022 18:49:19.162 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-8080"]
2022-05-30 19:49:30.263 BST
30-May-2022 18:49:30.262 INFO [main] org.apache.catalina.startup.Catalina.start Server startup in 7365367 ms

It seems to get stuck at org.apache.catalina.startup.Catalina.start Server startup in 7365367 ms.

Any help would be hugely appreciated,
Kind regards,
Sam

Hi Sam,

I’m also looking into running ORS without docker volumes. How do you go about building and storing graphs? Do you simply generate these during the image build step?

Best regards,
Eric