I’m having trouble setting up KeyCloak in Azure Container App for testing. Every time I try, I get an error saying Table 'databasechangeloglock' already exists. This happens even when I create a new database or clear out the existing one.
hey jackw, i’ve run into similar issues before. have you tried clearing the database completely and then running keycloak with the ‘KC_DB_URL_HOST’ env variable set to your mysql host? also, double-check your mysql user has proper permissions. sometimes that can cause weird errors like this. good luck!
I’ve dealt with this exact issue before when setting up KeyCloak in Azure. The problem often stems from incomplete database cleanup between deployment attempts. Here’s what worked for me:
First, ensure you’re completely dropping the database before each new deployment. Simply clearing tables isn’t always enough. Then, add these environment variables to your configuration: