Installing Gitpod via Docker Not Working

In brief it appears the database migration is failing:

docker exec gitpod kubectl get pods

NAME                                 READY   STATUS                 RESTARTS   AGE
gitpod-helm-installer                1/1     Running                0          34m
blobserve-6bdd97d5dc-qdclm           1/1     Running                0          33m
ws-manager-cdf5977bf-mz5nh           1/1     Running                0          33m
content-service-656fd85977-wfpph     1/1     Running                0          33m
ws-scheduler-ff4d8d9dd-tq8f7         1/1     Running                0          33m
ws-proxy-5d5cd8fc64-qsd8t            1/1     Running                0          33m
registry-facade-hffrk                1/1     Running                0          33m
registry-65ff9d5744-wv4gr            1/1     Running                0          33m
dashboard-859c9bf868-dsh9s           1/1     Running                0          33m
db-migrations-2mtxc                  0/1     CreateContainerError   0          33m
theia-server-568fb48db5-7xx5m        1/1     Running                0          33m
ws-daemon-9jnnd                      1/1     Running                0          33m
proxy-88885f6-r9djq                  1/1     Running                0          33m
svclb-proxy-hsxpc                    2/2     Running                1          33m
minio-6f8d5899d6-lkk8n               1/1     Running                1          33m
image-builder-58c56dd665-n5hlz       2/2     Running                0          33m
messagebus-f98948794-m4lbm           1/1     Running                0          33m
mysql-7cbb9c9586-4dn5n               1/1     Running                1          33m
db-migrations-nhrfq                  0/1     Error                  0          26m
node-daemon-jgr9p                    1/1     Running                0          33m
db-migrations-8p8mn                  0/1     Error                  0          23m
db-migrations-lc4qg                  0/1     Error                  0          19m
db-migrations-5wxhn                  0/1     Error                  0          16m
db-migrations-k9rnw                  0/1     Error                  0          10m
server-655bdbfbb6-54wtd              0/1     Init:1/2               4          33m
db-migrations-488k5                  0/1     Error                  0          4m45s
ws-manager-bridge-7b7b77cf77-bkzkl   0/1     Init:0/2               5          33m
docker exec gitpod kubectl logs db-migrations-8p8mn

yarn run v1.22.4
$ node ./lib/wait-for-db.js
Using DB: db:3306/gitpod
Connection attempt 0/30 failed. Retrying in 5 seconds.
Connection attempt 1/30 failed. Retrying in 5 seconds.
Connection attempt 2/30 failed. Retrying in 5 seconds.
Connection attempt 3/30 failed. Retrying in 5 seconds.
Connection attempt 4/30 failed. Retrying in 5 seconds.
Connection attempt 5/30 failed. Retrying in 5 seconds.
Connection attempt 6/30 failed. Retrying in 5 seconds.
Connection attempt 7/30 failed. Retrying in 5 seconds.
Connection attempt 8/30 failed. Retrying in 5 seconds.
Connection attempt 9/30 failed. Retrying in 5 seconds.
Connection attempt 10/30 failed. Retrying in 5 seconds.
Connection attempt 11/30 failed. Retrying in 5 seconds.
Connection attempt 12/30 failed. Retrying in 5 seconds.
Connection attempt 13/30 failed. Retrying in 5 seconds.
Connection attempt 14/30 failed. Retrying in 5 seconds.
Connection attempt 15/30 failed. Retrying in 5 seconds.
Connection attempt 16/30 failed. Retrying in 5 seconds.
Connection attempt 17/30 failed. Retrying in 5 seconds.
Connection attempt 18/30 failed. Retrying in 5 seconds.
Connection attempt 19/30 failed. Retrying in 5 seconds.
Connection attempt 20/30 failed. Retrying in 5 seconds.
Connection attempt 21/30 failed. Retrying in 5 seconds.
Connection attempt 22/30 failed. Retrying in 5 seconds.
Connection attempt 23/30 failed. Retrying in 5 seconds.
Connection attempt 24/30 failed. Retrying in 5 seconds.
Connection attempt 25/30 failed. Retrying in 5 seconds.
Connection attempt 26/30 failed. Retrying in 5 seconds.
Connection attempt 27/30 failed. Retrying in 5 seconds.
Connection attempt 28/30 failed. Retrying in 5 seconds.
Connection attempt 29/30 failed. Retrying in 5 seconds.
Could not connect within 30 attempts. Stopping.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

From the MySQL pod I do see a bunch of failed root logins:

2021-05-03T17:50:55.282597Z 2 [Note] Access denied for user 'root'@'localhost' (using password: YES)
2021-05-03T17:51:05.145731Z 21 [Note] Access denied for user 'root'@'localhost' (using password: YES)
2021-05-03T17:51:15.186682Z 44 [Note] Access denied for user 'root'@'localhost' (using password: YES)
2021-05-03T17:51:21.461964Z 58 [Note] Access denied for user 'root'@'localhost' (using password: YES)
2021-05-03T17:51:25.146465Z 68 [Note] Access denied for user 'root'@'localhost' (using password: YES)
2021-05-03T17:51:31.475367Z 82 [Note] Access denied for user 'root'@'localhost' (using password: YES)
2021-05-03T17:51:35.155567Z 92 [Note] Access denied for user 'root'@'localhost' (using password: YES)
2021-05-03T17:51:41.475986Z 106 [Note] Access denied for user 'root'@'localhost' (using password: YES)
2021-05-03T17:51:45.225223Z 116 [Note] Access denied for user 'root'@'localhost' (using password: YES)

My docker-compose configuration bit for Gitpod looks like this:

gitpod:
    image: eu.gcr.io/gitpod-core-dev/build/gitpod-k3s:latest
    container_name: gitpod
    labels:
      - traefik.http.routers.gitpod.rule=Host(`gitpod.app`) && HostRegexp(`gitpod.app`,`{subdomain:[A-Za-z0-9]+}.gitpod.app`,`{subdomain:[A-Za-z0-9-_]+}.ws.gitpod.app`)
      - traefik.http.routers.gitpod.entrypoints=websecure
      - traefik.http.routers.gitpod.service=gitpod
      - traefik.http.routers.gitpod.tls.passthrough=true
      - traefik.http.services.gitpod.loadbalancer.server.port=443
    environment:
      - DOMAIN=${GITPOD_DOMAIN}
    volumes:
      - /etc/localtime:/etc/localtime:ro
      - gitpod-docker:/var/gitpod/docker
      - gitpod-docker-registry:/var/gitpod/docker-registry
      - gitpod-minio:/var/gitpod/minio
      - gitpod-mysql:/var/gitpod/mysql
      - gitpod-workspaces:/var/gitpod/workspaces
      - ${DOCKER_CONF_DIR}/gitpod/minio-secrets.yaml:/values/minio-secrets.yaml
      - ${DOCKER_CONF_DIR}/gitpod/certs:/certs
    networks:
      - production
    depends_on:
      - traefik
    restart: unless-stopped
    cap_add:
      - SYS_PTRACE
    privileged: true

So it seems it cannot connect to MySQL via db:3306. Any ideas on how to further troubleshoot and resolve this would be awesome!

Thanks,

What does kubectl get services say? It could be that MySQL now listens on the host mysql instead of db. In that case, you can try to the change the DB host in the values.yaml file.