Database Failed To Provision

database-failed · 409

The database failed to provision in this environment, so there is nothing for a tunnel to reach.

service and environment name the database and the environment it was asked in. The CLI exits with code 5.

Besides the members every error carries, this type adds service and environment.

Common causes

  • Provisioning the database in this environment stopped on an error.

How to fix the call

  • Retry provisioning, then connect once the database is ready. ghaym cloud services retry-provisioning <service> retries production only; for any other environment, send POST /v1/services/<id>/provisioning/retry?environmentId=<environment>.
  • If it fails again, tell the user, quoting detail.

Example response

json
{
  "type": "database-failed",
  "title": "Database Failed To Provision",
  "detail": "orders-db failed to provision in staging.",
  "service": "orders-db",
  "environment": "staging",
  "requestId": "req-1785231000000-4f7b2c9ae",
  "timestamp": "2026-07-28T09:30:00.000Z",
  "path": "/v1/services/0199e0a3-6f21-7c4a-9d18-2b7c5f3ad401/tunnels",
  "method": "POST",
  "instance": "POST /v1/services/0199e0a3-6f21-7c4a-9d18-2b7c5f3ad401/tunnels",
  "status": 409,
  "docs": "https://ghaym.me/docs/errors/database-failed"
}