Nextcloud high availability

Rehearse Nextcloud failover on an existing standby deployment. Check database and file consistency, client sync and recovery objectives.

Last updated

On this page (6)

Nextcloud · High availability

Before you start

  • A working standby or multi-node deployment, the operator’s approved failover and failback procedure, and agreed limits for outage and data loss. A second web server alone is not high availability.
  • A staging or approved maintenance window, test users and desktop sync clients.
  • An inventory covering the proxy, database, primary file storage, sessions and Redis locking, with recovery ownership recorded for each. The procedure below assumes an existing deployment with authoritative storage available after failover; it does not convert an existing data directory to object storage.

Check shared state before routing traffic

In a deployment with multiple application nodes, keep Nextcloud and app versions in step. The nodes must see a consistent database and primary file store. If this is an S3 primary-storage deployment, the bucket holds file contents but Nextcloud’s database holds their metadata; promoting one side without the corresponding state on the other can leave files unreadable. Check that the selected file-locking backend is reachable from all active nodes and that browser sessions work when a request moves between nodes.

Rehearse a failover

  1. Record a baseline: upload a file with a known checksum, sync it to a second client and share it with a test user. Confirm the standby can serve the same public hostname and HTTPS scheme behind the proxy; verify trusted proxy settings rather than trusting arbitrary forwarded headers.
  2. Have the operator execute the approved standby transition. Confirm which side is allowed to write before returning it to users; never allow two independently promoted copies to accept writes against divergent state.
  3. Repeat sync, file reads, writes and sharing after the transition. Then use only the approved failback procedure and repeat at least one write and a read from a different client.

Verify the result

  • Public URL and login work; existing test files and shares survive; a new write syncs and can be reopened by another client without checksum drift.
  • Record outage and missing writes against agreed objectives, and record any uncovered single points of failure rather than inferring that the option covers every dependency.

Official documentation

Have Pilae operate Nextcloud

We agree what to monitor, how to recover and who responds when something breaks. Bring your existing deployment or start with a new one.