[Debian .deb] Stream failed: undefined – files.txt directory not created #2786

Closed
opened 2026-04-25 00:10:39 +02:00 by adam · 1 comment
Owner

Originally created by @ppeekae on GitHub (May 19, 2025).

Version
audiobookshelf 2.23.0 (installed via .deb package)


Describe the bug
When starting HLS playback, the server does not create the metadata/streams/<id>/ folder before writing files.txt, causing ffmpeg to fail with “No such file or directory” and the Web UI to display “Stream failed: undefined.”


Logs

2025-05-19 20:12:58.409 INFO  [INFO] FFMPEG transcoding started with command: ffmpeg … -i /usr/share/audiobookshelf/metadata/streams/<id>/files.txt …
2025-05-19 20:12:58.419 ERROR Ffmpeg Err "/usr/share/audiobookshelf/metadata/streams/<id>/files.txt: No such file or directory"

Steps to reproduce

  1. Install Audiobookshelf 2.23.0 via the .deb package on Ubuntu 22.04.
  2. Add an audiobook with one or more audio files.
  3. Attempt to play it in a browser.

Expected behavior
Audiobookshelf should create metadata/streams/<id>/ and write files.txt there before invoking ffmpeg, allowing HLS streaming to start without error.


Environment

  • OS: Ubuntu 22.04
  • Package: audiobookshelf_2.23.0_amd64.deb
  • Service user: audiobookshelf
  • Metadata directory ownership: audiobookshelf:audiobookshelf
Originally created by @ppeekae on GitHub (May 19, 2025). **Version** audiobookshelf 2.23.0 (installed via .deb package) --- **Describe the bug** When starting HLS playback, the server does not create the `metadata/streams/<id>/` folder before writing `files.txt`, causing ffmpeg to fail with “No such file or directory” and the Web UI to display “Stream failed: undefined.” --- **Logs** ``` 2025-05-19 20:12:58.409 INFO [INFO] FFMPEG transcoding started with command: ffmpeg … -i /usr/share/audiobookshelf/metadata/streams/<id>/files.txt … 2025-05-19 20:12:58.419 ERROR Ffmpeg Err "/usr/share/audiobookshelf/metadata/streams/<id>/files.txt: No such file or directory" ``` --- **Steps to reproduce** 1. Install Audiobookshelf 2.23.0 via the `.deb` package on Ubuntu 22.04. 2. Add an audiobook with one or more audio files. 3. Attempt to play it in a browser. --- **Expected behavior** Audiobookshelf should create `metadata/streams/<id>/` and write `files.txt` there before invoking ffmpeg, allowing HLS streaming to start without error. --- **Environment** * OS: Ubuntu 22.04 * Package: `audiobookshelf_2.23.0_amd64.deb` * Service user: `audiobookshelf` * Metadata directory ownership: `audiobookshelf:audiobookshelf`
adam closed this issue 2026-04-25 00:10:40 +02:00
Author
Owner

@github-actions[bot] commented on GitHub (May 19, 2025):

Thank you for opening an issue! To help us review your request efficiently, please use one of the provided issue templates. If you're seeking information or have a general question, consider opening a Discussion or joining the conversation on our Discord. Thanks!

@github-actions[bot] commented on GitHub (May 19, 2025): Thank you for opening an issue! To help us review your request efficiently, please use one of the provided issue templates. If you're seeking information or have a general question, consider opening a Discussion or joining the conversation on our Discord. Thanks!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/audiobookshelf#2786