Remove the Python 3 for Unraid dependency with an isolated fallback runtime for Unraid < 8.0
Protected monitor activation verified (2026-11-13)
PR #737 is merged as f127e1c8b0f6798b7ffdd21c2649f1f755dc83d3. Main CI succeeded, reusing verified source-test evidence and repeating the dependency audit. The timeout recovery and sanitized diagnostics are active on main.
Two sequential protected main runs, dispatched as verified borg-codex-bot, completed successfully:
| Run | Complete component scans | Created issues | Updated issues | New fix notices |
|---|---|---|---|---|
| First: 43444610509 | 12 | 0 | 1 | 0 |
| Second: 43445629518 | 12 | 0 | 0 | 0 |
Both scanned the actual stable 2026.11.13.1206 and identical current-source runtime: 3.13.18+20261110 / bbui-cpython-3.13.18-sqlite-3.54.1-r1. Both reported a complete scan, the same two findings and zero fix candidates. The first run recovered an actual zlib NVD timeout on attempt 2 after a 15-second wait.
Independent snapshots before, between and after the runs covered 17 related issues and all 15 existing comments. Only #717's monitor-managed block changed in the first run: it now records the current stable/custom runtime and the verified absence of the SQLite CLI. Its not-applicable closure was preserved. All other issue states, manual notes and comments were unchanged; the second run made no further changes. #706-#718 remain closed under their documented fixed/not-applicable assessments.
The unchanged-run acceptance criterion is satisfied. No duplicate notification was created. These live runs had no new fix candidates, so they did not send a synthetic positive alert; positive correlation, notification-ledger deduplication and interrupted-write recovery remain covered by the passing tests. The daily 07:17 UTC schedule and one-time notification behavior remain active; upstream outages still fail visibly instead of reporting a false all-clear.
GitHub had already recorded #720 as closed by TheTwist76 at 14:35:26 UTC, immediately after the merge and before these scans. That state was not treated as live validation. The independent successful runs and snapshot comparisons above now satisfy the acceptance criterion; the completed state is retained and this evidence is added without reopening the issue.
Issue #733 remains OPEN and unchanged: this monitor does not execute its separate recursive-pickle reproducer. No new plugin testing package or stable release was created; stable remains 2026.11.13.1206.
Previous implementation and verification evidence (historical)
Protected live verification after stable publication (2026-11-13)
Two sequential protected python-monitor.yml runs were dispatched on main fcd54810cc1daf6328e94338a7e3e40f518a0137, with the dispatcher identity verified as borg-codex-bot before each write and confirmed in both run records:
- First run 43437027542: FAILED.
- Second run 43437327719: FAILED.
Both jobs failed in the upstream metadata/inventory/issue reconciliation step without a complete-scan summary. A separate read-only diagnostic successfully read the supplier release pointer and Python lifecycle metadata, then raised TimeoutError: The read operation timed out while reading the first NVD CVE API query (bzip2 1.0.8). This establishes the local diagnostic failure, not the exact GitHub-side exception, which the current workflow log does not expose.
Independent snapshots before, between and after the runs covered 17 related issues and all 15 existing comments. Both comparisons show zero issue or comment changes; fix-notification marker comments remained at zero. No duplicate notification was created, but failed scans with no notifications do NOT validate successful unchanged-run deduplication or the live positive-alert path.
Issue #720 remains OPEN. Next acceptance requires two complete successful protected main scans with verified bot identity, current stable/custom-runtime facts, preserved manual CVE assessments and an unchanged second run producing no duplicate changes or fix notices. Investigate NVD availability/request resilience and stage-specific diagnostics before treating further failed retries as progress; do not substitute stale cache or a local preview for live acceptance.
Issue #733 remains OPEN and unchanged. Stable 2026.11.13.1206 remains published; these monitoring failures do not modify the runtime, release artifacts or the separately verified CVE closures.
Previous evidence (historical)
Problem and user impact
The Python for Unraid maintainer has announced a fixed end-of-support date of 30 November 2026, superseding the earlier maintenance-mode notice.
Updated upstream advisory
Based on the maintainer advisory supplied by the repository maintainer on 17 October 2026:
- Support ends on 30 November 2026.
- The plugin will remain installable as-is after that date, without guarantees of stability or usability; continued use is at the user's own risk.
- The upstream repository will be archived.
- If a future Unraid release is reported in the support thread to break the plugin, the maintainer may cap its maximum supported Unraid version and prevent installation on that version and later versions.
- Forks are welcome, with coordination through the Community Applications maintainers.
- The announcement follows new details about Unraid 8 and the maintainer's shift of focus to other projects and their own infrastructure transition.
The support deadline does not itself mean existing installations will stop working or that installation will automatically be blocked on that date. The possible version cap is conditional on a reported incompatibility with a future Unraid release.
Impact on Borg Backup UI
This gives removal of the mandatory external Python-plugin dependency a concrete planning deadline. Aim to validate and ship the independent runtime path before upstream support ends. An external interpreter that passes our compatibility checks can still be used, but new installations and reboot recovery must not depend on the continued availability or maintenance of Python for Unraid. This advisory reinforces the existing scope below; it does not establish Unraid 8 compatibility or authorize an Unraid 8 port.
Borg Backup UI currently requires Python 3.10 or newer and recommends/requires the separate Python plugin in its installation guidance. Startup and the control page discover python3 on PATH; Borg Backup UI does not currently supply its own Python runtime.
Keep the existing plugin operational without requiring Python 3 for Unraid. Preserve the current minimum Unraid version (6.12.5) and explicitly limit this plugin line to Unraid versions below 8.0 (the 7.x line, described by the maintainer as up to 7.99). Unraid 8 support is a separate investigation.
Scope
- Detect a usable external python3, checking the supported Python version and modules needed by the actual application, helpers, and bundled dependencies.
- Supply an isolated private Python runtime as fallback when external Python is absent or unsuitable. Prefer including it in the plugin package so startup and reboot recovery do not require an additional runtime download.
- Keep the private runtime and its libraries under plugin-owned paths. Do not install or replace system Python, modify global PATH/site-packages, or overwrite another plugin's files or symlinks.
- Select the runtime deterministically and route application startup, administrative helpers, scheduled jobs, and other Python entry points through the selected absolute interpreter path.
- Define selection consistently across independent entry points. Do not switch an already running service's interpreter. A later installation of compatible external Python must coexist safely and may be selected on a subsequent service start.
- Account for boot order and availability after reboot. Missing external Python must no longer require installing the separate Python plugin before starting Borg Backup UI.
- Show runtime source, version, and path in system diagnostics; report actionable errors without secrets.
- Update installation guidance and messages in German and English. Encode the Unraid < 8.0 compatibility boundary using the supported plugin metadata mechanism, and verify its behavior. Do not claim all future 7.x releases have already been tested.
- Document runtime provenance, integrity verification, licensing, supported platforms, update ownership, and the process for shipping runtime/security updates. Validate binary and library compatibility on the supported Unraid baseline.
Acceptance criteria and validation
- Fresh installation without Python starts the API/UI and can execute an existing-style backup job through the private runtime.
- Compatible external Python is detected and used; missing, too-old, or unusable Python triggers the private fallback with useful diagnostics.
- Installing external Python later causes no file conflicts and does not disrupt a running service. Test restart and reboot selection, as well as removal of external Python between starts.
- Test private-runtime module/dependency isolation against external Python environments, including bundled notification dependencies.
- Startup, administrative helpers, scheduler, backup execution, and restore tests work with both runtime sources.
- Plugin upgrades preserve jobs, profiles, reports, secrets, configuration, and repositories. Plugin removal does not remove another provider's Python.
- Define and execute a compatibility matrix covering the minimum supported Unraid baseline and relevant supported 7.x versions; document limitations.
- Add focused automated regression tests and required manual Unraid tests. Complete the repository preflight and publish/verify a test-channel candidate before requesting maintainer testing.
Mandatory completion criterion: bundled Python runtime monitoring
This issue is not complete until monitoring for the newly bundled private Python runtime is implemented, activated and verified. It is part of replacing Python 3 for Unraid for legacy Unraid, not an optional follow-up after shipping the runtime.
- Once the runtime supplier and package layout are selected, document the authoritative release/security sources and read the actually shipped Python version, runtime build identity and bundled-library versions from its provenance metadata. Do not duplicate version pins or assume a provider before selection.
- Run scheduled monitoring at least daily, with a manual trigger, covering patch/security releases in the shipped Python series, updated supplier builds even when the Python version is unchanged, relevant public security fixes for included native libraries (such as OpenSSL when bundled), and the Python series support lifecycle. Record a concrete advance-warning policy for support end dates and flag new stable series for compatibility planning rather than automatically switching series.
- Create or update deduplicated, actionable issues as borg-codex-bot with current/available versions or build identities, source/advisory links, urgency and required compatibility/release checks. Respect deliberately deferred findings; remain quiet when nothing changes and visibly fail when monitoring cannot complete.
- Reuse the Apprise monitoring approach from #699 where practical. A pip dependency audit alone is not sufficient coverage for the interpreter and its bundled native libraries.
- Add focused tests for patch releases, same-version runtime rebuilds, security findings, support-lifecycle warnings, no-change/deduplication behavior and source failures. Record a successful live monitor run after activation on main, and document update ownership and the runtime-update procedure before closing #548.
- Runtime updates continue through the existing PR, test-channel, explicit maintainer test/stable approval and separate release-PR process. Monitoring does not update installed runtimes, alter system Python or authorize automatic releases.
Release notes and boundaries
User-visible change: release-note::yes. Add a pending release-note fragment using this issue number and update relevant technical documentation. Keep stable artifacts out of the implementation PR; stable promotion requires explicit maintainer test/release approval.
No framework migration, unrelated refactoring, or Unraid 8 port is authorized by this issue. A separate issue will evaluate future Unraid 8 support and migration.
Post-merge verification for PR #734 (2026-11-13)
- PR #734 merged as 01211ff40cdf170b9bf3b37c80ed00704a13bfca. Main CI succeeded, reusing the identical-tree source evidence and repeating the dependency audit.
- The merged tree is identical to tested integration 51cd398983d22cb618ecb42100c3021fd49249ee. Testing candidate 2026.11.13.1206 remains valid; no rebuild, stable release or promotion was performed. Real Unraid acceptance remains separate.
- The updated monitor code is now on main and selected by the daily 07:17 UTC workflow. Protected live verification is NOT complete: attempt 1 and attempt 2 failed without a completed-scan summary. The logs report a generic upstream/inventory/reconciliation failure. A parallel local read-only probe specifically failed with a TimeoutError while reading the NVD CVE API; the exact GitHub-side exception is not exposed by the workflow log.
- Do not count these runs as successful activation or unchanged-run deduplication evidence. Two successful protected runs, including unchanged second-run issue/notification counts, remain outstanding when upstream reads succeed. No stale cache or local report was substituted for this live verification.
- #716 and #717 were manually closed as not applicable, based on the previously verified absence of the session extension and native SQLite CLI in both stable and testing. They remain closed after both failed attempts; this alone does not prove that the monitor's preservation logic ran successfully. The library-update issues remain open for the still-published stable runtime.
- #735 is closed after its fix merged and main CI passed. The independent upstream recursion limitation remains tracked in #733.
Implementation is ready for review in #701, branch codex/548-private-python, commit 34468e5349b2ff7152e0dc9f32e0981d425475e8.
- The package includes isolated CPython 3.13.18. Compatible external Python remains preferred; absent/incompatible Python selects the offline private fallback. Running services and helpers keep the selected absolute interpreter until restart.
- Test logs explicitly identify source, version and interpreter path. GitHub tested external Python 3.12.16 and private Python 3.13.18.
- CI run: https://github.com/borgforge/borg-backup-ui/actions/runs/41829462708 . Full suite: 2320 passed, 9 optional Docker/cgroup-host skips. Private-runtime application tests: 292 passed, 3 optional cgroup-host skips. Quality, dependency audit and CI result passed.
./plugin/mr-preflight.shverified the exact GitHub CI evidence; working tree clean. - A local non-publishing package preview with the same deployable-source digest is about 92 MiB and passed manifest/bundle/provenance checks. It is not a published test-channel candidate.
- DE/EN documentation and release-note fragment are prepared. Current stable 2026.11.03.1237 still requires external Python; the first independent stable version is deliberately not assigned yet.
Remaining acceptance criteria (keep #548 open):
- [ ] Review/merge #701. The changed CI policy must be on trusted main before protected candidate publication.
- [ ] Publish and verify a test-channel candidate, then execute the documented Unraid 6.12.5/7.x fresh-install, backup/restore, restart/reboot, upgrade and external/private selection matrix.
- [ ] Run the Python monitor on main twice using the existing dependency-monitor environment; record bot-authored issue evidence and unchanged-run deduplication. Local read-only preview scanned 12 components and proposed 14 findings without writing issues.
- [ ] Triage the 13 SQLite findings for supplier SQLite 3.53.1, review supplier updates and record applicability before stable approval. The app uses JSON and no user-supplied SQL; this does not establish blanket safety for custom hooks. See docs/maintainer/python-runtime.md for CVEs and sources.
- [ ] After explicit successful maintainer testing and stable approval, prepare the separate release PR and record the actual first version without the Python 3 for Unraid requirement in the DE/EN installation docs, README and CA descriptions.
No stable release was prepared or published, and no Unraid live-test result is claimed.
Post-merge test candidate is published and independently verified.
- PR #701 merged to main at
76ffe7855f893d33e99d49a0013b5929b9337c94. - Merge CI passed: https://github.com/borgforge/borg-backup-ui/actions/runs/41830838079 . It verified the identical tree/policy and reused full checks from run 41829462708 (2320 full-suite tests and 292 private-runtime application tests); the dependency audit ran again.
./plugin/mr-preflight.shsuccessfully verified the merge-CI evidence.- Testing workflow passed all resolve/audit/build/publish jobs: https://github.com/borgforge/borg-backup-ui/actions/runs/41831173735 . Dispatched as borg-codex-bot.
- Test version:
2026.11.04.1339; immutable tagtest-candidates/2026.11.04.1339; snapshot12ab578df8c301e40c08535b445dcda21050eab9. - Test manifest: https://raw.githubusercontent.com/borgforge/borg-backup-ui/test-channel/borg-backup-ui-test.plg
- Public manifest and package downloaded successfully. Version, pluginURL, package URL, MD5, SHA256, source/note provenance, private-runtime integrity and native Unraid Min/Max metadata verified. The rotating feed matches the immutable snapshot, containing exactly one manifest and one package.
- Package size: 95974948 bytes. SHA256:
74d33bd29d98ce0bc4c8ba8f3e78da856c3958530d25fe79b10be14afb11ebf3. MD5:714408fda36bfa44e29076ce11e70ea2. - Included private Python:
3.13.18. Compatible external Python remains preferred; absent/incompatible external Python selects the private runtime. Source/version/path are visible in diagnostics.
Status: awaiting maintainer Unraid testing. Test the documented Unraid 6.12.5/7.x matrix, especially startup without external Python, backup/restore, external/private selection and restart/reboot. Keep #548 open for those results, Python-monitor live activation/deduplication, native-library advisory triage and eventual version-specific stable documentation. No stable release was prepared or authorized by this test publication.
Follow-up implementation and test candidate for #548 are ready in PR #702.
- CPython now appears under Settings > About > Third-party with its bundled version/build, separately from the active interpreter's source/version/path.
- Full original license notices are grouped under their own BorgBackup, Apprise, CPython or Prism bundle. Build-generated attribution uses the exact packaged inputs, without runtime downloads.
- Backup and restore-test supervisor/worker logs now identify the actual Python interpreter. DE/EN documentation and release notes updated.
- PR CI passed: https://github.com/borgforge/borg-backup-ui/actions/runs/41835539634 . 2331 full-suite tests passed (9 explicit optional host skips), plus 292 private-Python tests (3 optional cgroup-host skips). Browser coverage passed for both languages, bundle attribution and escaped full texts. Preflight verified the exact GitHub evidence.
- Test 2026.11.04.1418 published and verified: https://github.com/borgforge/borg-backup-ui/actions/runs/41836894203 . Manifest: https://raw.githubusercontent.com/borgforge/borg-backup-ui/test-channel/borg-backup-ui-test.plg
- Immutable candidate
3e33e15ac790c76f87f7005ea75d457752bbe85afrom PR integration9cfcd5449cc8ec4070b4a52f65eb1bbc77f5a5bf. Package SHA256cff208aab730b3efaddee397b23ec3e60b3e492f4243f475bb3372e265ded48e. Downloaded manifest/package, version, channel URLs, hashes, provenance and two-file snapshot verified. The index's full texts match the original files inside their respective bundles (Borg 1, Apprise 12, CPython 21, Prism 1).
Branch codex/548-python-notices-logs, HEAD 03f50a0fdc4e79ae3c2a1d9fce649593874b9d1d; working tree clean. Awaiting maintainer Unraid testing, especially bundle-specific notices and interpreter output in backup/restore-test logs. No merge or stable release performed.
Follow-up for #548: the maintainer confirmed that Unraid mounts /run with noexec. The bundled Python archive passed integrity/extraction checks, but its executable returned Permission denied. This explains the failure of candidate 2026.11.04.1418 after uninstalling external Python.
PR #702 moves executable Python to /usr/local/lib/borg-backup-ui/python, preserves runtime state under /run, and adds direct execution diagnostics. Installation/service output now distinguishes extraction from reuse and prints the actual interpreter. Job logs distinguish BorgBackup executable from Borg Backup UI Python. The control page also permits recovery by restart and avoids reporting missing administrator accounts when it cannot inspect them.
Validation: CI 41848139246 passed (2337 full-suite tests plus 298 bundled-runtime tests); hosted preflight passed. Testing workflow 41849554731 published 2026.11.04.1538 successfully. Public manifest/package bytes, checksums, provenance, corrected runtime/logging payload and per-bundle license texts were independently verified.
The corrected candidate still needs the maintainer's Unraid test without external Python, including start, backup/restore diagnostics and extraction/reuse. CI does not replace that live proof; no stable approval is inferred. Existing host-matrix, monitor and advisory-triage acceptance requirements remain unchanged.
Unraid live-test evidence and deferred stable release (2026-11-04)
The maintainer tested candidate 2026.11.04.1538 with Python 3 for Unraid uninstalled and supplied installation, application, backup and restore-test logs.
Confirmed:
- Installation/start: service RUNNING, administrator account detected, and application login successful. Actual interpreter: bundled CPython 3.13.18 under /usr/local/lib/borg-backup-ui/python/
/bin/python3.13. - Startup migrations: status=ok, no failures; repository assignments: status=ok, errors=0; cron schedules applied.
- Backup: bundled interpreter in the job log; application recorded status=success and exit_code=0.
- Restore test: supervisor and worker both used bundled CPython 3.13.18. Level 1 integrity, Level 2 full-archive dry-run and Level 3 SHA256 sample restore completed. Summary: 1 OK, 0 failed, 0 unavailable, 0 skipped; oom=0 and oom_kill=0.
- Service restart at 16:03 Europe/Berlin: bundled CPython 3.13.18 selected again, migrations/assignments successful, schedules applied and HTTP service started.
- Apprise 2.1.0 loaded; the backup notification was queued. Delivery itself is not established by these logs.
Outstanding follow-up before release:
- Python extraction/reuse messages were absent from the Unraid installation window. The launcher sends them to stderr; verify/correct forwarding into the visible installation output. The successful runtime start does not prove visibility of these messages.
- The application service log still uses the older
Borg Binary aktivlabel; align it withBorgBackup executable. - The service log reports a datetime.utcnow() deprecation warning under bundled Python. This did not interrupt the successful operations; address the deprecated usage while preserving UTC timestamp semantics.
- Full Unraid reboot/automatic runtime preparation remains untested. Explicit extraction/reuse visibility and continued operation remain to be checked.
- When the first stable version is approved, replace the technical 'builds containing #548' wording in plugins/borg-backup-ui.xml and ca_profile.xml with the actual first stable version. Align README, docs/README.md (including its remaining unconditional installed-Python requirement), DE/EN manuals and release notes. Older stable versions still need external Python; other plugins may independently require it.
- Other #548 acceptance requirements (host matrix, live runtime monitor and native advisory triage) are not discharged by this host test.
Maintainer decision: continue using 2026.11.04.1538 without the external Python plugin to observe further behavior. Stable preparation/publication is deferred until a later explicit release request. No new candidate, merge or stable promotion is requested now. PR #702 remains open for follow-up; this comment supplements the already closed #548 without treating all acceptance criteria as complete.