Skip to content

v0.21.0.

Complete release notes · 2026-11-29. Read upgrade instructions and runtime limits before deploying.

Highlights

  • A PostgreSQL database can have a standby replica, on the panel host or on a node, that is promoted by hand or takes over by itself when the primary does not come back.
  • Deploy Django, Rails, Express, Astro, Go, Spring Boot or a static site from a local folder, with seven new framework starters beside the three of 0.20.0.
  • A service can deploy by asking its Git server for new commits, for a repository whose host cannot reach the panel with a webhook.

Action needed: No.

Added

  • A standby replica of a database on a node. A PostgreSQL database that lives on a node can have a standby, beside it on the same node, from the same card and the same commands as one on the panel host (ninedeploy databases standby create <id>, POST /v1/databases/:id/standby): built, promoted by hand or by the automatic failover, built again after it takes over, removed and finalized. It needs the node's agent 0.21.0 or newer (db.standby); a node whose agent is older, or that cannot be reached, says so on the card and nothing is built. The standby runs on the database's own bridge, so its services keep their hostname after a promotion. A database that was promoted on a node keeps the archive its primary wrote, and every archive operation on the node names it from then on. The node's retention keeps the base backup a live standby still replays from, as the panel host's does. A node that cannot be reached, or whose Docker cannot answer, is never judged by the automatic failover.
  • Automatic failover of a standby. A standby can be armed (Arm automatic failover on the card, ninedeploy databases standby auto-failover <id> on, or PUT /v1/databases/:id/standby): the panel asks the primary every thirty seconds. One that does not answer and whose container was stopped is started again, so a primary that comes back loses nothing; one that is still gone two minutes after it was first seen so (its container not running, gone, or restarting again and again), or one whose container runs without answering for ten minutes, hands the database to the standby without the handover. What the primary had not archived is then missing; the row, the audit log and the Doctor say what the panel saw, and that the database has no standby now. Nothing is judged of a database whose row does not say running, while Docker does not answer, during an upgrade, or onto a standby that does not answer; a restart of the panel starts the two minutes again. After the promotion of an armed standby a new one is built at once, from the base backup the promotion takes, and armed, so that the database is not left without one; after three automatic failovers of one database in 24 hours it is built and left unarmed, and the Doctor says so. The waits are yours to set per standby, on the card, with ninedeploy databases standby waits or when the standby is created: how long a primary must be gone, how long one whose container only does not answer is given, and after how many automatic failovers a day the standby built again is left unarmed. Two minutes, ten minutes and three by default.
  • A standby replica of a PostgreSQL database, promoted by hand. Database → Backups → Standby replica builds a second copy of the database on the panel host from its WAL archive (point-in-time recovery must be on) and keeps it replaying: a committed change is on it within about a minute. Promote the standby hands over without losing anything committed (the primary is made read-only, its last WAL reaches the standby, and the standby takes its name, hostname and password), or without the handover when the primary does not answer, saying what is missing. The volume the database ran on before is kept until you delete it. Point-in-time recovery goes on across the promotion, on a new timeline. A standby on a node, streaming replication and Redis/Valkey are not part of this. ninedeploy databases standby status|create|auto-failover|remove|promote|finalize.
  • A database without a version is shown, and its release can be named before its first start. A database created before 0.18.28 without a version, whose volume was not created by the default image, was left alone by the version pin on purpose: the panel could not tell which release its data runs, and its next Start ran the default (for MySQL, MariaDB and MongoDB an in-place upgrade with no way back), without a word. The Doctor now names it, the database page gets a Version card, and ninedeploy databases version show and set read or name the release from a short list (the engine's known releases, the one that created the volume, today's default). A name is provisional until the server has run on it: the first Start tries it, and one the server does not stay up in is undone with the reason, so a wrong choice costs nothing.
  • The gap a major upgrade leaves in point-in-time recovery is shown. A PostgreSQL database with PITR on has to have it turned off before an upgrade, and turning it off deletes its archive. The upgrade card now says what that costs; the database remembers since when PITR is off after having been on, and its PITR card, ninedeploy databases pitr status and the Doctor (after an hour) say so until it is turned on again. Before, an off database looked the same whether PITR had never been on or had just been given up for an upgrade.
  • Major upgrades of a MongoDB database. A MongoDB database moves to a newer release one release at a time (6.0 → 7.0 → 8.0), on the panel host or on a node, from the same card as the other engines. Its data directory has a release of its own, so the copy is started on each release in turn and told it runs that release; the old volume is never written to, which is what makes the rollback possible. Users and their roles come along. Before, MongoDB had no major upgrade.
  • Major upgrades of a database on a node. A PostgreSQL, MySQL or MariaDB database that lives on a node moves to a newer release from the same card, with the same steps, comparison, rollback and finalize as on the panel host. It needs the node's agent 0.21.0 or newer over the sealed transport. The panel keeps the journal and the agent runs each step on the node (a helper with no network, a copy, a slow stop); no SQL crosses to the node, because the panel asks for a statement by name from a catalogue both share. After a panel restart, an upgrade whose node does not answer stays open until a sweep can finish it. A long step of a node (a slow shutdown, a count over big tables, a WAL base backup) is no longer cut by the request's five-minute header limit.
  • Deploy by polling Git. Under Service → Settings → Git polling, a member turns polling on for a service and picks an interval, from once a minute to once a day. The panel reads the head of the branch with git ls-remote, under the same rules as a checkout, and deploys a commit the service does not run yet through the push path, with its CI gate and its authorization. Watch paths and the [skip cd] markers do not apply, because a poll reads the head and nothing else. The card shows the last check, the commit it found and a failure, which is tried again at the next interval. API GET and PUT /v1/services/:id/git-poll; SDK services.gitPoll. A clone or a service bundle carries the interval only.
  • Seven more framework starters: Django, Rails, Express, Astro, Go, Spring Boot and a static site. Each is a small application with a Dockerfile, a .ninedeploy manifest, a lockfile where the framework has one, and a health check; its image runs as a user of its own. Deploy one from a local folder with ninedeploy deploy up, as for the three of 0.20.0. The guide has a section per framework on what to change for a real application. Framework starters
  • The README opens with a short recording of a deployment. In 25 seconds it shows a new resource, the Docker image wizard, the deployment's log while it runs, and the service running. The recording comes from the real panel: the browser harness makes it (e2e/tests/hero.spec.ts) and scripts/readme-hero.mjs cuts and encodes it. The seven screenshots were made again with the same panel.
  • A guide to what a panel restart keeps and loses. For each kind of in-memory state it says whether the panel recovers it at boot, lets it start again, or asks for a new one, with where each is written: deployments and transitions that resume from their journals, work that is marked ended, observations that start again, one-time codes, and replay protection. What a panel restart keeps and loses

Changed

  • Replay protection survives a panel restart. A webhook delivery and a SAML assertion are each refused the second time inside their window, and that memory is in the database now (replay_window, migration 0127). Before, the panel kept it in memory, so a restart let each captured request through once more. A row is a digest of what identifies the request, never the request; it is forgotten once its window has passed (a day for a webhook body) and the hourly sweep removes it.
  • Instance Settings is grouped by task. Its 20 sections sit in five groups named for what a person comes to do (Your account, Access & certificates, Services & deploys, Servers & data, Connections & alerts), where one group of the four used to hold nine; no group holds more than six. Addresses (?section=) are unchanged, so links keep working. With it: the descriptions of Account, Security, Appearance and Integrations say what each section holds, the filter keeps a whole group when it names one, CI runners has a help topic of its own (it showed Account's), and the Environment tab's link to the panel's domain opens Security, where that is set.

Fixed

  • A base backup that a node's agent took also waited for the panel's operation lock of the database, the one the panel holds while it asks for that backup (a standby could not have been built on a node; an agent on the panel's own machine would have waited for itself). The agent's own lock is what serialises a base backup on a node now.
  • A primary whose container was removed (not only stopped) is started again by the panel before an armed standby takes over. It was failed over from after the wait, losing what the primary had not archived, where a start loses nothing.
  • A major upgrade of a PostgreSQL database failed on a real cluster, on the panel host too. The check that counts the indexes read a column that does not exist (pg_class has no indexrelid), so every upgrade stopped before the switch and the database went back on its old major. The count is read correctly now, and an upgrade runs against real PostgreSQL in the tests. The real-Docker run of an upgrade on a node found it; no upgrade had run against a real server before.
  • A move of a service with its data no longer stays running forever after a panel restart. The move runs in the process that started it. At its next boot the panel marks such a move failed with the reason and what to do, and writes it to the audit log. After a restart during the copy, the service is on the target with data that may be incomplete, and the source volume is untouched: move it back with a plain host change and start again. After a restart during the deploy, every volume had been copied whole, and the deployment ended as the panel's own restart recovery decided.
  • The panel's own domain no longer depends on the address its port is published on. In Docker mode the panel container joins the proxy's network once a domain is set, and Traefik reaches it there; the router of the domain, the forward-auth check and the wake endpoint share that address. Before, Traefik reached the panel through the host port, so a panel bound to 127.0.0.1 (as --private installs are) or published on another port than 3000 did not answer on its domain. The installer no longer guesses from the port: once the panel is healthy, it asks Traefik for the domain over HTTPS and reports whether it answered. Checked on an isolated Docker daemon with the panel's port unpublished.
  • The stable channel no longer stops when its tag cannot move. The daily workflow now keeps the channel's release in a STABLE file on a stable branch as well, which it writes with its built-in token. Panels and install.sh --channel stable take the newer release the file or the stable tag names. Until now the channel depended on a token that was never stored: stable stayed on v0.18.28 for eight days after v0.19.0 came out, until the tag was moved by hand. The tag is still moved when STABLE_TAG_TOKEN is set; without it the run says so and stays green.

Internal

  • A standby of a node's database: the sealed operation db.standby (agentOps/databaseStandby.ts: what Docker says of a container, one statement of the catalogue by name, a measure, the standby's volume filled by the helper both hosts share, a clean stop; everything bound to one database by its labels), the journal's hands for a node (lib/nodeDatabaseStandby.ts), the capability db.standby (0.21.0, with the owner's switches NINEDEPLOY_AGENT_DATABASES and NINEDEPLOY_AGENT_PITR), the archive named in a node's archive operations (archive, sent only when the row names one) and keepBases with prune. The journal reads a node row in its host's names and writes the switch in the column a node keeps; its hands are chosen for each standby's host. Tests: test/agentOpsDatabaseStandby.test.ts, test/lib/nodeDatabaseStandby.test.ts, test/lib/databaseStandbyNode.test.ts, test/lib/nodePitrContract.test.ts, and real Docker with the agent's own code (test/integration/databaseStandbyNode.integ.test.ts).
  • Tests for a database's standby on real Docker (test/integration/databaseStandby.integ.test.ts: a planned promotion that loses nothing, one without the handover that keeps the missing work on the old volume, the boot recovery after a promotion and during a build, the automatic failover from a crash loop and from a stop by hand, and the standby built again after the failover with the old volume finalized beside it), the watcher and the rebuilding with Docker faked and a clock of their own, a build that belongs to no process any more (that pass had no test), the journal with Docker faked, the archive across two timelines, the standby engine's argv, the routes and the plugin; the hand-kept lists the new routes and columns go into (test/openapi/apiSurface.snap, test/authzMatrix.test.ts, test/schema-drift.test.ts).
  • A promotion without the handover waits, two minutes at most, until the standby replayed the end of the archive, read from the standby's own container (the primary cannot be asked), so that what the death left in the archive is applied before the standby becomes the database.
  • The finalize of a standby's promotion takes the newest promotion whose volume is still kept, whatever became of the standbys built since. It took the newest standby only, and refused once a standby had been created after the promotion: with a standby built again after every failover, the old volume would have been kept for good.
  • The automatic failover's waits are columns of the standby (gone_after_ms, silent_after_ms, pause_after; migration 0132), and the row is shown with them in seconds.
  • The standby scheduler's pass no longer waits for a promotion. It did, so one database's catch-up (up to ten minutes) and the base backup on its new timeline held back the lag of every other standby, and would have held back their failover.
  • Run the server unit suite in processes that take chunks of files from a queue, and pack the chunks by what each file took in the run before. On GitHub's runner the suite went from 38.9 minutes to 11 to 15, and a push's chain from 79 minutes to 35 to 44.
  • Run the image job's twelve node smokes as six groups, each on its own runner. The job went from 43.2 minutes to about 13.
  • Build the main image on two runners, one per architecture, and put the two under :edge and :main-<sha>. The publish path went from 7 to 12 minutes to 1 to 2. The other packages' suites and the contract preflight run in jobs of their own.
  • Let the Release build take the layers main CI built for the tagged commit, and skip the workspace build and the database integration checks when main CI passed on the same commit.
  • Run the Release's published-image smokes in thirteen cohorts that each hold one theme, where four of nine cohorts held two or three. The longest holds 13.6 minutes of smoke time where it held 25.9, and a rerun after one failed smoke repeats that theme alone.
  • The stable channel workflow reads the tag back before it reports a move.
  • The call that reads a branch's head for Git polling consults no git credential helper, so the source's token is not kept in the host's credential store.
  • The framework starters workflow builds and routes ten starters instead of three, and leaves a developer's build output out of what it uploads (target, dist, .astro).
  • Three tests that keep a real clock no longer fail under load: the invitation fixture takes its two dates at one moment, the wake-collection test allows its two child runs their time, and the "never becomes healthy" probe moves on a clock that is read.

Source CHANGELOG.md at f3f9bea7