fix(mail): chown zpush state on pod start — root-owned files break sync
ci / changes (push) Successful in 4s
ci / tc_operator (push) Has been skipped
ci / tc_website (push) Has been skipped
ci / test_platform_api (push) Has been skipped
ci / tc_platform_api (push) Has been skipped
ci / build_portal (push) Has been skipped
ci / build_booking (push) Has been skipped
ci / build_operator (push) Has been skipped
ci / build_platform_api (push) Has been skipped
ci / tc_portal (push) Has been skipped
ci / tc_booking (push) Has been skipped
ci / build_zpush (push) Has been skipped
ci / deploy (push) Successful in 28s
ci / changes (push) Successful in 4s
ci / tc_operator (push) Has been skipped
ci / tc_website (push) Has been skipped
ci / test_platform_api (push) Has been skipped
ci / tc_platform_api (push) Has been skipped
ci / build_portal (push) Has been skipped
ci / build_booking (push) Has been skipped
ci / build_operator (push) Has been skipped
ci / build_platform_api (push) Has been skipped
ci / tc_portal (push) Has been skipped
ci / tc_booking (push) Has been skipped
ci / build_zpush (push) Has been skipped
ci / deploy (push) Successful in 28s
A root-run z-push-admin (kubectl exec defaults to root) left a root-owned 'users' file on the state PVC; Apache runs as www-data, so every request 500'd with 'Not possible to write to the configured state directory'. An initContainer now normalizes ownership on every start (state is disposable, ownership isn't precious), and the docs say to exec z-push-admin as www-data.
This commit is contained in:
+5
-2
@@ -184,8 +184,11 @@ curl -k -i -X OPTIONS https://mail.dezky.local/Microsoft-Server-ActiveSync
|
||||
curl -k -i -u user@tenant.tld:app-password -X OPTIONS \
|
||||
https://mail.dezky.local/Microsoft-Server-ActiveSync
|
||||
|
||||
# Per-device sync state
|
||||
docker exec dezky-zpush php /usr/share/z-push/z-push-admin.php -a list
|
||||
# Per-device sync state. ALWAYS run as www-data — a root-run z-push-admin
|
||||
# leaves root-owned state files that 500 every request ("Not possible to
|
||||
# write to the configured state directory"). The prod pod has an
|
||||
# initContainer that re-chowns the state dir on start as a backstop.
|
||||
docker exec -u www-data dezky-zpush php /usr/share/z-push/z-push-admin.php -a list
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
Reference in New Issue
Block a user