fix(forgejo): create the log root so doctor passes on v17 #763

Sammanfogat
supernaut sammanfogade 1 incheckning från fix/716-log-root in i main 2026-10-17 15:00:12 +00:00
Ägare

Forgejo v17 no longer creates the log root /var/lib/gitea/log as a side effect of CLI runs, and we log to the console, so the directory never appears. forgejo doctor check marks 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 }}/log inside the container if it is missing. changed only when it was created. Skipped under --check, like the neighbouring podman exec tasks. The directory lives in forgejo-data, so backups and the drill's scratch restore carry it.

Checks

  • ansible-lint: 0 failures, 0 warnings. Syntax check passes.
  • Staging --check --diff with the v17 overrides: failed=0, task skipped as expected.

After merge

  • Staging (v17): apply --tags forgejo with the v17 overrides; the task reports changed once, and forgejo doctor check shows no [E].
  • Prod: the task reports ok (the directory exists), and doctor shows 0 [E] on 17.0.0.
Forgejo v17 no longer creates the log root `/var/lib/gitea/log` as a side effect of CLI runs, and we log to the console, so the directory never appears. `forgejo doctor check` marks 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 }}/log` inside the container if it is missing. `changed` only when it was created. Skipped under `--check`, like the neighbouring `podman exec` tasks. The directory lives in `forgejo-data`, so backups and the drill's scratch restore carry it. ## Checks - `ansible-lint`: 0 failures, 0 warnings. Syntax check passes. - Staging `--check --diff` with the v17 overrides: `failed=0`, task skipped as expected. ## After merge - [x] Staging (v17): apply `--tags forgejo` with the v17 overrides; the task reports `changed` once, and `forgejo doctor check` shows no `[E]`. - [x] Prod: the task reports `ok` (the directory exists), and doctor shows 0 `[E]` on 17.0.0.
supernaut lade till 1 incheckning 2026-10-17 13:50:13 +00:00
fix(forgejo): create the log root so doctor passes on v17
Alla kontroller lyckades
ci / ci (pull_request) Successful in 3m10s
2403828022
Console logging never writes /var/lib/gitea/log and v17 no longer creates it as a side effect. `forgejo doctor check` requires it, so the restore drill failed.

Refs #716.
supernaut sammanfogade incheckning 3d287ebee3 till main 2026-10-17 15:00:12 +00:00
supernaut tog bort grenen fix/716-log-root 2026-10-17 15:00:12 +00:00
supernaut refererade denna ändringsförfrågan från en incheckning 2026-10-17 15:18:36 +00:00
Logga in för att delta i denna konversation.
Inga granskare
Ingen milstolpe
Inget projekt
Inga tilldelade
1 deltagare
Notiser
Förfallodatum
Förfallodatumet är ogiltigt eller utanför gränserna. Använd formatet "åååå-mm-dd".

Inget förfallodatum satt.

Beroenden

Inga beroenden satta

Referens
bitborg/bitborg-infra!763
Ingen beskrivning angiven.