# Troubleshoot email and the local stack

Diagnose a certificate warning, missing email, unsupported SQL, or a connection that fails.

## Chrome shows a certificate warning

The local launcher generates a self-signed certificate for loopback. The browser warning means Chrome cannot establish trust in that certificate. Identify the exact certificate generated by your checkout:

```sh
openssl x509 -in .local/dev/console.crt -noout -fingerprint -sha256
```

Check that the address matches the loopback URL printed by the launcher and compare the SHA-256 fingerprint before trusting the certificate. A different fingerprint or address should be investigated. The CLI can verify this specific certificate via `DURAPOST_CA_FILE`.

## A signup or invitation email is missing

On the hosted pilot, use the invited address and check its spam folder. If a signup link expired, request a new one and open the newest email in the same browser. For an expired invitation, ask the sender to resend it.

For a local stack, use the recipient address and its state directory:

```sh
node console/scripts/mail.mjs owner@example.test "$PWD/.local/dev/control"
```

This reads synthetic mail from disk. Use the latest matching link and open it in the intended browser profile. A second local stack has its own mailbox.

## psql cannot connect

Check that the database is **Ready**, the relay process is running, and its bind address and port match the command in the console. If the port is in use, stop the stale relay or use an available port and update the client. If authentication fails after a password rotation, use the newly issued password. For TLS gateway failures, check the exact CA file and use `sslmode=verify-full`.

## A query returns a different result

Save the smallest SQL statement that shows the difference, its setup, the observed value or SQLSTATE, and the expected PostgreSQL version. Run it on a disposable instance. Check the [compatibility guide](/docs/compatibility) before assuming the behavior is covered by the verified fixtures.

[Return to local setup](/docs/quickstart) · [Connect with psql](/docs/connect)
