Database Migrations
Prisma, Flyway, Alembic - migration errors in CI.
Fix database migration errors in CI/CD: Prisma, Flyway, Liquibase, Alembic, and Rails migrations - connection, drift, and lock failures.
ORM migrations
Prisma, Alembic, Rails.
"Can't locate revision identified by"Fix Alembic "Can't locate revision identified by <hash>" in CI - the database points at a revision missing fr…
"Can't locate revision identified by"Fix Alembic "Can't locate revision identified by <hash>" in CI - the database points at a revision that does…
Alembic "Can't locate revision"Fix Alembic "Can't locate revision identified by '<id>'" in CI - the database's alembic_version points at a r…
"relation already exists"Fix Alembic "FAILED: (psycopg2) relation already exists" in CI - a migration tries to create a table/index th…
"Multiple head revisions are present"Fix Alembic "Multiple head revisions are present for given argument 'head'" in CI - two migration branches di…
Alembic "Multiple head revisions"Fix Alembic "Multiple head revisions are present for given argument 'head'" in CI - two branches each added a…
"Target database is not up to date"Fix Alembic "Target database is not up to date" in CI - autogenerate or a check refuses because pending migra…
"Target database is not up to date"Fix Alembic "Target database is not up to date" in CI - autogenerate or a guarded command refuses to run beca…
Alembic "not up to date"Fix Alembic "Target database is not up to date" in CI - alembic revision --autogenerate refuses to run becaus…
"Conflicting migrations detected"Fix Django "Conflicting migrations detected; multiple leaf nodes in the migration graph" in CI - two branches…
"InconsistentMigrationHistory"Fix Django "InconsistentMigrationHistory: Migration X is applied before its dependency Y" in CI - applied his…
"Your models have changes ... no migrations"Fix Django "makemigrations --check --dry-run" failing in CI - a model change has no corresponding migration.…
"ProgrammingError: relation does not exist"Fix Django "ProgrammingError: relation X does not exist" in CI - code queries a table before migrations creat…
"table ... already exists" (Django)Fix Django "ProgrammingError: relation already exists" during migrate in CI - the schema exists but django_mi…
"You have N unapplied migration(s)"Fix Django "You have unapplied migration(s) ... run python manage.py migrate" in CI - the test database was n…
drizzle-kit "ECONNREFUSED"Fix drizzle-kit connection failures in CI - drizzle-kit push or migrate cannot reach the database (ECONNREFUS…
drizzle-kit "No schema changes"Understand drizzle-kit "No schema changes, nothing to migrate" in CI - generate found no diff against the sna…
drizzle-kit generate driftFix Drizzle CI drift where drizzle-kit generate produces new SQL the repo does not have - the committed migra…
"connection refused" (Ecto)Fix Elixir "mix ecto.migrate" failing with DBConnection.ConnectionError / connection refused in CI - Postgres…
"pending migrations" (Ecto)Fix Ecto "Migrations are pending" / migration_lock errors in CI - the test database has unapplied migrations.…
Ecto migration lockFix Ecto migration lock waits/timeouts in CI - Ecto takes an advisory lock so one migrator runs at a time; a…
Flyway "non-empty schema(s)"Fix Flyway "Found non-empty schema(s) ... but no schema history table" in CI - Flyway refuses to migrate an e…
Flyway "Migration ... failed"Fix Flyway "Migration V__ failed" with a SQL State and error code in CI - a statement inside a migration was…
Flyway "Unable to obtain connection"Fix Flyway "Unable to obtain connection from database" in CI - Flyway could not reach the JDBC URL, usually b…
Flyway "checksum mismatch"Fix Flyway "Validate failed: Migration checksum mismatch for migration version X" in CI - an already-applied…
"Migration table is already locked"Fix Knex "Migration table is already locked" in CI - a previous run died holding knex_migrations_lock, or two…
Knex "already locked"Fix Knex "Migration table is already locked" in CI - a previous run left the knex_migrations_lock row set, so…
"migration directory is corrupt"Fix Knex "The migration directory is corrupt, the following files are missing" in CI - a migration recorded i…
Knex "migration directory is corrupt"Fix Knex "The migration directory is corrupt, the following files are missing" in CI - the knex_migrations ta…
Liquibase "Waiting for changelog lock"Fix Liquibase "Could not acquire change log lock. Currently locked by ..." in CI - a previous run died holdin…
Liquibase "Unexpected error"Fix "Unexpected error running Liquibase" in CI - the wrapper message that precedes the real cause, such as a…
Liquibase "Validation Failed"Fix Liquibase "Validation Failed: ... computed checksum ... is different from the recorded checksum" in CI -…
"could not locate the Query Engine"Fix Prisma "Unable to require / could not locate the Query Engine" on Alpine in CI - the generated engine is…
"data loss" on db pushFix Prisma "prisma db push" aborting with a data-loss warning in non-interactive CI - a destructive schema ch…
Prisma Client "did not initialize yet"Fix Prisma "@prisma/client did not initialize yet. Please run prisma generate" in CI - the generated client i…
"Drift detected"Fix Prisma "Drift detected: your database schema is not in sync with your migration history" in CI - the data…
"Drift detected"Fix Prisma "Drift detected: your database schema is not in sync with your migration history" in CI - the data…
Prisma "Drift detected"Fix Prisma "Drift detected: your database schema is not in sync with your migration history" in CI - the actu…
"Environment variable not found: DATABASE_URL"Fix Prisma "Environment variable not found: DATABASE_URL" in CI - the datasource reads it and it was never se…
"Environment variable not found: DATABASE_URL"Fix Prisma "Environment variable not found: DATABASE_URL" in CI - the datasource reads DATABASE_URL from the…
Prisma "Environment variable not found"Fix Prisma "Environment variable not found: DATABASE_URL" in CI - the datasource url reads from env(DATABASE_…
"shadow database" / P3014Fix Prisma "P3014: Prisma Migrate could not create the shadow database" in CI - migrate dev needs CREATE DATA…
"P1001: Can't reach database server"Fix Prisma "P1001: Can't reach database server at host:port" in CI when the migrate step races a not-ready da…
"P1001: Can't reach database server"Fix Prisma "P1001: Can't reach database server at host:port" in CI - the migrate/deploy step cannot open a TC…
"P1017: Server has closed the connection"Fix Prisma "P1017: Server has closed the connection" during migrate in CI - the database dropped the connecti…
"P2024: pool timeout"Fix Prisma "P2024: Timed out fetching a new connection from the connection pool" around migrations in CI - th…
"P3009: migrate found failed migrations"Fix Prisma "P3009: migrate found failed migrations in the target database" in CI - a prior migration is recor…
"P3009: failed migrations"Fix Prisma "P3009: migrate found failed migrations in the target database" - a previous migration is recorded…
"P3014: could not create the shadow database"Fix Prisma "P3014: could not create the shadow database" in CI - the migration user lacks CREATE DATABASE, or…
"P3018: A migration failed to apply"Fix Prisma "P3018: A migration failed to apply" - the SQL in a migration errored against the target database…
"failed to fetch the engine"Fix Prisma "prisma generate" engine/binary download failures in CI - the query engine download from binaries.…
Prisma "P1001"Fix Prisma P1001 "Can't reach database server at host:port" in CI - migrate could not open a TCP connection t…
Prisma "P3009"Fix Prisma P3009 "migrate found failed migrations in the target database" in CI - a previous prisma migrate d…
Prisma "P3018"Fix Prisma P3018 "A migration failed to apply. New migrations cannot be applied before the error is recovered…
Prisma "shadow database" P3014Fix Prisma "Prisma Migrate could not create the shadow database" (P3014) in CI - the database user lacks perm…
"ActiveRecord::NoDatabaseError"Fix Rails "ActiveRecord::NoDatabaseError: database X does not exist" in CI - the database was never created.…
"ActiveRecord::PendingMigrationError"Fix Rails "ActiveRecord::PendingMigrationError: Migrations are pending" in CI - the test database has unappli…
"PendingMigrationError"Fix Rails "ActiveRecord::PendingMigrationError: Migrations are pending" in CI - the test or boot environment…
"Mysql2::Error"Fix Rails "Mysql2::Error" during db:migrate in CI - connection refused, access denied, or a DDL error from th…
"PG::ConnectionBad"Fix Rails "ActiveRecord::ConnectionNotEstablished / PG::ConnectionBad" during db:migrate in CI - ActiveRecord…
Migration lock/timeoutFix Rails migration timeouts and "Lock wait timeout exceeded" in CI - a long-running DDL or a blocked lock ma…
"ERROR: ... db:migrate"Fix "sequelize db:migrate" failures in CI - missing config/env (ConnectionRefused), a migration throwing, or…
"SequelizeConnectionRefusedError"Fix "SequelizeConnectionRefusedError: connect ECONNREFUSED" in CI - the database service is not ready or not…
"ENOENT" loading migrations (umzug)Fix Sequelize/Umzug "ENOENT: no such file or directory" in CI - the migrations path is wrong or empty in the…
TypeORM "Cannot use import statement"Fix TypeORM CLI "SyntaxError: Cannot use import statement outside a module" in CI - the TypeScript DataSource…
TypeORM "Connection ... not established"Fix TypeORM "DataSource is not set for this entity" / "Connection is not established" in CI - code used the D…
"No changes in database schema were found"Fix TypeORM "No changes in database schema were found - cannot generate a migration" in CI - entities not loa…
TypeORM "No migrations are pending"Understand TypeORM "No migrations are pending" in CI - migration:run found nothing to apply, which is a probl…
"No migrations are pending"Fix TypeORM where migration:show reports no pending migrations but the schema is wrong in CI - usually an ent…
"QueryFailedError: relation does not exist"Fix TypeORM "QueryFailedError: relation X does not exist" in CI - migrations were not run before queries, or…
TypeORM "QueryFailedError"Fix TypeORM "QueryFailedError: relation already exists" in CI - a migration tries to create a table that is a…
Migration tools
Flyway, Liquibase.
Atlas lint / atlas.sum mismatchFix Atlas "migrate lint" failures and "checksum mismatch" (atlas.sum) in CI - a migration file changed withou…
"could not connect" (dbmate)Fix dbmate connection failures in CI - DATABASE_URL unset/malformed or the database not ready. dbmate reads D…
"Detected failed migration to version"Fix Flyway "Detected failed migration to version X" in CI - a previous migrate left a failed entry in flyway_…
"resolved migration not applied"Fix Flyway "Detected resolved migration not applied to database" in CI - a lower-version migration arrived af…
"non-empty schema(s) without baseline"Fix Flyway "Found non-empty schema(s) ... but no schema history table" in CI - Flyway sees objects but no his…
"non-empty schema(s) without schema history"Fix Flyway "Found non-empty schema(s) ... but no schema history table" in CI - Flyway sees existing objects b…
"No value provided for placeholder"Fix Flyway "No value provided for placeholder expressions" in CI - a migration uses ${placeholder} but the va…
"Unable to obtain connection from database"Fix Flyway "Unable to obtain connection from database" in CI - the JDBC connect failed, usually a not-ready d…
"Unable to obtain connection"Fix Flyway "Unable to obtain connection from database" in CI - the JDBC connection failed, usually a not-read…
"Migration checksum mismatch"Fix Flyway "Validate failed: Migration checksum mismatch for version X" in CI - an applied migration file was…
"Migration checksum mismatch"Fix Flyway "Validate failed: Migration checksum mismatch for migration version X" in CI - an already-applied…
baselineOnMigrate skipped V1Fix Flyway baselineOnMigrate unexpectedly skipping early migrations in CI - the baseline version was set at/a…
"Dirty database version N"Fix golang-migrate "Dirty database version N. Fix and force version" in CI - a migration failed mid-apply and…
"Connection could not be created"Fix Liquibase "Connection could not be created to <jdbc-url>" in CI - the JDBC connect failed, usually a not-…
"Could not acquire change log lock"Fix Liquibase "Could not acquire change log lock" in CI - a prior run died holding DATABASECHANGELOGLOCK, or…
"diff" produced no changesFix Liquibase "diffChangeLog" producing an empty or incorrect changelog in CI - reference vs target databases…
"liquibase.exception.LockException"Fix "liquibase.exception.LockException: Could not acquire change log lock" in CI - Liquibase gave up acquirin…
"No inverse / rollback" failureFix Liquibase rollback failures in CI - "No inverse can be calculated" or a failing rollback block. Add an ex…
"Validation Failed: checksum"Fix Liquibase "Validation Failed: ... changeset checksums do not match" in CI - an already-ran changeset was…
"Validation Failed: checksum"Fix Liquibase "Validation Failed: ... checksums do not match" in CI - a ran changeset was edited, so its MD5S…
"Waiting for changelog lock"Fix Liquibase "Waiting for changelog lock...." hangs in CI - a previous run died holding the DATABASECHANGELO…
Changesets skipped (contexts/labels)Fix Liquibase changesets being silently skipped in CI because contexts or labels filtered them out - the upda…
"Deploy failed" (Sqitch)Fix Sqitch "deploy failed" in CI - a change script errored (Sqitch auto-reverts), or a required dependency/ta…
Database connections in CI
Postgres, MySQL, Redis, Mongo service-container errors.
ActiveMQ "Connection refused" (61616)Fix ActiveMQ "Could not connect to broker URL: tcp://localhost:61616 ... Connection refused" in CI - the Open…
Artemis AMQP "Connection refused" (5672)Fix ActiveMQ Artemis "AMQ219007: Cannot connect to server" / connection refused on 5672 in CI - the Artemis A…
"connection refused" on 8529Fix ArangoDB "connection refused" on port 8529 in CI - the server is still starting up when the driver tries…
"not authorized to execute this request"Fix ArangoDB "not authorized to execute this request" (HTTP 401) in CI - the request had missing or wrong roo…
"connection ... not allowed from your IP"Fix MongoDB Atlas "connection ... not allowed from your current IP address" in CI - the runner egress IP is n…
"Connection refused" on 9042Fix Cassandra "Connection refused" on port 9042 in CI - the service container is still bootstrapping its CQL…
"NoHostAvailable"Fix Cassandra "NoHostAvailable" raised by cassandra.cluster in CI - the driver tried every contact point and…
"schema agreement ... timed out"Fix Cassandra "Schema agreement not reached" / schema agreement timed out in CI - a DDL change could not prop…
"Authentication failed"Fix ClickHouse "Code: 516. DB::Exception: ... Authentication failed" in CI - the user or password the client…
"Connection refused" on 8123/9000Fix ClickHouse "Connection refused" on the HTTP (8123) or native (9000) port in CI - the server is still star…
"Table ... doesn't exist"Fix ClickHouse "Code: 60. DB::Exception: Table X doesn't exist" in CI - a query ran before schema migrations…
"connection refused" on 26257Fix CockroachDB "connection refused" on port 26257 in CI - the node is still starting (or not initialized) wh…
"relation ... does not exist"Fix CockroachDB "ERROR: relation X does not exist" in CI - a query ran against a table that migrations had no…
"restart transaction: TransactionRetryError"Fix CockroachDB "restart transaction: TransactionRetryError" in CI - a serializable transaction conflicted an…
"bucket ... not found"Fix Couchbase "bucket not found" in CI - the SDK opened a bucket that was never created during cluster initia…
"connection refused" on 8091Fix Couchbase "connection refused" on the management port 8091 in CI - the server is still starting or has no…
"non-existent table"Fix DynamoDB Local "ResourceNotFoundException: Cannot do operations on a non-existent table" in CI - the tabl…
"security token ... is invalid"Fix DynamoDB Local "UnrecognizedClientException: The security token included in the request is invalid" in CI…
"Connection refused" on 8000Fix DynamoDB Local "Unable to execute HTTP request ... Connection refused" on port 8000 in CI - the local Dyn…
"bootstrap checks failed"Fix Elasticsearch "bootstrap checks failed" when the service container starts in CI - the node bound a non-lo…
"circuit_breaking_exception ... Data too large"Fix Elasticsearch "circuit_breaking_exception ... Data too large" in CI - the parent circuit breaker tripped…
"FORBIDDEN/12/index read-only / allow delete"Fix Elasticsearch "cluster_block_exception ... blocked by: [FORBIDDEN/12/index read-only / allow delete (api)…
Elasticsearch "Connection refused" (not ready)Fix Elasticsearch connection refused in CI before the cluster is ready - the node takes 20-60s to start. Wait…
"index_not_found_exception"Fix Elasticsearch "index_not_found_exception" in CI - a search or write targeted an index that does not exist…
"mapper [X] cannot be changed"Fix Elasticsearch "illegal_argument_exception ... mapper [X] cannot be changed from type [Y] to [Z]" in CI -…
"mapper_parsing_exception"Fix Elasticsearch "mapper_parsing_exception" in CI - a document field does not match the index mapping, so pa…
"master_not_discovered_exception"Fix Elasticsearch "master_not_discovered_exception" in CI - a single node started without single-node discove…
Elasticsearch "vm.max_map_count is too low"Fix Elasticsearch "max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144…
"media_type_header_exception"Fix Elasticsearch "media_type_header_exception" and "Content-Type header ... not supported" in CI - an 8.x cl…
"missing authentication credentials for REST request"Fix Elasticsearch "missing authentication credentials for REST request" in CI - 8.x enables security by defau…
Elasticsearch "plaintext http on an https channel"Fix Elasticsearch "received plaintext http traffic on an https channel, closing connection" in CI - the clien…
"search_phase_execution_exception"Fix Elasticsearch "search_phase_execution_exception" in CI - a query failed during execution, often from sort…
"unable to authenticate user"Fix Elasticsearch "security_exception ... unable to authenticate user [elastic]" in CI - credentials were sen…
"unable to find valid certification path"Fix Elasticsearch "unable to find valid certification path to requested target" in CI - the 8.x self-signed H…
"discovery settings are unsuitable for production"Fix Elasticsearch "the default discovery settings are unsuitable for production use" in CI - a single-node se…
"version_conflict_engine_exception"Fix Elasticsearch "version_conflict_engine_exception" in CI - a write used optimistic concurrency control and…
"NoNodeAvailable" / "No living connections"Fix the Elasticsearch client "NoNodeAvailable" or "No living connections" in CI - every node in the client po…
Elasticsearch container "OOMKilled"Fix an Elasticsearch or OpenSearch service container that is OOMKilled in CI - the JVM heap default outgrows…
elasticsearch-py "ConnectionError"Fix the Elasticsearch Python client "ConnectionError" in CI - the client could not reach the node, usually be…
Wait for green/yellow before testsFix flaky Elasticsearch tests in CI by waiting for the cluster to reach yellow or green before connecting - t…
"ECONNREFUSED 127.0.0.1:6379"Fix Node "Error: connect ECONNREFUSED 127.0.0.1:6379" from ioredis or node-redis in CI - the client could not…
Kafka "Broker may not be available"Fix Kafka "Broker may not be available" and "NoBrokersAvailable" in CI - the client cannot complete the boots…
Kafka "Connection to node -1 could not be established"Fix Kafka "Connection to node -1 (localhost/127.0.0.1:9092) could not be established" in CI - the broker is n…
Kafka "GroupCoordinator is not available"Fix Kafka "CoordinatorNotAvailableException" / "The group coordinator is not available" in CI - the internal…
Kafka "Topic not present in metadata"Fix Kafka "TimeoutException: Topic X not present in metadata after 60000 ms" in CI - the producer waited for…
Kafka "UnknownTopicOrPartitionException"Fix Kafka "UnknownTopicOrPartitionException: This server does not host this topic-partition" in CI - the topi…
Kafka cannot connect to ZooKeeperFix Kafka "Timed out waiting for connection while in state: CONNECTING" to ZooKeeper in CI - the broker start…
MySQL "Access denied (using password: YES)"Fix MySQL/MariaDB "ERROR 1045 (28000): Access denied for user (using password: YES)" in CI - the user or pass…
"CLIENT_ERROR bad data chunk"Fix Memcached "CLIENT_ERROR bad data chunk" in CI - the client sent a value whose byte length did not match t…
Memcached "Connection refused" 11211Fix Memcached "Connection refused" on port 11211 in CI - the memcached service container is not ready yet or…
"error: memcached not running"Fix "error: memcached not running" in CI - the service failed to start (bad options or exited) so nothing is…
"SERVER_ERROR object too large for cache"Fix Memcached "SERVER_ERROR object too large for cache" in CI - the stored value exceeds the item size limit…
Migration races DB startupFix flaky CI where migrations race a database that has not finished starting - no healthcheck and no readines…
"$search ... not available"Fix MongoDB "$search is not allowed" / Atlas Search unavailable in CI - the $search aggregation stage needs A…
"atlas: command not found"Fix "atlas: command not found" in CI - the MongoDB Atlas CLI is not installed on the runner, so atlas command…
MongoDB "Authentication failed"Fix MongoDB "MongoServerError: Authentication failed" (code 18, bad auth) in CI - credentials or authSource a…
"Authentication failed."Fix MongoDB "MongoServerError: Authentication failed" in CI - SCRAM login was rejected because the username,…
"bad auth : Authentication failed"Fix MongoDB Atlas "bad auth : Authentication failed" in CI - the SRV connection reached Atlas but the databas…
"connection pool for ... was cleared"Fix MongoDB "connection pool for X was cleared because of another operation failure" and pool exhaustion warn…
"E11000 duplicate key error"Fix MongoDB "MongoServerError: E11000 duplicate key error collection" in CI - a write violated a unique index…
mongodb+srv SRV lookup failedFix MongoDB "querySrv ENOTFOUND" / "querySrv ETIMEOUT" for a mongodb+srv:// URI in CI - the driver could not…
MongoDB "MongoNetworkError ECONNREFUSED"Fix MongoDB "MongoNetworkError: connect ECONNREFUSED 127.0.0.1:27017" in CI - the step connects before the Mo…
"connect ECONNREFUSED 127.0.0.1:27017"Fix MongoDB "MongoNetworkError ... connect ECONNREFUSED 127.0.0.1:27017" in CI - the driver reached localhost…
"MongoNetworkError: connect ECONNREFUSED"Fix "MongoNetworkError: connect ECONNREFUSED 127.0.0.1:27017" in CI - the MongoDB service is not ready or not…
"MongoServerError: Authentication failed"Fix "MongoServerError: Authentication failed" in CI - MongoDB was reached but rejected the credentials or aut…
"getaddrinfo ENOTFOUND"Fix MongoDB "MongoServerSelectionError ... getaddrinfo ENOTFOUND" in CI - the driver could not resolve the cl…
"mongosh: command not found"Fix "mongosh: command not found" in CI - the MongoDB Shell is not installed on the runner, and it is a separa…
"Topology is closed"Fix MongoDB "MongoTopologyClosedError: Topology is closed" (formerly "Topology was destroyed") in CI - a quer…
"not authorized ... to execute command"Fix MongoDB "MongoServerError: not authorized on X to execute command" in CI - the user authenticated but lac…
"not primary and secondaryOk=false"Fix MongoDB "MongoServerError: not primary" (older: "not master") in CI - a write or read hit a node that is…
MongoDB "Server selection timed out"Fix MongoDB "MongoServerSelectionError: connection timed out" / "Server selection timed out after 30000 ms" i…
"Transaction numbers are only allowed on a replica set"Fix MongoDB "Transaction numbers are only allowed on a replica set member or mongos" in CI - a standalone mon…
Atlas "cluster not found"Fix MongoDB Atlas "CLUSTER_NOT_FOUND" / "cluster not found" in CI - the CLI or API targeted a cluster name or…
Atlas API "401 Unauthorized"Fix MongoDB Atlas Admin API / CLI "401 Unauthorized" in CI - the request lacked valid API key digest auth, us…
connect before "waiting for connections"Fix intermittent MongoDB connection failures in CI where the driver connects before mongod finishes startup a…
driver/server version incompatibleFix MongoDB driver-server incompatibility in CI - an old driver against a new server (or the reverse) fails w…
MongoDB TLS handshake failedFix MongoDB TLS handshake failures to Atlas in CI ("unable to get local issuer certificate") - the runner CA…
mongodb-memory-server "failed to start"Fix mongodb-memory-server "Instance failed to start" / startup timeout in CI - the downloaded mongod could no…
mongodb-memory-server download failedFix mongodb-memory-server "failed to download" / "Download failed" in CI - it could not fetch the mongod bina…
"MongooseServerSelectionError"Fix Mongoose "MongooseServerSelectionError: connect ECONNREFUSED" / timeout in CI - Mongoose could not select…
MQTT "Connection Refused: not authorised"Fix MQTT "Connection Refused: not authorised" in CI - Mosquitto requires credentials (allow_anonymous false)…
MQTT "connect ECONNREFUSED ... 1883"Fix MQTT "Error: connect ECONNREFUSED 127.0.0.1:1883" in CI - the Mosquitto broker is not listening yet becau…
MySQL "Connection refused" (not ready)Fix MySQL connection refused in CI before the server logs "ready for connections" - the test step starts befo…
"ERROR 1045: Access denied for user"Fix MySQL "ERROR 1045 (28000): Access denied for user" in CI - wrong password or missing grant. A determinist…
"ERROR 2002: Can't connect through socket"Fix MySQL "ERROR 2002 (HY000): Can't connect ... through socket" in CI - the client tried a local socket inst…
"ERROR 2003: Can't connect to MySQL server on host"Fix MySQL "ERROR 2003 (HY000): Can't connect to MySQL server on host" in CI - the TCP connect failed, usually…
MySQL "Host is not allowed to connect"Fix MySQL "Host \"172.x.x.x\" is not allowed to connect to this MySQL server" in CI - the user has no grant f…
MySQL "Lost connection during query"Fix MySQL "ERROR 2013 (HY000): Lost connection to MySQL server during query" in CI - the connection dropped m…
MySQL first-boot init raceFix flaky MySQL CI from the first-boot init race - MySQL logs "ready for connections" twice and connecting du…
NATS "Authorization Violation"Fix NATS "nats: Authorization Violation" in CI - the server requires authentication and the client sent no cr…
NATS "connection refused" (4222)Fix NATS "dial tcp 127.0.0.1:4222: connect: connection refused" in CI - nothing is listening on 4222 because…
NATS "nats: timeout"Fix NATS "nats: timeout" in CI - a connect, request, or flush did not complete within the deadline, usually b…
NATS "no servers available for connection"Fix NATS "nats: no servers available for connection" in CI - the client exhausted its server list without a s…
"Failed to connect to ... 7687"Fix Neo4j "Failed to connect to localhost:7687" in CI - the Bolt port is not yet listening because the servic…
"Security.Unauthorized"Fix Neo4j "Neo.ClientError.Security.Unauthorized: The client is unauthorized due to authentication failure" i…
"ServiceUnavailable" (defunct connection)Fix Neo4j "ServiceUnavailable: Unable to retrieve routing information" / "defunct connection" in CI - the dri…
Neon "branch already exists"Fix Neon "branch with name X already exists" in CI - a rerun tries to recreate a branch that a prior run left…
Neon "endpoint not found"Fix Neon "endpoint X not found" / could not resolve host in CI - the branch or its compute endpoint was delet…
Neon "password authentication failed"Fix Neon "password authentication failed for user" in CI - the pooled and direct connection strings differ, a…
Neon "SSL connection is required"Fix Neon "SSL connection is required" / "no encryption" in CI - Neon only accepts TLS connections, so the con…
Neon "too many connections"Fix Neon "sorry, too many clients already" / "too many connections" in CI - a serverless compute has a small…
Neon compute "suspended" cold startFix Neon connection timeouts when the compute is suspended in CI - a scale-to-zero compute needs a moment to…
Neon migrations hit the wrong branchFix Neon migrations applying to main instead of the ephemeral PR branch in CI - the migration step used the d…
neonctl "not authenticated"Fix neonctl "not authenticated" / "You are not authenticated" in CI - the Neon CLI has no interactive browser…
OpenSearch demo security blocks CI requestsFix OpenSearch requests failing over TLS with authorization errors in CI - the default demo security config s…
"OpenSearch Security not initialized"Fix OpenSearch "OpenSearch Security not initialized (SG11)" in CI - the security plugin has not loaded its co…
OpenSearch "Security not initialized"Fix OpenSearch "OpenSearch Security not initialized (SG11)" / 503 in CI - the security plugin index is not ye…
"the server is not a supported distribution"Fix "The client noticed that the server is not a supported distribution" in CI - the official Elasticsearch c…
PlanetScale "connection requires TLS"Fix PlanetScale connections rejected for missing TLS in CI - PlanetScale enforces encrypted MySQL connections…
PlanetScale "Error 1045: Access denied"Fix MySQL "Error 1045: Access denied for user" against PlanetScale in CI - the connection password was create…
pscale deploy request failedFix PlanetScale "deploy request" failures in CI - a schema change on a branch could not be deployed to the ba…
PlanetScale foreign key not supportedFix PlanetScale migrations that fail on foreign keys in CI - Vitess-backed databases historically reject FK c…
"could not connect to server: Connection refused"Fix libpq "could not connect to server: Connection refused" in CI - the client could not reach Postgres, usua…
"could not translate host name"Fix Postgres "could not translate host name 'postgres'" in CI - DNS cannot resolve the service name. Use the…
"database X does not exist"Fix Postgres "FATAL: database X does not exist" in CI - the connection succeeded but the named database was n…
"password authentication failed for user"Fix Postgres "FATAL: password authentication failed for user" in CI - the server was reached but the password…
"sorry, too many clients already"Fix Postgres "FATAL: sorry, too many clients already" in CI - connections hit max_connections, usually parall…
"SSL connection is required"Fix Postgres "SSL connection is required" / "no pg_hba.conf entry ... SSL off" in CI - the server requires TL…
Postgres locale/encoding init failureFix Postgres service container init failures from an invalid locale/encoding in CI - initdb aborts so the dat…
Postgres "Connection refused" (not ready)Fix PostgreSQL "could not connect to server: Connection refused" in CI - the test step starts before the Post…
Postgres "password authentication failed"Fix PostgreSQL "FATAL: password authentication failed for user" in CI - the password your app sends does not…
Postgres "FATAL: role does not exist"Fix PostgreSQL "FATAL: role \"X\" does not exist" in CI - the user your app connects as was never created in…
Postgres "sorry, too many clients already"Fix PostgreSQL "FATAL: sorry, too many clients already" in CI - open connections reached max_connections. Low…
Postgres "database system is starting up"Fix PostgreSQL "FATAL: the database system is starting up" in CI - the port is open but the server is still i…
pscale "branch not found"Fix pscale "database branch X not found" in CI - the per-PR branch was never created, was deleted, or the wro…
pscale "not authenticated"Fix pscale "not authenticated" in CI - the PlanetScale CLI cannot open a browser login, so it needs a service…
pscale connect "branch not found"Fix "pscale connect" failing with branch not found in CI - the local proxy could not bind because the branch…
"connection to server ... Connection refused"Fix psql "connection to server ... Connection refused" in CI when a Postgres service container has not finish…
Pulsar "AuthenticationException"Fix Pulsar "AuthenticationException: Failed to authenticate" in CI - the broker requires authentication and t…
Pulsar "Connection refused" (6650)Fix Pulsar "Connection refused: localhost/127.0.0.1:6650" in CI - the broker binary port is not open yet beca…
Pulsar "Failed to get partitioned topic metadata"Fix Pulsar "Failed to get partitioned topic metadata" in CI - the lookup to the broker could not complete bec…
Pulsar "TopicNotFound"Fix Pulsar "TopicNotFoundException: Topic not found" in CI - a consumer subscribed to a topic that does not e…
pymemcache connection failureFix pymemcache and python-memcached connection failures in CI - the client could not reach the memcached serv…
RabbitMQ "ACCESS_REFUSED - Login was refused"Fix RabbitMQ "ACCESS_REFUSED - Login was refused using authentication mechanism PLAIN" in CI - the user/passw…
RabbitMQ vhost not foundFix RabbitMQ "ACCESS_REFUSED - vhost X not found" / "no access to this vhost" in CI - the connection requeste…
RabbitMQ "Connection refused" (not ready)Fix RabbitMQ "Connection refused - connect(2) for \"localhost\" port 5672" in CI - the step connects before t…
RabbitMQ "NOT_FOUND - no exchange"Fix RabbitMQ "NOT_FOUND - no exchange X in vhost /" in CI - a publish or bind referenced an exchange that was…
RabbitMQ "PRECONDITION_FAILED - durable"Fix RabbitMQ "PRECONDITION_FAILED - inequivalent arg durable for queue" in CI - a redeclare used different du…
Redis "Connection refused" (not ready)Fix Redis "Could not connect to Redis at 127.0.0.1:6379: Connection refused" in CI - the step runs before the…
"Redis connection refused 127.0.0.1:6379"Fix Redis "connect ECONNREFUSED 127.0.0.1:6379" in CI - the Redis service is not ready or not reachable on th…
"ERR unknown command"Fix Redis "ERR unknown command" in CI - the command needs a newer Redis version than the service image pins,…
"wrong number of arguments for command"Fix Redis "ERR wrong number of arguments for 'set' command" in CI - the command was called with too few or to…
"LOADING Redis is loading the dataset in memory"Fix Redis "LOADING Redis is loading the dataset in memory" in CI - the server is still reading an RDB/AOF on…
"MISCONF Redis is configured to save RDB snapshots"Fix Redis "MISCONF Redis is configured to save RDB snapshots, but it's currently unable to persist" in CI - a…
"Name or service not known"Fix "Could not connect to Redis at redis:6379: Name or service not known" in CI - the Redis service hostname…
"NOAUTH Authentication required"Fix Redis "NOAUTH Authentication required." in CI - the server was started with a password (requirepass) but…
Redis "NOAUTH Authentication required"Fix Redis "NOAUTH Authentication required" in CI - the Redis container requires a password but the client con…
"OOM command not allowed when used memory > maxmemory"Fix Redis "OOM command not allowed when used memory > maxmemory" in CI - Redis hit its maxmemory limit under…
"READONLY You can't write against a read only replica"Fix Redis "READONLY You can't write against a read only replica." in CI - a write hit a replica because repli…
Redis "READONLY ... read only replica"Fix Redis "READONLY You can't write against a read only replica" in CI - writes hit a replica node. Point the…
"WRONGPASS invalid username-password pair"Fix Redis "WRONGPASS invalid username-password pair or user is disabled" in CI - the client sent AUTH but wit…
Redis "WRONGPASS invalid username-password"Fix Redis "WRONGPASS invalid username-password pair or user is disabled" in CI - the AUTH credentials do not…
Redis "WRONGTYPE Operation against a key"Fix Redis "WRONGTYPE Operation against a key holding the wrong kind of value" in CI - a stream command ran ag…
"CROSSSLOT Keys ... don't hash to the same slot"Fix Redis Cluster "CROSSSLOT Keys in request don't hash to the same slot" in CI - a multi-key command spanned…
Redis "BUSYGROUP Consumer Group name already exists"Fix Redis "BUSYGROUP Consumer Group name already exists" in CI - XGROUP CREATE ran twice on the same stream.…
Redis "NOGROUP No such key or consumer group"Fix Redis "NOGROUP No such key X or consumer group Y in XREADGROUP" in CI - the stream key or the consumer gr…
rediss:// TLS handshake failsFix Redis TLS handshake failures with rediss:// in CI - the client used plaintext against a TLS port, or coul…
Redis unix socket "No such file or directory"Fix Redis unix socket connection failures in CI - the client used a unixsocket path but the service exposes o…
"Error 111 connecting to localhost:6379"Fix redis-cli "Error 111 connecting to localhost:6379. Connection refused" in CI - the Redis service containe…
"redis.exceptions.ConnectionError"Fix "redis.exceptions.ConnectionError: Error 111 connecting to localhost:6379" from the redis-py client in CI…
ScyllaDB "NoHostAvailable"Fix ScyllaDB "NoHostAvailable" in CI - the CQL driver could not reach any Scylla node, usually because the co…
"database is locked"Fix SQLite "database is locked" / SQLITE_BUSY in CI - concurrent writers contend for the single-writer lock,…
supabase "db push" failedFix "supabase db push" failures in CI - the migration could not apply to the remote database because of a bad…
supabase "not logged in"Fix Supabase CLI "You need to be logged in" in CI - the CLI cannot open a browser login, so set SUPABASE_ACCE…
supabase "project not linked"Fix Supabase "Cannot find project ref. Have you run supabase link?" in CI - the CLI needs the project ref lin…
Supabase migration driftFix Supabase migration drift in CI - the remote database schema no longer matches the migrations directory, s…
supabase start Docker errorFix "supabase start" failing in CI - the local Supabase stack needs a running Docker daemon and free ports; a…
"could not access file timescaledb"Fix TimescaleDB "could not open extension control file" / "extension timescaledb is not available" in CI - th…
"shared_preload_libraries" not setFix TimescaleDB "The timescaledb extension is not preloaded" in CI - the extension was not added to shared_pr…
turso "database not found"Fix Turso "database X not found" in CI - the per-PR database was not created, was already destroyed, or the c…
turso "not logged in"Fix Turso CLI "You are not logged in" in CI - the CLI needs a non-interactive token via TURSO_API_TOKEN becau…
Turso libsql connection failedFix libsql connection failures to Turso in CI - the client needs both the libsql:// database URL and a fresh…
Valkey vs Redis client compatibilityFix connection and version issues when a CI service runs Valkey instead of Redis - the RESP protocol is compa…
"Ready to accept connections" waitFix flaky first-connection failures in CI by waiting for Redis "Ready to accept connections" - poll redis-cli…
Explore other topics
GitHub ActionsWorkflow, runner, and YAML errors - diagnosed and fixed.
Node.js & npmnpm, yarn, and pnpm failures in CI - solved.
DockerBuild, run, compose, and registry errors - explained.
Pythonpip, poetry, venv, and pytest failures - fixed.
Java & JVMMaven, Gradle, and JVM failures in CI - resolved.
GoGo build, module, and test failures - diagnosed.