[Bug]: Can't play specific audiobook on ios browser #2347

Open
opened 2026-04-25 00:06:20 +02:00 by adam · 4 comments
Owner

Originally created by @twiclo on GitHub (Nov 9, 2024).

What happened?

I get this error when trying to play one book in the browser

2024-11-09 11:46:01.678

ERROR

Ffmpeg Err "ffmpeg exited with code 1: /var/lib/audiobookshelf/metadata/streams/41034e5f-eeb5-422a-abab-6eea10d64951/files.txt: No such file or directory "

2024-11-09 11:46:01.678

INFO

Closing Stream 41034e5f-eeb5-422a-abab-6eea10d64951

2024-11-09 11:46:01.679

INFO

Deleted session data /var/lib/audiobookshelf/metadata/streams/41034e5f-eeb5-422a-abab-6eea10d64951

2024-11-09 11:46:01.680

DEBUG

[PlaybackSessionManager] Stream closed for session "41034e5f-eeb5-422a-abab-6eea10d64951" (Device: iOS 17.6.1 / Mobile Safari)

2024-11-09 11:46:01.705

ERROR

[HlsRouter] Stream "41034e5f-eeb5-422a-abab-6eea10d64951" does not exist

Here is one of the files that isn't playable

[tanner@sato The Key to the Keystone]$ ffprobe -i Chapter\ 01 
ffprobe version 6.1.2 Copyright (c) 2007-2024 the FFmpeg developers
  built with gcc 14 (GCC)
  configuration: --prefix=/usr --bindir=/usr/bin --datadir=/usr/share/ffmpeg --docdir=/usr/share/doc/ffmpeg --incdir=/usr/include/ffmpeg --libdir=/usr/lib64 --mandir=/usr/share/man --arch=x86_64 --optflags='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer' --extra-ldflags='-Wl,-z,relro -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 ' --extra-cflags=' -I/usr/include/rav1e' --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvo-amrwbenc --enable-version3 --enable-bzlib --enable-chromaprint --disable-crystalhd --enable-fontconfig --enable-frei0r --enable-gcrypt --enable-gnutls --enable-ladspa --enable-lcms2 --enable-libaom --enable-libdav1d --enable-libass --enable-libbluray --enable-libbs2b --enable-libcodec2 --enable-libcdio --enable-libdrm --enable-libjack --enable-libjxl --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libharfbuzz --enable-libilbc --enable-libmp3lame --enable-libmysofa --enable-nvenc --enable-openal --enable-opencl --enable-opengl --enable-libopenh264 --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-libplacebo --enable-librsvg --enable-librav1e --enable-librubberband --enable-libsmbclient --enable-version3 --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libsvtav1 --enable-libtesseract --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libv4l2 --enable-libvidstab --enable-libvmaf --enable-version3 --enable-vapoursynth --enable-libvpx --enable-vulkan --enable-libshaderc --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libxml2 --enable-libzimg --enable-libzmq --enable-libzvbi --enable-lv2 --enable-avfilter --enable-libmodplug --enable-postproc --enable-pthreads --disable-static --enable-shared --enable-gpl --disable-debug --disable-stripping --shlibdir=/usr/lib64 --enable-lto --enable-libvpl --enable-runtime-cpudetect
  libavutil      58. 29.100 / 58. 29.100
  libavcodec     60. 31.102 / 60. 31.102
  libavformat    60. 16.100 / 60. 16.100
  libavdevice    60.  3.100 / 60.  3.100
  libavfilter     9. 12.100 /  9. 12.100
  libswscale      7.  5.100 /  7.  5.100
  libswresample   4. 12.100 /  4. 12.100
  libpostproc    57.  3.100 / 57.  3.100
[mp3 @ 0x563886b8d300] Estimating duration from bitrate, this may be inaccurate
Input #0, mp3, from 'Chapter 01':
  Metadata:
    title           : Key to the Keystone - Chapter 1_Updated
    track           : 5
    encoder         : Studio One 6.6.3.101611
  Duration: 01:05:13.66, start: 0.000000, bitrate: 256 kb/s
  Stream #0:0: Audio: mp3, 48000 Hz, stereo, fltp, 256 kb/s

The whole book plays just fine on android, linux and macos. It just doesn't play on an iphone. Other books play fine on the iphone.

What did you expect to happen?

The file to play

Steps to reproduce the issue

  1. Not sure. I can provide the audio files if that would be helpful.

Audiobookshelf version

2.16.2

How are you running audiobookshelf?

Debian/PPA

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?

Safari on iOS

Logs

2024-11-09 11:46:01.678

ERROR

Ffmpeg Err "ffmpeg exited with code 1: /var/lib/audiobookshelf/metadata/streams/41034e5f-eeb5-422a-abab-6eea10d64951/files.txt: No such file or directory "

2024-11-09 11:46:01.678

INFO

Closing Stream 41034e5f-eeb5-422a-abab-6eea10d64951

2024-11-09 11:46:01.679

INFO

Deleted session data /var/lib/audiobookshelf/metadata/streams/41034e5f-eeb5-422a-abab-6eea10d64951

2024-11-09 11:46:01.680

DEBUG

[PlaybackSessionManager] Stream closed for session "41034e5f-eeb5-422a-abab-6eea10d64951" (Device: iOS 17.6.1 / Mobile Safari)

2024-11-09 11:46:01.705

ERROR

[HlsRouter] Stream "41034e5f-eeb5-422a-abab-6eea10d64951" does not exist

Additional Notes

No response

Originally created by @twiclo on GitHub (Nov 9, 2024). ### What happened? I get this error when trying to play one book in the browser ``` 2024-11-09 11:46:01.678 ERROR Ffmpeg Err "ffmpeg exited with code 1: /var/lib/audiobookshelf/metadata/streams/41034e5f-eeb5-422a-abab-6eea10d64951/files.txt: No such file or directory " 2024-11-09 11:46:01.678 INFO Closing Stream 41034e5f-eeb5-422a-abab-6eea10d64951 2024-11-09 11:46:01.679 INFO Deleted session data /var/lib/audiobookshelf/metadata/streams/41034e5f-eeb5-422a-abab-6eea10d64951 2024-11-09 11:46:01.680 DEBUG [PlaybackSessionManager] Stream closed for session "41034e5f-eeb5-422a-abab-6eea10d64951" (Device: iOS 17.6.1 / Mobile Safari) 2024-11-09 11:46:01.705 ERROR [HlsRouter] Stream "41034e5f-eeb5-422a-abab-6eea10d64951" does not exist ``` Here is one of the files that isn't playable ``` [tanner@sato The Key to the Keystone]$ ffprobe -i Chapter\ 01 ffprobe version 6.1.2 Copyright (c) 2007-2024 the FFmpeg developers built with gcc 14 (GCC) configuration: --prefix=/usr --bindir=/usr/bin --datadir=/usr/share/ffmpeg --docdir=/usr/share/doc/ffmpeg --incdir=/usr/include/ffmpeg --libdir=/usr/lib64 --mandir=/usr/share/man --arch=x86_64 --optflags='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer' --extra-ldflags='-Wl,-z,relro -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 ' --extra-cflags=' -I/usr/include/rav1e' --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvo-amrwbenc --enable-version3 --enable-bzlib --enable-chromaprint --disable-crystalhd --enable-fontconfig --enable-frei0r --enable-gcrypt --enable-gnutls --enable-ladspa --enable-lcms2 --enable-libaom --enable-libdav1d --enable-libass --enable-libbluray --enable-libbs2b --enable-libcodec2 --enable-libcdio --enable-libdrm --enable-libjack --enable-libjxl --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libharfbuzz --enable-libilbc --enable-libmp3lame --enable-libmysofa --enable-nvenc --enable-openal --enable-opencl --enable-opengl --enable-libopenh264 --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-libplacebo --enable-librsvg --enable-librav1e --enable-librubberband --enable-libsmbclient --enable-version3 --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libsvtav1 --enable-libtesseract --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libv4l2 --enable-libvidstab --enable-libvmaf --enable-version3 --enable-vapoursynth --enable-libvpx --enable-vulkan --enable-libshaderc --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libxml2 --enable-libzimg --enable-libzmq --enable-libzvbi --enable-lv2 --enable-avfilter --enable-libmodplug --enable-postproc --enable-pthreads --disable-static --enable-shared --enable-gpl --disable-debug --disable-stripping --shlibdir=/usr/lib64 --enable-lto --enable-libvpl --enable-runtime-cpudetect libavutil 58. 29.100 / 58. 29.100 libavcodec 60. 31.102 / 60. 31.102 libavformat 60. 16.100 / 60. 16.100 libavdevice 60. 3.100 / 60. 3.100 libavfilter 9. 12.100 / 9. 12.100 libswscale 7. 5.100 / 7. 5.100 libswresample 4. 12.100 / 4. 12.100 libpostproc 57. 3.100 / 57. 3.100 [mp3 @ 0x563886b8d300] Estimating duration from bitrate, this may be inaccurate Input #0, mp3, from 'Chapter 01': Metadata: title : Key to the Keystone - Chapter 1_Updated track : 5 encoder : Studio One 6.6.3.101611 Duration: 01:05:13.66, start: 0.000000, bitrate: 256 kb/s Stream #0:0: Audio: mp3, 48000 Hz, stereo, fltp, 256 kb/s ``` The whole book plays just fine on android, linux and macos. It just doesn't play on an iphone. Other books play fine on the iphone. ### What did you expect to happen? The file to play ### Steps to reproduce the issue 1. Not sure. I can provide the audio files if that would be helpful. ### Audiobookshelf version 2.16.2 ### How are you running audiobookshelf? Debian/PPA ### 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? Safari on iOS ### Logs ```shell 2024-11-09 11:46:01.678 ERROR Ffmpeg Err "ffmpeg exited with code 1: /var/lib/audiobookshelf/metadata/streams/41034e5f-eeb5-422a-abab-6eea10d64951/files.txt: No such file or directory " 2024-11-09 11:46:01.678 INFO Closing Stream 41034e5f-eeb5-422a-abab-6eea10d64951 2024-11-09 11:46:01.679 INFO Deleted session data /var/lib/audiobookshelf/metadata/streams/41034e5f-eeb5-422a-abab-6eea10d64951 2024-11-09 11:46:01.680 DEBUG [PlaybackSessionManager] Stream closed for session "41034e5f-eeb5-422a-abab-6eea10d64951" (Device: iOS 17.6.1 / Mobile Safari) 2024-11-09 11:46:01.705 ERROR [HlsRouter] Stream "41034e5f-eeb5-422a-abab-6eea10d64951" does not exist ``` ### Additional Notes _No response_
adam added the bugwaitingunable to reproduce labels 2026-04-25 00:06:20 +02:00
Author
Owner

@Allstreamer commented on GitHub (Dec 8, 2024):

I'm getting a simular issue when trying to play any audiobook in my server:

2024-12-08T20:00:11.270925793Z [2024-12-08 20:00:11.269] INFO: 
2024-12-08T20:00:11.277774022Z [2024-12-08 20:00:11.270] ERROR: Ffmpeg Err "ffmpeg exited with code 254: Error opening input file /metadata/streams/2a8ccf76-dc29-40e9-b57d-cd9fca6fe6d4/files.txt.
2024-12-08T20:00:11.277777182Z [2024-12-08 20:00:11.271] INFO: Closing Stream 2a8ccf76-dc29-40e9-b57d-cd9fca6fe6d4
2024-12-08T20:00:11.277818822Z Error opening input files: No such file or directory
2024-12-08T20:00:11.277826302Z "
2024-12-08T20:00:11.278935467Z [2024-12-08 20:00:11.274] INFO: Deleted session data /metadata/streams/2a8ccf76-dc29-40e9-b57d-cd9fca6fe6d4
2024-12-08T20:00:11.284521531Z [2024-12-08 20:00:11.284] ERROR: [HlsRouter] Stream "2a8ccf76-dc29-40e9-b57d-cd9fca6fe6d4" does not exist
@Allstreamer commented on GitHub (Dec 8, 2024): I'm getting a simular issue when trying to play any audiobook in my server: ``` 2024-12-08T20:00:11.270925793Z [2024-12-08 20:00:11.269] INFO: 2024-12-08T20:00:11.277774022Z [2024-12-08 20:00:11.270] ERROR: Ffmpeg Err "ffmpeg exited with code 254: Error opening input file /metadata/streams/2a8ccf76-dc29-40e9-b57d-cd9fca6fe6d4/files.txt. 2024-12-08T20:00:11.277777182Z [2024-12-08 20:00:11.271] INFO: Closing Stream 2a8ccf76-dc29-40e9-b57d-cd9fca6fe6d4 2024-12-08T20:00:11.277818822Z Error opening input files: No such file or directory 2024-12-08T20:00:11.277826302Z " 2024-12-08T20:00:11.278935467Z [2024-12-08 20:00:11.274] INFO: Deleted session data /metadata/streams/2a8ccf76-dc29-40e9-b57d-cd9fca6fe6d4 2024-12-08T20:00:11.284521531Z [2024-12-08 20:00:11.284] ERROR: [HlsRouter] Stream "2a8ccf76-dc29-40e9-b57d-cd9fca6fe6d4" does not exist ```
Author
Owner

@advplyr commented on GitHub (Jul 22, 2025):

Did you ever figure out why that audio file didn't play?

@advplyr commented on GitHub (Jul 22, 2025): Did you ever figure out why that audio file didn't play?
Author
Owner

@Allstreamer commented on GitHub (Jul 22, 2025):

I did fix it and my instance is working properly now, however it's been 8 months and sadly I do not remember the steps to solve this, sorry.

@Allstreamer commented on GitHub (Jul 22, 2025): I did fix it and my instance is working properly now, however it's been 8 months and sadly I do not remember the steps to solve this, sorry.
Author
Owner

@StarkZarn commented on GitHub (Aug 28, 2025):

I seem to be running into this same issue, even on the most recent version. There's something about transcoding that's breaking it, I think.

@StarkZarn commented on GitHub (Aug 28, 2025): I seem to be running into this same issue, even on the most recent version. There's something about transcoding that's breaking it, I think.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/audiobookshelf#2347