Troubleshooting managed databases
Every state the console shows for a managed database, and every common connection error, has a heading here. The console links straight to them. Errors that belong to one engine are on that engine's page.
States in the console
No databases yet
Your project has no managed database. Choose Create and pick an engine. Which one to choose: Databases. If you only need a small database for a game server or a website, the included databases that come with your subscription may already be enough.
Not available on this deployment
The engine is not offered here. Zaroz Cloud can be run with fewer features than another deployment, and an engine that is not set up is simply absent: you will not find it under Create, and its address answers isn't available on this deployment (404 capability-not-available). Ask the API what is offered with GET /managed-databases/availability; each engine says whether it is offered and, when it is not, why (not_configured, no_region, no_image).
Provisioning
The database is being created. The console lists the steps (scheduling, creating storage, initializing, configuring TLS and users, ready) with the time spent so far. The connection details are shown greyed out until the database is ready. If a step takes more than ten minutes, the console says so and staff are told; you do not need to open a ticket.
Hibernated
The subscription is unpaid. The database refuses connections, but your data is kept until the date the banner shows. Pay the invoice from the banner and the database starts again with all its data. While it is hibernated, data, users and connection details are read-only.
Maintenance or restore in progress
An operation is running: a restore, an upgrade, a resize or maintenance. The banner shows its step and progress. Actions that would clash with it are disabled and say which operation they are waiting for. Try again when it finishes; nothing is lost by waiting.
Degraded
An alert is firing: the disk is filling up, the database is close to its connection limit, a copy is behind, or backups are failing. The overview names the alert and offers the fix (for example, grow the storage). Health goes back to normal by itself when the cause is gone. See Disk almost full and Too many connections.
Unreachable
The console cannot reach your database right now. It shows when it was last healthy, a Retry button and the instance status. Usually the database is restarting (after maintenance or a failover) and comes back within a minute or two. If it stays unreachable, open a ticket with the database's id.
Stored credentials rejected
The console reached the database, but the password it holds was refused (database_auth_failed). This happens when the default user's password was changed from inside the database, outside Zaroz. Reset the password on the Users or Connect tab, then update your apps (linked variables update on the app's next restart).
No data yet
The database has no tables (or no keys) yet. Create them from your app or with the snippet the console shows, or Import a dump.
Metrics have no data yet
Metrics are being collected. The first points appear within two minutes of the database starting. A hibernated or stopped database has no new points.
No logs
No logs match means your filter hides everything: choose Clear filters. Nothing logged yet means the database wrote nothing in the time range shown; widen the range.
No backups yet
The first automatic backup runs in the first backup window after creation, usually the coming night. Use Back up now if you want one straight away.
Permission denied
Your role does not include what this action needs. The message names the missing permission. Owners and admins of your organization can grant it (Members and roles).
Operation failed
An operation (an upgrade, a restore, an import) failed. Its card shows the database's own error message word for word, what was rolled back (for example, your database was left on its previous version), a Retry button where retrying is safe, and Contact support with the operation id filled in. A failed operation never leaves the database half changed.
Action refused
Some actions are refused before they start, with a reason:
| Refusal | Why | What to do |
|---|---|---|
| Storage can only grow | A volume cannot shrink without losing data | Keep the size, or export the data into a new, smaller database |
| Versions can only go up | A downgrade cannot keep your data consistent | Restore a backup taken before the upgrade |
| High availability is not possible in this region | The region has too few servers to keep copies apart | Choose another region for a highly available database |
| Deletion protection is on | The database is protected | Turn Deletion protection off in Settings, then delete |
| Another operation is running | One change at a time | Wait for it to finish |
Connection errors
TLS required
SSL required, no pg_hba.conf entry ... no encryption, SSL connection error or a connection closed right after connecting: your client tried to connect without TLS. Every Zaroz database requires it. Use the snippet for your client on the engine's Connect page (for PostgreSQL, Connect to PostgreSQL); it turns TLS on and verifies the server.
Certificate not trusted
SELF_SIGNED_CERT_IN_CHAIN, certificate verify failed, unable to get local issuer certificate, ENOENT ... zaroz-ca.pem: your client does not have the Zaroz certificate. In an app on Zaroz, the certificate is at /etc/zaroz/ca/database-ca.pem; restart the app if it was created before the certificate was mounted. Elsewhere, download it from the Connect tab and give your client its full path. Details: Connect an app to a managed database.
Never fix this with sslmode=no-verify, rejectUnauthorized: false or a setting that skips verification: it removes the check that protects you.
Host name mismatch
hostname mismatch, does not match host name, ERR_TLS_CERT_ALTNAME_INVALID: you connect to an address the certificate does not cover, such as an IP address. Use the exact address the Connect tab shows.
Too many connections
too many connections, sorry, too many clients already, remaining connection slots are reserved: every connection slot is in use. Usually an app opens a new connection per request, or several app copies each keep a large pool. Fix it in this order:
- Use a connection pool in your app and keep it small (5 to 10 per app copy is plenty for most apps).
- Close connections you do not need; check for leaks in long-running workers.
- For PostgreSQL, turn on the connection pooler and connect through its address.
- Move to a larger plan, which raises the limit.
Password refused
password authentication failed: the user name or password is wrong. Copy them again from the Connect tab (Reveal). After a password rotation the old password stops working, at once or after the grace period you chose. Apps that use linked variables pick up the new password on their next restart.
Disk almost full
The storage alert warns at 80 percent and is critical at 90 percent. Grow the storage in Settings (it can grow, never shrink), or delete data you do not need. A database that runs out of disk stops accepting writes.
Timeouts from outside
The connection hangs and then times out from your laptop or another cloud, while apps on Zaroz connect fine:
- Public access is off: turn it on in Settings > Network. Apps in the same project never need it.
- Allowed sources is set and your address is not in it: add your public IP address (or your CI runner's range) to the list.
- You use the internal address (the short name) from outside Zaroz: use the public address the Connect tab shows once public access is on.
