[Bug]: "Stream Failed: undefined" Error with Incorrect "Disk Usage" Display on PikaPods #2393

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

Originally created by @mpenchenat93 on GitHub (Dec 5, 2024).

What happened?

After setting up a new Audiobookshelf instance and importing 7 audio files (several megabytes each), I activated a custom domain and logged in using the new domain. When I tried to play any of the audiobooks, I got the error:
Stream Failed: undefined.

Additionally, the "Disk Usage" displayed on the PikaPods interface is incorrect. It only shows 556 KB of usage, despite uploading several megabytes of audio files.

What did you expect to happen?

The audio files should be readable and streamable without any errors.
The "Disk Usage" in the PikaPods interface should accurately reflect the size of the uploaded files.

Steps to reproduce the issue

  1. Create a new Audiobookshelf instance.
  2. Create an admin account and log in.
  3. Create a library named "Maria Valtorta."
  4. Import a folder containing 7 audio files (each several megabytes in size).
  5. Verify that the audio files are readable and playable.
  6. Enable the custom domain and set the CNAME record.
  7. Log in using the custom domain.
  8. Attempt to play one of the audiobooks.

Audiobookshelf version

v2.17.3

How are you running audiobookshelf?

Docker

What OS is your Audiobookshelf server hosted from?

Linux

If the issue is being seen in the UI, what browsers are you seeing the problem on?

Chrome

Logs

2024-12-05 07:03:05.229

INFO

=== Starting Server ===

2024-12-05 07:03:05.229

INFO

[Server] Init v2.17.3

2024-12-05 07:03:05.229

INFO

[Server] Node.js Version: v20.18.1

2024-12-05 07:03:05.230

INFO

[Server] Platform: linux

2024-12-05 07:03:05.230

INFO

[Server] Arch: x64

2024-12-05 07:03:05.232

INFO

[Database] absdatabase.sqlite not found at /config/absdatabase.sqlite

2024-12-05 07:03:05.232

INFO

[Database] Initializing db at "/config/absdatabase.sqlite"

2024-12-05 07:03:05.253

INFO

[Database] Loading extension /usr/local/lib/nusqlite3/libnusqlite3.so

2024-12-05 07:03:05.254

INFO

[Database] Successfully loaded extension /usr/local/lib/nusqlite3/libnusqlite3.so

2024-12-05 07:03:05.254

INFO

[Database] Db supports unaccent and unicode foldings

2024-12-05 07:03:05.254

INFO

[Database] Db connection was successful

2024-12-05 07:03:05.420

INFO

[MigrationManager] Database is new. Skipping migrations.

2024-12-05 07:03:07.146

INFO

[Database] Db initialized with models: user, library, libraryFolder, book, podcast, podcastEpisode, libraryItem, mediaProgress, series, bookSeries, author, bookAuthor, collection, collectionBook, playlist, playlistMediaItem, device, playbackSession, feed, feedEpisode, setting, customMetadataProvider, mediaItemShare

2024-12-05 07:03:07.157

INFO

[LogManager] Init current daily log filename: 2024-12-05.txt

2024-12-05 07:03:07.202

INFO

[BackupManager] 0 Backups Found

2024-12-05 07:03:07.202

INFO

[BackupManager] Auto Backups are disabled

2024-12-05 07:03:07.214

INFO

Listening on port :80

2024-12-05 07:04:02.741

INFO

[Server] Initializing new server

2024-12-05 07:04:12.397

INFO

[Auth] User "admin" logged in from ip 2a02:8440:c200:c372:31c4:9971:f70d:3694

2024-12-05 07:04:13.025

INFO

[SocketAuthority] Socket Connected mWTZUf08V8RIfw2EAAAB

2024-12-05 07:04:59.205

INFO

[Watcher] Initializing watcher for "Maria Valtorta".

2024-12-05 07:04:59.210

INFO

[Watcher] "Maria Valtorta" Ready

2024-12-05 07:08:37.673

INFO

Uploading 5 files to /Maria Valtorta/Author 1/Le Livre D'Azarias

2024-12-05 07:09:06.564

INFO

[SocketAuthority] Socket mWTZUf08V8RIfw2EAAAB disconnected from client "admin" after 293539ms (Reason: client namespace disconnect)

2024-12-05 07:10:54.886

INFO

=== Starting Server ===

2024-12-05 07:10:54.887

INFO

[Server] Init v2.17.3

2024-12-05 07:10:54.887

INFO

[Server] Node.js Version: v20.18.1

2024-12-05 07:10:54.887

INFO

[Server] Platform: linux

2024-12-05 07:10:54.887

INFO

[Server] Arch: x64

2024-12-05 07:10:54.889

INFO

[Database] Initializing db at "/config/absdatabase.sqlite"

2024-12-05 07:10:54.935

INFO

[Database] Loading extension /usr/local/lib/nusqlite3/libnusqlite3.so

2024-12-05 07:10:54.935

INFO

[Database] Successfully loaded extension /usr/local/lib/nusqlite3/libnusqlite3.so

2024-12-05 07:10:54.936

INFO

[Database] Db supports unaccent and unicode foldings

2024-12-05 07:10:54.936

INFO

[Database] Db connection was successful

2024-12-05 07:10:54.939

INFO

[MigrationManager] Database is already up to date.

2024-12-05 07:10:55.002

INFO

[Database] Db initialized with models: user, library, libraryFolder, book, podcast, podcastEpisode, libraryItem, mediaProgress, series, bookSeries, author, bookAuthor, collection, collectionBook, playlist, playlistMediaItem, device, playbackSession, feed, feedEpisode, setting, customMetadataProvider, mediaItemShare

2024-12-05 07:10:55.034

INFO

[LogManager] Init current daily log filename: 2024-12-05.txt

2024-12-05 07:10:55.038

INFO

[BackupManager] 0 Backups Found

2024-12-05 07:10:55.038

INFO

[BackupManager] Auto Backups are disabled

2024-12-05 07:10:55.045

INFO

[Watcher] Initializing watcher for "Maria Valtorta".

2024-12-05 07:10:55.051

INFO

Listening on port :80

2024-12-05 07:10:55.052

INFO

[Watcher] "Maria Valtorta" Ready

2024-12-05 07:11:16.421

INFO

[Auth] User "admin" logged in from ip 2a02:8440:c200:c372:31c4:9971:f70d:3694

2024-12-05 07:11:17.005

INFO

[SocketAuthority] Socket Connected 17nazGGh1gWJm2DlAAAB

2024-12-05 07:11:19.181

INFO

[PlaybackSessionManager] startSession: Closing open session "Le Livre D'Azarias" for user "admin" (Device: Linux x86_64 / Chrome)

2024-12-05 07:11:19.183

INFO

[STREAM] START STREAM - Num Segments: 257

2024-12-05 07:11:19.291

INFO

[INFO] FFMPEG transcoding started with command: ffmpeg -seek_timestamp 1 -f concat -safe 0 -i /metadata/streams/1a851699-1e58-4fdb-b5da-e4a50c5a2beb/files.txt -y -loglevel error -map 0:a -c:a copy -f hls -copyts -avoid_negative_ts make_non_negative -max_delay 5000000 -max_muxing_queue_size 2048 -hls_time 6 -hls_segment_type mpegts -start_number 0 -hls_playlist_type vod -hls_list_size 0 -hls_allow_cache 0 -hls_segment_filename /metadata/streams/1a851699-1e58-4fdb-b5da-e4a50c5a2beb/output-%d.ts /metadata/streams/1a851699-1e58-4fdb-b5da-e4a50c5a2beb/final-output.m3u8

2024-12-05 07:11:19.291

INFO


2024-12-05 07:11:19.328

INFO

[concat @ 0x7f0d0ad06600] Impossible to open '/Maria Valtorta/Author 1/Le Livre D'Azarias/001 Introduction.mp3'

2024-12-05 07:11:19.328

INFO

[in#0 @ 0x7f0d0ad1a8c0] Error opening input: No such file or directory

2024-12-05 07:11:19.328

INFO

Error opening input file /metadata/streams/1a851699-1e58-4fdb-b5da-e4a50c5a2beb/files.txt.

2024-12-05 07:11:19.328

INFO

Error opening input files: No such file or directory

2024-12-05 07:11:19.331

INFO


2024-12-05 07:11:19.332

ERROR

Ffmpeg Err "ffmpeg exited with code 254: Error opening input file /metadata/streams/1a851699-1e58-4fdb-b5da-e4a50c5a2beb/files.txt. Error opening input files: No such file or directory "

2024-12-05 07:11:19.332

INFO

Closing Stream 1a851699-1e58-4fdb-b5da-e4a50c5a2beb

2024-12-05 07:11:19.333

INFO

Deleted session data /metadata/streams/1a851699-1e58-4fdb-b5da-e4a50c5a2beb

2024-12-05 07:11:19.447

ERROR

[HlsRouter] Stream "1a851699-1e58-4fdb-b5da-e4a50c5a2beb" does not exist

2024-12-05 07:11:20.755

ERROR

[HlsRouter] Stream "1a851699-1e58-4fdb-b5da-e4a50c5a2beb" does not exist

2024-12-05 07:11:22.973

ERROR

[HlsRouter] Stream "1a851699-1e58-4fdb-b5da-e4a50c5a2beb" does not exist

2024-12-05 07:11:27.173

ERROR

[HlsRouter] Stream "1a851699-1e58-4fdb-b5da-e4a50c5a2beb" does not exist

2024-12-05 07:16:15.383

INFO

[PlaybackSessionManager] startSession: Closing open session "Le Livre D'Azarias" for user "admin" (Device: Linux x86_64 / Chrome)

2024-12-05 07:16:15.384

INFO

[STREAM] START STREAM - Num Segments: 257

2024-12-05 07:16:15.387

INFO

[INFO] FFMPEG transcoding started with command: ffmpeg -seek_timestamp 1 -f concat -safe 0 -i /metadata/streams/fec8d5e5-e33f-4478-9da2-c5671457aa85/files.txt -y -loglevel error -map 0:a -c:a copy -f hls -copyts -avoid_negative_ts make_non_negative -max_delay 5000000 -max_muxing_queue_size 2048 -hls_time 6 -hls_segment_type mpegts -start_number 0 -hls_playlist_type vod -hls_list_size 0 -hls_allow_cache 0 -hls_segment_filename /metadata/streams/fec8d5e5-e33f-4478-9da2-c5671457aa85/output-%d.ts /metadata/streams/fec8d5e5-e33f-4478-9da2-c5671457aa85/final-output.m3u8

2024-12-05 07:16:15.387

INFO


2024-12-05 07:16:15.419

INFO

[concat @ 0x7f6b8c2f6600] Impossible to open '/Maria Valtorta/Author 1/Le Livre D'Azarias/001 Introduction.mp3'

2024-12-05 07:16:15.419

INFO

[in#0 @ 0x7f6b8c8878c0] Error opening input: No such file or directory

2024-12-05 07:16:15.419

INFO

Error opening input file /metadata/streams/fec8d5e5-e33f-4478-9da2-c5671457aa85/files.txt.

2024-12-05 07:16:15.419

INFO

Error opening input files: No such file or directory

2024-12-05 07:16:15.422

INFO


2024-12-05 07:16:15.423

ERROR

Ffmpeg Err "ffmpeg exited with code 254: Error opening input file /metadata/streams/fec8d5e5-e33f-4478-9da2-c5671457aa85/files.txt. Error opening input files: No such file or directory "

2024-12-05 07:16:15.423

INFO

Closing Stream fec8d5e5-e33f-4478-9da2-c5671457aa85

2024-12-05 07:16:15.423

INFO

Deleted session data /metadata/streams/fec8d5e5-e33f-4478-9da2-c5671457aa85

2024-12-05 07:16:15.480

ERROR

[HlsRouter] Stream "fec8d5e5-e33f-4478-9da2-c5671457aa85" does not exist

Additional Notes

The error message observed when trying to play an audiobook is:
Stream Failed: undefined.

The "Disk Usage" in the PikaPods dashboard shows only 556 KB instead of the correct size of the uploaded files, which might be related to the streaming issue.

Access to the instance for debugging:
URL: https://audiobook.studycompanion.fr/
User: admin
Password: TaQ6JFyp$Mx&TyFA&*7%

Originally created by @mpenchenat93 on GitHub (Dec 5, 2024). ### What happened? After setting up a new Audiobookshelf instance and importing 7 audio files (several megabytes each), I activated a custom domain and logged in using the new domain. When I tried to play any of the audiobooks, I got the error: Stream Failed: undefined. Additionally, the "Disk Usage" displayed on the PikaPods interface is incorrect. It only shows 556 KB of usage, despite uploading several megabytes of audio files. ### What did you expect to happen? The audio files should be readable and streamable without any errors. The "Disk Usage" in the PikaPods interface should accurately reflect the size of the uploaded files. ### Steps to reproduce the issue 1. Create a new Audiobookshelf instance. 2. Create an admin account and log in. 3. Create a library named "Maria Valtorta." 4. Import a folder containing 7 audio files (each several megabytes in size). 5. Verify that the audio files are readable and playable. 6. Enable the custom domain and set the CNAME record. 7. Log in using the custom domain. 8. Attempt to play one of the audiobooks. ### Audiobookshelf version v2.17.3 ### How are you running audiobookshelf? Docker ### What OS is your Audiobookshelf server hosted from? Linux ### If the issue is being seen in the UI, what browsers are you seeing the problem on? Chrome ### Logs ```shell 2024-12-05 07:03:05.229 INFO === Starting Server === 2024-12-05 07:03:05.229 INFO [Server] Init v2.17.3 2024-12-05 07:03:05.229 INFO [Server] Node.js Version: v20.18.1 2024-12-05 07:03:05.230 INFO [Server] Platform: linux 2024-12-05 07:03:05.230 INFO [Server] Arch: x64 2024-12-05 07:03:05.232 INFO [Database] absdatabase.sqlite not found at /config/absdatabase.sqlite 2024-12-05 07:03:05.232 INFO [Database] Initializing db at "/config/absdatabase.sqlite" 2024-12-05 07:03:05.253 INFO [Database] Loading extension /usr/local/lib/nusqlite3/libnusqlite3.so 2024-12-05 07:03:05.254 INFO [Database] Successfully loaded extension /usr/local/lib/nusqlite3/libnusqlite3.so 2024-12-05 07:03:05.254 INFO [Database] Db supports unaccent and unicode foldings 2024-12-05 07:03:05.254 INFO [Database] Db connection was successful 2024-12-05 07:03:05.420 INFO [MigrationManager] Database is new. Skipping migrations. 2024-12-05 07:03:07.146 INFO [Database] Db initialized with models: user, library, libraryFolder, book, podcast, podcastEpisode, libraryItem, mediaProgress, series, bookSeries, author, bookAuthor, collection, collectionBook, playlist, playlistMediaItem, device, playbackSession, feed, feedEpisode, setting, customMetadataProvider, mediaItemShare 2024-12-05 07:03:07.157 INFO [LogManager] Init current daily log filename: 2024-12-05.txt 2024-12-05 07:03:07.202 INFO [BackupManager] 0 Backups Found 2024-12-05 07:03:07.202 INFO [BackupManager] Auto Backups are disabled 2024-12-05 07:03:07.214 INFO Listening on port :80 2024-12-05 07:04:02.741 INFO [Server] Initializing new server 2024-12-05 07:04:12.397 INFO [Auth] User "admin" logged in from ip 2a02:8440:c200:c372:31c4:9971:f70d:3694 2024-12-05 07:04:13.025 INFO [SocketAuthority] Socket Connected mWTZUf08V8RIfw2EAAAB 2024-12-05 07:04:59.205 INFO [Watcher] Initializing watcher for "Maria Valtorta". 2024-12-05 07:04:59.210 INFO [Watcher] "Maria Valtorta" Ready 2024-12-05 07:08:37.673 INFO Uploading 5 files to /Maria Valtorta/Author 1/Le Livre D'Azarias 2024-12-05 07:09:06.564 INFO [SocketAuthority] Socket mWTZUf08V8RIfw2EAAAB disconnected from client "admin" after 293539ms (Reason: client namespace disconnect) 2024-12-05 07:10:54.886 INFO === Starting Server === 2024-12-05 07:10:54.887 INFO [Server] Init v2.17.3 2024-12-05 07:10:54.887 INFO [Server] Node.js Version: v20.18.1 2024-12-05 07:10:54.887 INFO [Server] Platform: linux 2024-12-05 07:10:54.887 INFO [Server] Arch: x64 2024-12-05 07:10:54.889 INFO [Database] Initializing db at "/config/absdatabase.sqlite" 2024-12-05 07:10:54.935 INFO [Database] Loading extension /usr/local/lib/nusqlite3/libnusqlite3.so 2024-12-05 07:10:54.935 INFO [Database] Successfully loaded extension /usr/local/lib/nusqlite3/libnusqlite3.so 2024-12-05 07:10:54.936 INFO [Database] Db supports unaccent and unicode foldings 2024-12-05 07:10:54.936 INFO [Database] Db connection was successful 2024-12-05 07:10:54.939 INFO [MigrationManager] Database is already up to date. 2024-12-05 07:10:55.002 INFO [Database] Db initialized with models: user, library, libraryFolder, book, podcast, podcastEpisode, libraryItem, mediaProgress, series, bookSeries, author, bookAuthor, collection, collectionBook, playlist, playlistMediaItem, device, playbackSession, feed, feedEpisode, setting, customMetadataProvider, mediaItemShare 2024-12-05 07:10:55.034 INFO [LogManager] Init current daily log filename: 2024-12-05.txt 2024-12-05 07:10:55.038 INFO [BackupManager] 0 Backups Found 2024-12-05 07:10:55.038 INFO [BackupManager] Auto Backups are disabled 2024-12-05 07:10:55.045 INFO [Watcher] Initializing watcher for "Maria Valtorta". 2024-12-05 07:10:55.051 INFO Listening on port :80 2024-12-05 07:10:55.052 INFO [Watcher] "Maria Valtorta" Ready 2024-12-05 07:11:16.421 INFO [Auth] User "admin" logged in from ip 2a02:8440:c200:c372:31c4:9971:f70d:3694 2024-12-05 07:11:17.005 INFO [SocketAuthority] Socket Connected 17nazGGh1gWJm2DlAAAB 2024-12-05 07:11:19.181 INFO [PlaybackSessionManager] startSession: Closing open session "Le Livre D'Azarias" for user "admin" (Device: Linux x86_64 / Chrome) 2024-12-05 07:11:19.183 INFO [STREAM] START STREAM - Num Segments: 257 2024-12-05 07:11:19.291 INFO [INFO] FFMPEG transcoding started with command: ffmpeg -seek_timestamp 1 -f concat -safe 0 -i /metadata/streams/1a851699-1e58-4fdb-b5da-e4a50c5a2beb/files.txt -y -loglevel error -map 0:a -c:a copy -f hls -copyts -avoid_negative_ts make_non_negative -max_delay 5000000 -max_muxing_queue_size 2048 -hls_time 6 -hls_segment_type mpegts -start_number 0 -hls_playlist_type vod -hls_list_size 0 -hls_allow_cache 0 -hls_segment_filename /metadata/streams/1a851699-1e58-4fdb-b5da-e4a50c5a2beb/output-%d.ts /metadata/streams/1a851699-1e58-4fdb-b5da-e4a50c5a2beb/final-output.m3u8 2024-12-05 07:11:19.291 INFO 2024-12-05 07:11:19.328 INFO [concat @ 0x7f0d0ad06600] Impossible to open '/Maria Valtorta/Author 1/Le Livre D'Azarias/001 Introduction.mp3' 2024-12-05 07:11:19.328 INFO [in#0 @ 0x7f0d0ad1a8c0] Error opening input: No such file or directory 2024-12-05 07:11:19.328 INFO Error opening input file /metadata/streams/1a851699-1e58-4fdb-b5da-e4a50c5a2beb/files.txt. 2024-12-05 07:11:19.328 INFO Error opening input files: No such file or directory 2024-12-05 07:11:19.331 INFO 2024-12-05 07:11:19.332 ERROR Ffmpeg Err "ffmpeg exited with code 254: Error opening input file /metadata/streams/1a851699-1e58-4fdb-b5da-e4a50c5a2beb/files.txt. Error opening input files: No such file or directory " 2024-12-05 07:11:19.332 INFO Closing Stream 1a851699-1e58-4fdb-b5da-e4a50c5a2beb 2024-12-05 07:11:19.333 INFO Deleted session data /metadata/streams/1a851699-1e58-4fdb-b5da-e4a50c5a2beb 2024-12-05 07:11:19.447 ERROR [HlsRouter] Stream "1a851699-1e58-4fdb-b5da-e4a50c5a2beb" does not exist 2024-12-05 07:11:20.755 ERROR [HlsRouter] Stream "1a851699-1e58-4fdb-b5da-e4a50c5a2beb" does not exist 2024-12-05 07:11:22.973 ERROR [HlsRouter] Stream "1a851699-1e58-4fdb-b5da-e4a50c5a2beb" does not exist 2024-12-05 07:11:27.173 ERROR [HlsRouter] Stream "1a851699-1e58-4fdb-b5da-e4a50c5a2beb" does not exist 2024-12-05 07:16:15.383 INFO [PlaybackSessionManager] startSession: Closing open session "Le Livre D'Azarias" for user "admin" (Device: Linux x86_64 / Chrome) 2024-12-05 07:16:15.384 INFO [STREAM] START STREAM - Num Segments: 257 2024-12-05 07:16:15.387 INFO [INFO] FFMPEG transcoding started with command: ffmpeg -seek_timestamp 1 -f concat -safe 0 -i /metadata/streams/fec8d5e5-e33f-4478-9da2-c5671457aa85/files.txt -y -loglevel error -map 0:a -c:a copy -f hls -copyts -avoid_negative_ts make_non_negative -max_delay 5000000 -max_muxing_queue_size 2048 -hls_time 6 -hls_segment_type mpegts -start_number 0 -hls_playlist_type vod -hls_list_size 0 -hls_allow_cache 0 -hls_segment_filename /metadata/streams/fec8d5e5-e33f-4478-9da2-c5671457aa85/output-%d.ts /metadata/streams/fec8d5e5-e33f-4478-9da2-c5671457aa85/final-output.m3u8 2024-12-05 07:16:15.387 INFO 2024-12-05 07:16:15.419 INFO [concat @ 0x7f6b8c2f6600] Impossible to open '/Maria Valtorta/Author 1/Le Livre D'Azarias/001 Introduction.mp3' 2024-12-05 07:16:15.419 INFO [in#0 @ 0x7f6b8c8878c0] Error opening input: No such file or directory 2024-12-05 07:16:15.419 INFO Error opening input file /metadata/streams/fec8d5e5-e33f-4478-9da2-c5671457aa85/files.txt. 2024-12-05 07:16:15.419 INFO Error opening input files: No such file or directory 2024-12-05 07:16:15.422 INFO 2024-12-05 07:16:15.423 ERROR Ffmpeg Err "ffmpeg exited with code 254: Error opening input file /metadata/streams/fec8d5e5-e33f-4478-9da2-c5671457aa85/files.txt. Error opening input files: No such file or directory " 2024-12-05 07:16:15.423 INFO Closing Stream fec8d5e5-e33f-4478-9da2-c5671457aa85 2024-12-05 07:16:15.423 INFO Deleted session data /metadata/streams/fec8d5e5-e33f-4478-9da2-c5671457aa85 2024-12-05 07:16:15.480 ERROR [HlsRouter] Stream "fec8d5e5-e33f-4478-9da2-c5671457aa85" does not exist ``` ### Additional Notes The error message observed when trying to play an audiobook is: Stream Failed: undefined. The "Disk Usage" in the PikaPods dashboard shows only 556 KB instead of the correct size of the uploaded files, which might be related to the streaming issue. Access to the instance for debugging: URL: https://audiobook.studycompanion.fr/ User: admin Password: TaQ6JFyp$Mx&TyFA&*7%
adam added the bug label 2026-04-25 00:06:43 +02:00
adam closed this issue 2026-04-25 00:06:43 +02:00
Author
Owner

@mpenchenat93 commented on GitHub (Dec 5, 2024):

I made a mistake,
the issue was on my end.

Everything is working as it should.

@mpenchenat93 commented on GitHub (Dec 5, 2024): I made a mistake, the issue was on my end. Everything is working as it should.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/audiobookshelf#2393