[2.0.9-beta] Media playback becomes stuck after opening a failing media file since v2.0.8-beta

Author: JackyLWHCreated Sep 28, 2026Updated Oct 1, 2026
Labelsbug

Description

Media playback became unstable starting from v2.0.8-beta and the issue is still present in v2.0.9-beta.

The same media files work normally on v2.0.7-beta.

The behaviour is state-dependent and there appear to be several exceptions depending on the media format and path.

One pattern I can reproduce is under /files/folder/:

  • Some MP3/FLAC/MP4 files can play normally immediately after restarting FileBrowser Quantum.
  • After opening a media file that fails, other MP3/FLAC/MP4 files that were previously working can also stop playing.
  • Their /api/media/metadata requests can remain Pending indefinitely.
  • Restarting the container restores the previous working state.
  • WAV files appear to be unaffected and can still play normally at any time.

I also tested files inside /files/folder/test/. In that folder, WAV continues to work while the other tested media files fail. One MP3 file is a special case: it does not show the loading animation, but it still produces no sound and does not play correctly.

Because there are several exceptions, I have not identified an exact codec, format, or path condition that determines which files initially work.

Expected behaviour

Media files should either play normally or fail without affecting other media files.

A failed media file should not cause later /api/media/metadata requests or previously working media files to become stuck.

What is happening instead?

Affected MP3, FLAC, and MP4 files may stay on the loading animation.

In browser DevTools, /api/media/metadata can remain Pending indefinitely.

Before the issue is triggered, a working MP4 can show:

  • /api/media/metadata -> HTTP 200
  • /api/media/stream -> HTTP 206

After opening a problematic media file, /api/media/metadata requests can remain Pending.

If I then reopen an MP4 or other media file that was previously working, it may also fail to play.

The server log repeatedly shows:

Request approaching timeout (48.0s/60s): GET /media/metadata

Opening several problematic media files can also make the current FileBrowser page unresponsive.

Restarting the container clears the broken state temporarily.

WAV files remain playable even while the other media files are affected.

One tested MP3 is another exception: it does not show the loading animation, but it still has no sound and does not play correctly.

Additional context

Environment:

  • FileBrowser Quantum v2.0.9-beta
  • Docker image: gtstef/filebrowser:beta
  • v2.0.7-beta: works normally
  • v2.0.8-beta: affected
  • v2.0.9-beta: affected
  • Tested on desktop Chrome, mobile Chrome, and desktop Brave
  • Tested through nginx and by direct connection to port 8080
  • Issue observed with files from the configured sources
  • Existing database and config were kept when upgrading

Docker configuration:

yaml
filebrowser2:
  image: gtstef/filebrowser:beta
  container_name: filebrowser2
  restart: unless-stopped
  user: "1000:1000"
  ports:
    - "8080:8080"
  environment:
    FILEBROWSER_CONFIG: /config/config.yaml
  volumes:
    - /mnt/usb:/folder
    - /docker:/docker
    - /docker/filebrowser-2/database:/database
    - /docker/filebrowser-2/config:/config

Media configuration:

yaml
integrations:
  media:
    extractEmbeddedSubtitles: true

I also tested with:

yaml
integrations:
  media:
    extractEmbeddedSubtitles: false

The behaviour was unchanged.

This may be related to #2996 because the symptoms are similar: media metadata requests become stuck until the container is restarted. However, my trigger is normal media playback rather than HEIC preview generation.

How to reproduce?

One reproducible sequence I observed:

  1. Restart FileBrowser Quantum.
  2. Open a media file under /files/folder/ that currently plays normally.
  3. Open another MP3, FLAC, or MP4 file that fails to play.
  4. The failing file may stay on the loading animation and /api/media/metadata remains Pending.
  5. Go back to the previously working media file.
  6. It may now also fail to play, with /api/media/metadata remaining Pending.
  7. Restart the container.
  8. The previously working media file works again until another problematic media file is opened.
  9. WAV files remain playable throughout.

Additional observation from /files/folder/test/:

  • WAV plays normally at any time.
  • The other tested media files do not play correctly.
  • One MP3 does not show the loading animation, but it still has no sound and does not play correctly.

Files

  • Screen recording showing that WAV remains playable while the other tested media files fail in /files/folder/test/.

https://github.com/user-attachments/assets/ac3143b0-8621-470a-ae13-48749571a61e

Source: gtsteffaniak/filebrowser