Auto-sync: 2026-10-10
This commit is contained in:
@@ -37,6 +37,8 @@
|
|||||||
- [[systems/homeassistant]] — HAOS, MQTT, Automations, Notify
|
- [[systems/homeassistant]] — HAOS, MQTT, Automations, Notify
|
||||||
- [[systems/paperless]] — Dokumentenmgmt, OIDC, OCR via noris AI
|
- [[systems/paperless]] — Dokumentenmgmt, OIDC, OCR via noris AI
|
||||||
- [[systems/sarah-hermes]] — VM107, zweites Hermes für Sarah (WebUI :8787, TG geplant)
|
- [[systems/sarah-hermes]] — VM107, zweites Hermes für Sarah (WebUI :8787, TG geplant)
|
||||||
|
- [[systems/hermes-webui]] — Hermex-iOS-Backend auf hermes-agent-01 (:8790, native, LAN-only)
|
||||||
|
- [[systems/notfallbuch]] — eol-dr-Playbook für Sarah, Triage-Labels, Monats-Cron, Print im Büro
|
||||||
- [[systems/ubuntu-host]] — Physischer Ceph-Node 10.0.20.100, MSI B150M ECO, kein freier PCIe-x8-Slot (NVMe-Träger auf PEG)
|
- [[systems/ubuntu-host]] — Physischer Ceph-Node 10.0.20.100, MSI B150M ECO, kein freier PCIe-x8-Slot (NVMe-Träger auf PEG)
|
||||||
- [[systems/immich]] — K8s-Immich v3.3.1 PROD (56.887 Assets), Legacy CT111 stillgelegt
|
- [[systems/immich]] — K8s-Immich v3.3.1 PROD (56.887 Assets), Legacy CT111 stillgelegt
|
||||||
- [[systems/nut]] — NUT/UPS Shutdown-Kaskade, APC ES 700G @ ms-a2-1, FSD-Cluster-Shutdown
|
- [[systems/nut]] — NUT/UPS Shutdown-Kaskade, APC ES 700G @ ms-a2-1, FSD-Cluster-Shutdown
|
||||||
|
|||||||
@@ -1,5 +1,53 @@
|
|||||||
# Memory Log
|
# Memory Log
|
||||||
|
|
||||||
|
## [2026-10-10] home-migration-wave1 | Unterlagen Uni + eBooks + grafiniert → Seafile, 86 Repos → Gitea
|
||||||
|
- Seafile (CT111): Neue Lib **Unterlagen Uni** (c4677b64, 19 GB 1:1 aus Home — Lehre/Klausuren/Praxis/Verwaltung, KEIN ZIP gem. Nutzervorgabe); **Bücher** +eBook-Sammlung (60 Titel) + Calibre-Bibliothek (1277 Autoren, 5,9 GB); **Archiv grafiniert** +Delta 4,2 GB (MontaMusic, huawameieri, grafiniert_2011, Buchhaltung …). Alles serverseitig via API verifiziert.
|
||||||
|
- Weg: seaf-cli-Staging auf 10.0.20.100 (`/pool01_n2_redundant/.seafile-migrate/staging/`, 30 GB bleiben als Kopie), rsync additiv; Syncs desynct, Daemon gestoppt, Plaintext-Creds auf NAS shredded (PWs in 1P: „Seafile Web Login (dominik)").
|
||||||
|
- Gitea (git.schoen.codes): **86/86 eigene Repos** migriert (--all+--tags; dev-* 51, idea-* 26, mbpdoc-* 6, sempa-* 3). Skip: go/src-Vendor, clinfo, libcoap (shallow Fork), Privat/Promotion-.git (Dokumentenhistorie → Seafile später).
|
||||||
|
- Pitfalls geloggt: Create-500 legt Gitea-Repo trotzdem an (immer listen+branchen statt Status glauben); shallow push --all rejected; safe.directory-* für root-Scans; SSH-Timeout killt Wrapper-Ketten → setsid nohup; seaf-cli-Sync bidirektional (Downstream beachten).
|
||||||
|
- Solution Doc: `workflows/2026-10-10-home-migration-seafcli-staging-gitea-bulk-push.md`; Skill `seafile-api`→bulk-migration-Referenz um seaf-cli-Weg ergänzt. Multi-Agent-Kollision mit Parallel-Session (PW-Rotation 16:30) im Doc `workflows/2026-10-10-multi-agent-credential-collision-moving-target-guards.md`.
|
||||||
|
|
||||||
|
## [2026-10-10] homeassistant | Warn-Push beim Verlassen + Garagentor-Flanken-RCA
|
||||||
|
- Neue Automations (REST-config, live): `warn_offen_beim_verlassen` (Dominik >2min weg + Garagentor/Esszimmertür offen → time-sensitive Push mit CLOSE_GARAGE-Button; tag aktualisiert Notification) + `garagentor_push_close` v8 Single-Edge (EIN switch.turn_on, KEIN turn_off-Präludium; Guards offen/>90s stabil/45s Anti-Doppeltipp; 45s-Verifikation per Neigungssensor; Retry nach 480s; ehrliche Fehler-Push).
|
||||||
|
- RCA (Logbook-belegt): Motor toggelt auf JEDE Kanalflanke. Einzelimpuls schließt sauber (17:51: ~90s). ZWEI schnelle Flanken = Start-Stopp → Tor bleibt offen (17:07 mein OFF→ON-Doppelpuls; 17:48 Nutzer-Doppelklick am Wandtaster). Doppelklick-Gewohnheit wirkt der Schließfahrt entgegen. Wirkungslose Impuls-Serie 16:46–17:07 → vermutlich Motortermik-Sperre.
|
||||||
|
- BUG offen: `switch.garagentor` Status seit 05.10. `unknown` (SysAP→HA Feedback tot); SysAP-REST 401 (Credentials unbekannt, admin/admin falsch), SSH-Addon gestoppt. Tor-Endzustand nach Tests: GESCHLOSSEN (verifiziert).
|
||||||
|
- Nur 2 physische Öffnungssensoren im Haus: Garagentor + Esszimmertür; free@home-Panels sind Taster.
|
||||||
|
- Solution Doc: `docs/solutions/integrations/2026-10-10-freeathome-garage-impulse-toggle-semantics.md`; Wiki systems/homeassistant gepatcht.
|
||||||
|
|
||||||
|
## [2026-10-10] frigate-notifications | v3: Review-Alert-Trigger + KI-Gate (Spam behoben)
|
||||||
|
- RCA: Alt-Automation triggerte auf `frigate/events` (Raw-Detections) statt `frigate/reviews` (kuratiert); 2 Pushes/Event; Cooldown-Key camera+label = Ping-Pong bei Labelwechsel; keine Known-Face-Suppression. Messung 10.10.: 21 Raw-Events → 9 Runs → 18 Pushes/3,5h bei Null relevanter Szenen.
|
||||||
|
- v3 (ID 1714065780832, in-place via REST): Trigger=frigate/reviews severity=alert; 12s Delay → Snapshot → llmvision.image_analyzer (gemma via noris, Prompt KRITISCH/NORMAL) → Gate → 1 Push. Suppress: Sarah/Dominik, 300s Kamera-Cooldown, Review-ID-Dedup. Fail-safe: KI-Fehler oder nachts Person → Push.
|
||||||
|
- E2E verifiziert: Synthetischer Alert → Verdict „NORMAL: leere Einfahrt mit geparktem Auto“ → korrekt kein Push; Readback 10/10 Checks. **v3.1 (gleicher Tag, Nutzervorgabe „nicht nur 23–5 Uhr"): Person-Push auf 24/7 ausgeweitet** (Gate `crit or ki_fail or person_here`), neues Titel-Tier „👤 Person“ tagsüber; E2E erneut verifiziert (Gate-Rendering True bei Tag+person, Logbook-Run bestätigt).
|
||||||
|
- Frigate-0.18-Payload-Falle: review `data.objects` = String-Liste, sub_labels separat; HA-Jinja kennt kein `is not null` (→ `is not none`).
|
||||||
|
- Zombies (garten, ai_event_summary ×2) = Registry-Ghosts, kein Konflikt. Ohne Zonen geblieben (User-Wahl).
|
||||||
|
- Solution Doc: `bug-fixes/2026-10-10-frigate-notification-spam-review-alerts.md`; Wikis systems/frigate+homeassistant gepatcht.
|
||||||
|
|
||||||
|
## [2026-10-10] notfallbuch | eol-dr-Playbook für Sarah live gestellt
|
||||||
|
- Repo `dominik/notfallbuch` @ git.schoen.codes (privat, Secrets allowed — Uservoting, intern hosted). 9 Sarah-Kapitel + `generated/`-Inventar aus Live-Cluster + `mapping/triage-map.md` (Join ArgoCD-Label↔Klartext).
|
||||||
|
- Generator `scripts/generate_inventory.py` (ArgoCD/Traefik-IngressRoute/Velero/Proxmox, graziöse Degradierung) + Watchdog `update_and_commit.sh` (Diff ohne Timestamp-Zeile → kein Schein-Drift; Commit+Push nur bei Echt-Drift; Digest nur bei Drift/Ungeklärt).
|
||||||
|
- Crons: `c4eb1bbe63df` monatl. Watchdog + `d8c6cdd5a1eb` halbjahrl. Review-Reminder → telegram:-5265906503. Build: pandoc+xelatex → A4-PDF/DOCX mit Datum+SHA-Stempel (nun auf hermes-agent installiert).
|
||||||
|
- Live-Funde: Immich-URL = photos.familie-schoen.com (nicht immich.*); Domain schoen.eu existiert (Kap. 07 erweitert); kein cert-manager (Traefik-LE). 26 Apps ungelabelt → UNGEKLAERT-Liste mahnt; holmes/holmes-config = KLÄREN.
|
||||||
|
- Offen: Stefans dormant Gitea-Account (1P-Zugriff blockiert, Passwort darf nicht unbefristet nur im Terminal liegen), Triage-Label-Freigabe in iac-homelab, Fill-in-Abende ([FELD]-Marker), Proxmox-Token für Generator.
|
||||||
|
- Wiki neu: `systems/notfallbuch.md`; Solution Doc: `docs/solutions/integrations/2026-10-10-gitea-api-token-header-required.md` (Gitea-API 401 bei Basic-Auth → Token-Header).
|
||||||
|
|
||||||
|
## [2026-10-10] hermex-backend | hermes-webui auf Runner deployed — Hermex-iOS kann verbinden
|
||||||
|
- Hermex (iOS) spricht NICHT das offizielle Dashboard (:9119) an, sondern braucht hermes-webui (nesquena). Native Installation: `/opt/hermes-webui`, server.py unter Agent-Venv-Python (in-process Imports von Agent-Modulen), systemd `hermes-webui-dominik.service`, `0.0.0.0:8790`, LAN-only.
|
||||||
|
- Hermex-Werte: `http://10.0.30.230:8790` + PW aus 1P (Vault Hermes → `dominik-hermes-webui`).
|
||||||
|
- E2E verifiziert: Login 200/401 korrekt, Sessions-API zeigt echte CLI/TG-Sessions (state.db-Bridge), Chat-Run durch API → Agent-Antwort `hermex-e2e-ok` (glm-5.3/noris), Test-Session danach sauber gelöscht.
|
||||||
|
- Sicherheiten: KEIN Cron-Scheduler-Thread im WebUI (Doppel-Feuer ausgeschlossen, Scheduler bleibt im Gateway); Signing-Key auto-gen persistiert Login über Restarts.
|
||||||
|
- Pitfalls geloggt: `/api/chat` auf CLI-Session-ID → KeyError (erst `/api/session/new`, eigene hex-ID); Cold-Start /api/sessions 34–70 s, warm 0,2 s; `op item view --vault` existiert nicht → `op read op://…`; sed-%-Templating zerstörte Unit (static+Garbage-PW) → Python-Substitution; logrotate war auf dem Runner nicht installiert (nachgezogen, daily×7).
|
||||||
|
- Wiki neu: `systems/hermes-webui.md`; Solution Doc: `docs/solutions/integrations/2026-10-10-hermex-ios-hermes-webui-backend.md`.
|
||||||
|
|
||||||
|
## [2026-10-10] immich-nas-ingest | NAS-Foto-Archive komplett in K8s-Immich übernommen
|
||||||
|
- 29.423 neue Files / 78,2 GB (Dominik 27.966, Sarah 1.436) via API-Upload von NAS direkt nach K8s-Immich v3.3.1; Laufzeit ~75 min, 4 Worker, JSONL-Checkpoint/Resume.
|
||||||
|
- Methode: Census-Manifest (sha1/size/path) + `POST /api/assets` mit `x-immich-checksum` (Server-Dedupe pre-write: 200=dup, 201=new) + mtimes aus NAS-stat. Keys `nas-ingest-d/s` via Direct-DB-INSERT (varchar[]-Cast, decode(hex)).
|
||||||
|
- Reconciliation: alle 29.423 erwarteten SHA1s in DB, 0 fehlend; 86.316 Assets / 85.960 Unique; Owner-Split korrekt (d 55.271 / s 31.045). PVC 365/500 G.
|
||||||
|
- Strauchelsteine gelöst: Bearer-vs-x-api-key (401), varchar[]-Permissions (Typ existiert nicht), `'\x'`-Literal-Falle bei bytea, fehlender Host-Header an Traefik (404), 1 Schein-Fail (SSL-EOF, Upload war durch).
|
||||||
|
- 5 RAWs mit dcraw-Thumbnail-Fehlern — Originale bitidentisch (libraw-Kosmetik). Grayzone 559 Files bewusst exkludiert.
|
||||||
|
- Artefakte: `~/home-drilldown/census/` (Manifests, Archive mit Checkpoints+Logs+Uploader). Solution-Doc: `docs/solutions/workflows/2026-10-10-immich-nas-ingest-api-upload.md`. Wiki `systems/immich.md` aktualisiert.
|
||||||
|
- Follow-up 10.10.: immich-config-Freeze-Exit (Commit `3ec6327`, selfHeal+prune scharf; vorher Label-Sweep: kein Objekt trägt Tracking-Label → prune sicher); NAS-Plaintext-Keys vernichtet (keys.env + lokale Kopie, Key-Records in DB bleiben re-mintbar); NAS /tmp/immich_ingest geleert nach Archivierung (MD5-verifiziert). Beobachtung: immich-server 5 Overnight-Restarts (≥1 OOMKilled 137) unter Thumbnail-Job-Last nach Ingest, seitdem 7 h stabil bei 760Mi/4Gi.
|
||||||
|
- OOM-Fix 10.10. (Commit `6ce2a0a`): Server-Mem 4→6Gi, Request 1→2Gi, nodeSelector pin auf rke2-worker-01. Grund: worker-04 nur 7,9 Gi allocatable (kleinster Node) + Limits 169 % überzeichnet → Limit-Raise allein hätte Node-Pressure-Eviction riskiert (postgres-main-2 Kollateral). Rollout verifiziert: neuer Pod auf worker-01, Restarts 0, API grün, ML/valkey unberührt. Patch-Falle dabei entdeckt und VOR Commit gefangen: Probe-Indentation im rendered-Manifest (immer YAML-Parse-Validierung nach patch).
|
||||||
|
|
||||||
## [2026-10-08] emhass-phase2-shadow | Shadow-Dual-Solve live + Deferrables entfernt
|
## [2026-10-08] emhass-phase2-shadow | Shadow-Dual-Solve live + Deferrables entfernt
|
||||||
- Shadow Phase-2 live: Cron `d046e808f543` (*/15m, silent-on-healthy) + Staleness-Watchdog `19aef2351273` (:35, >45 min -> Alert). Ledger `~/shadow_phase2/ledger.jsonl`, Report `~/scripts/report_phase2.py`.
|
- Shadow Phase-2 live: Cron `d046e808f543` (*/15m, silent-on-healthy) + Staleness-Watchdog `19aef2351273` (:35, >45 min -> Alert). Ledger `~/shadow_phase2/ledger.jsonl`, Report `~/scripts/report_phase2.py`.
|
||||||
- Bewiesene CSV-Gesetze: +P_batt=Entladung, P_grid signed (Export NEGATIV), Deferrable-Spalten=Phantom-Last (+12 kWh Summeninvarianz, keine Consumer).
|
- Bewiesene CSV-Gesetze: +P_batt=Entladung, P_grid signed (Export NEGATIV), Deferrable-Spalten=Phantom-Last (+12 kWh Summeninvarianz, keine Consumer).
|
||||||
|
|||||||
@@ -0,0 +1,50 @@
|
|||||||
|
---
|
||||||
|
pattern_id: PAT-016
|
||||||
|
title: "Ceph OSD-Keyring-Rotation: Reboot macht stale lokale Keyrings zur Zeitbombe"
|
||||||
|
category: storage
|
||||||
|
severity: high
|
||||||
|
status: active
|
||||||
|
first_observed: 2026-09
|
||||||
|
last_updated: 2026-10-10
|
||||||
|
related_systems: [ceph, proxmox, n5pro, ubuntu-host]
|
||||||
|
related_solution_docs:
|
||||||
|
- docs/solutions/bug-fixes/2026-10-10-proxmox67-reboot-osd-keyring-ct151-orphan.md
|
||||||
|
related_skills: [proxmox-ve-administration]
|
||||||
|
---
|
||||||
|
|
||||||
|
# Ceph OSD-Keyring-Rotation: Stale lokale Keyrings detonieren beim Reboot
|
||||||
|
|
||||||
|
## Symptom
|
||||||
|
Nach einem Node-Reboot crashloopen einzelne/alle OSDs eines Hosts:
|
||||||
|
```
|
||||||
|
monclient(hunting): handle_auth_bad_method failed to auth with my available methods: (13) Permission denied
|
||||||
|
failed to fetch mon config
|
||||||
|
```
|
||||||
|
Innerhalb ~10 Minuten markiert der MON sie `down`+`out` → PGs inactive/degraded, Recovery-Churn. Betrifft typischerweise ganze Host-Gruppen, deren OSDs seit der Rotation liefen.
|
||||||
|
|
||||||
|
## Root Cause
|
||||||
|
Rotation der MON-Auth-DB auf aes256k (23.09.2026) ändert die Keys **in der DB**, aber `ceph auth get`-Ergebnisse werden NICHT automatisch in die lokalen `/var/lib/ceph/osd/ceph-<id>/keyring`-Files propagiert. Laufende OSDs merken nichts (Session-Tickets bleiben gültig); erst der Neustart erzwingt die Neu-Auth — und scheitert am alten Key. Erkennungsmerkmal: lokaler Key-String beginnt mit `AQ…` (alt) vs. DB-Key `Ag…` (rotiert).
|
||||||
|
|
||||||
|
## Mitigation
|
||||||
|
```bash
|
||||||
|
# Auf MON: frisches Keyring je betroffenem OSD erzeugen und verteilen
|
||||||
|
ceph auth get osd.<id> > /tmp/osd.<id>.keyring # scp → OSD-Host
|
||||||
|
cp -a /var/lib/ceph/osd/ceph-<id>/keyring{,.bak} # Backup!
|
||||||
|
mv /tmp/osd.<id>.keyring /var/lib/ceph/osd/ceph-<id>/keyring
|
||||||
|
chown ceph:ceph $_; chmod 600 $_
|
||||||
|
systemctl reset-failed ceph-osd@<id>; systemctl start ceph-osd@<id>
|
||||||
|
```
|
||||||
|
**Pitfall 1:** Direkter `systemctl restart` nach Crashloop → Startratelimit („Start request repeated too quickly"). IMMER `reset-failed` zuerst.
|
||||||
|
**Pitfall 2:** Währenddessen setzen MONs die OSDs evtl. `out` → nach Fix prüfen: `ceph osd in osd.<id>` falls nötig (hier automatisch re-in gegangen).
|
||||||
|
**Pitfall 3:** `ceph-authtool <file> --print-key` benötigt `-p`-Syntax je Version; robuster Key-Extraktionsweg: `awk '$1=="key"{print $3}' keyring`.
|
||||||
|
|
||||||
|
## Prevention
|
||||||
|
- **Vor JEDEM Node-Reboot**: Konsistenz-Sweep aller lokalen Keyrings gegen `ceph auth get-key` (Script: `~/workspace/osd-keyring-fix-2026-10-10/ksweep_local.sh`, getestet 10.10.: 17/17 MATCH).
|
||||||
|
- Nach jeder Key-Rotation: Sweep als Abschluss-Kriterium, nicht „betroffene Daemons neugestartet".
|
||||||
|
- Monitoring-Idee: Cron/Watcher, der Prefix-Differenzen (AQ vs Ag) alarmiert (<60s-Alert-Pflicht).
|
||||||
|
|
||||||
|
## Evidence
|
||||||
|
- 2026-09-28: 5 OSDs auf n5pro + osd.5 (proxmox5) nach Reboot — manueller Keyring-Refresh (erste Detonation)
|
||||||
|
- 2026-10-03: osd.17 (ubuntu) — „clusterweit gelöst", aber nur laufende OSDs gepatcht
|
||||||
|
- 2026-10-10: osd.7 (proxmox7) + osd.10 (proxmox6) beim ersten Reboot seit Rotation — selbes Fehlerbild, Bestätigung des systemischen Charakters; danach Voll-Sweep 17/17 MATCH
|
||||||
|
- Solution Doc: `docs/solutions/bug-fixes/2026-10-10-proxmox67-reboot-osd-keyring-ct151-orphan.md`
|
||||||
+14
-6
@@ -42,11 +42,13 @@ modified: "2026-09-27"
|
|||||||
|
|
||||||
## HA Automation
|
## HA Automation
|
||||||
- **ID:** `1714065780832` in `/config/automations.yaml`
|
- **ID:** `1714065780832` in `/config/automations.yaml`
|
||||||
- **Mode:** `single`, cooldown 600s
|
- **v3 (2026-10-10):** Trigger = `frigate/reviews` (severity alert, OHNE Zonen), KI-Gate (noris gemma) VOR Push, bekannte Gesichter (Sarah/Dominik) unterdrückt, 300s Kamera-Cooldown + Review-ID-Dedup, GENAU EIN kombinierter Push. Fail-safe: KI-Fehler oder nachts Person → Push trotzdem.
|
||||||
- **Dedup:** `input_text.frigate_last_event_id` speichert letzten Event
|
- **Dedup:** `input_text.frigate_last_event_id` = `cam;epoch;review_id;KI-Verdict` (auch diagnostisch lesbar)
|
||||||
- **Flow:** MQTT trigger → 10s delay → snapshot → notify → LLM Vision (optional)
|
- **Flow:** MQTT review-alert → 12s delay → snapshot → llmvision.image_analyzer (KRITISCH/NORMAL) → Push-Gate → 1 Push
|
||||||
- **Labels:** person, car, license_plate, face, dog, cat, amazon, ups, package
|
- **Push-Policy:** KRITISCH ∨ KI-Fail ∨ **Person (24/7)**. Sonst Stille. (v3.1: Person-Push nicht mehr auf 23–5h begrenzt)
|
||||||
- **Sublabel-Extraktion:** `sub[0]` (Jinja, Array-Leck-Fix)
|
- **Lesson:** `frigate/events` = Raw-Feed (Spam), `frigate/reviews` = kuratiert. Nie wieder auf Raw triggern.
|
||||||
|
- **Zombies:** `frigate_garten`, `ai_event_summary`, `ai_event_summary_v1_4_1` sind Registry-Ghosts (bereits aus yaml entfernt, `unavailable`)
|
||||||
|
- **Old (v2):** Mode `single`, cooldown 600s, Dedup camera_label (Ping-Pong-Lücke), 2 Pushes/Event, KI nach Push
|
||||||
|
|
||||||
## Bekannte Issues
|
## Bekannte Issues
|
||||||
- Stationäre Autos triggerten wiederholt "new" Events → Flood → gefixt mit cooldown+dedup
|
- Stationäre Autos triggerten wiederholt "new" Events → Flood → gefixt mit cooldown+dedup
|
||||||
@@ -54,9 +56,15 @@ modified: "2026-09-27"
|
|||||||
- v0.18 Breaking Changes: `clean_copy` entfernt, `license_plate.mask` Format geändert (list→dict)
|
- v0.18 Breaking Changes: `clean_copy` entfernt, `license_plate.mask` Format geändert (list→dict)
|
||||||
|
|
||||||
## Old Container
|
## Old Container
|
||||||
- CT120 (frigate): gestoppt, wartet auf Deletion
|
- CT120 (frigate): **zerstört ~02.10.** — ACHTUNG: `vzdestroy:120` löschte `hdd_disk:vm-120-disk-1`, das CT151s mp0 noch referenzierte (Shared-Volume-Falle!). CT151 lief blind weiter, crashte erst beim Reboot 10.10. → mp0 neu als `hdd_disk:vm-151-disk-1` (50G, leer, mkfs.ext4). Historische Sept.-Aufnahmen im PBS-Backup 30.09. (mp0 enthalten). Aufnahmen laufen auf das ROOTFS `/media/frigate` (69% belegt — Wachstum beobachten), nicht aufs mp0.
|
||||||
|
|
||||||
|
## Reboot-Recovery 2026-10-10
|
||||||
|
- osd.7 (p7) + osd.10 (p6): stale Keyrings nach Rotation → Permission-denied-Crashloop beim Reboot, kurzzeitig `out` (105 inactive PGs). Gefixt via `ceph auth get` + Keyring-Replace + `systemctl reset-failed` (Startratelimit-Pitfall!). Danach 17/17 up+in, 533 PGs clean. Voll-Sweep: alle 17 Keyrings MATCH. Siehe PAT-016.
|
||||||
|
- CT117 (immich-postgresql): stale vzdump-Lock (04.08.) entfernt; Inhalt LEER (kein Postgres — Prod über CNPG) → gestoppt, onboot=0. Kandidat für Dekommission.
|
||||||
|
- HA-Failover während Downtime: VM301→proxmox5, VM310→proxmox4 (affinity-konform, belassen).
|
||||||
|
|
||||||
## Related
|
## Related
|
||||||
- [[systems/homeassistant]] — MQTT, Automations, Notifications
|
- [[systems/homeassistant]] — MQTT, Automations, Notifications
|
||||||
- [[systems/noris-ai]] — LLM Vision für Event-Klassifizierung
|
- [[systems/noris-ai]] — LLM Vision für Event-Klassifizierung
|
||||||
- [[entities/infrastructure]] — CT151 auf proxmox6
|
- [[entities/infrastructure]] — CT151 auf proxmox6
|
||||||
|
- [[patterns/ceph-osd-keyring-rotation-reboot]] — PAT-016
|
||||||
|
|||||||
+14
-10
@@ -9,21 +9,25 @@ modified: "2026-10-04"
|
|||||||
# MariaDB Galera + MaxScale
|
# MariaDB Galera + MaxScale
|
||||||
|
|
||||||
## Galera Cluster (3/3 Synced)
|
## Galera Cluster (3/3 Synced)
|
||||||
| Node | VM | IP | Role |
|
| Node | VM | Aktuell auf (10.10.) | Erlaubte Nodes (HA-Rule) | IP |
|
||||||
|------|----|----|------|
|
|------|----|----------------------|--------------------------|----|
|
||||||
| db1 | VM300 (ms-a2-1) | 10.0.30.71 | Slave |
|
| db1 | VM300 | proxmox4 | n5pro, proxmox3, proxmox4 | 10.0.30.71 |
|
||||||
| db2 | VM301 (proxmox3) | 10.0.30.72 | Slave |
|
| db2 | VM301 | proxmox7 | proxmox5, proxmox6, proxmox7 | 10.0.30.72 |
|
||||||
| db3 | VM302 (proxmox6) | 10.0.30.73 | Master |
|
| db3 | VM302 | ms-a2-2 | ms-a2-1, ms-a2-2 | 10.0.30.73 |
|
||||||
|
|
||||||
|
Rollen (Master/Slave) dynamisch — 10.10. war db2 Master. Anti-Collocation-Rules: 300⊥301, 300⊥302, 301⊥302.
|
||||||
|
|
||||||
- **Root Credentials:** `/root/.my.cnf` auf VM300 (via `qm guest exec`)
|
- **Root Credentials:** `/root/.my.cnf` auf VM300 (via `qm guest exec`)
|
||||||
- **1Password `mariadb-root` Item:** PASSWORT IST FALSCH — stimmt nicht mit `/root/.my.cnf` überein
|
- **1Password `mariadb-root` Item:** PASSWORT IST FALSCH — stimmt nicht mit `/root/.my.cnf` überein
|
||||||
|
|
||||||
## MaxScale Proxy (HA)
|
## MaxScale Proxy (HA)
|
||||||
| Node | VM | IP | Port |
|
| Node | VM | Aktuell auf (10.10.) | Erlaubte Nodes (HA-Rule) | IP |
|
||||||
|------|----|----|------|
|
|------|----|----------------------|--------------------------|----|
|
||||||
| MaxScale-01 | VM310 (proxmox1) | 10.0.30.81 | Admin :8989 |
|
| MaxScale-01 | VM310 | proxmox7 | proxmox4, proxmox5, proxmox7 | 10.0.30.81 (:8989 Admin) |
|
||||||
| MaxScale-02 | VM311 (ms-a2-1) | 10.0.30.82 | Standby |
|
| MaxScale-02 | VM311 | ms-a2-1 | ms-a2-1, ms-a2-2 | 10.0.30.82 |
|
||||||
| **VIP** | — | **10.0.30.70** | :3306 (keepalived) |
|
| **VIP** | — | — | — | **10.0.30.70** :3306 (keepalived) |
|
||||||
|
|
||||||
|
Anti-Collocation: 310⊥311. **2026-10-10:** Beide Failover-VMs (301, 310) live auf p7 zurückmigriert (`ha-manager migrate`), verifiziert via MaxCtrl: db2 Master/Synced/Running, 3/3 Synced, VIP .70:3306 offen, maxscale+keepalived active.
|
||||||
|
|
||||||
- **Admin:** `admin:mariadb` auf :8989
|
- **Admin:** `admin:mariadb` auf :8989
|
||||||
|
|
||||||
|
|||||||
@@ -67,6 +67,14 @@ modified: "2026-09-27"
|
|||||||
- Nach Fix: Alle 24 VolumeAttachments `true`, Gitea Pod Running nach Pod-Delete.
|
- Nach Fix: Alle 24 VolumeAttachments `true`, Gitea Pod Running nach Pod-Delete.
|
||||||
- **Lesson:** Bei CSI-basierten PVs immer zuerst VolumeAttachment Status prüfen, nicht nur PVC Phase.
|
- **Lesson:** Bei CSI-basierten PVs immer zuerst VolumeAttachment Status prüfen, nicht nur PVC Phase.
|
||||||
|
|
||||||
|
## API-Quirks (Gitea 1.27.0, verifiziert 2026-10-10)
|
||||||
|
|
||||||
|
- **`PUT /repos/{owner}/{repo}/collaborators/{user}` antwortet 204** und listet den User danach in `GET /collaborators` — ABER: `permissions.pull/push/admin` kommen dort als `null` zurück (Anzeige-Artefakt). Wirksamkeit stattdessen per `ls-remote`-Test oder `GET /repos/{owner}/{repo}/collaborators/{user}/permission` prüfen.
|
||||||
|
- **`GET /admin/users/{username}` → 405 Method Not Allowed.** Admin-Info via `POST /admins/users/search`-Variante oder `GET /users/{username}` (öffentlich, ohne admin-Felder).
|
||||||
|
- **Basic-Auth-Login eines Users mit `must_change_password=true` → 403** mit klarer Meldung („You must change your password"), statt 200. Erwartetes Gate-Verhalten, kein Defekt.
|
||||||
|
- **`must_change_password=true` blockiert Web/API, aber NICHT Git-over-HTTPS** — der Account kann sofort klonen. Wer volles Web/UI braucht, muss erst das PW wechseln.
|
||||||
|
- **`DELETE /repos/{owner}/{repo}/collaborators/{user}` → 204 unabhängig davon, ob je eine Collaboration existierte** — kein brauchbarer Existenz-Check.
|
||||||
|
|
||||||
## Related
|
## Related
|
||||||
- [[systems/rke2-kubernetes]]
|
- [[systems/rke2-kubernetes]]
|
||||||
- [[concepts/gitops-workflow]]
|
- [[concepts/gitops-workflow]]
|
||||||
|
|||||||
@@ -0,0 +1,54 @@
|
|||||||
|
---
|
||||||
|
title: Hermes WebUI (Hermex-Backend)
|
||||||
|
category: systems
|
||||||
|
tags: [hermes, hermex, ios, webui, systemd, mobile]
|
||||||
|
created: "2026-10-10"
|
||||||
|
modified: "2026-10-10"
|
||||||
|
related: [systems/hermes-agent-01, systems/sarah-hermes, reference/ip-map]
|
||||||
|
---
|
||||||
|
|
||||||
|
# Hermes WebUI (Hermex-Backend auf hermes-agent-01)
|
||||||
|
|
||||||
|
Third-Party-Server **hermes-webui** (github.com/nesquena/hermes-webui) als Backend für
|
||||||
|
die iOS-App **Hermex**. NIEMALS verwechseln: Hermex spricht NICHT mit dem offiziellen
|
||||||
|
`hermes dashboard` (:9119) — das ist ein anderes Protokoll.
|
||||||
|
|
||||||
|
## Stack
|
||||||
|
|
||||||
|
| Komponente | Wert |
|
||||||
|
|---|---|
|
||||||
|
| Service | systemd `hermes-webui-dominik.service` (system-weit, enabled) |
|
||||||
|
| Binary | `/opt/hermes-webui/server.py` unter `/home/debian/hermes-agent/venv/bin/python3` (Agent-Venv = Superset; Server importiert Agent-Module in-process) |
|
||||||
|
| Listen | `0.0.0.0:8790` (LAN-only; Runner 10.0.30.230) |
|
||||||
|
| Auth | `HERMES_WEBUI_PASSWORD` (1P Vault Hermes → Item `dominik-hermes-webui`, bgjgnoe57n2uteyqzqvoodgtqq); Signed-Cookie, Key auto-gen in `~/.hermes/webui/.signing_key` |
|
||||||
|
| Agent-Integration | `HERMES_HOME=/home/debian/.hermes`, `HERMES_WEBUI_AGENT_DIR=/home/debian/hermes-agent` (Checkout liegt NICHT unter ~/.hermes/hermes-agent!) |
|
||||||
|
| Cron | KEIN Scheduler-Thread im WebUI-Prozess — Scheduler bleibt allein im Gateway, WebUI nur API-Zugriff auf jobs.json (Doppel-Feuer ausgeschlossen) |
|
||||||
|
| State | WebUI-eigene Sessions in `~/.hermes/webui/`; CLI/Telegram-Sessions via state.db-Bridge sichtbar (read-only für alte, materialisierbar) |
|
||||||
|
| Logs | `/var/log/hermes-webui/dominik.log`, logrotate daily×7 (`/etc/logrotate.d/hermes-webui`; logrotate musste auf dem Runner nachinstalliert werden) |
|
||||||
|
|
||||||
|
## Hermex-Verbindungswerte (iOS-App)
|
||||||
|
|
||||||
|
- **Server-URL**: `http://10.0.30.230:8790`
|
||||||
|
- **Passwort**: 1Password Vault „Hermes" → `dominik-hermes-webui`
|
||||||
|
|
||||||
|
Unterwegs nur via VPN (WireGuard) erreichbar — bewusst kein Internet-Exposure.
|
||||||
|
|
||||||
|
## API-Spickzettel
|
||||||
|
|
||||||
|
- `GET /health`, `GET /api/auth/status` (password_auth_enabled)
|
||||||
|
- `POST /api/auth/login` `{password}` → Cookie; falsches PW → 401
|
||||||
|
- `GET /api/sessions` — Cold-Start 34–70 s (state.db-Scan), warm 0,2 s
|
||||||
|
- `POST /api/session/new` → eigene hex-ID (mitgegebenes session_id-Feld wird IGNORIERT)
|
||||||
|
- `POST /api/chat` `{session_id, message}` → `{status:"done", answer}` (Agent-Subprocess)
|
||||||
|
- Chat auf fremde CLI/TG-Session-ID → KeyError/500 (read-only)
|
||||||
|
|
||||||
|
## Pitfalls
|
||||||
|
|
||||||
|
- `op item view <id> --vault <v>` existiert nicht → `op read "op://Hermes/<id>/password"`
|
||||||
|
- Unit-Templating per sed-%-Format zerstört Unit (static, Garbage-PW) → Python-Substitution
|
||||||
|
- Gateway-Self-Guard blockiert kombinierte Terminal-Commands mit `state.db`-Strings nearby (False-Positive) → aufteilen
|
||||||
|
|
||||||
|
## Verwandt
|
||||||
|
|
||||||
|
- Sarahs Instanz: [[systems/sarah-hermes]] (VM107, Docker-Variante :8787)
|
||||||
|
- Solution Doc: `docs/solutions/integrations/2026-10-10-hermex-ios-hermes-webui-backend.md`
|
||||||
@@ -27,12 +27,12 @@ modified: "2026-09-27"
|
|||||||
- **Schreibmethode:** SSH → `docker exec homeassistant chmod 666`, danach restore 644
|
- **Schreibmethode:** SSH → `docker exec homeassistant chmod 666`, danach restore 644
|
||||||
- **Reload:** REST API mit JWT (HS256, signed from `/config/.storage/auth`)
|
- **Reload:** REST API mit JWT (HS256, signed from `/config/.storage/auth`)
|
||||||
|
|
||||||
### Frigate Einfahrt Notification (ID 1714065780832)
|
### Frigate AI Notification v3 (ID 1714065780832)
|
||||||
- MQTT trigger `frigate/events` → filter `type=='new'` + cameras [Einfahrt,Terrasse] + labels [person,car,...]
|
- **Trigger:** MQTT `frigate/reviews` (severity=alert, Kameras Einfahrt/Terrasse) — NICHT `frigate/events` (Raw=Spam)
|
||||||
- Mode: `single`, cooldown 600s
|
- **Gate:** llmvision.image_analyzer (noris gemma-4-31b-it) VOR Push, binär KRITISCH/NORMAL
|
||||||
- Dedup: `input_text.frigate_last_event_id`
|
- **Suppress:** sub_labels Sarah/Dominik; 300s Kamera-Cooldown; Review-ID-Dedup
|
||||||
- Flow: delay 10s → snapshot → notify iPhone → optional LLM Vision
|
- **Push:** GENAU EIN kombinierter (Titel+Verdict+Objekte+Bild) nur bei KRITISCH ∨ KI-Fail ∨ Person (24/7, v3.1)
|
||||||
- Siehe [[systems/frigate]]
|
- Siehe [[systems/frigate]] + Solution Doc `bug-fixes/2026-10-10-frigate-notification-spam-review-alerts.md`
|
||||||
|
|
||||||
## Notify Services
|
## Notify Services
|
||||||
| Service | Status |
|
| Service | Status |
|
||||||
@@ -81,6 +81,14 @@ modified: "2026-09-27"
|
|||||||
- **Backup:** `.bak.20261001_175804` für configuration.yaml + automations.yaml
|
- **Backup:** `.bak.20261001_175804` für configuration.yaml + automations.yaml
|
||||||
- **NFS-Backups (Fix 2026-10-07):** Supervisor-Mounts `Backup_NFS` (usage=backup) + `Medien_NFS` (usage=media) → **10.0.20.100:/pool01_n2_redundant/HomeAssistant** (vorher tote 10.0.30.100, verloren beim NAS-Crash-Reboot 03.10.). Volle automatische Backups ~03:27 UTC nightly. Monitoring: Hermes-Cron `2006a91fba21` (Alert bei Backup-Alter >30h). Lösungsdoku: `docs/solutions/bug-fixes/2026-10-07-ha-audit-nfs-mount-failure-after-nas-crash.md`
|
- **NFS-Backups (Fix 2026-10-07):** Supervisor-Mounts `Backup_NFS` (usage=backup) + `Medien_NFS` (usage=media) → **10.0.20.100:/pool01_n2_redundant/HomeAssistant** (vorher tote 10.0.30.100, verloren beim NAS-Crash-Reboot 03.10.). Volle automatische Backups ~03:27 UTC nightly. Monitoring: Hermes-Cron `2006a91fba21` (Alert bei Backup-Alter >30h). Lösungsdoku: `docs/solutions/bug-fixes/2026-10-07-ha-audit-nfs-mount-failure-after-nas-crash.md`
|
||||||
|
|
||||||
|
## Garagentor (free@home ch0003) — Flanken-Toggle-Semantik
|
||||||
|
- **Kanal:** `switch.garagentor` = free@home Schaltaktor `ABB20C351F51/ch0003`, treppenlicht-parametriert (Kanal nach Aktivierung AN bis Timer-Ablauf). `cover.garagentor` = Template-Cover darüber (open/close = je EINE Kanalaktivierung).
|
||||||
|
- **Motor toggelt auf JEDE Kanalflanke.** Einzelimpuls = sauber Umschalten (belegt: 17:51 Puls → schloss in ~90s). **Zwei schnelle Flanken = Start-Stopp** (belegt: 17:07 mein OFF→ON-Doppelpuls, 17:48 Nutzer-Doppelklick — jeweils blieb das Tor offen!). Doppelklick-Gewohnheit wirkt der Schließfahrt aktiv entgegen.
|
||||||
|
- **BUG (seit 05.10.):** `switch.garagentor` = `unknown`, 0 Logbook-Events — Statusrückmeldung SysAP→HA für ch0003 tot. SysAP-REST braucht Credentials (401 anon + admin/admin), SSH-Addon gestoppt → Diagnose dort blockiert.
|
||||||
|
- **Automations (2026-10-10, REST-config):** `warn_offen_beim_verlassen` (Person weg >2min + Garagentor/Esszimmertür offen → time-sensitive Push mit CLOSE_GARAGE-Button) + `garagentor_push_close` **v8 Single-Edge** (Guards: offen+90s stabil+45s Anti-Doppeltipp; EIN switch.turn_on, KEIN turn_off-Präludium; 45s-Verifikation per Neigungssensor; Retry erst nach 480s; ehrliche Fehler-Push). Tag `warn_offen_beim_verlassen` aktualisiert Notifications.
|
||||||
|
- Nur 2 physische Öffnungssensoren im Haus: Garagentor (Neigungssensor+Cover) + Esszimmertür (`binary_sensor.esszimertur_contact`, Aqara). free@home-Panels sind Taster, KEINE Fensterkontakte.
|
||||||
|
- Solution Doc: `docs/solutions/integrations/2026-10-10-freeathome-garage-impulse-toggle-semantics.md`
|
||||||
|
|
||||||
## Related
|
## Related
|
||||||
- [[systems/frigate]] — NVR Integration
|
- [[systems/frigate]] — NVR Integration
|
||||||
- [[systems/noris-ai]] — LLM Vision Provider
|
- [[systems/noris-ai]] — LLM Vision Provider
|
||||||
|
|||||||
+11
-8
@@ -1,6 +1,6 @@
|
|||||||
# Immich — Foto/Video-Management
|
# Immich — Foto/Video-Management
|
||||||
|
|
||||||
> **Status 2026-10-09:** K8s-Immich (v3.3.1) ist **alleinige Produktion** für `photos.familie-schoen.com`. Legacy-Immich auf CT111 (v2.6.3) nach Reconciliation **stillgelegt** (Container gestoppt, Autostart aus, Daten unangetastet).
|
> **Status 2026-10-10:** K8s-Immich (v3.3.1) ist **alleinige Produktion** für `photos.familie-schoen.com`. Legacy-Immich auf CT111 (v2.6.3) nach Reconciliation **stillgelegt** (Container gestoppt, Autostart aus, Daten unangetastet). **NAS-Foto-Ingest 09./10.10. KOMPLETT:** 29.423 neue Files (78,2 GB) via API-Upload, Reconciliation 0 fehlend.
|
||||||
|
|
||||||
## Produktion: K8s-Immich (v3.3.1)
|
## Produktion: K8s-Immich (v3.3.1)
|
||||||
|
|
||||||
@@ -9,10 +9,10 @@
|
|||||||
| URL | `https://photos.familie-schoen.com` → Traefik-LB 10.0.30.203 → K8s |
|
| URL | `https://photos.familie-schoen.com` → Traefik-LB 10.0.30.203 → K8s |
|
||||||
| Namespace | `immich` |
|
| Namespace | `immich` |
|
||||||
| Version | v3.3.1 (Upgrade von v3.2.2 am 09.10. via GitOps, Commit `3ff08c4`) |
|
| Version | v3.3.1 (Upgrade von v3.2.2 am 09.10. via GitOps, Commit `3ff08c4`) |
|
||||||
| Assets | **56.887** (56.531 unique Checksummen) |
|
| Assets | **86.316** (85.960 unique Checksums) — Stand 10.10. nach NAS-Ingest |
|
||||||
| Storage | cephfs-PVC 500Gi (Library ~188 G), tägliches Restic-Backup 04:09 (218,8 GiB, 14 Snapshots) |
|
| Storage | cephfs-PVC 500Gi (Library ~365 G, 73 %), tägliches Restic-Backup 04:09 (218,8 GiB, 14 Snapshots) |
|
||||||
| ArgoCD-App | `immich`, Path `clusters/main/immich/implemented`, Repo `canonical` (HEAD) |
|
| ArgoCD-App | `immich`, Path `clusters/main/immich/implemented`, Repo `canonical` (HEAD) |
|
||||||
| Deployments | `immich-server`, `immich-machine-learning`, `immich-valkey` |
|
| Deployments | `immich-server` (6Gi-Limit, 2Gi-Req, **pinned rke2-worker-01** — OOM-Fix 10.10., Commit `6ce2a0a`), `immich-machine-learning`, `immich-valkey` |
|
||||||
| DB | `postgresql` namespace, `postgres-main-1`, DB `immich` (CNPG-managed) |
|
| DB | `postgresql` namespace, `postgres-main-1`, DB `immich` (CNPG-managed) |
|
||||||
| DB-Zugriff | `kubectl -n postgres exec postgres-main-1 -- psql -U postgres -d immich` (nicht `-U immich`!) |
|
| DB-Zugriff | `kubectl -n postgres exec postgres-main-1 -- psql -U postgres -d immich` (nicht `-U immich`!) |
|
||||||
|
|
||||||
@@ -21,7 +21,7 @@
|
|||||||
- **Nie wieder `recurse: true` auf immich-config** — das ließ beide Apps dieselben Workloads verwalten → Tracking-Label-Krieg (13.353+ Heals, ewiges OutOfSync; behoben 09.10. via Commits 57cfa65+497aa34)
|
- **Nie wieder `recurse: true` auf immich-config** — das ließ beide Apps dieselben Workloads verwalten → Tracking-Label-Krieg (13.353+ Heals, ewiges OutOfSync; behoben 09.10. via Commits 57cfa65+497aa34)
|
||||||
- Diagnose-Hebel bei OutOfSync: `argocd app diff <app>` im argocd-server-Pod (`--plaintext`, PW aus `argocd-initial-admin-secret`) — Tracking-Label-Diff = App-Kollisions-Fingerprint
|
- Diagnose-Hebel bei OutOfSync: `argocd app diff <app>` im argocd-server-Pod (`--plaintext`, PW aus `argocd-initial-admin-secret`) — Tracking-Label-Diff = App-Kollisions-Fingerprint
|
||||||
- `status.resources` kann Stale-Einträge zeigen; Wahrheit = `argocd app diff`
|
- `status.resources` kann Stale-Einträge zeigen; Wahrheit = `argocd app diff`
|
||||||
- Übergangs-Freeze auf immich-config (prune:false/selfHeal:false) nach 24 h Stabilität reaktivieren
|
- ~~Übergangs-Freeze auf immich-config~~ Aufgehoben 10.10. (Commit `3ec6327`): selfHeal+prune scharf nach bewiesenem Label-Sweep — Ownership-Krieg endgültig beendet (Commits 57cfa65+497aa34+3ec6327)
|
||||||
|
|
||||||
### GitOps-Upgrade-Rezept (bewährt)
|
### GitOps-Upgrade-Rezept (bewährt)
|
||||||
1. `clusters/main/immich/values.yaml`: Image-Tags patchen (3 Stellen: controllers.main + explizite Repos server/ML)
|
1. `clusters/main/immich/values.yaml`: Image-Tags patchen (3 Stellen: controllers.main + explizite Repos server/ML)
|
||||||
@@ -55,13 +55,16 @@
|
|||||||
`docker start immich_postgres immich_redis immich_machine_learning immich_server` (Reihenfolge!) + `docker update --restart=always …` — Daten unberührt.
|
`docker start immich_postgres immich_redis immich_machine_learning immich_server` (Reihenfolge!) + `docker update --restart=always …` — Daten unberührt.
|
||||||
|
|
||||||
## Offene Punkte
|
## Offene Punkte
|
||||||
- **fluent-bit-Journal-Flut auf CT111:** Loki 10.0.30.207:3100 unreachable → Journal wächst wieder. Fix: Loki-Routing oder journald-Drop-In `SystemMaxUse=200M`.
|
- ~~fluent-bit-Journal-Flut auf CT111~~ **GEFICKT 09.10.** (Loki-LB .207 restauriert, Commit fb4d8b9; journald-Cap 200M airbag) — siehe [[systems/loki-fluentbit]]
|
||||||
- Foto-Ingest NAS → K8s (305 G Dominik + 119 G Sarah) gegen 56.887 Bestandsassets dedupen — nächster Migrationsschritt
|
- ~~Foto-Ingest NAS → K8s~~ **KOMPLETT 10.10.:** 29.423 Files / 78,2 GB (d 27.966 + s 1.436), Reconciliation 0 fehlend; Artefakte `~/home-drilldown/census/`; Rest: Grayzone 559 Files bewusst draußen, 5 RAWs mit dcraw-Thumbnail-Fehlern (Originale intakt)
|
||||||
- Endgültige Dekommissionierung (Volumes/DB/Images) separat genehmigen; bis dahin bleibt alles liegen
|
- ~~**immich-config-Freeze reaktivieren**~~ **ERLEDIGT 10.10.** (Commit `3ec6327`): selfHeal+prune scharf nach bewiesenem Label-Sweep (kein Objekt trägt mehr das Tracking-Label); beide Apps Synced/Healthy, kein Ping-Pong. Präzedenz: Vor `prune:true` nach Ownership-Konsolidierung IMMER cluster-weiten Label-Sweep machen — `status.resources` der App kann stale Workload-Einträge zeigen.
|
||||||
|
- Endgültige Dekommissionierung Legacy (Volumes/DB/Images) separat genehmigen; bis dahin bleibt alles liegen
|
||||||
- CT111-Disk-Reserven: ~15,6 GB ungenutzte getaggte Images + diverse Volumes — nur mit Freigabe
|
- CT111-Disk-Reserven: ~15,6 GB ungenutzte getaggte Images + diverse Volumes — nur mit Freigabe
|
||||||
|
- ~~NAS-Ingest-Keys `nas-ingest-d/s`~~ Plaintext-Keys vernichtet 10.10. (NAS keys.env + lokale Kopie gelöscht); Key-Records leben in DB, Re-Mint jederzeit via decode()-Insert möglich
|
||||||
|
|
||||||
## Verweise
|
## Verweise
|
||||||
- [[systems/seafile]] — Dokumente/Archive-Ziel der Home-Migration
|
- [[systems/seafile]] — Dokumente/Archive-Ziel der Home-Migration
|
||||||
- [[systems/ceph-cluster]] — cephfs-PVC der K8s-Instanz
|
- [[systems/ceph-cluster]] — cephfs-PVC der K8s-Instanz
|
||||||
- [[systems/rke2-kubernetes]] — Cluster-Anatomie
|
- [[systems/rke2-kubernetes]] — Cluster-Anatomie
|
||||||
- Solution-Doc: `docs/solutions/workflows/2026-10-09-immich-legacy-decommission-prep.md`
|
- Solution-Doc: `docs/solutions/workflows/2026-10-09-immich-legacy-decommission-prep.md`
|
||||||
|
- Solution-Doc: `docs/solutions/workflows/2026-10-10-immich-nas-ingest-api-upload.md` (Massen-Upload-Rezept: Manifest+x-immich-checksum+Checkpoint)
|
||||||
|
|||||||
@@ -0,0 +1,38 @@
|
|||||||
|
# Notfallbuch (eol-dr für Sarah)
|
||||||
|
|
||||||
|
> Persönliches End-of-Life-Playbook für Sarah, adaptiert von
|
||||||
|
> [potatoqualitee/eol-dr](https://github.com/potatoqualitee/eol-dr).
|
||||||
|
> **Enthält Zugangsdaten — intern only, niemals öffentlich spiegeln.**
|
||||||
|
|
||||||
|
## Fakten
|
||||||
|
|
||||||
|
| | |
|
||||||
|
|---|---|
|
||||||
|
| **Repo** | `dominik/notfallbuch` @ https://git.schoen.codes/dominik/notfallbuch (privat) |
|
||||||
|
| **Lokal** | `/home/debian/notfallbuch` |
|
||||||
|
| **Secrets** | Dürfen ins Repo/Dokument (Uservoting 2026-10-10 — intern gehostet, Präzedenz `_Recovery`) |
|
||||||
|
| **Print-Ablage** | Ordner „Vorsorgedokumente" im Büro (bewusst KEINE Feuertasche) |
|
||||||
|
| **Vertrauensperson** | **Stefan Meier** („Peter-Faktor"): Lab-Abruck, Restore, Verkauf; Kapitel 09; soll dormant lokalen Gitea-Account bekommen (Status: offen) |
|
||||||
|
| **Design-Doc** | `~/docs/designs/2026-10-10-notfallbuch-sarah-design.md` |
|
||||||
|
|
||||||
|
## Struktur
|
||||||
|
|
||||||
|
- `manual/01–09*.md` — Sarah-Kapitel (Dominik pflegt halbjährlich; Reminder-Cron)
|
||||||
|
- `generated/*.md` — Inventar aus Live-Cluster (Monats-Cron regeneriert; DO-NOT-EDIT)
|
||||||
|
- `mapping/triage-map.md` — Join: ArgoCD-Annotation `eol.familie-schoen.com/triage: keep|reduce|retire|money` ↔ Klartext für Sarah/Stefan. **26 Apps noch ungelabelt (Stand 2026-10-10), holmes/holmes-config = KLÄREN**
|
||||||
|
- `build.sh` — pandoc+xelatex → `dist/Notfallbuch_<datum>_<sha>.pdf|.docx` (A4; pandoc+xelatex seit 2026-10-10 auf hermes-agent installiert)
|
||||||
|
|
||||||
|
## Frische-Mechanik (Hybrid)
|
||||||
|
|
||||||
|
1. **Monatlich:** Cron `c4eb1bbe63df` („Notfallbuch Monats-Update", 1. des Monats 06:00, no_agent) → `scripts/update_and_commit.sh`: regeneriert `generated/`, diffed **ohne Timestamp-Zeile** (kein Schein-Drift), committet+pusht nur echten Drift, Digest an `telegram:-5265906503` nur bei Drift oder ungeklärten Apps (Watchdog-Stille).
|
||||||
|
2. **Halbjährlich:** Cron `d8c6cdd5a1eb` (1.4./1.10. 09:00) erinnert an Review → `./build.sh` → Drucken → alten Druck Reißwolf → Ordner Büro.
|
||||||
|
|
||||||
|
## Bekannte Fallstricke
|
||||||
|
|
||||||
|
- **Bootstrap-Henne-Ei:** Druck ist der Anker (Sarah braucht kein Gitea); Stefans Zugang = Kapitel 02 + `_Recovery`, daher dormant Account **ohne SSO**.
|
||||||
|
- Generator braucht `PROXMOX_URL`/`PROXMOX_TOKEN` — provisioniert via `scripts/proxmox.env` (gitignored, 600; Quell-Item: 1P Vault „Proxmox" → „PVE API Token hermes"). Nach Token-Rotation: `./scripts/refresh_proxmox_env.sh`. Failover-URLs nur Live-Nodes (proxmox1/10.0.20.10 existiert nicht mehr!).
|
||||||
|
- Git-History behält rotierte Secrets → Repo nie öffentlich spiegeln.
|
||||||
|
- Live-Wahrheit schlägt Annahme: Immich = `photos.familie-schoen.com` (nicht `immich.*`); dritte Domain `schoen.eu` existiert.
|
||||||
|
|
||||||
|
## Related Solution Docs
|
||||||
|
- `docs/solutions/integrations/2026-10-10-gitea-api-token-header-required.md` — Gitea-API braucht Token-Header, Basic-Auth gibt 401
|
||||||
@@ -8,6 +8,19 @@ modified: "2026-09-30"
|
|||||||
|
|
||||||
# Proxmox VE Cluster
|
# Proxmox VE Cluster
|
||||||
|
|
||||||
|
## PVE API-Tokens (Stand 2026-10-10)
|
||||||
|
|
||||||
|
| Token | 1P-Item (Vault „Proxmox") | Zweck |
|
||||||
|
|---|---|---|
|
||||||
|
| `root@pam!hermes` | „PVE API Token hermes" | Hermes-Agent-Skripte, Notfallbuch-Generator (`notfallbuch/scripts/proxmox.env`, Refresh via `refresh_proxmox_env.sh`) |
|
||||||
|
| `root@pam!tofu` | „PVE API Token tofu" | IaC/Tofu/CI (`iac-homelab` epic-7 `destroy.env`, CI-Presets; Commit `eb039b2`) |
|
||||||
|
| `root@pam!tofu3` | — (nur PVE) | „temp for rebuild" |
|
||||||
|
| `root@pam!openclaw-readonly` | — (nur PVE) | Read-only, PVEAuditor auf `/` |
|
||||||
|
| `api@pam!homepage-status`, `exporter@pve!monitoring` | — (nur PVE) | Widgets/Monitoring |
|
||||||
|
|
||||||
|
**⚠️ Pitfall:** 1P-Item `proxmox_root` → Feld „Anmeldedaten" ist das **Root-Passwort**, KEIN API-Token (ergibt 401 als `PROXMOX_VE_API_TOKEN`). Endpoint ist kein Secret: `https://10.0.20.30:8006` (proxmox3) hart codieren. `proxmox1`/10.0.20.10 existiert nicht mehr.
|
||||||
|
|
||||||
|
|
||||||
## Cluster-Konfiguration
|
## Cluster-Konfiguration
|
||||||
- **Version:** PVE 9.2.20, Kernel 7.0.14-19-pve (upgraded 2026-09-25)
|
- **Version:** PVE 9.2.20, Kernel 7.0.14-19-pve (upgraded 2026-09-25)
|
||||||
- **Nodes:** 8 (Quorum OK, proxmox2 dauerhaft entfernt)
|
- **Nodes:** 8 (Quorum OK, proxmox2 dauerhaft entfernt)
|
||||||
@@ -68,6 +81,18 @@ pvesh get /cluster/resources --type vm # Alle VMs/CTs
|
|||||||
Frigate (8G) — innerhalb Ceiling. TODO bleibt: Placement-Ceiling (~70%) als
|
Frigate (8G) — innerhalb Ceiling. TODO bleibt: Placement-Ceiling (~70%) als
|
||||||
Guardrail formalisieren. PSI/OOM-Alerts: LIVE in CT141 (Regelgruppe
|
Guardrail formalisieren. PSI/OOM-Alerts: LIVE in CT141 (Regelgruppe
|
||||||
`pressure_alerts`, 5 Regeln; node_exporter nachinstalliert auf ms-a2-1/-2).
|
`pressure_alerts`, 5 Regeln; node_exporter nachinstalliert auf ms-a2-1/-2).
|
||||||
|
- **Reboot 10.10. (p6+p7):** osd.7/osd.10 stale-Keyring-Crashloop (PAT-016),
|
||||||
|
gefixt + Voll-Sweep 17/17 MATCH. CT151 mp0-Orphan (vm-120-disk-1 beim
|
||||||
|
vzdestroy:120 gelöscht) → neues Volume vm-151-disk-1. HA-Failover VM301→p5,
|
||||||
|
VM310→p4 wurde nach Reboot per `ha-manager migrate` retour auf p7 gebracht
|
||||||
|
(known-good Placement, p4/p5 wieder >1,6G bzw. 8,3G available). CT117
|
||||||
|
(leerer immich-postgresql-Remnant) 10.10. dekommissioniert: Config archiviert
|
||||||
|
(workspace/ct117-decommission/117.conf.archived), `pct destroy 117 --purge`,
|
||||||
|
verifiziert: Config+RBD vm-117-disk-0 weg, null Cluster-Spuren, HA/Ceph clean.
|
||||||
|
- **PMXCFS-Modell (10.10.):** Gast-Configs liegen NUR auf dem Owner-Node und
|
||||||
|
wandern mit dem Gast; *.bak replizieren clusterweit. Cluster-Scans MÜSSEN über
|
||||||
|
alle 8 Nodes iterieren (Collector: workspace/xref-scan/collect.sh). Vor jedem
|
||||||
|
destroy: Cross-Ref-Scan (CT120/151-Falle). Skill v1.38.0 patched.
|
||||||
|
|
||||||
## HA Rules (PVE 9.2 Rules System)
|
## HA Rules (PVE 9.2 Rules System)
|
||||||
Seit 2026-09-28: HA Groups → Rules migriert. Anti-Collocation + Node-Affinity.
|
Seit 2026-09-28: HA Groups → Rules migriert. Anti-Collocation + Node-Affinity.
|
||||||
|
|||||||
@@ -47,3 +47,154 @@ Private [[Seafile 13.0.19]] file sync and collaboration server. Self-hosted alte
|
|||||||
- Part of [[Infrastructure]]
|
- Part of [[Infrastructure]]
|
||||||
- Shares domain family with [[Email-System]] (familie-schoen.com)
|
- Shares domain family with [[Email-System]] (familie-schoen.com)
|
||||||
- Hosted on same machine as other family services
|
- Hosted on same machine as other family services
|
||||||
|
|
||||||
|
## Inventory 2026-10-09 (Bestandsaufnahme nach Crash)
|
||||||
|
|
||||||
|
### Topologie
|
||||||
|
- **Produktiv:** CT111 (10.0.30.99, Docker seafile-mc:13.0-latest + mariadb:10.11), Data `/opt/seafile-data` (RBD 345G, 250G used), OIDC/Authelia aktiv
|
||||||
|
- **Altlast:** 10.0.20.100 (Ubuntu-Host) — KEIN laufender Seafile-Container mehr (Reboot 03.10.2026, nie restarted). Nur Image `seafileltd/seafile-mc:11.0-latest`.
|
||||||
|
|
||||||
|
### Drei Datengenerationen auf 10.0.20.100 (/var/lib/docker/volumes/)
|
||||||
|
| Volume | Inhalt | Stand | Status |
|
||||||
|
|--------|--------|-------|--------|
|
||||||
|
| `seafile_custom_mariadb` + `seafile_custom_data` | **Epoch A** (Seafile 11, DB `seafile-db` m. Bindestrich) | letzter Betrieb 2025-05-16 | **231 GB Content INTAKT** in `storage/{blocks,commits,fs}` |
|
||||||
|
| `seafile_mysql` | Stand B (MariaDB 10.7.8, DB `seafile_db` m. Unterstrich) | ibdata 2026-03-16 | nur Metadaten (14 Repos), Content gelöscht (`rm -rf seafile-data`) |
|
||||||
|
| `seafile-mysql.crashed`, `*_2023`, SQL-Dumps 2023-01-25 | Crash-Reste 2023 | 2023 | historisch |
|
||||||
|
|
||||||
|
### Epoch A Ownership (autoritativ: RepoOwner der alten DB)
|
||||||
|
- **dominik@familie-schoen.com:** Meine Bibliothek (32,8 GB), Fotos.Cleo (18 MB), Dokumente (6,6 GB), Sicherung_Fotos (10,3 GB), CodeCamp:N (47,7 GB)
|
||||||
|
- **sarah@familie-schoen.com:** Meine Bibliothek (18,5 GB), evo-X (42,9 GB), CodeCamp:N (5,6 GB), Sparda Consult (58,3 GB)
|
||||||
|
- Recoverable (Blocks da, nicht in DB registriert): OneDrive-CodeCampNGmbH, Presentationload, Papa, BarCamp, KEB, Richtlinien
|
||||||
|
|
||||||
|
### CT111-Defekt (präzise Diagnose)
|
||||||
|
- `seahub_db.auth_user` = **LEER (0 Rows)** → nobody in Django-Table; **ABER**: Seafile 13 password-login authentifiziert NICHT über auth_user, sondern `seahub.base.accounts.AuthBackend` → `ccnet_threaded_rpc.validate_emailuser()` → **`ccnet_db.EmailUser.passwd`** (Eigenformat `PBKDF2SHA256$10000$<hex-salt>$<hex-hash>`, hex NICHT base64!)
|
||||||
|
- Repair (2026-10-10 durchgeführt): INSERT auth_user-Rows (Django-format, für Web-UI-Konsistenz) + UPDATE ccnet_db.EmailUser.passwd mit frischen Hashes → api2/auth-token liefert Tokens für beide User. OIDC-Links (social_auth_usersocialauth) unberührt.
|
||||||
|
- PITFALL: `$` in Hashes über SSH-inline-Shell wird gefressen → SQL-Files per scp übertragen, nie printf/inline-quoting!
|
||||||
|
- `seafile_db.RepoOwner` OK (57/57): 40× dominik, 3× sarah, 13× Ghost `bec3ed8a...@auth.local` (alle 0 Byte = leere Hüllen), 1× System
|
||||||
|
- Ghost-Profile: `406e2202...@auth.local` (=sarah, contact sarah@), `bec3ed8a...@auth.local` (nickname „none")
|
||||||
|
- `social_auth_usersocialauth`: dominik+sarah korrekt an Authelia gebunden → **Repair = auth_user-Rows reinsert**, Links funktionieren weiter
|
||||||
|
- Gruppe 1 (Familie): Steuer, Finanzen, Vorsorgedokumente, Versicherungen, Wohnung Tucherstraße, Haus Rohr
|
||||||
|
- evo-X auf CT111: 24.704 Commits, aber 0 Blocks (Content fehlt dort!) — Epoch-A-evo-X (42,9 GB) liegt auf .100
|
||||||
|
|
||||||
|
### Methodik-Pitfalls
|
||||||
|
- Seafile ≤11: Lib-Namen NICHT in DB, sondern in Commit-JSONs (`storage/commits/<id>/**`, Feld `repo_name`)
|
||||||
|
- Alte Datadir-Volumes auditieren: `cp -a` → Wegwerf-Container `mariadb:X --skip-grant-tables` → Query gegen Kopie
|
||||||
|
- `seafile-db` (Bindestrich, Epoch A) vs `seafile_db` (Unterstrich, später) — zwei verschiedene Installationen!
|
||||||
|
|
||||||
|
### Empfehlung Zielplattform K8s: **Seafile** (nicht Nextcloud)
|
||||||
|
Block-Level-Dedupe (Foto-Bestand!), effizientes Sync-Protokoll, etabliertes OIDC-Setup + Skills vorhanden. Nextcloud nur bei Kollaborations-App-Bedarf.
|
||||||
|
|
||||||
|
## API-Bestandsaufnahme CT111 (2026-10-10, verifiziert)
|
||||||
|
|
||||||
|
### Kernbefunde (korrigieren/frühere Annahmen!)
|
||||||
|
- **56 Repos lt. Admin-API** (RepoOwner sagte 57; 1 Diff vermutlich System-Repo „My Library Template" nicht per API gelistet — System-Owner-Repo fehlt im Listing).
|
||||||
|
- **Admin-Statistiken (size/file_count) sind UNZUVERLÄSSIG**: viele Repos melden 0 MB obwohl großer Content vorhanden (z.B. „Bücher" 5bcdffe0: API sagt 0 MB, real 1.005 MB Blocks; „Archiv CodeCampN": API 0, real 56,5 GB!). Immer Walk + du prüfen.
|
||||||
|
- **evo-X & Sparda Consult sind VOLL INTAKT auf CT111** (Download-Spotcheck: exakte Größe, korrekte PK/ZIP-Magic): evo-X 33,5 GB Blocks, Sparda Consult 46,5 GB Blocks. Frühere These „Content fehlt" IST WIDERLEG'T. Die .100-Epoch-A-Daten sind Redundanz, keine Rescue-Pflicht.
|
||||||
|
- **244,2 GB Blocks** verteilt auf **37 Repos**; **19 Repos physisch leer** (0 Blocks).
|
||||||
|
- Ghost `bec3ed8a...@auth.local`: 13 Repos, davon **10 leer**, **3 MIT Content** (Bücher 1.369 MB, Arbeit 813 MB, Auto 161 MB) — NICHT blind löschen!
|
||||||
|
|
||||||
|
### Duplikat-Cluster (Detailanalyse via Walk-Signaturen + Block-Intersections)
|
||||||
|
| Cluster | Repos | Befund | Empfehlung |
|
||||||
|
|---|---|---|---|
|
||||||
|
| CodeCamp:N ×14 | 9 dominik-leer, 4 ghost-leer, 8cd0362a (5f/0,9MB), 60fe22e3 (15f/23,5MB) | 60fe22e3 ⊃ 8cd0362a (echtes Superset: +11 HR-Onboarding/Schulungs-Dateien); 13 weitere Leerformen | Behalten: 60fe22e3 (+ evtl. 8cd0362a bis Merge), Löschen: 13 Leerformen |
|
||||||
|
| Wohnung Tegernheim ×2 | 0727a58c (166f/191MB) vs 2d496a7b (159f/177MB) | 152 Blöcke gemeinsam, 19 nur A, 10 nur B → divergierte Zwillinge | Beide behalten bis manuell konsolidiert; NICHT automatisch mergen |
|
||||||
|
| _Recovery ×2 | 06892f29 (69f/34MB) vs 472572d6 (71f/35MB) | 39 Blöcke gemeinsam, B=A+2 (Monero_Recover.txt, DATEV-Wiederherstellungscode) | 472572d6 = Superset → 06892f29 löschen (nach Go) |
|
||||||
|
| Bücher ×2 | 356985d8 (Ghost, 1.369MB) vs 5bcdffe0 (dominik, 1.005MB) | Nur 101/287 Blöcke gemeinsam → unterschiedliche Inhalte | Ghost-Version retten (transferieren), dann Ghost-Repo löschen |
|
||||||
|
| Arbeit ×2 | 38c9a1be (dominik, 980MB, 846f) vs 515f7f35 (Ghost, 813MB, 735 Blöcke) | 703/735 Blöcke identisch → Ghost ≈ ältere Version | Ghost-Version archivieren, dann löschen |
|
||||||
|
| Auto ×2 | 09116e0f (dominik, 161MB) vs dc62b8b5 (Ghost, 161MB) | 15/29 Blöcke gemeinsam → divergiert | Beide prüfen, keines ist Subset |
|
||||||
|
| My Library Template ×3 | e28326f5, 35a6f96c (dominik) leer; d5c1b781 (Ghost) leer | alle leer | Alle drei löschen (nach Go) |
|
||||||
|
| Meine Bibliothek ×5 | dominik 7bd9393a (685f/4,4GB) ≠ sarah cefb4ca1 (3.023f/6,9GB) | KEINE Duplikate — völlig unterschiedliche Inhalte (dom: Arduino/AirCard; sarah: Promotion/Bewerbungen) | Beide behalten |
|
||||||
|
| „Arbeit" (dominik) enthält fremden Ordner | 38c9a1be | kompletter Ast `Sarah/Bewerbungen Sarah/` (Bewerbungsmappe, Zeugnisse, CV) | Gehört vermutlich zu Sarahs Daten → umbauen/umziehen (nach Absprache) |
|
||||||
|
| „Arbeit" ∩ „Meine Bibliothek" (sarah) | 38c9a1be vs cefb4ca1 | 116 (Name,Size)-Matches, aber 0 identische Pfade | Innerhalb-Repo-Duplikate (Bewerbungen in mehreren Firmenordnern) + Cross-Ordner Sarah/Bewerbungen |
|
||||||
|
|
||||||
|
### Physisch leere Repos (0 Blocks) — Löschkandidaten
|
||||||
|
10× Ghost: Arztrechnungen (ef6e1b49), CodeCamp:N ×5 (87482c2c, 97f66c90, 193081d8, 30bd2c2b, 4b11f621), Meine Bibliothek ×3 (0fe195f0, 0d63f302, b4b83dec), My Library Template (d5c1b781)
|
||||||
|
9× dominik: CodeCamp:N ×7 (8d482d93, b85e95eb, b9a31812, cbdd4a4e, d309241b, df42746c, 07c2e7c3), My Library Template ×2 (e28326f5, 35a6f96c)
|
||||||
|
→ Achtung: Diese Liste ist Basis für Cleanup-Go; vor jedem Delete: Block-Du gegen aktuelles Datum wiederholen.
|
||||||
|
|
||||||
|
### API-Fakten (Seafile 13)
|
||||||
|
- `GET /api2/repos/{rid}/dir/?p=/` funktioniert; `/api2/repos/{rid}/dirents/` existiert NICHT (404+HTML)
|
||||||
|
- File-Download zweistufig: `/api2/repos/{rid}/file/?p=X&dl=1` → JSON-Link → GET Link (redirect auf `/seafhttp/files/...`)
|
||||||
|
- Admin-Token kann Ghost-Repos NICHT lesen (403 trotz Admin) — Ghost-Content nur via Storage-du/Blocks prüfbar
|
||||||
|
- Walk-Truncation bei max_req/max_files: „Archiv CodeCampN" (5.660 req), „Sparda" (6.645), „Fotos" (6.604) etc. — Walk-Zahlen sind Untergrenzen, Block-du ist die Wahrheit
|
||||||
|
|
||||||
|
### Ghost-Rettung EXECUTED (2026-10-10, nach User-Vorgabe „AS-IS restore an dominik, KEIN Merge")
|
||||||
|
- Die 3 Ghost-Content-Repos (Auto dc62b8b5, Bücher 356985d8, Arbeit 515f7f35) wurden **unverändert** (kein Rename, kein Copy) an `dominik@familie-schoen.com` übertragen.
|
||||||
|
- **Methode (funktionierend):** `PUT /api/v2.1/admin/libraries/{rid}/` mit **Form-Feld `owner`** (= Ziel-E-Mail). Achtung: Feld `email` wird stillschweigend ignoriert (HTTP 200, kein Flip!); User-API `PUT /api2/repos/{rid}/owner/` → 403 (nur aktueller Owner darf); POST → 405.
|
||||||
|
- Verifikation: Ghost-Rest 0, Owner-Verteilung dominik 33 / sarah 3, alle 3 Repos download-getestet (exakte Bytegröße + `%PDF`-Magic), Papierkorb unverändert 20.
|
||||||
|
- **Offen:** 2 Ghost-Profile (`bec3ed8a…@auth.local`, `406e2202…@auth.local`) existieren weiterhin als User-Accounts → Löschung nur nach Go.
|
||||||
|
|
||||||
|
### Cleanup EXECUTED (2026-10-10, per Admin-API, nach GO)
|
||||||
|
- **20 Repos soft-gedeleted** → Admin-Papierkorb (restore-fähig, kein GC konfiguriert, keine Retention-Automatik): 18 Leerformen (0 Blocks frisch per du verifiziert) + 2 verifizierte Subsets (_Recovery 06892f29 ⊂ 472572d6, CodeCamp:N 8cd0362a ⊂ 60fe22e3).
|
||||||
|
- **Bestand danach: 36 Libraries** (dominik 30, sarah 3, Ghost 3) — Sarah sieht ihre 3 (Meine Bib, Sparda Consult, evo-X) regulär.
|
||||||
|
- Ghost-Rest = exakt die 3 Content-Repos (Bücher 1.369 MB, Arbeit 813 MB, Auto 161 MB) — nächster Schritt: Content in dominik-Repos retten, dann Ghost-Repos löschen.
|
||||||
|
- 35a6f96c (My Library Template) NICHT gelöscht — Admin-API 404 (erklärt vermutlich die 56-vs-57-Diskrepanz); separat klären.
|
||||||
|
- Envelope-Pitfall v2.1-Admin-API: Listen liegen auf TOP-LEVEL (`j["repos"]`), NICHT unter `data` — mein erster Verify-Script hatte deshalb Schein-Nullen gemeldet (0 aktive/0 Trash), Raw-Dump brachte Klarheit. DELETE via `/api/v2.1/admin/libraries/{id}/` lief 200/204.
|
||||||
|
|
||||||
|
### Duplikat-Twin-Analyse (2026-10-10, read-only, walk-basiert)
|
||||||
|
Blocks sind content-adressiert/global dedupliziert → `du` pro Repo auf blocks/ immer 0; repo-lokal nur fs/commits-Meta. Wahrheit = API-Walk-Signaturen (Pfad+Size), Admin-API size/file_count unzuverlässig (zeigt 0).
|
||||||
|
- **Auto**: dc62b8b5 ≡ 09116e0f — PERFEKTES DUPLIKAT (17 Dateien, 160,2 MB, identisch). dc62b8b5 = Ghost-Rettungs-Kopie; 09116e0f behält Original-mtimes (2021).
|
||||||
|
- **Bücher**: 5bcdffe0 ⊂ 356985d8 — ECHTES SUBSET (145⊆183; Retter 356985d8 hat 38 Extra-Bücher à 364 MB Weber/Kochbücher). Löschenkandidat: 5bcdffe0.
|
||||||
|
- **Arbeit**: 38c9a1be (846, 1026 MB, aktiv bis 08/2026) vs 515f7f35 (745, 844 MB, Ghost-Rettung, Stand 02/2026). Gemeinsam 744; 38c9a1be hat 102 neuere Dateien (183 MB Präsentationen); 515f7f35 nur 1 Unique = `~$benslauf.docx` (Office-Lock-Junk). Kandidat: 515f7f35 löschen.
|
||||||
|
- **CodeCamp:N**: 60fe22e3 (15) ⊂ 42d24d5f (31) ⊂ 670abe70 (1286, 8,1 GB Master). Beide Kleine sind ECHTE SUBSETS, 0 Unique. Kandidaten: 60fe22e3 + 42d24d5f löschen, 670abe70 behalten. Achtung intra-repo: 670abe70 enthält ~2,6 GB Redundanz (PST/OST-Outlook-Archive + SFConflict-Kopien: 20210629_backup.pst 710 MB ×2, Sarah.Schoen@nuernberger.de.ost 620 MB ×2, Kundenzentrierung-SFC 603 MB) — optionaler Deep-Clean, separater GO.
|
||||||
|
- **Wohnung Tegernheim**: 0727a58c (166, hat 2025er Abrechnungen, aktiv 05/2026) vs 2d496a7b (159, Stand 02/2026, 1 Unique = `~$Zahlungsstand….xlsx` Junk). Kandidat: 2d496a7b löschen.
|
||||||
|
- Gesamt: 6 Lösch-Kandidaten (dc62b8b5, 5bcdffe0, 515f7f35, 60fe22e3, 42d24d5f, 2d496a7b) → alles Soft-Delete in Trash; einziger Verlust = 2 Office-Temp-Dateien. Listing würde 35→29. Physischer Space-Gewinn ~0 (Block-Dedupe) bis GC — Gewinn ist Ordnung, nicht Platz.
|
||||||
|
- Walk-Budgets: MAX_DIRS=500/MAX_FILES=4000 reichten; 670abe70 (1286 Dateien) vollständig, kein Trunc.
|
||||||
|
|
||||||
|
### BYTE-BEWEIS EXECUTED (2026-10-10, read-only) — PASS
|
||||||
|
Vor jedem Delete geforderte maximale Belastbarkeit; Grundlage: `/tmp/byteproof_walks.json` (Walk-Caches aller 12 beteiligten Repos, Pfad→{id,size,mtime}).
|
||||||
|
- **Methodik 3 Ebenen**: (1) 1051 gemeinsame Pfade mit IDENTISCHER FS-Objekt-ID (Seafile content-addressed ⇒ per Definition byte-identisch). (2) 59 strittige Pfade (ID≠, aber Size=) → alle Kategorie A: mtime-Delta durch Feb-2026-Massenrepair (Kandidaten uniformly 2026-02-05, Originale alte mtimes), 0× Kat-B (alles gleich außer ID), 0× Kat-C (Size-Diff). (3) Für alle 59: Zwei-Stufen-Download BEIDER Seiten + SHA-256-Vergleich → **59/59 identisch**. Dazu 3 Equal-ID-Kontrollen (identisch ✓).
|
||||||
|
- **Resultat: 0 Byte-Inhalte gehen verloren** — außer 2 Office-Lock-Temp-Dateien (`~$benslauf.docx` 162 B, `~$Zahlungsstand….xlsx` 165 B), beide jetzt VALIDE gesichert in `/root/delete-candidates-unique-backup/` (vorherige Version dort war 429-Pseudo-Backup, ersetzt).
|
||||||
|
- **Download-API-Pitfall (wichtig, korrigiert frühere These)**: „429 Throttling" war FALSCH — echtes Verhalten: `GET /api2/repos/{rid}/file/?p=…&dl=1` antwortet HTTP 200 mit **NACKTEM JSON-STRING** (die komplette Antwort ist `"https://cloud.familie-schoen.com/seafhttp/files/<uuid>/<filename>"`, ~122 B). Kein Dict, kein `token`-Feld! Richtiger Flow: String json.loads → urlparse → Netloc auf localhost (oder BASE) umbiegen → GET liefert Bytes. Wer das String-Dict parst bekommt 122-B-„Dateien" und glaubt an Throttling/Korruption.
|
||||||
|
- Performance: warm gelesen 848 MB/s (99-MB-PDF in 0,1 s); erster Lauf wirkte langsam nur wegen kalter Reads bei Load 8+. Kein Parallelitätsbedarf.
|
||||||
|
- Checkpoint-Resume: `/tmp/proof_final.json` (Key `seite|repo8|pfad` → {sha,bytes}); Kill+Restart verlustfrei.
|
||||||
|
- **Transkriptionsfalle 2. Ordnung**: Diagnoseskript tippte Ordner `20_10 Hyundai Kona` — real `2020_10 Hyundai Kona` → 404. Nie Pfade/IDs aus Displays abtippen, IMMER aus Walk-Cache/Servervariablen lesen (bestätigt Regel von bec3ed8a/406e2202).
|
||||||
|
|
||||||
|
### _Recovery-Analyse (2026-10-10, read-only) — URTEIL: UNBEDINGT BEHALTEN
|
||||||
|
Frischer Walk (71 Dateien, 35,3 MB) + Kreuzmatch gegen alle 43 Feb-2026-Signatur-Repos:
|
||||||
|
- **Inhalt = digitaler Katastrophenkoffer**: Monero-Wallet m. Private Keys (34,8 MB, mtime 2021), 53 SSH-Keys (37 private, inkl. bankz-app.de/nuernberger.de-TLS-Keys 2019), GPG-Secret-Keys ×2, 1PW-Emergency-Kits ×2, DATEV-/Apple-/GitHub-/TeamViewer-Recovery-Codes, Dropbox-Wiederherstellung Sarah.
|
||||||
|
- **69/71 Dateien existieren NIRGENDS sonst** (nur aktive Repos). 2 Ausnahmen: DATEV-Codes auch in „Meine Bibliothek" (7bd9393a), 1PW-Kit A3-BFJT4Y auch in „Vorsorgedokumente" (968cbf39).
|
||||||
|
- **Trash-Zwilling 06892f29** (Februar-Cleanup gelöscht) = echtes Subset: 69 Dateien, 0 exclusive, _Recovery hat 2 NEUERE Extras (DATEV-Codes 2026-01-28 = jüngste Datei, Monero_Recover.txt) → Februar-Löschentscheidung retrospektiv validiert, kein Verlust.
|
||||||
|
- Interne Redundanz: SSH-Ordner hat 25 Dubletten (flat + `ssh/`-Subfolder, size-identisch) — kosmetisch, NICHT anfassen (Rettungskoffer-Integrität, AS-IS-Vorgabe).
|
||||||
|
- Sicherheitshinweis (offen, kein Handlungsauftrag): Plaintext-Private-Keys/Wallet/Recovery-Codes liegen unverschlüsselt im Repo; mittel-fristig Migrieren in 1Password-Vault erwägenswert.
|
||||||
|
- **_Recovery ist KEIN Lösch-Kandidat — aus Analysis-Option 3 folgt: Behalten.**
|
||||||
|
|
||||||
|
### Duplikat-Soft-Delete EXECUTED (2026-10-10, GO Option 2 „+ Aufräumen")
|
||||||
|
- **Execution**: Guards OK (35 Libs, dom 32/sarah 3, alle Kandidaten+Behälter da) → 6× `DELETE /api/v2.1/admin/libraries/{id}/` je HTTP 200 (42d24d5f, dc62b8b5, 2d496a7b, 515f7f35, 5bcdffe0, 60fe22e3) → Executor-Verify SUCCESS.
|
||||||
|
- **Independenter Post-Verify PASS**: API 29 Libs (dom 26/sarah 3), 6/6 Kandidaten weg, 6/6 im Trash, Behälter+_Recovery alle da; SQL: RepoOwner 36→30 (dom 26, sarah 3, System 1 — Seafile räumt Owner-Rows beim Soft-Delete mit auf), RepoTrash 26 (=10 Ghost-alt +10 Feb +6 heute; 16 mit dominik-owner_id).
|
||||||
|
- **Aufräumen DONE**: byteproof3-Zombie (PID 3063834) gekillt; 104-B-Pseudobackup entfernt (valide 162B+165B bleiben); 38 `/tmp/sea_*.py` remote gelöscht, lokal archiviert unter `~/workspace/seafile-ct111-arc/archive-2026-10-10/`; JSON-Caches (byteproof_walks, signatures, proof_final, recovery_walk, api_inventory) bleiben auf CT111.
|
||||||
|
- **Endzustand**: 29 aktive Libraries (dom 26/sarah 3), Trash 26 revertierbar (restore via Admin-API), kein GC/Retention → nichts physikalisch gelöscht. Rollback je Repo jederzeit.
|
||||||
|
- Pitfall nebenbei: `MYSQL_PWD` propagiert NICHT durch `docker exec` — Passwort als argv (-p'…') geben; RepoOwner-Spalte heißt `owner_id` (nicht `owner`).
|
||||||
|
|
||||||
|
### CodeCamp-Master-Deep-Clean — stark reduziert (Fresh-Messung 2026-10-10, read-only)
|
||||||
|
Neuvermessung 670abe70 (1286 Dateien, 8,49 GB) korrigiert die alte „~2,6 GB"-Schätzung deutlich:
|
||||||
|
- **ID-identische Mehrfachkopien: nur 62 Gruppen / 0,05 GB** (Spiegel in „alte Sicherungen"-Ordnern, Bürokleinkram).
|
||||||
|
- **50 SFConflict-Kopien (3,75 GB), alle gestempelt 2026-05-04 von `e6227ae3…@auth.local`** (DRITTER Ghost-Identifier, historisch, nur in Dateinamen): **49/50 haben KEIN überlebendes Original im Repo → Sole Survivors** (vermutlich fielen die Originale dem Library/User-Mapping-Crash zum Opfer) — **Löschen VERBOTEN**. Einziger echter Kandidat: `20210629_backup.pst` 744,9 MB ×2 (size=, ID≠; mtime 2021-06-29 vs. Feb-2026-Repair → vermutlich byte-identisch, Proof ausständig).
|
||||||
|
- Physikalischer Gewinn selbst bei voller Dedupe ≈ 0 (globale Block-Deduplizierung) — Deep-Clean weitgehend MOOT; verbleibender Wert ist Baum-Kosmetik (SFConflict-Umbenennung) bzw. Mikro-Dedup.
|
||||||
|
|
||||||
|
### Sanierung EXECUTED (2026-10-10, GO „Volle Sanierung")
|
||||||
|
- Sequenz: Guards → Row-Backup (mysqldump --single-transaction, 11 INSERTs, `/root/seafile-sanitize-backup-20261010-104751/`) → API-DELETE bec3ed8a (200, GET-Verify 404) → TX-Deletes (ROW_COUNTs exakt: 82/3/2/1/1/1 + 4 Phantom-Rows) → commits-Dir in Quarantäne `/opt/seafile-data/quarantine-20261010-104751/` → Restart.
|
||||||
|
- **Log-Spam BEENDET**: letzte „Commit is missing"-Warning 08:47:54 (Abschaltphase), danach 0/60s. Zuvor 24.230 Zeilen.
|
||||||
|
- **Endzustand DB**: EmailUser 2, auth_user 2, profile_profile @auth.local 0, RepoOwner 36 (dominik 32, sarah 3, System 1), RepoTrash 20 (10 ghost + 10 dominik). API: **35 Libraries** (32 dominik + 3 sarah) — 36→35 ist KORREKT: das Phantom stand bislang in der Listing (404 bei Detail-GET) und fiel ersatzlos weg.
|
||||||
|
- **Neues Verständnis 56-vs-57/36-vs-37-Diff**: nicht die System-Library, sondern jeweils das Phantom; die System-Library (3428f3b9 „My Library Template", intern) ist NIEMALS API-sichtbar. Es gab 2 My-Library-Templates: 35a6f96c (kaputt, Juli-Init-Artefakt, jetzt weg) + 3428f3b9 (System, gesund).
|
||||||
|
- **Pitfalls dieser Runde**: (1) mysqldump mit Cross-DB-Subquery im --where braucht `--single-transaction` (sonst ERROR 1100 LOCK TABLES); (2) Phantom hatte 4. Meta-Row in `Branch` (master→fehlender Commit e1559727…) = eigentliche Spam-Quelle — Referenz-Karte VOR Delete dynamisch bauen; (3) Guard-Erwartung „Libraries 36" war falsch post-Phantom — Listing-Zahl sinkt um das Phantom.
|
||||||
|
- Inert verbleiben: `RepoTrash.owner_id` 10× bec3ed8a (Historie der gelöschten Ghost-Repos; verschwindet mit Trash-Leerung).
|
||||||
|
- Rollback möglich: Backup-SQL reinpipen, Quarantäne-Dir zurückschieben, Account via Admin-API neu anlegen.
|
||||||
|
|
||||||
|
### Diagnose Ghost-Accounts + Phantom 35a6f96c (2026-10-10, read-only)
|
||||||
|
- **bec3ed8a…@auth.local** (Nick „none") = echter Account (ccnet_db.EmailUser id=3, aktiv, PW gesetzt, Admin-API 200) → sauber per `DELETE /api/v2.1/admin/users/{email}/` löschbar. Referenzen: UserActivity 10, UserActivityStat 1, options_useroptions 1, profile_profile 1.
|
||||||
|
- **406e2202…@auth.local** (Nick „sarah", Kontakt sarah@…) = HALB-Ghost: kein EmailUser-Account (API 404), aber 79 Zombie-Rows in 6 Tabellen (UserActivity 72, UserActivityStat 2, options_useroptions 2, profile_profile 1, base_userlastlogin 1, sysadmin_extra_userloginlog 1) inkl. Login-Log → Identität hat real via OIDC (Missroute Sarah) existiert. Nur per SQL entfernbar.
|
||||||
|
- **TRANSCRIPTION-TRAP (wichtig!):** Wahrer Identifier = 43 Zeichen (32 Hex + @auth.local); in Terminal-/Context-Kompressionsanzeigen ging 1 Hex-Zeichen verloren → Literal-Queries liefen ins Leere (0 Counts). REGEL: Ghost-/Repo-Identifier NIEMALS abtippen, immer serverseitig extrahieren (`SET @g := (SELECT user FROM …)`).
|
||||||
|
- **Phantom 35a6f96c „My Library Template"** (RepoOwner id=13, owner dominik, aus Init Jul 6): Meta halb vorhanden (Repo ✓, RepoInfo ✓ status=0/version=1, RepoOwner ✓) aber RepoHead ✗, fs ✗, blocks ✗, commits-Dir nur 12K-Shard ohne den referenzierten Commit e1559727… → **23.797 WARNING-Zeilen** „Commit … is missing" im seafile.log (Dauer-Spam). Wert NULL (leere Template-Hülse). API-Delete unmöglich (404, kein Head). Remediation = 3 Meta-Rows + 12K-Dir (nur nach Go).
|
||||||
|
- Zahlendifferenz final erklärt: RepoOwner 37 = 36 API-sichtbare + Phantom; die „System"-Owner-Row (1) ist Seafile-intern und erscheint nie in API-Listings.
|
||||||
|
|
||||||
|
### Multi-Session-Kollision + NÜRNBERGER-Fehlimport (2026-10-10, read-only diagnostiziert)
|
||||||
|
**Auth-Mystery „PW geändert" aufgeklärt:** Parallele Hermes-Session („Home-Migration zu Seafile") rotierte um 16:30 dominiks Web-PW per DB-Procedure (Skill seafile-api/password-auth-recovery), restartete Container, legte 1P-Item „Seafile Web Login (dominik)" an. Krypto-Beweis: 1P-PW matcht DB-Hash exakt. Kein Eindringling — klassische Multi-Session-Kollision: Agent A rotierte Credential, das Agent B (diese Session) noch nutzte. **LESSON: Vor jeder Credential-Rotation 1Password prüfen; Agenten sollten PW nie nur im Sessionkontext halten. Persönlicher API-Token (api2_token) überlebt PW-Rotationen — Token-Auth dem PW-Login vorziehen.**
|
||||||
|
- **Rename-Runner-Ausführung 18:45 Uhr: GATE-ABORT, 0 Mutationen** (Bestand 1840≠1286, SFConflict 74≠50). Gate tat exakt seinen Job.
|
||||||
|
- **Ursache +554 Dateien:** seaf-daemon der Parallel-Session (Ubuntu-Host, seit 16:36) lud `/NÜRNBERGER/`-Firmensicherungen (530 Dateien mtime 2021-12-17, Outlook-PSTs/Vorlagen/Kundenzentrierung) in 670abe70 „CodeCamp:N 2" hoch + 24 SFConflict-Kopien (Import-Artefakte, Stempel 2026-05-04 von Ghost e6227ae3…@auth.local — lokal vorhandene Konfliktkopien aus Desktop-Client-Ära). Neue Lib „Unterlagen Uni" (c4677b64) angelegt (dominik 26→27 Libs).
|
||||||
|
- **TWIST 19:00 Uhr — „Sole Survivor"-These OBSOLET:** Zweiter Runner-Lauf (dynamisches Gate: Quiescence-Doppelwalk OK, Daemon SIGSTOP-pt) fand ALLE 74 SFConflict-Kopien MIT Original nebeneinander (74× PARENT-KOLLISION, 0 planbar) → ABORT plan leer, **0 Mutationen**. Die Parallel-Session lud auch die verlorengeglaubten Originale der Mai-Konflikte zurück (verteilt: CodeCamp_N/HR_Camp, Präsentationsvorlagen, Vorlagen, Sicherung Desktop B072118, Sicherung Outlook Nürnberger, Root-PST) — die Originale lagen die ganze Zeit auf der lokalen Sicherungsplatte. Kosmetik-Rename damit MOOT (würde kollidieren). Korrektur: Die +554 Neuzugänge waren NICHT ausschließlich NÜRNBERGER.
|
||||||
|
- **Neue Situation: 74 redundante Paare** (Original + Konfliktkopie). Optionaler Clean-Up = Konfliktkopien löschen — NUR NACH Byte-Proof (Konfliktkopien können neuere lokale Edits enthalten — Wesen von Sync-Konflikten!), NACH Abschluss der Migration, NUR mit GO. Daemon via SIGCONT resumed (Pause ~23 min, kein Zustandsverlust).
|
||||||
|
- **Resolved:** (b) SFConflict-Rename — moot, eingestellt. (a) NÜRNBERGER-Platzierung + (c) Sync-Koordination — mit Parallel-Session/user klären.
|
||||||
|
|
||||||
|
### Cleanup-Stand 10.0.20.100
|
||||||
|
- audit_a/audit_b-Container entfernt; `/tmp/audit_*`-Kopien noch vorhanden → beim nächsten .100-Kontakt miträumen
|
||||||
|
|||||||
Reference in New Issue
Block a user