fix(forgejo): create the log root so doctor passes on v17 #763
Inga granskare
Etiketter
Inga etiketter
area/backups
area/ci
area/control-panel
area/identity
area/infra
area/observability
area/payments
area/security
area/storage
area/web
blocked
needs-info
needs-triage
priority
high
priority
low
priority
medium
ready-for-implementation
type
bug
type
chore
type
docs
type
epic
type
feature
type
task
wontfix
Ingen milstolpe
Inget projekt
Inga tilldelade
1 deltagare
Notiser
Förfallodatum
Inget förfallodatum satt.
Beroenden
Inga beroenden satta
Referens
bitborg/bitborg-infra!763
Läser in…
Hänvisa till i nytt ärende
Ingen beskrivning angiven.
Ta bort grenen "fix/716-log-root"
Borttagning av en gren är permanent. Även om den borttagna grenen kan fortsätta existera en kort tid innan den faktiskt tas bort, kan det INTE ångras i de flesta fall. Vill du fortsätta?
Forgejo v17 no longer creates the log root
/var/lib/gitea/logas a side effect of CLI runs, and we log to the console, so the directory never appears.forgejo doctor checkmarks the log root as required and reports[E], and the restore drill fails on any[E]. Refs #716.What
ansible/roles/forgejo/tasks/main.yml: one task, after the container is up, creates{{ forgejo_work_path }}/loginside the container if it is missing.changedonly when it was created. Skipped under--check, like the neighbouringpodman exectasks. The directory lives inforgejo-data, so backups and the drill's scratch restore carry it.Checks
ansible-lint: 0 failures, 0 warnings. Syntax check passes.--check --diffwith the v17 overrides:failed=0, task skipped as expected.After merge
--tags forgejowith the v17 overrides; the task reportschangedonce, andforgejo doctor checkshows no[E].ok(the directory exists), and doctor shows 0[E]on 17.0.0.