conmon wedges on long-running container: podman exec fails with readObjectStart NUL while container keeps serving traffic (rootless podman 5.8.2, conmon 2.2.1)

Aperta
#726 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 2 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
15/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
c, go, linux

Direzione di ricerca

Start from the two halves of the exec handshake: conmon's control/exec handling that writes the JSON payload, and the podman exec path that fails decoding it with readObjectStart. The payload names no files, so first reproduce with conmon at higher verbosity and strace the wedged conmon on the next occurrence, checking what is written to the control/exec fd and whether it is closed or reused. Done means repeated podman exec and the healthcheck keep working after multi-day uptime.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Title: conmon wedges on long-running container: podman exec fails with readObjectStart ... \x00 while container keeps serving traffic (rootless podman 5.8.2, conmon 2.2.1)


Summary

On a long-running rootless container, conmon intermittently wedges after ~1–2 days of uptime: every podman exec into the container fails with conmon bytes "": readObjectStart: expect { or n, but found \x00, while the container itself keeps running and serving HTTP 200. The container's healthcheck starts failing (or keeps returning a stale healthy result for the first minute or two). Restarting the container (via its systemd Quadlet unit) immediately restores normal exec behavior. This has recurred 5 times in 9 days on the same container, with increasing frequency.

Environment

  • OS: AlmaLinux 9.9 (kernel 5.14.0-741.24.1.el9_9.x86_64), SELinux enforcing
  • Podman: 5.8.2 (client & engine, rootless), API 5.8.2, go1.27.3
  • conmon: 2.2.1 (RPM conmon-3:2.2.1-2.el9_8, AlmaLinux appstream) — latest upstream release
  • crun: 1.29.1
  • Container image: docker.io/library/ghost:6.78.0-alpine (Node.js app with an HTTP healthcheck)
  • Deployment: rootless Quadlet systemd user unit, container has been up ~34 h when each wedge occurs

Symptom

  1. Container is running and healthy, serving HTTP 200 normally.

  2. At some point, all podman exec <ctr> <cmd> calls start failing with:

    Error: container create failed (no logs from conmon): conmon bytes "": readObjectStart: expect { or n, but found \x00, error found in #0 byte of ...||..., bigger context ...||...
    
  3. The application inside keeps serving traffic fine (HTTP 200/301) — only the conmon exec path is broken.

  4. The container healthcheck (which runs inside the container) begins failing within minutes, flipping health to unhealthy; occasionally podman inspect keeps reporting a stale healthy status for the first ~1–2 minutes after the wedge starts.

  5. conmon process for the container is alive, with normal fd count (~18) and RSS (~2.4 MB) — no fd leak, no OOM, no kernel log entries.

  6. systemctl --user restart <quadlet-unit> fully resolves it: exec works again immediately.

Recurrence

5 incidents in 9 days on the same container (Nov 17, 18, 22, 24, 25 — uptime at wedge between ~20 h and ~34 h each time). All produce the identical readObjectStart ... \x00 error. Frequency appears to be increasing.

Expected behavior

podman exec keeps working for the lifetime of the container.

Actual behavior

conmon stops being able to spawn exec sessions after ~1–2 days, returning an unparseable (empty/NUL) payload, while the container itself remains fully functional.

Notes

  • The error string matches other issues, but those all concern container creation failing; here the wedge happens on an already-running container during exec.
  • No OOM kills, no dmesg/journal errors, no fd exhaustion on the conmon process at wedge time.
  • Happy to gather further diagnostics (conmon logs at higher verbosity, strace of the wedged conmon, etc.) on the next occurrence — please let me know what would be most useful.
Lingua principale
C
Stelle
510
Fork
159
Merge medio
2g 6h
PR unite (30g)
12

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di containers/conmon

Tutte le issue di containers/conmon

Issue simili

Altre issue su C

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.