App Refused Connection [Mariadb]

I’ve deploy bitnami/mariadb-galera:10.8.6 which started fine but when trying to connect from an external mysql DB manager I get the following error:

proxy[3366ff4b] yyz [error] Error: app refused connection

My Fly.toml

app = "app-name"
kill_signal = "SIGINT"
kill_timeout = 5
processes = []

  image = "bitnami/mariadb-galera:10.8.6"

  MARIADB_EXTRA_FLAGS = ";ist.recv_bind= -p 3306:3306,4444:4444,4567:4567,4568:4568"
  MARIADB_GALERA_CLUSTER_NAME = "appwrite-cluster"
  MARIADB_REPLICATION_USER = "replication-user"
  MARIADB_USER = "root"
  MARIADB_PASSWORD = "test-password"
  MARIADB_ROOT_PASSWORD = "test-password"

  allowed_public_ports = []
  auto_rollback = true

  destination = "/bitnami/mariadb-galera"
  source = "data"

  internal_port = 3306
  protocol = "tcp"
  processes = ["app"]
    hard_limit = 200
    soft_limit = 190
    type = "connections"

    handlers = []
    port = 3306

This might be similar to my issue, which turned out to be due to the recent release of shared IPs:

You can check whether your app currently has a dedicated IP or shared IP by running flyctl ips list. The TYPE column says “public” for a dedicated IP and “public (shared)” for a shared IP.

I would try and SSH into your instance (fly ssh console -a app-name) and then listing open ports (lsof -i) to see if your cluster is binding to all addresses ( or ::).

The MariaDB docs seem to indicate that’s the default, but usually a Connection Refused error can indicate that nothing is listening on the address we’re trying to connect to.