zenml logs -f

Fixing database connection problemsIf you are using a MySQL database, you might face issues connecting to it. The logs from the zenml-db-init container should give you a good idea of what the problem is. Here are some common issues and how to fix them:

If you see an error like ERROR 1045 (28000): Access denied for user <USER> using password YES, it means that the username or password is incorrect. Make sure that the username and password are correctly set for whatever deployment method you are using.

If you see an error like ERROR 2003 (HY000): Can't connect to MySQL server on <HOST> (<IP>), it means that the host is incorrect. Make sure that the host is correctly set for whatever deployment method you are using.

You can test the connection and the credentials by running the following command from your machine:

mysql -h <HOST> -u <USER> -p

If you are using a Kubernetes deployment, you can use the kubectl port-forward command to forward the MySQL port to your local machine. This will allow you to connect to the database from your machine.

Fixing database initialization problems

If you’ve migrated from a newer ZenML version to an older version and see errors like Revision not found in your zenml-db-init logs, one way out is to drop the database and create a new one with the same name.

Log in to your MySQL instance.Copymysql -h <HOST> -u <NAME> -p

Drop the database for the server.Copydrop database <NAME>;

Create the database with the same name.Copycreate database <NAME>;

Restart the Kubernetes pods or the docker container running your server to trigger the database initialization again.

PreviousUpgrade the version of the ZenML server

NextTroubleshoot stack components

Last updated 1 year ago