From 3e15cb010b406b8d76c1fe575c6fbb8246085407 Mon Sep 17 00:00:00 2001 From: Peter van Arkel Date: Sun, 22 Nov 2026 22:54:41 +0100 Subject: [PATCH] Prepare the Coulobre 0.10.1 release candidate --- CONTRIBUTING.md | 10 ++++++++++ docs/deployment.md | 50 ++++++++++++++++++++++++++++++++++++++++++++++ pyproject.toml | 2 +- 3 files changed, 61 insertions(+), 1 deletion(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 9ad41de..d7846e1 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -47,6 +47,16 @@ instructions, and known limitations. Mark a release candidate as a prerelease. Close the milestone when its target version is published. +For a release tested through the web updater, generate and attach +`web-update.json` alongside the matching wheel. List each tested starting +package version after the wheel path. Only list versions that can upgrade +with the dependencies and service units they already have. + +```sh +python tools/web_update_manifest.py dist/coulobre_panel-0.10.1rc2-py3-none-any.whl \ + 0.10.1rc1 > dist/web-update.json +``` + ## Pull requests - Start changes on a dedicated branch from the default branch, named main. diff --git a/docs/deployment.md b/docs/deployment.md index 758f2b8..50d51ed 100644 --- a/docs/deployment.md +++ b/docs/deployment.md @@ -573,6 +573,56 @@ sudo systemctl daemon-reload sudo systemctl start coulobre-panel.service coulobre-worker.service coulobre-beat.service ``` +### Upgrade from v0.10 to v0.10.1 + +Use the in-place procedure above to install v0.10.1 and apply its migrations. +Existing DNS zones keep their records. Use **DNS zone template** under +**Server and services** to change the defaults for new zones. Use **Complete +hosting setup** on an existing account to review and add missing services. + +To include mail client details in new invitations, set +`COULOBRE_MAIL_IMAP_HOST` and `COULOBRE_MAIL_SUBMISSION_HOST` to the respective +client-facing names when these services are available. For an upgraded panel +without service checks, follow [the collector setup](#monitor-local-and-remote-services). + +### Install a compatible release from the panel + +The installer enables **Updates** for single-server deployments. On an +existing installer-managed single server, install the updater units from the +v0.10.1 source release after upgrading the package: + +```sh +sudo install -m 0644 deploy/systemd/coulobre-update.socket \ + deploy/systemd/coulobre-update@.service /etc/systemd/system/ +sudo systemctl daemon-reload +sudo systemctl enable --now coulobre-update.socket +``` + +A superuser with a verified second factor can choose a compatible release +from **Server and services → Updates**. The updater uses the official Gitea +release over HTTPS and checks the wheel against its published SHA-256 hash. +It supports the installer-managed local MariaDB database and installer +layout. Use the in-place procedure for linked mail or DNS receivers, custom +service unit changes, and releases requiring new dependencies. The update +manifest lists the tested starting versions. + +The panel and its workers pause during the upgrade. Refresh **Updates** after +the panel returns. The latest update status names the recovery directory in +`/var/lib/coulobre-update/`. The root-only directory holds the previous +virtual environment, `/etc/coulobre` configuration, MariaDB dump, unit list +and operation log. Keep enough free space for these copies. Review progress +and service errors with `sudo journalctl -u 'coulobre-update@*'`. + +If recovery is required, keep the panel and its workers stopped. Use the +saved `units.json` to identify the active units before the update. Restore +`venv` to `/opt/coulobre` at the same path and restore the saved `config` to +`/etc/coulobre` if needed. Import `panel.sql` with `sudo mariadb` to replace +the panel database with the pre-upgrade copy. Rebuild panel static files +with `panel_manage collectstatic --noinput`, restart the saved units and +verify sign-in and service health. Archive `status.json` as root after +recovery to allow a later update. Check that `panel.sql` and `venv` exist +before restoring from a directory created by an interrupted update. + ### Upgrade from v0.9 to v0.10 Use the in-place procedure above with the v0.10 source release. Keep a copy diff --git a/pyproject.toml b/pyproject.toml index 017b1a4..97dacff 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "coulobre-panel" -version = "0.10.0rc1" +version = "0.10.1rc1" description = "A web hosting control panel for hosting providers and resellers." readme = "README.md" requires-python = ">=3.12"