[Bug]: Some books fail to stream through Chromecast (path error in logs) #268

Closed
opened 2026-04-24 23:02:46 +02:00 by adam · 1 comment
Owner

Originally created by @sydlexius on GitHub (Apr 15, 2022).

Describe the issue

When attempting to stream an audiobook via Chromecast, it will never start. When I check the log output using "docker logs audiobookshelf -f", I can see that it produces a "file/directory not found" error, as seen here:

[2022-04-15T18:22:20.610Z] INFO: [Server] Socket XDE1SsQytvT6x4GFAAAD disconnected from client "root" after 1024369ms [2022-04-15T18:22:21.092Z] INFO: [SOCKET] Socket Connected X0lfNFI8V-iGLvxAAAAF Error: ENOENT: no such file or directory, stat '/audiobooks/Childrens/Childrens/C.S. Lewis/The Lion, the Witch and the Wardrobe/The Lion, the Witch and the Wardrobe.m4b' Error: ENOENT: no such file or directory, stat '/audiobooks/Childrens/Childrens/C.S. Lewis/The Lion, the Witch and the Wardrobe/The Lion, the Witch and the Wardrobe.m4b' [2022-04-15T18:35:10.053Z] INFO: [StreamManager] User "root" open stream request for "The Lion, the Witch and the Wardrobe" [2022-04-15T18:35:10.056Z] INFO: [STREAM] User has progress for audiobook 0.043442512062286415 Time Remaining: 15087.111667s [2022-04-15T18:35:10.072Z] INFO: [STREAM] START STREAM - Num Segments: 2629 [2022-04-15T18:35:10.074Z] INFO: Stream Opened for client root for audiobook The Lion, the Witch and the Wardrobe with streamId str_o4tmjghle4hedbp2hp [2022-04-15T18:35:10.078Z] INFO: [STREAM] Starting Stream at startTime 10:55.0 (User startTime 11:25.0) and Segment #109 [2022-04-15T18:35:10.093Z] INFO: [INFO] FFMPEG transcoding started with command: ffmpeg -seek_timestamp 1 -f concat -safe 0 -ss 655.2s -noaccurate_seek -i /metadata/streams/str_o4tmjghle4hedbp2hp/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 109 -hls_playlist_type vod -hls_list_size 0 -hls_allow_cache 0 -hls_segment_filename /metadata/streams/str_o4tmjghle4hedbp2hp/output-%d.ts /metadata/streams/str_o4tmjghle4hedbp2hp/final-output.m3u8 [2022-04-15T18:35:10.094Z] INFO: [2022-04-15T18:35:12.103Z] INFO: [STREAM-CHECK] Check Files 456 of 2629 17.34% Furthest Segment: 564 [2022-04-15T18:35:14.109Z] INFO: [STREAM-CHECK] Check Files 958 of 2629 36.44% Furthest Segment: 1066 [2022-04-15T18:35:16.118Z] INFO: [STREAM-CHECK] Check Files 1454 of 2629 55.31% Furthest Segment: 1562 [2022-04-15T18:35:18.126Z] INFO: [STREAM-CHECK] Check Files 1952 of 2629 74.25% Furthest Segment: 2060 [2022-04-15T18:35:20.128Z] INFO: [STREAM-CHECK] Check Files 2413 of 2629 91.78% Furthest Segment: 2521 [2022-04-15T18:35:20.571Z] INFO: [FFMPEG] Transcoding ended [Error: ENOENT: no such file or directory, access '/config/sessions/data/data.2.json'] { errno: -2, code: 'ENOENT', syscall: 'access', path: '/config/sessions/data/data.2.json' }

The correct root path for the library is /audiobooks/Childrens, however an extraneous ../../Childrens path is being added. There are no issues with normal playback or downloading of this book.

Steps to reproduce the issue

  1. Connect to target Chromecast device
  2. Select problematic book for playback
  3. Press Play

Audiobookshelf version

v1.7.2

How are you running audiobookshelf?

Docker

Originally created by @sydlexius on GitHub (Apr 15, 2022). ### Describe the issue When attempting to stream an audiobook via Chromecast, it will never start. When I check the log output using "docker logs audiobookshelf -f", I can see that it produces a "file/directory not found" error, as seen here: `[2022-04-15T18:22:20.610Z] INFO: [Server] Socket XDE1SsQytvT6x4GFAAAD disconnected from client "root" after 1024369ms [2022-04-15T18:22:21.092Z] INFO: [SOCKET] Socket Connected X0lfNFI8V-iGLvxAAAAF Error: ENOENT: no such file or directory, stat '/audiobooks/Childrens/Childrens/C.S. Lewis/The Lion, the Witch and the Wardrobe/The Lion, the Witch and the Wardrobe.m4b' Error: ENOENT: no such file or directory, stat '/audiobooks/Childrens/Childrens/C.S. Lewis/The Lion, the Witch and the Wardrobe/The Lion, the Witch and the Wardrobe.m4b' [2022-04-15T18:35:10.053Z] INFO: [StreamManager] User "root" open stream request for "The Lion, the Witch and the Wardrobe" [2022-04-15T18:35:10.056Z] INFO: [STREAM] User has progress for audiobook 0.043442512062286415 Time Remaining: 15087.111667s [2022-04-15T18:35:10.072Z] INFO: [STREAM] START STREAM - Num Segments: 2629 [2022-04-15T18:35:10.074Z] INFO: Stream Opened for client root for audiobook The Lion, the Witch and the Wardrobe with streamId str_o4tmjghle4hedbp2hp [2022-04-15T18:35:10.078Z] INFO: [STREAM] Starting Stream at startTime 10:55.0 (User startTime 11:25.0) and Segment #109 [2022-04-15T18:35:10.093Z] INFO: [INFO] FFMPEG transcoding started with command: ffmpeg -seek_timestamp 1 -f concat -safe 0 -ss 655.2s -noaccurate_seek -i /metadata/streams/str_o4tmjghle4hedbp2hp/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 109 -hls_playlist_type vod -hls_list_size 0 -hls_allow_cache 0 -hls_segment_filename /metadata/streams/str_o4tmjghle4hedbp2hp/output-%d.ts /metadata/streams/str_o4tmjghle4hedbp2hp/final-output.m3u8 [2022-04-15T18:35:10.094Z] INFO: [2022-04-15T18:35:12.103Z] INFO: [STREAM-CHECK] Check Files 456 of 2629 17.34% Furthest Segment: 564 [2022-04-15T18:35:14.109Z] INFO: [STREAM-CHECK] Check Files 958 of 2629 36.44% Furthest Segment: 1066 [2022-04-15T18:35:16.118Z] INFO: [STREAM-CHECK] Check Files 1454 of 2629 55.31% Furthest Segment: 1562 [2022-04-15T18:35:18.126Z] INFO: [STREAM-CHECK] Check Files 1952 of 2629 74.25% Furthest Segment: 2060 [2022-04-15T18:35:20.128Z] INFO: [STREAM-CHECK] Check Files 2413 of 2629 91.78% Furthest Segment: 2521 [2022-04-15T18:35:20.571Z] INFO: [FFMPEG] Transcoding ended [Error: ENOENT: no such file or directory, access '/config/sessions/data/data.2.json'] { errno: -2, code: 'ENOENT', syscall: 'access', path: '/config/sessions/data/data.2.json' } ` The correct root path for the library is /audiobooks/Childrens, however an extraneous ../../Childrens path is being added. There are no issues with normal playback or downloading of this book. ### Steps to reproduce the issue 1. Connect to target Chromecast device 2. Select problematic book for playback 3. Press Play ### Audiobookshelf version v1.7.2 ### How are you running audiobookshelf? Docker
adam added the bug label 2026-04-24 23:02:47 +02:00
adam closed this issue 2026-04-24 23:02:48 +02:00
Author
Owner

@sydlexius commented on GitHub (Apr 15, 2022):

So this issue may have arose because I had the path to one library (Childrens) nested in the other library. I fixed this issue, then I backed up my appdata, then cleared the data.*.json files from audiobooks and a couple of other paths. It is now working correctly.

@sydlexius commented on GitHub (Apr 15, 2022): So this issue may have arose because I had the path to one library (Childrens) nested in the other library. I fixed this issue, then I backed up my appdata, then cleared the data.*.json files from audiobooks and a couple of other paths. It is now working correctly.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/audiobookshelf#268