-
Story
-
Resolution: Cannot Reproduce
-
Medium
-
None
-
None
-
None
the compose up on the portal does not wait long enough for the db container to come up.
the db container is still doing bootstrapping things:
docker logs -f deliveries_portal-db_1 <output snipped> /usr/local/bin/docker-entrypoint.sh: running /docker-entrypoint-initdb.d/EcompSdkDMLMySql_1707_OS.sql /usr/local/bin/docker-entrypoint.sh: running /docker-entrypoint-initdb.d/dbca-complete-mysql-1707-os.sql
meanwhile the portal apps container exits:
docker logs -f deliveries_portal-apps_1 Operation timed out root@vm1-portal:/opt# docker ps -a CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES d0343f04f584 portal-apps:1.3.0 "/wait-for.sh -t 1..." 6 minutes ago Exited (1) 3 minutes ago deliveries_portal-apps_1 dbd13f221657 portal-wms:1.3.0 "/wait-for.sh -t 1..." 7 minutes ago Exited (1) 3 minutes ago deliveries_portal-wms_1 77c2796646bd onap/cli:1.3.0 "/bin/sh -c 'if [ ..." 7 minutes ago Up 7 minutes 8080/tcp, 0.0.0.0:8080->80/tcp deliveries_cli_1 d7ab9657c57e portal-db:1.3.0 "docker-entrypoint..." 7 minutes ago Up 7 minutes 3306/tcp deliveries_portal-db_1
trying to get around it with a manual start after the db container finishes to bootstrap
root@vm1-portal:/opt# docker start deliveries_portal- deliveries_portal-apps_1 deliveries_portal-wms_1 root@vm1-portal:/opt# docker start deliveries_portal-wms_1 deliveries_portal-wms_1 root@vm1-portal:/opt# docker start deliveries_portal-apps_1 deliveries_portal-apps_1