fix(deploy): ensure writer-pipeline var is writable by www-data (BIT-25140/BIT-25141) #21

Merged
spark merged 2 commits from task/BIT-25140-writer-var-eacces into main 2026-06-14 21:13:12 +01:00
Owner

Summary

  • deploy.sh and webhook-deploy.sh now mkdir -p writer-pipeline/var and chown -R www-data:www-data on every deploy
  • webhook-deploy.sh also rebuilds writer-pipeline npm when writer-pipeline/ tree changes
  • Runbook entry added for EACCES on writer-pipeline/var/aggregated-items.json

Why

Systemd oneshots run as www-data but writer-pipeline/var/ was created as root on first deploy, causing EACCES when trying to write aggregated-items.json. Mirrors [BIT-743] bridge fix pattern.

Fixes [BIT-25140], resolves hotfix [BIT-25141].

## Summary - `deploy.sh` and `webhook-deploy.sh` now `mkdir -p writer-pipeline/var` and `chown -R www-data:www-data` on every deploy - `webhook-deploy.sh` also rebuilds writer-pipeline npm when `writer-pipeline/` tree changes - Runbook entry added for `EACCES` on `writer-pipeline/var/aggregated-items.json` ## Why Systemd oneshots run as `www-data` but `writer-pipeline/var/` was created as root on first deploy, causing `EACCES` when trying to write `aggregated-items.json`. Mirrors [BIT-743] bridge fix pattern. Fixes [BIT-25140], resolves hotfix [BIT-25141].
spark added 1 commit 2026-06-14 21:04:58 +01:00
fix(deploy): ensure writer-pipeline var is writable by www-data
Tests / writer-pipeline tests (push) Failing after 11s
Tests / bridge tests (push) Successful in 29s
Tests / frontend lib tests (push) Successful in 31s
Tests / writer-pipeline tests (pull_request) Failing after 11s
Tests / bridge tests (pull_request) Failing after 13s
Tests / frontend lib tests (pull_request) Successful in 29s
be0b0c9c6f
Writer systemd oneshots run as www-data but deploy never chowned
writer-pipeline/var, causing EACCES on aggregated-items.json when
the store was created by root. Mirror BIT-743 bridge/config/writers
fix; rebuild writer-pipeline on webhook when that tree changes.

Paperclip-Issue: BIT-25140
Co-authored-by: Cursor <[email protected]>
spark added 1 commit 2026-06-14 21:09:20 +01:00
ci: retrigger writer-pipeline tests (BIT-25141)
Tests / writer-pipeline tests (push) Failing after 10s
Tests / bridge tests (push) Failing after 12s
Tests / frontend lib tests (push) Successful in 40s
Tests / writer-pipeline tests (pull_request) Successful in 43s
Tests / bridge tests (pull_request) Successful in 42s
Tests / frontend lib tests (pull_request) Successful in 41s
31a6431b54
Paperclip-Issue: BIT-25141
spark merged commit 58e1fb85eb into main 2026-06-14 21:13:12 +01:00
Sign in to join this conversation.