Compare commits

...
Sign in to create a new pull request.
Author SHA1 Message Date
Lance Walters
0c72234127 fix(f6): re-own the actions cache (.cache/act) for the uid-1000 runner
The runner clones action repos into /data/.cache/act. Those files were created
by the root runner and a job now dies with
`open /data/.cache/act/actions-checkout@v4/.git/objects/pack/...pack: permission denied`
(run 123, deploy-site).

fix-data-perms now walks the top level of the data PVC and chowns everything
except `docker` (the dind data-root, deliberately root-owned) when the entry is
still root-owned — so a restart is cheap and future dirs are covered.
2026-11-27 00:52:46 -05:00
3 changed files with 39 additions and 6 deletions

View file

@ -87,8 +87,19 @@ spec:
- | - |
set -e set -e
chown 1000:1000 /data chown 1000:1000 /data
[ -f /data/runner.ini ] && chown 1000:1000 /data/runner.ini # Re-own every entry the runner writes as uid 1000 — runner.ini,
[ -d /data/cache ] && chown -R 1000:1000 /data/cache # cache/ and the actions cache .cache/act/ where it clones the
# action repos (a stale root-owned pack file there fails the job
# with "permission denied"). Skip `docker`, the dind data-root,
# which stays root-owned: a recursive chown of that tree is tens
# of GB on the Pi. The owner check makes repeat starts cheap.
for d in /data/* /data/.[!.]*; do
if [ ! -e "$d" ]; then continue; fi
if [ "$d" = /data/docker ]; then continue; fi
if [ "$(stat -c %u "$d")" != 1000 ]; then
chown -R 1000:1000 "$d"
fi
done
true true
volumeMounts: volumeMounts:
- name: data - name: data

View file

@ -53,8 +53,19 @@ spec:
- | - |
set -e set -e
chown 1000:1000 /data chown 1000:1000 /data
[ -f /data/runner.ini ] && chown 1000:1000 /data/runner.ini # Re-own every entry the runner writes as uid 1000 — runner.ini,
[ -d /data/cache ] && chown -R 1000:1000 /data/cache # cache/ and the actions cache .cache/act/ where it clones the
# action repos (a stale root-owned pack file there fails the job
# with "permission denied"). Skip `docker`, the dind data-root,
# which stays root-owned: a recursive chown of that tree is tens
# of GB on the Pi. The owner check makes repeat starts cheap.
for d in /data/* /data/.[!.]*; do
if [ ! -e "$d" ]; then continue; fi
if [ "$d" = /data/docker ]; then continue; fi
if [ "$(stat -c %u "$d")" != 1000 ]; then
chown -R 1000:1000 "$d"
fi
done
true true
volumeMounts: volumeMounts:
- name: data - name: data

View file

@ -92,8 +92,19 @@ spec:
- | - |
set -e set -e
chown 1000:1000 /data chown 1000:1000 /data
[ -f /data/runner.ini ] && chown 1000:1000 /data/runner.ini # Re-own every entry the runner writes as uid 1000 — runner.ini,
[ -d /data/cache ] && chown -R 1000:1000 /data/cache # cache/ and the actions cache .cache/act/ where it clones the
# action repos (a stale root-owned pack file there fails the job
# with "permission denied"). Skip `docker`, the dind data-root,
# which stays root-owned: a recursive chown of that tree is tens
# of GB on the Pi. The owner check makes repeat starts cheap.
for d in /data/* /data/.[!.]*; do
if [ ! -e "$d" ]; then continue; fi
if [ "$d" = /data/docker ]; then continue; fi
if [ "$(stat -c %u "$d")" != 1000 ]; then
chown -R 1000:1000 "$d"
fi
done
true true
volumeMounts: volumeMounts:
- name: data - name: data