The connection string
The connection string does not parse
The form reads the string as you type and says what stops it:Midplane connects to Postgres and MySQL for now
The string names another engine. Ask for it with Request a source on Sources.Reaching the database
The database did not answer
Nothing answered within 10 seconds, the connection was refused, or the host name didn’t resolve.- Check the host and port, and that any firewall or security group allows your region’s egress addresses.
- A private database, or a name that resolves only inside your network, needs an SSH bastion: RDS unless publicly accessible, and Fly Managed Postgres always (Fly).
- A Neon compute that scaled to zero wakes on the first try: Test again.
The database does not offer TLS
Midplane connects only over TLS, whateversslmode says. Turn TLS on in
the database: on your own Postgres, ssl = on with a certificate and key
(your own server).
The secure connection failed
TLS failed other than on the certificate: no shared version (Midplane needs TLS 1.2 or later), the server wants a client certificate (Midplane presents none), or something in front of the database doesn’t speak TLS.The database certificate did not verify
The source needs a verified certificate: its string asks for one, or it verified before (how Midplane decides).- Paste the CA that signed it, in the form or under Credentials (get it verified).
- Connect by the name on the certificate, not an IP address or alias, even through a bastion.
- To accept a new source unverified, take
verify-caorverify-full(MySQLVERIFY_CA,VERIFY_IDENTITY) out of the string. A source that verified once can’t go back.
Signing in
The database refused that user or password
- Check them, percent-encoded (
@is%40). Use a password, not an expiring token such as RDS IAM’s. - The user is
postgres.<project ref>on Supabase’s pooler,<role>.<branch id>on PlanetScale Postgres. - Postgres needs a
hostsslline inpg_hba.conffor this user (allowlists), and no client certificate required. - On MySQL, a partly run role script leaves its account locked: run it whole again. A user without access to the database is refused too.
The database named in the connection string does not exist
Check the name after the last/, as the server spells it. With none,
Postgres uses the database named like the user. Hosts make one:
postgres on Supabase, neondb on Neon.
Midplane needs a newer MySQL
Midplane checks every MySQL query’s plan withEXPLAIN format 2, which
MySQL added in 8.3. It refuses MySQL 8.2 and older, Aurora MySQL (version 3
is MySQL 8.0) and MariaDB. Upgrade to MySQL 8.4, or connect a replica that
runs it; for MariaDB, use Request a source.
SSH bastions
The SSH bastion did not answer
Check Bastion host and Port, that its SSH server runs, and that its firewall lets your region’s egress addresses in.The SSH bastion refused the Midplane key
- Add the form’s line to
~/.ssh/authorized_keysof the user in User (SSH bastions). ~/.sshmust be700and the file600, owned by that user.- Some systems refuse key logins to an account whose password is locked.
- OpenSSH before 7.2 doesn’t know
restrictand skips the line.
The SSH bastion host key changed
The bastion’s host key isn’t the one Midplane pinned (the pinned host key). If you didn’t replace the bastion or its keys, something else may be answering. If you did, remove the source and connect it again with a new key, then review it and set its access again: a source’s bastion can’t be changed yet.The SSH bastion could not reach the database
- Check the bastion resolves and reaches the connection string’s host and
port (
nc -vz db.internal 5432on the bastion). sshd_configmust allowAllowTcpForwarding, and anyPermitOpenmust include the database.- The line’s
permitopenmust match the string’s host and port: copy it again after changing the string.
The role
The role cannot log in yet
Midplane couldn’t log in as the role the latest script makes.- Run the latest script, whole, in the source’s database (the role script).
- On a read replica, wait for the role to arrive from the primary, then switch again.
- If
pg_hba.confnames users, add the role. - On PlanetScale Postgres, use a dashboard role instead (PlanetScale).
Make the role script first
No role is waiting: none was made, or the source already switched to it. Select Make the script.Credentials and names
That connection string names another database
Credentials replaces the user or password for the same engine, host, port and database, since the review and access were made for it. Connect another database as a new source.The CA certificate could not be read
Paste it as PEM text,-----BEGIN CERTIFICATE----- and -----END CERTIFICATE----- included. Convert a binary .der or .cer with
openssl x509 -inform der -in ca.cer -out ca.pem.
A source with that name exists
Give this source another Name.There is no such source in this workspace
Someone removed it, or you are in another workspace. Open Sources.The connection test failed
Something else: the server had too many connections, was starting or stopping, or wouldn’t show its catalog. Test again. If it lasts, check the database’s log; on Postgres, Midplane’s connections setapplication_name to midplane.
What a source shows
A source is not answering
A failed test, query or catalog read (every 5 minutes) marks it Not answering, with one of the sentences above; agents asking it are told the same. Fix what it names, then Test again.Encrypted, not verified
TLS, but the certificate didn’t verify: unknown authority, self-signed, the wrong name or expired (get it verified).Role can do more than read
The user Midplane connects as could write or change the database, though Midplane still only reads. Run the role script, or use your host’s read-only user (when you cannot run the script). After a switch, what’s left is named, such aspublic on
Postgres 14 and older.