Skip to content

[BUG] audio stops working after container restart (stale /dev/shm/audio.lock) #191

Description

@rakarez

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

After restarting a Selkies-based container (docker restart / podman restart), audio no longer works. Selkies shows 0 audio buffers and nothing plays in the browser.

The container logs show pcmflux failing to connect to the audio device:

[pcmflux] Attempting to connect to PulseAudio device: output.monitor with latency: 10ms
[pcmflux] ERROR: pa_simple_new() failed: No such entity

Expected Behavior

Audio should continue to work after a container restart, the same as it does on first run.

Steps To Reproduce

  1. Run any Selkies-based container (e.g. linuxserver/chrome):

    docker run -d --name=chrome
    --security-opt seccomp=unconfined
    -p 3000:3000 -p 3001:3001
    --shm-size="1gb"
    linuxserver/chrome

  2. Confirm audio works (play something, buffers fill).

  3. Restart the container:

    docker restart chrome

  4. Audio no longer works — Selkies audio buffers stay at 0.

Environment

- Host OS: Fedora Linux 40 (running under WSL2)
- Kernel: 5.15.167.4-microsoft-standard-WSL2
- Architecture: x86_64
- Container runtime: Podman 5.3.1
- cgroups: v1 (tmpfs on /sys/fs/cgroup)
- Image: linuxserver/chrome:latest (base: docker-baseimage-selkies)

Docker creation

podman run -d \
  --name=chrome \
  --security-opt seccomp=unconfined \
  -e PUID=1000 \
  -e PGID=1000 \
  -e TZ=Asia/Bangkok \
  -p 3000:3000 \
  -p 3001:3001 \
  -v /home/user/chrome-config:/config \
  --shm-size="1gb" \
  docker.io/linuxserver/chrome

Container logs

INFO:data_websocket:pcmflux library found. Audio capture is available.
Selkies settings: 'audio_device_name': 'output.monitor'
INFO:data_websocket:Attempting to establish PulseAudio connection...
INFO:data_websocket:PulseAudio connection established.
INFO:data_websocket:Starting pcmflux audio pipeline...
INFO:data_websocket:pcmflux settings: device='output.monitor', bitrate=320000, channels=2
[pcmflux] Attempting to connect to PulseAudio device: output.monitor with latency: 10ms
[pcmflux] ERROR: pa_simple_new() failed: No such entity     <-- output.monitor doesn't exist

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions