brash-iron-23043
10/05/2023, 2:39 PMmagnificent-energy-493
The error message you’re seeing indicates that the target database or schema does not exist. This could be due to a number of reasons, such as the database not being created yet, the database name being misspelled, or the database not being accessible from the context where the command is being run.
In your Docker Compose file, you’re using theDSN for the<postgres://[email protected]:26257/local-ory-kratos?sslmode=disable>service. Make sure that thekratos-migratedatabase exists and is accessible from thelocal-ory-kratosservice.kratos-migrate
Also, you mentioned that the migration runs successfully with CockroachDB version <= v21.2.17. It’s possible that there are compatibility issues with the newer version of CockroachDB you’re using (v23.1.9). You might want to consider downgrading CockroachDB to a version that works, or checking the CockroachDB documentation or forums for any known issues or changes in the newer version that might affect the migration.