# Failures

> What happens when each part of Sypnia Git fails, and what you see.

Applies to: the Sypnia engine (open source, self-hosted) and Sypnia Cloud (paid service).  
Source: https://git.docs.sypnia.com/architecture/failures/

For agents: Engine down → pushes and clones fail with 503, the web shows read-only from cache where possible; layer down → web/API fail, SSH keeps working for known keys (short cache); disk lost → restore from last nightly bundle + replay of the day's pushes from the event log (target RPO ≤ 24 h first, then minutes with replication); webhook target down → retries 24 h; GitHub down → mirror queued, retried; import interrupted → resumes (idempotent); Postgres failover → seconds of errors.

| What fails                | What happens                                                                                                      | What you see                                |
| ------------------------- | ----------------------------------------------------------------------------------------------------------------- | ------------------------------------------- |
| **The git engine**        | pushes and clones fail until it is back                                                                           | `503`; the web shows what it can from cache |
| **Sypnia's layer**        | the web and the API fail; SSH keeps working for keys it already knows                                             | errors in the browser                       |
| **A disk**                | the repositories are restored from the last nightly bundle, then the day's pushes are replayed from the event log | a short read-only period                    |
| **Your webhook's server** | retried for 24 hours                                                                                              | failed deliveries, ready to resend          |
| **GitHub**                | mirror updates wait in the queue                                                                                  | «Mirror behind» on the repository           |
| **An import**             | it resumes where it stopped                                                                                       | the import's progress                       |

Backups start at one full copy a day, plus the event log; replication between disks will bring the possible loss down to minutes.
