fix(download): explain filesystem failures and prepare the import dir
CI / chart (push) Successful in 3s
CI / chart-push (push) Successful in 4s
CI / test (push) Successful in 1m47s
CI / image (push) Successful in 3m45s

A failing Files.createDirectories only produced the directory path in the log,
which hid whether the music hostPath was read-only or owned by another user.
Errors now include the exception type, cause and a hint about UID 10001, and
permission or read-only failures fail immediately instead of retrying three
times.

The chart gets a prepare-imports init container (downloads.prepare) that
creates "<music>/AudioManager Imports" and gives it to UID 10001, so downloads
work on a hostPath owned by root. Chart version 0.2.4.
This commit is contained in:
TapTap committed 2026-11-15 14:40:28 +00:00
1 parent a5af1ee83f
commit e7704c42ea
6 files changed
+114 -8

No files matched your search

@@ -25,6 +25,24 @@ spec:
{{- end }}
securityContext:
{{- toYaml .Values.podSecurityContext | nindent 8 }}
{{- if and .Values.downloads.enabled .Values.downloads.prepare }}
initContainers:
- name: prepare-imports
image: "{{ include "audiomanager.image" . }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
command:
- sh
- -c
- |
dir='{{ .Values.media.music.mountPath }}/AudioManager Imports'
mkdir -p "$dir" && chown -R 10001:10001 "$dir" \
|| echo "AudioManager: cannot prepare $dir; check the music hostPath permissions"
securityContext:
runAsUser: 0
volumeMounts:
- name: music
mountPath: {{ .Values.media.music.mountPath }}
{{- end }}
containers:
- name: audiomanager
image: "{{ include "audiomanager.image" . }}"