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].
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]>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Summary
deploy.shandwebhook-deploy.shnowmkdir -p writer-pipeline/varandchown -R www-data:www-dataon every deploywebhook-deploy.shalso rebuilds writer-pipeline npm whenwriter-pipeline/tree changesEACCESonwriter-pipeline/var/aggregated-items.jsonWhy
Systemd oneshots run as
www-databutwriter-pipeline/var/was created as root on first deploy, causingEACCESwhen trying to writeaggregated-items.json. Mirrors [BIT-743] bridge fix pattern.Fixes [BIT-25140], resolves hotfix [BIT-25141].