The V2 container runs as uid 1000 (Dockerfile.v2:39 USER 1000). When the pipeline tried to mkdir briefs/<brief-id>/ on the production server, it hit EACCES because the host directory was owned by root (V1 had a similar fix in deploy.sh that we never ported). - cutover-in-place.sh: chown -R 1000:1000 briefs/ before docker up. - deploy-v2.sh: same chown on every redeploy + use --env-file (was missing). Immediate manual fix on the running server (until next deploy): sudo chown -R 1000:1000 /opt/social-reporting/briefs Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| apache-social-reports-v2.conf | ||
| cutover-in-place.sh | ||
| deploy-v2.sh | ||
| rollback-to-v1.sh | ||
| setup-v2.sh | ||