发布

  • fix(cli): ignore a half-populated socket activation environment (#11394)

    frostbyte_neo 发布于 2026-08-06 15:35:23 +00:00 | 491 次提交 在此版本后已推送到 master

    A container engine started from a socket-activated system unit leaks a bare
    LISTEN_PID into every container it spawns, with no matching LISTEN_FDS. LocalAI
    read that as a malformed activation attempt and refused to start:

    ERROR Error running the application error=loading systemd socket
    activation listeners: invalid LISTEN_FDS ""
    

    systemd's own sd_listen_fds() treats either variable being absent as "not
    activated" rather than as an error, so do the same and fall back to ordinary
    --address binding. A value that is present but malformed is still rejected, so
    a real activation attempt cannot silently bind the wrong socket.

    Fixes #11390

    Assisted-by: Claude:claude-opus-5 [golangci-lint]

    Signed-off-by: Ettore Di Giacinto mudler@localai.io
    Co-authored-by: Ettore Di Giacinto mudler@localai.io

    下载附件