Configure DirectAdmin import staging on managed upgrades #316

Closed
opened 2026-12-04 16:08:41 +01:00 by parkel · 0 comments
Owner

The first DirectAdmin web import on an existing APT-managed panel failed before preflight with “Could not stage the archive. Check server storage.” The host had enough space. Its older effective panel service unit still had ProtectSystem=strict but did not declare the import state directory, even though the release ships a unit that does. An operator had to install a systemd drop-in before uploading again.

Acceptance criteria

  • On supported managed upgrades, ensure the panel and DirectAdmin worker can access the private staging directory with the expected permissions, without replacing operator overrides or weakening systemd hardening. Keep the fix safe to rerun and verify it on a fresh install and an upgrade from a unit without the state directory.
  • Surface a useful operator-facing explanation when staging is unavailable. Distinguish invalid or inaccessible staging configuration from insufficient space where possible. Keep local paths and raw errors out of UI responses and avoid logging archive contents or credentials.
  • Test that an uploaded archive reaches preflight after the upgrade, and document the remediation for intentionally customized units.

Related web flow: #311 and #313.

The first DirectAdmin web import on an existing APT-managed panel failed before preflight with “Could not stage the archive. Check server storage.” The host had enough space. Its older effective panel service unit still had `ProtectSystem=strict` but did not declare the import state directory, even though the release ships a unit that does. An operator had to install a systemd drop-in before uploading again. ### Acceptance criteria - On supported managed upgrades, ensure the panel and DirectAdmin worker can access the private staging directory with the expected permissions, without replacing operator overrides or weakening systemd hardening. Keep the fix safe to rerun and verify it on a fresh install and an upgrade from a unit without the state directory. - Surface a useful operator-facing explanation when staging is unavailable. Distinguish invalid or inaccessible staging configuration from insufficient space where possible. Keep local paths and raw errors out of UI responses and avoid logging archive contents or credentials. - Test that an uploaded archive reaches preflight after the upgrade, and document the remediation for intentionally customized units. Related web flow: #311 and #313.
parkel added the
kind
bug
area/migrationarea/deployment
labels 2026-12-04 16:08:41 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: hippogrief/coulobre#316