Skip to content

Troubleshooting Pitfall Index

Full index of common pitfalls encountered in this homelab, grouped by subsystem. Each entry retains its original diagnostic detail and links to the full troubleshooting doc where available.

This file is the canonical reference for pitfalls relocated from AGENTS.md. Agents should consult the subsystem-specific doc for full diagnosis and fix procedures.

Table of Contents


Kubernetes & GitOps

  • Forgetting helm dependency build after updating Chart.yaml

  • Missing Renovate hints causes images to not auto-update

  • Introducing CRDs without --include-crds in helm template

  • Not waiting for webhooks (cert-manager, external-secrets) before applying dependent resources

  • Forgetting Prune=false on PVCs causes data loss on sync

  • Kata-deploy 3.31.0+ requires containerd drop-in directory (config-v3.toml.d) — see docs/troubleshooting/kata-containerd-dropin.md

  • A freshly joined node shows Ready,SchedulingDisabled for about a minute: the k3s-agent system-upgrade Plan has cordon: true and selects every non-control-plane node. When the binary already matches, the job compares sha256, logs Binary already been replaced, exits 0, and the controller uncordons. Don't uncordon by hand

  • Apps with init-container workarounds (JS patching, schema health checks) should log version info and fail loudly (exit 1) on mismatch so Renovate bumps surface breakage immediately. Check init container logs after any version bump. See each app's deployment doc for specifics.

  • Adding a node: never edit the hardcoded hosts: lists in metal/playbooks/install/prepare.yml (11-13, 18, 23, 30) or cluster.yml (28-31) — they are exactly the ZFS/GPU/backup paths a new node must skip, so a new node gets no setup role. make first-boot is unusable (forces root + --ask-pass) and unscopeable (it appends its own --limit last). The node must resolve short names or the k3s agent cannot reach server: https://prusik:6443 — set prepare_dns_search_domains if DHCP does not push the grigri search domain. There is no local StorageClass by deliberate decision (a system/local-path/ chart was considered and dropped — a StorageClass advertises unbacked, unquota'd storage on a weak node). On a no-ZFS node any PVC without storageClassName inherits the default openebs-zfspv and hangs Pending forever instead of failing; guarded by PersistentVolumeClaimPending / PersistentVolumeClaimLost PrometheusRules. Node-local exceptions use hostPath with type: Directory (Ansible-created paths in metal/). See docs/user-guide/add-or-remove-nodes.md and planning/k8s-amd64-1-node-addition.md

  • Zalando Postgres PVC recreate causes Patroni stale-DCS deadlock: Patroni DCS ConfigMaps (<cluster>-config, <cluster>-leader) survive PVC deletion and carry the old cluster's initialize marker, so Patroni waits forever for a leader on a fresh empty data dir. Fix: delete the stale DCS ConfigMaps before restarting the pod. See docs/troubleshooting/zalando-patroni-stale-dcs-deadlock.md

  • High pod restart counts don't always mean problems — check Last State.Reason (exit 255 = node reboot, not app crash). See docs/troubleshooting/cluster-hygiene.md

  • Zalando Postgres operator rejects hyphenated database names in the databases field — create them manually with psql. See docs/troubleshooting/radarr-sqlite-to-postgres.md

  • app-template ≥ 5.2 runs tpl over string values (incl. initContainer command), so a literal {{ ... }} in values.yaml (e.g. a sed pattern matching a JS i18n {{provider}} token) fails rendering with function "provider" not defined → ArgoCD ComparisonError blocks ALL syncs for that app. Local helm template can miss it if Chart.lock/charts/ (gitignored) are stale at an older app-template than Chart.yaml. Escape as {{ "{{x}}" }} or match around it. This silently broke readest for ~18 days. See docs/troubleshooting/app-template-values-tpl-evaluation.md

  • topologySpreadConstraints without matchLabelKeys: [pod-template-hash] causes rolling updates to stall on multi-replica Deployments: the scheduler counts old+new ReplicaSet pods together, so maxSkew: 1 + DoNotSchedule blocks new pod placement. Always add matchLabelKeys for Deployments with replicas > 1 or HPA. Skip for single-replica, StatefulSets (no pod-template-hash), and CRD-managed workloads. See docs/conventions/topology-spread-constraints.md

  • k3s_kubelet_extra_args eviction-hard=... replaces kubelet's whole hard-eviction map, so the k3s defaults (nodefs.available/imagefs.available 5%) vanish for any signal not listed. A host with nodefs.available<10% evicts at 90% used, not 95%. Check the live values with kubectl get --raw /api/v1/nodes/<node>/proxy/configz | jq .kubeletconfig.evictionHard. See docs/troubleshooting/ci-runner-amd64-disk-full.md

  • Forgejo runner container.options bind-mounts are silently dropped unless the sources are also in container.valid_volumes — the runner applies both allow-lists, and the chart default valid_volumes: [] rejects everything. Do NOT use ** (too broad); allow-list exactly the sources the runner needs to pass through (/cache, /sccache-credentials). The runner log shows is not a valid volume, will be ignored for each rejected source. Secondary: the cargo-zigbuild image lacks jq and curl (sccache pin and S3 probe silently fail without them), and dev-profile cargo new builds are never sccache-cacheable (incremental compilation → requests_not_cacheable), so cache tests must set CARGO_INCREMENTAL=0. See docs/troubleshooting/forgejo-runner-valid-volumes.md

  • CI runners at capacity 2 with a 12Gi runner limit OOM/evict when two heavy host-mode jobs overlap (one job peaks ~10.7Gi; two want ~17–20Gi). On z800 the cgroup thrash mimics a network outage: job logs stop mid-compile, tasks fail at identical timestamps, recovery shows log file has been archived; sccache stats arriving after the failure prove the job stayed alive. Identical failure timestamps across runs = runner-level event, not job bugs. See docs/troubleshooting/ci-runners-memory-overcommit.md

  • k3s system-upgrade Plans stay Complete=False (Jobs DeadlineExceeded) for two reasons: (1) rancher/k3s-upgrade refuses a target binary built in an earlier month than the installed one (Current build date ... is more recent than ..., no force flag) and a new minor's early patches are older builds, so target the newest patch of the next minor — Renovate gates k3s minors with allowedVersions (patch .4+), not release age; (2) the agent Plan needs a toleration for any node taint (dedicated=ci:NoSchedule) or its pod stays FailedScheduling. prusik stays SchedulingDisabled until the server Plan succeeds — don't uncordon by hand. See docs/troubleshooting/k3s-system-upgrade-build-date-check.md

ArgoCD

  • ArgoCD has selfHeal: true with real-time cluster watches — kubectl apply will be detected and reverted almost instantly. Always commit/push first, let ArgoCD sync, then verify. See docs/troubleshooting/argocd-gitops-workflow.md

  • ArgoCD repo-server has a probe death-spiral with default chart probes (1s timeout) — the pod is killed during slow cold start before the metrics/health port (8084) binds, causing a restart loop that never converges. Fix: enable startupProbe + raise timeoutSeconds to 5. See docs/troubleshooting/argocd-repo-server-probe-death-spiral.md

  • ArgoCD argo-cd chart >= 10.0 defaults networkPolicy.create: true — keep it false because it interacts with Cilium's stale-datapath bug on rebooted nodes (kubelet probes get dropped). See docs/troubleshooting/argocd-repo-server-probe-death-spiral.md

  • ArgoCD ≥ 3.5.4 overrides HELM_CONFIG_HOME during kustomize build --enable-helm (GHSA-fw5c-w8rc-j7fx), so private OCI chart pulls go anonymous → 401 and apps stick Sync=Unknown. Fix: set DOCKER_CONFIG on repo-server to the mounted registry dir. Check env after any ArgoCD version bump. See docs/troubleshooting/argocd-kustomize-helm-oci-auth.md

  • Stopping a workload that Argo CD manages (e.g. Home Assistant for an outage test): kubectl scale and a syncPolicy patch are both reverted (ApplicationSet with selfHeal). Scale argocd/argocd-repo-server to 0 first, then the workload; restore the workload first, then the repo-server. See docs/troubleshooting/stop-home-assistant-under-argocd.md

  • Provisioning hook Jobs in Helm-chart apps: defining an Argo CD hook disables all Helm hooks; hook-only edits never trigger a sync (hooks are excluded from comparison, so a fixed hook silently does not converge); a Job activeDeadlineSeconds above controller.sync.timeout.seconds reports "controller sync timeout" instead of the real failure; a 0400 Secret is unreadable by a nonroot hook pod. See docs/troubleshooting/argocd-helm-hook-provisioning.md

  • A field removed from git persists on a server-side-applied CR while the Argo CD app stays Synced: a stale argocd-controller Update entry in managedFields (from before the SSA switch) still owns it, and ClientSideApplyMigration only migrates kubectl-client-side-apply. Check managedFields, then a one-time patch (or drop the stale entry); operator-generated objects (Ingress from Kanidm/Vault spec.ingress) need the operator or a one-off cleanup. See docs/troubleshooting/argocd-ssa-stale-field-manager.md

Monitoring & Observability

  • Grafana dashboard sidecar only honors grafana.grafana.com/dashboards.target-directory, not k8s-sidecar-target-directory — using the latter silently drops the dashboard at the root folder. See docs/troubleshooting/grafana-sidecar-folder-annotation.md

  • Grafana datasource sidecar writes ConfigMap data keys as filenames — if two ConfigMaps use the same data key (e.g., datasource.yaml), they collide (last-writer-wins) and cause continuous reload churn. Use unique keys per ConfigMap (e.g., loki-datasource.yaml, tempo-datasource.yaml). See docs/troubleshooting/grafana-datasource-sidecar-collision.md

  • Grafana panels querying node-exporter metrics must collapse the DaemonSet's pod label with max by (instance, ...) — otherwise every pod restart adds another phantom line over long time ranges, and sum(rate(...)) panels silently inflate. Use max, not sum/avg. Also verify each metric name actually exists: empty panels look identical to nonexistent metrics. See docs/troubleshooting/grafana-node-exporter-pod-churn-duplicates.md

  • Grafana 13.1.1 strips the url field from Loki derivedFields during provisioning, even with $$ escaping. Workaround: manually set the URL in the Grafana UI. See docs/troubleshooting/grafana-13-derivedfields-url-stripped.md

  • Grafana MCP server deployment has multiple gotchas: Kaniop KanidmServiceAccount requires idm_admin in the entryManagedBy group and serviceAccountNamespaceSelector on the Kanidm CR; mcp-grafana image tags lack v prefix, binary is at /app/mcp-grafana, uses -address flag (not -port); StatefulSets need manual pod deletion after template changes. See docs/troubleshooting/grafana-mcp-hermes.md

  • Vector kubernetes_logs defaults cause silent log loss: glob_minimum_cooldown_ms: 60000 misses short-lived pods (<60s), oldest_first: true starves new pods behind backlog, rotate_wait_secs: i64::MAX exhausts file handles on deleted pods, and max_read_bytes: 2048 is too slow to clear backlog. Loki sinks also need explicit buffer.when_full: block or events are silently dropped under backpressure. Tuned values: 5000 / false / 60 / 16384 / block. See docs/troubleshooting/vector-log-loss-and-starvation.md

  • Single-binary Tempo (tempo-1.24.4 chart, v2.9.0): metrics_generator.traces_storage.path must never equal storage.trace.local.path when local_blocks processing is on — the generator's WAL writes <uuid>+<tenant>+<version> dirs (e.g. …+single-tenant+vParquet4, 60 chars) into the same tenant directory the blocklist poller scans, and uuid.Parse fails with invalid UUID length: 60, aborting that poll. Compaction/retention can look healthy while the block index silently goes stale between the ~1-in-5 polls that succeed. Fixed by giving the generator its own path (/var/tempo/generator-traces) plus a Kustomize-patched init container to migrate the already-written WAL (the chart has no initContainers values hook). See docs/troubleshooting/tempo-metrics-generator-wal-collision.md

  • pyroscope.ebpf cannot profile Calypso runners and never will: they run under gVisor, so the container ID it matches on (read from /proc/*/cgroup) never corresponds to a host process. Discovery still keeps the target, so pyroscope_ebpf_active_targets rising at runner start while calypso-runner stays absent from pyroscope_ebpf_pprofs_total is expected, not a bug. Runners are deliberately unprofiled — they execute untrusted, agent-generated code. Do not "fix" this by moving runners to runc. See docs/troubleshooting/profiling-collector-rollback.md

  • A Loki gap on a single node during DiskPressure is not data loss in Loki: kubelet evicts vector-agent along with everything else and refuses to re-admit it until the pressure clears. Read the node's journal over SSH (journalctl --since/--until) for that window. See docs/troubleshooting/ci-runner-amd64-disk-full.md

  • gpu-operator chart bumps can silently rename DCGM metrics: dcgm-exporter 4.9.0 added unit suffixes (DCGM_FI_DEV_GPU_TEMP → DCGM_FI_DEV_GPU_TEMP_CELSIUS), singularized XID_ERROR, and replaced the throttle bitmask with DCGM_EXP_CLOCK_EVENTS_COUNT (re-adding the old field crash-loops the exporter) — breaking alerts and dashboards while up=1. After a bump, verify metric names against the rules. See docs/troubleshooting/dcgm-exporter-metric-renames.md

Networking

  • Repointing the pfSense external alias (then named k8s_external_ingress, now k8s_external_gateway) does not move open connections: pf keeps the redirect target of existing states (h2, SSH, webhooks stay on the old VIP), and a missed unbound host override stays on the old IP. Kill the states, count overrides per IP. See docs/troubleshooting/pfsense-alias-change-keeps-old-states.md

  • Envoy Gateway: any listener, certificate or Security/ExtensionPolicy change replaces that listener's filter chain and closes its websockets, SSE and long downloads after the 60 s drain; HTTPRoute-only changes drain nothing. Batch such changes, avoid them during long transfers. See docs/troubleshooting/envoy-gateway-listener-drain.md

  • Envoy Gateway debugging: the proxy image is distroless, use port-forward to the admin port (config_dump, /stats, /clusters); NR/UAEX/DC response flags; OIDC cookie values and query-string API keys leak into proxy logs; Argo shows Progressing for a label-selected BackendTrafficPolicy and only refreshes on webhooks. See docs/troubleshooting/envoy-gateway-debugging.md

  • Envoy Gateway OIDC: a browser silently drops a cookie over 4096 B. The groups scope made the encrypted oidc-id-token cookie 5.6 KB: Envoy refreshed on every request, parallel requests reused the refresh token and assets failed with CORS errors after login. Never request groups; authorize on a per-app claim map (access). See docs/troubleshooting/envoy-oidc-id-token-cookie-size.md

  • Armbian kernel 6.12 on Odroid HC4 breaks Cilium UDP BPF masquerading — hold kernel at 6.6 LTS (24.11.1). See docs/troubleshooting/armbian-kernel-bpf-masquerade.md

  • Cilium BPF datapath can go stale on a node — pod egress breaks while host network works. Can manifest as partial breakage (some connections work, others don't) — e.g. Vector buffer filling on one sink while another on the same pod is fine. Also triggered by node reboots (BPF link orphaning, upstream #46065); enabling NetworkPolicy turns the latent staleness into an active probe-failure outage. Fix: delete the Cilium pod. See docs/troubleshooting/cilium-stale-bpf-egress.md

  • Cilium LRP skipRedirectFromBackend is broken in v1.19.4 — nodelocaldns with serviceMatcher needs a corefile-watcher sidecar to forward directly to CoreDNS pod IPs, avoiding redirect loop. addressMatcher has post-reboot bugs (PR #45522). See docs/troubleshooting/nodelocaldns-cilium-lrp.md

  • tc-limiter hostPath mounts need mountPropagation: HostToContainer — otherwise Cilium socket goes stale after restart and rate limiting silently stops working. See docs/troubleshooting/bandwidth-limiting.md

  • Unattended-upgrades must blacklist NVIDIA packages — host-level driver upgrades conflict with the GPU Operator's containerized driver management, causing Driver/library version mismatch. Fix: cd metal && ANSIBLE_EXTRA_ARGS="-t unattended-upgrades" make prepare See docs/troubleshooting/nvidia-driver-version-mismatch.md

  • Never let needrestart restart k3s.service or systemd-networkd on nodes: needrestart < 3.9 re-flags k3s after every package (restart storm), and a networkd restart flushes Cilium's native-routing routes. Both are deferred via metal/ (unattended-upgrades/networkd tags). See docs/troubleshooting/needrestart-k3s-restart-storm.md

  • Office A Wi-Fi IoT devices (fan-office-a, mini-switch-office-a) flap and fire BlackboxProbeFailed. Status 2026-11-23: fan on limonero at -80 dBm was kicked hourly (deauth reason 16, missed group rekey), locked to cerezo in the UniFi controller: partly better, still short drops. Mini: the radio died minutes after power-on on either AP and ESPHome version with a healthy heap; the full-RF-calibration-on-every-boot test firmware left it silent (no frames on either AP), and api: reboot_timeout: 2min below ap_timeout had killed the fallback hotspot, so it needs a serial reflash. Keep both reboot timeouts above ap_timeout and no RF_PRE_INIT hooks without serial access. UniFi events carry no disconnect reason (the v2 system log has connect/disconnect history) and AP logs are RAM-only (copy them within ~1 h and BEFORE rebooting an AP). Never commit AP BSSIDs. See docs/troubleshooting/office-iot-wifi-flapping.md

  • Debugging a Wi-Fi client on the UniFi network: start with the Prometheus blackbox view (sum changes(probe_success) by target, 30 s sampling, ESPHome probes are TCP 6053 so a hung API looks like lost Wi-Fi), then the controller (/api/s/default/..., no disconnect reason in events), then the AP logs over ssh <ap> (kick reason, group-rekey failure, deauth codes 3/16/2; RAM-only, copy them before an AP reboot; cerezo needs legacy SSH algorithms from ~/.ssh/config). One change at a time, no channel/TX-power change without a scan, verify dBm vs rssi. Prometheus has no AP metrics. See docs/troubleshooting/unifi-wifi-client-debugging.md

Storage & Backup

  • prusik's L2ARC looks broken (34-39% hit ratio, serves 1.4% of reads) but is load-bearing — avg hit size is 17-28KB, i.e. Jellyfin metadata/thumbnails/SQLite, not video. Hit ratio is misleading because it only covers ARC misses. The real defect is l2arc_noprefetch=0 wasting 41% of the device on one-shot media prefetch. Fix that; do NOT remove the cache vdev. See docs/troubleshooting/prusik-l2arc-ineffective.md

  • prusik storage is latency-bound, not throughput-bound, and the root cause is RAM, not disks: container limits sum to 210 GiB (requests 44.7 GiB) on 62 GiB, forcing zfs_arc_max=5GB against a 12-14GB hot set; MemAvailable bottoms out at 1.97 GiB and 60% of the ARC is metadata. Free RAM (move CI off-node) and raise ARC before buying SSDs — RAM beats SSD by ~1000x. Note k8s-amd64-1 has only 16 GiB, and ci-runner-0 peaks at 17.4 GiB / 7.68 cores, so CI cannot move there until it gets 32 GiB. A SLOG/ZIL will NOT help (Postgres runs synchronous_commit=off). Forgejo web latency is git-upload-pack reading git objects, not Postgres. Backup is label-driven (backup/retain, backup), so a PVC recreated without labels is silently never backed up. See docs/conventions/prusik-fast-storage-tier.md

  • prusik NVMe kernel names (nvme0n1/nvme1n1) flip across reboots. Always identify disks by model/serial or /dev/disk/by-id via a node_disk_info join. See docs/troubleshooting/prusik-etcd-swap-thrash.md

  • openebs-zfspv/fast-zfspv use reclaimPolicy: Retain — deleting a PV issues no CSI DeleteVolume, so the ZFS dataset and its ZFSVolume CR both survive with no ownerReference to GC them. Auditing Released PVs therefore reports a clean cluster while the space still leaks; the real signal is a ZFSVolume CR with no matching PV. 89 volumes / 139.6 GiB accumulated over ~9 months this way. Use scripts/zfs-orphan-audit.sh (dry-run by default) and the ZFSVolumeOrphaned alert. Do not flip the policy to Delete — Retain is the only backstop against an ArgoCD prune destroying a database. See docs/troubleshooting/cluster-hygiene.md

  • openebs-zfspv with fstype: zfs + fsGroup causes slow pod startup (recursive chown on every mount). fsGroupChangePolicy: OnRootMismatch doesn't help — kubelet resets setgid bit. If the app manages its own file ownership (runs as volume owner or has init chown), remove fsGroup entirely. See docs/troubleshooting/openebs-zfspv-slow-startup-fsgroup.md

  • Removing fsGroup leaves a non-root container with no write access to a freshly provisioned PVC: a new ZFS dataset mounts root:root 0755, kubelet creates missing subPath dirs root-owned, and supplementalGroups changes no ownership. Symptom is mkdir <path>: permission denied with a healthy, polling pod and nothing in the container log. Migrating off emptyDir (which kubelet creates 0777) is not a like-for-like swap — it needs an explicit ownership plan. Fix with a root init container on the volume root, not a subPath. See docs/troubleshooting/ci-runner-workspace-permission-denied.md

  • OpenEBS ZFS 2.11.x zfs send | nc can deadlock if nc exits early; killing zfs send first risks marking a truncated volume backup Done. Chart is on 2.11.1 with zfsPlugin.image pinned to ghcr.io/linkvt/zfs-driver:runpipe-773 (PR #777 fix) pending verification. If the fix fails, revert chart to 2.10.1 and remove the image override. See docs/troubleshooting/velero-zfs-stream-pipeline-deadlock.md

  • OpenEBS ZFS 2.11.2 zfs send | nc -w 3 uses netcat's 3s idle timeout: when the receiver pauses during S3 multipart upload, nc exits 0, zfs send gets SIGPIPE (exit 141), and the velero plugin uploads a truncated object while logging successfully uploaded object. Every scheduled backup since 2026-10-13 is PartiallyFailed. Fix: fork image with ZFS_NETCAT_TIMEOUT env var (default 300s). Do NOT downgrade to 2.10.1 (masks the bug) or lower multiPartChunkSize (breaks large fulls). See docs/troubleshooting/velero-truncated-zfs-backups.md

  • Unattended-upgrades can restart k3s during backup windows, causing PartiallyFailed Velero backups. Use a broad maintenance window (Mon + Wed–Sun 08:00–18:00) instead of blacklisting systemd packages. See docs/troubleshooting/velero-backup-failures.md

  • Memory pressure (e.g., CI builds) can crash k3s via etcd timeout, leaving Velero backups stuck InProgress with orphaned ZFSBackup CRs. Pod restart is the safe first boundary, but residual CR/S3/ZFS state must be verified. See docs/troubleshooting/velero-2026-09-25-oom-etcd-outage.md

  • Quarterly backups are zfspv-incr chains (one full + incrementals): restorability requires the whole chain — replay full-then-incrementals in order; an incremental alone fails at zfs recv. Deleting a chain head orphans its retained children, so prune parents and children together, and audit bucket objects, not just the CR graph. The "clean" 10-06 backups still ran 2.10.1 — check kube_pod_container_info at the backup start time, not the current image, when attributing versions. See docs/troubleshooting/velero-2026-09-26-stuck-backup-recovery.md

  • ci-runner-amd64 fills k8s-amd64-1's root disk via DinD, not the workspace: calypso leaves ~7 GiB images per commit, and docker image prune --filter until= measures image creation time, so fresh builds are never "old enough" (0 B reclaimed at 89%, node-wide eviction a minute later). The runner's native workdir_cleanup_age GC only covers per-job scratch dirs. See docs/troubleshooting/ci-runner-amd64-disk-full.md

  • The sccache MinIO bucket (hard quota, 14-day lifecycle at the time) filled in ~3.5 days at ~12-14 GiB/day; from then MinIO rejected PUTs (14% 4xx) while CI jobs showed 0 L1 (s3) writes and 0 errors, because write policy l0 silently drops failed secondary writes. Check du -sb /export/sccache in the minio pod and the PutObject 4xx rate, not sccache errors. See docs/troubleshooting/sccache-s3-bucket-full-silent.md

  • sccache hashes the name and value of every CARGO_* env var into every Rust cache key (set vs unset counts). A custom CARGO_SCOPE that differed per PR made affected-mode PR jobs miss main's entries (64.7% vs 94.5% hits), and the desktop's different CARGO_* env gave 0 S3 hits in 34.6k lookups. Never name custom CI env vars CARGO_*. See docs/troubleshooting/sccache-cargo-env-cache-keys.md

Ansible & Infrastructure

  • Galaxy roles under metal/roles/ are gitignored — never patch them, wrap them in a repo role and override via include_role params (static roles: params lose to the inner role's include_vars). Ubuntu 26.04 nodes also need ansible-core>=2.20, ansible_become_exe: /usr/bin/sudo.ws (sudo-rs rejects -H) and chrony, since the ntp package is gone. See docs/troubleshooting/ansible-ubuntu-2604-compat.md

  • Scoped metal/ runs (--limit) break on templates that read another host's gathered facts — the control plane is in no play and delegate_to does not gather delegate facts, so hostvars[x].ansible_hostname dies with object of type 'HostVarsVars' has no attribute .... Use the inventory name instead. The second symptom is silent: a play that fails discards its pending handlers, and the next run sees an unchanged config file so the daemon never reloads. See docs/troubleshooting/ansible-limit-cross-host-facts.md

LLM Infrastructure

  • Hermes instance config overwrite: when deploying a new Hermes instance, never copy config.yaml, memories/, or skills/ from another instance — this overwrites the target's unique identity. Only copy auth.json if needed. Recovery requires ZFS snapshot rollback. See docs/troubleshooting/hermes-config-overwrite-recovery.md

  • Hermes standalone tools and their configuration must live under the /opt/data PVC; installs in the container root filesystem or /root disappear on pod recreation. For fj, use a persistent XDG data wrapper. See docs/troubleshooting/hermes-persistent-cli-tools.md

  • Hermes auth failures (401 errors) after config edits: manual config.yaml edits drop required fields, auth.json may have empty base_url, and state.db caches stale credentials. Fix: copy working config from another instance, ensure base_url is set in auth.json, delete state.db, and delete the pod (don't just pkill). See docs/troubleshooting/hermes-authentication-credential-issues.md

Desktop & Home

  • home-operations/home-assistant uses a venv at /config/.venv with --system-site-packages. System packages are read-only; install user packages with /config/.venv/bin/uv pip install. See docs/troubleshooting/home-assistant-python-packages.md

  • home-operations/home-assistant:2026.7.1 ships with aiohttp 3.14.1 (system) which removed decode_text parameter, breaking WebSocket API. Fix: install aiohttp==3.14.0 in venv. See docs/troubleshooting/home-assistant-aiohttp-incompatibility.md

  • Home Assistant 2026.x removed the light mired API (only color_temp_kelvin) and raises on an unsupported color_mode, so outdated custom light integrations silently ignore temperature or never turn on. localtuya is HACS-installed from pando85/localtuya master: deploy via HACS websocket + restart, never by copying into the pod. Agents use the HA API with a login-flow token (pass web/hass.grigri.cloud), no browser needed. Never change thermostat/fan settings for a live test without the user asking for it — they verify heating behaviour themselves. See docs/troubleshooting/home-assistant-localtuya.md and docs/troubleshooting/home-assistant-api-hacs-deploy.md

  • ESIOS API (api.esios.ree.es) returns ZIP archives with Content-Type: text/html instead of JSON for /archives/70/download_json, breaking the pvpc_updated integration. Workaround: patch pvpc_data.py to handle ZIP format. See docs/troubleshooting/pvpc-updated-esios-api-zip-response.md

  • Negative PVPC prices are normal with high solar generation. AppDaemon climate/DHW control used to reject them with a bare ValueError (empty Error getting prices: log), halting aerotherm scheduling. Apps now accept negative prices and use a fallback schedule when price fetching fails. See docs/troubleshooting/appdaemon-pvpc-negative-prices.md

  • Gen1 Shelly (shellyem-main) with CoIoT enabled but an empty peer only multicasts to 224.0.1.187:5683, which nothing forwards to the HA pod (no IGMP proxy, no route to 10.0.0.0/8, no UDP 5683 Service). HA silently falls back to CoAP polling at 2.2 × update_period (33 s) and raises a permanent error-level push_update_* repair. Tell-tale: entity updates at exactly 2.2× the device period. Fix is unicast CoIoT to a Cilium LB VIP — and note the IoT VLAN blocks device-initiated UDP (opt6 catch-all has flags S/SA = TCP-only), plus never use HA's "Configure CoIoT" repair button (it would write the unreachable pod IP onto the device). MQTT is an alternative here (0.37 s on transients) — an early "MQTT reboot-loops this device" conclusion was traced to CoIoT being disabled while HA retried setup, not to MQTT. See docs/troubleshooting/home-assistant-shelly-coiot-push.md and planning/shelly-em-mqtt-implementation.md

  • Never disable CoIoT on a Gen1 Shelly that HA owns. With coiot.enabled: false the firmware stops serving /cit/*: HTTP GET /cit/d hangs (no 404) and CoAP on UDP 5683 goes silent. HA's BlockDevice.initialize() requires /cit/d, so the next HA restart drops every entity of that config entry into setup_retry with "Device communication error occurred for …" — while the device keeps answering /shelly, /settings and /status normally, which misleads the diagnosis. An already-initialized HA is unaffected (it polls /status over REST), so the breakage stays latent for hours or days. Fix: POST /settings/advanced?coiot_enable=true&coiot_update_period=15&coiot_peer= then /reboot — note POST /settings/coiot with enabled=true is silently ignored on fw 1.14.0 — followed by the homeassistant.reload_config_entry service (the websocket command config_entries/reload does not exist). Cost of the 2026-10-26 incident: ~48 min of grid telemetry. Second face: while HA retries, those requests hang inside the device, pinning its HTTP slots and ~8 KB of a 51 KB heap; with an MQTT client also running, the firmware faults into a reboot loop every 1–5 min that reads exactly like an MQTT bug and is not one. Re-enabling CoIoT stops both failures. See docs/troubleshooting/shelly-gen1-coiot-disabled-breaks-ha-setup.md

  • qBittorrent with HostPath volumes to HDDs saturates disks at ~240 IOPS, causing latency spikes in other workloads (Forgejo, etc.). Fix: run qBittorrent with ionice -c 3 (idle I/O priority) and increase startup probe timeout. See docs/troubleshooting/qbittorrent-hdd-io-saturation.md

  • Renaming an HA entity moves its recorder history with it — so handing a canonical entity_id to another platform by "rename the old one away, rename the new one in" silently leaves the canonical ID with zero history (blank dashboards, a broken Parquet archive, no error). The recorder migrates states_meta/statistics_meta in place on any registry rename (action == "update" + old_entity_id), but ignores removals. Correct sequence: deploy the new entity under a temporary ID and verify it, remove the old registry entry, promote the new one onto the canonical ID (the collision guard then refuses to migrate, which is what preserves history), reload the old config entry and disable the suffixed entity it recreates — found by unique_id, never by an assumed _2. The Cannot rename statistic_id ... already exists ERROR lines are the guard working; their absence means history moved. Also: a disabled entity still reserves its ID, so it must be removed, not disabled, before promotion. See docs/troubleshooting/home-assistant-entity-id-handover.md

  • The localtuya thermostats' hvac_action DP 36 follows the heat/cool mode, not the demand (open all cool season, close all heat season, verified over 60 days of prometheus-long-term history), so they showed idle while rooms sat below target. Not a mapping bug — the firmware does not report relay demand. Fix: the reworked heuristic_action in pando85/localtuya 876b229 (half-step hysteresis, cool/auto, off), enabled per climate entity through the options flow — which reloads the whole localtuya entry. See docs/troubleshooting/home-assistant-localtuya.md

  • Kivi weather: HassGetWeather and GetLiveContext only see weather entities exposed to Assist (new weather.* entities are not exposed by default), so "¿Qué tiempo hace?" gets "no tengo acceso". Source is the core AEMET integration (weather.aemet); forecasts come from the script.tiempo_prevision tool. A script whose response dict holds an undefined value (a missing forecast key read as f.key) fails with "expected a dictionary, but got ": use f.get('key'). Built-in responses can be overridden from a custom sentences file with only a responses: key (used to say "grados" instead of "°C"). See docs/troubleshooting/home-assistant-voice-weather.md

  • Kivi electricity prices and appliance timing: script.electricidad_precio reads sensor.esios_pvpc and does the arithmetic itself. The small agent mixes up result fields, so appliance questions return only a ready-to-read resumen. Full-hour start candidates (a window ending seconds after the last known price was dropped). Expose new tools after the last restart and check core.entity_registry (an exposure was lost in a restart). Wait for a restart by comparing the pod's startTime with the value before the push. History REST queries need end_time. See docs/troubleshooting/home-assistant-voice-electricity-prices.md

  • Kivi follow-up listening is a punctuation heuristic: HA sets continue_conversation only when the assistant reply ends in ? (or ;/?), and the satellite re-opens the mic without a wake word only when that flag is set. An imperative clarification ("Dime qué prefieres") or a question followed by an option list ending in . both close the mic. Live workaround (2026-12-03): fold the options into the question so it ends in ?; the fast model can still slip, re-wake. Deterministic custom-agent design: docs/voice-assistant/followup-continuation-design.md. Related: a spoken "Unexpected tool argument response: Expecting ',' delimiter" is the fast model emitting malformed tool-call JSON (the gateway forwards arguments verbatim); retry. See docs/troubleshooting/home-assistant-voice-followup-question-mark.md

  • Lovelace dashboards are UI-storage (/config/.storage/lovelace.*), not git, and break silently when an entity is renamed (the Climate dashboard pointed at non-existent sensor.heishamon_* for months). Edit them over the websocket API (lovelace/config/save; the default dashboard is url_path: null) with an admin token, back up first, validate entities with get_states, and refuse to save if the live config changed. Shelly EM channel 2 is circuit 2 (aerotherm + appliances), not the heat pump; hass_* history older than 10 days is only in prometheus-long-term. See docs/troubleshooting/home-assistant-dashboards.md

  • Omnibattery backup_mode with the grid present means the battery's backup-port load is above number.venus_backup_offgrid_threshold: Omnibattery excludes the battery from PD control and skips all power writes, so the last command keeps running even with the allow switches off (2026-11-11: ~8 h of charging, then discharging, at the 50 W setting). The threshold is a configuration knob and must stay above the servers' load: 500 W, never 50 W (upstream ffunes/Omnibattery#660, by design). See docs/troubleshooting/home-assistant-omnibattery.md

  • Any apps/home-assistant/config/** or pod-spec change restarts HA, and the scheduler integration re-executes the time slot in progress at startup unless it recorded the shutdown time, which needs a clean stop (the pod had terminationGracePeriodSeconds: 1, now 60 s). Prefer point entries over time ranges for schedules of devices with physical side effects (the bedroom cover re-opened twice on 2026-11-18). See docs/troubleshooting/home-assistant-restarts.md

  • Heat-pump telemetry dead but the process and MQTT TCP look alive: GoHeishaMon on cz-taw1b.iot.grigri (the CZ-TAW1B module, not a heishamon host) hung on its PL2303 USB-serial read for ~4 days (2026-11-26 ~08:30 to 2026-12-01). Decisive signs: /proc/<pid>/stat utime not advancing and no live panasonic_heat_pump/# payload (retained LWT Offline), even with ESTABLISHED MQTT. HA kept the frozen values "available" (no expire_after) for ~68 h, so nothing checked them. Recover with /etc/init.d/goheishamon restart or reboot (a wedged PL2303 survives a restart). Now alerted by BatteryOptimizerHeatPumpTelemetryStale. See docs/troubleshooting/goheishamon-hang-climate-telemetry.md

  • ESPHome adoption of the hassmic Echo Dot: right after the config entry is created HA may log Connection requires encryption / Connection reset by peer and fail to add the assist_satellite entity — the noise-key exchange settles during adoption and the manager recovers on retry. Verify with the entity registry (config_entry_id, not entry_id) and the live pfSense state before resetting the device's api_key. Also: HA 2026.11 moved config flows from websocket to REST (POST /api/config/config_entries/flow). See docs/hardware/echo-dot.md and docs/troubleshooting/home-assistant-api-hacs-deploy.md

Applications

  • Apps with Supabase dependencies (auth schema, GoTrue, PostgREST) can use Zalando Postgres + init container for bootstrap SQL. Don't deploy separate Supabase Postgres container unless the app requires Supabase-specific extensions not in the Spilo image. See docs/deployment/readest.md and docs/conventions/deploying-new-apps.md

  • Supabase apps on Zalando Postgres: the db-migrate init container automates supporting schema/role setup, but upstream schema.sql needs GoTrue's auth schema (auth.users, auth.uid()) — on a fresh database start GoTrue before the client. See docs/deployment/readest.md

  • Apps with upstream SQL installed through docker-entrypoint-initdb.d need a Zalando-compatible init-container bootstrap. For versioned SQL, vendor at the app image tag, regenerate via Renovate, review before merge, and guard image/SQL version in CI and at startup. Readest uses a migration ledger; Firecrawl replays an idempotent snapshot. See docs/conventions/deploying-new-apps.md.

  • Changing spec.resources on a single-instance (numberOfInstances: 1) Zalando postgresql CR forces a master-pod recreate; the StatefulSet reuses the same pod name, the operator's deletion wait times out, and it latches status: UpdateFailed / ArgoCD Degraded even though the pod is healthy and the change applied. Fix: kubectl -n postgres-operator rollout restart deploy/postgres-operator. See docs/troubleshooting/zalando-single-instance-updatefailed.md

  • GoTrue's CORS allow-list omits the apikey header that supabase-js sends on every request. Web clients are same-origin (no preflight), but cross-origin Tauri/mobile WebViews fail silently at preflight and session establishment dies ("go to login"). Fix: GOTRUE_CORS_ALLOWED_HEADERS: apikey. Android login also needs readest://auth-callback in GOTRUE_URI_ALLOW_LIST and an nginx provider rewrite that preserves redirect_to. See docs/troubleshooting/readest-android-oauth.md

  • Firecrawl's nuq queue schema is NOT created by the app — upstream provisions it via a custom Postgres image (docker-entrypoint-initdb.d). On Zalando/Spilo nobody runs it, so an idempotent nuq-schema-init init container applies files/nuq.sql. On version bump, Renovate runs apps/firecrawl/hack/update-nuq-sql.sh automatically; pre-commit and deploy-time guards verify sync. cron.database_name is a restart-required GUC — delete the postgres pod once after setting it. See docs/troubleshooting/firecrawl-selfhost-deployment.md

  • vault-operator chart template doesn't support failureThreshold in probe config — only timeoutSeconds, periodSeconds, successThreshold, initialDelaySeconds are rendered. See docs/troubleshooting/vault-operator-probe-timeout.md

  • Kaniop KanidmBackupSchedule.spec.schedule is immutable — changing schedule requires delete/recreate. Discovery controller runs every 5 min and creates CRs for ALL S3 manifests (1000 limit). Retention only deletes CRs, not orphaned S3 data. To clean up: delete schedule, delete CRs, clean S3 with mc rm --recursive --force --versions, then recreate schedule. See docs/troubleshooting/kaniop-backup-system.md

  • Kanidm supports neither dynamic client registration (DCR) nor client-id metadata documents (CIMD). Every OAuth client must be pre-registered in git via KanidmOAuth2Client and its client_id supplied to the client out of band; a native MCP client that falls through CIMD and DCR to nothing fails with "expecting a client_id". The authorization-server metadata document is the source of truth. See docs/troubleshooting/kanidm-no-dcr-mcp-client-id.md

  • opencode MCP servers (mcp.grigri.cloud) go to needs_auth after a day idle, with oauth refresh failing invalid_grant: Kanidm's default refresh-token expiry is 16 h of non-use. Fix: kanidm.oauth2Client.refreshTokenExpiry (Kaniop spec.refreshTokenExpiry, set to 31536000 = 1 year). The consent "Proceed" page cannot be removed for a public localhost client. See docs/troubleshooting/mcp-gateway-oauth-reauth.md

  • Kanidm restore requires KanidmRestore CR with matching targetRef.uid, pinned restoreImage, and safety backup (or break-glass annotations). Restore job permission bug (#1005) causes failures. See docs/troubleshooting/kanidm-restore-procedure.md

  • Stump v0.1.5+ migration m20260519_192218_reading_sessions_v2 can fail mid-way, leaving legacy tables. Restore from snapshot and complete migration manually. See docs/troubleshooting/stump-migration-failure.md

  • Firecrawl egress NetworkPolicies (0b16b31b9) produced kubelet probe timeouts on api/worker/nuq across two nodes within ~12 s of attach (selected endpoints' BPF reloaded 1 s after the apply), while browser stayed Ready; reverted (8fff4f224) and the same api process recovered readiness without a restart. Root cause UNKNOWN and it stays unknown: the 2026-11-09 probe matrix measured egress-only policy sets as clean (cases C, D — Ready, 0 restarts), so nothing reproduced explains an egress-only failure, and browser staying Ready with the same anchors is still unexplained. Denied counters read 0 but are cumulative and unattributable, so they prove nothing either way; app logs prove neither handler responsiveness nor packet location. What the same matrices did settle is the kubelet-probe mechanism for the two later incidents (gateway 9049af3bf, grafana-mcp 838031375): any policy set carrying an ingress rule on an httpGet/tcpSocket-probed pod denies the probe (native NetworkPolicy and CNP alike), and while enable-host-firewall: false the probe source matches only world — host, remote-node, cluster and any fromCIDR (including the exact /32 of the probe source) all fail. Both explanations published earlier here ("cannot name the node on ingress", then "pod→node response dropped by enforced egress") are falsified; the same-node A/B dial's direction was right, its reasoning was not. Safe shape: dedicated health port from fromEntities: [world], app/metrics ports from fromEndpoints, egress toEntities: [cluster] (keep cluster off the health port). Rule: docs/conventions/cilium.md; full record with the matrix tables and the retracted hypotheses: docs/troubleshooting/mcp-firecrawl-egress-regression.md. The live SSRF check never ran. Re-land only with deny/CT/capture evidence, a single-workload canary, and the probe shape proven on this cluster before the policy attaches.

  • Music Assistant (hostNetwork on prusik): Open Subsonic setup wants baseURL without port (separate port field); track sync aborts wholesale on Navidrome's virtual "[Unknown Album]" (untagged files, getAlbum error 70) — search/playback still work, fix the tags or wait for an upstream report_skipped_sync_item fix. Cross-VLAN Sendspin players need the provider's Manual IP addresses for discovery as <ip>:28928 for hassmic Echos (bare IP means the wrong default port 8928); auto-pairing needs MA's hass provider (HA 2026.11 + MA ≥ 2.10.9). AirPlay/ DLNA have no manual-IP option: TVs on another VLAN need pfSense mDNS reflection first. Headless HA adoption: POST {"code": <MA long-lived token>} to the flow's external auth step. Commissioning record and pass paths: docs/deployment/home-assistant-voice-multiroom.md