[Bug]: Error: EINVAL: invalid argument, open #3050

Open
opened 2026-02-20 03:04:43 -05:00 by deekerman · 9 comments
Owner

Originally created by @timkeefer1 on GitHub (Jul 3, 2025).

What happened?

I think my ABS instance is getting... confused with file names or locations? Audiobooks will play fine for a while and then I get this :

Error: EINVAL: invalid argument, open '/data/media/audiobooks/Author Name/Book Name/Author Name - Book Name.m4b'
This happens regardless if I'm using Shelfplayer, Plappa, or the ABS Web UI.
When I "docker exec -it audiobookshelf sh" I can ls the folder and clearly see the file there.
And I can even restart the container and/or the stack, and the error still reoccurs.
When I completely restart the docker host, I'm able to start playing the audiobook again.

Any thoughts/help?

What did you expect to happen?

I'm normally using Shelfplayer, so maybe something is getting hung up in some kind of progress tracking?

Steps to reproduce the issue

  1. Play audiobook
  2. Stop audiobook
  3. Try and restart playing

Audiobookshelf version

v2.25.1

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?

Firefox

Logs

Error: EINVAL: invalid argument, open '/data/media/audiobooks/Author Name/Book Name/Author Name - Book Name.m4b

Additional Notes

No response

Originally created by @timkeefer1 on GitHub (Jul 3, 2025). ### What happened? I think my ABS instance is getting... confused with file names or locations? Audiobooks will play fine for a while and then I get this : `Error: EINVAL: invalid argument, open '/data/media/audiobooks/Author Name/Book Name/Author Name - Book Name.m4b' ` This happens regardless if I'm using Shelfplayer, Plappa, or the ABS Web UI. When I "docker exec -it audiobookshelf sh" I can ls the folder and clearly see the file there. And I can even restart the container and/or the stack, and the error still reoccurs. When I completely restart the docker host, I'm able to start playing the audiobook again. Any thoughts/help? ### What did you expect to happen? I'm normally using Shelfplayer, so maybe something is getting hung up in some kind of progress tracking? ### Steps to reproduce the issue 1. Play audiobook 2. Stop audiobook 3. Try and restart playing ### Audiobookshelf version v2.25.1 ### 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? Firefox ### Logs ```shell Error: EINVAL: invalid argument, open '/data/media/audiobooks/Author Name/Book Name/Author Name - Book Name.m4b ``` ### Additional Notes _No response_
Author
Owner

@nichwall commented on GitHub (Jul 3, 2025):

Does it print out /data/media/audiobooks/Author Name/Book Name/Author Name - Book Name.m4b in the logs, or did you replace the string in this log? If so, what is the actual log line?

@nichwall commented on GitHub (Jul 3, 2025): Does it print out `/data/media/audiobooks/Author Name/Book Name/Author Name - Book Name.m4b` in the logs, or did you replace the string in this log? If so, what is the actual log line?
Author
Owner

@timkeefer1 commented on GitHub (Jul 3, 2025):

Ahh... no I was protecting the innocent ;) Here's my actual log line:

Error: EINVAL: invalid argument, open '/data/media/audiobooks/Matt Dinniman/Dungeon Crawler Carl/Matt Dinniman - Dungeon Crawler Carl.m4b'

Having a great time listening to the book, btw :)

@timkeefer1 commented on GitHub (Jul 3, 2025): Ahh... no I was protecting the innocent ;) Here's my actual log line: `Error: EINVAL: invalid argument, open '/data/media/audiobooks/Matt Dinniman/Dungeon Crawler Carl/Matt Dinniman - Dungeon Crawler Carl.m4b'` Having a great time listening to the book, btw :)
Author
Owner

@nichwall commented on GitHub (Jul 3, 2025):

Thanks for clarifying. Sometimes the issue is related to non-ascii characters causing an issue and wanted to sanity check.

  • Does it happen with other books, or only this one book?
  • How often and when does this error occur? Like is it right after starting playback, after listening for a while, resuming playback, etc.
@nichwall commented on GitHub (Jul 3, 2025): Thanks for clarifying. Sometimes the issue is related to non-ascii characters causing an issue and wanted to sanity check. - Does it happen with other books, or only this one book? - How often and when does this error occur? Like is it right after starting playback, after listening for a while, resuming playback, etc.
Author
Owner

@timkeefer1 commented on GitHub (Jul 3, 2025):

Happens with other books too. I also validated with The Trading Game by Gary Stevenson. (These are the only two I'm listening to right now.)
It only happens when I stop listening for a while, and them attempt to restart. It just happened right now as I'm listening to that book and paused it to reply and tried to resume.
Error: EINVAL: invalid argument, open '/data/media/audiobooks/Matt Dinniman/Dungeon Crawler Carl/Matt Dinniman - Dungeon Crawler Carl.m4b'
I primarily use Shelfplayer... maybe it's disconnecting in a way that's causing things to get confused? Or when trying to do a "resume" posting a weird response to ABS?
I didn't even hard quit the app - I just hit pause, then tried to come back to the book and unpause it. Incidentally I was using the start/stop controls on my airpod, but as mentioned before, once it gets in this state, even when using the web player the container posts this error to the docker log.
It seems to be OK when I'm listening to podcasts, just audiobooks - not sure if that helps? It can even "break" when playing an audio book, and I can start playing a podcast just fine. (Just did it right now.)

Is there a verbose logging mode I can turn on temporarily to help give more data? BTW thanks for your help so far :)

@timkeefer1 commented on GitHub (Jul 3, 2025): Happens with other books too. I also validated with The Trading Game by Gary Stevenson. (These are the only two I'm listening to right now.) It only happens when I stop listening for a while, and them attempt to restart. It just happened right now as I'm listening to that book and paused it to reply and tried to resume. `Error: EINVAL: invalid argument, open '/data/media/audiobooks/Matt Dinniman/Dungeon Crawler Carl/Matt Dinniman - Dungeon Crawler Carl.m4b' ` I primarily use Shelfplayer... maybe it's disconnecting in a way that's causing things to get confused? Or when trying to do a "resume" posting a weird response to ABS? I didn't even hard quit the app - I just hit pause, then tried to come back to the book and unpause it. Incidentally I was using the start/stop controls on my airpod, but as mentioned before, once it gets in this state, even when using the web player the container posts this error to the docker log. It seems to be OK when I'm listening to podcasts, just audiobooks - not sure if that helps? It can even "break" when playing an audio book, and I can start playing a podcast just fine. (Just did it right now.) Is there a verbose logging mode I can turn on temporarily to help give more data? BTW thanks for your help so far :)
Author
Owner

@nichwall commented on GitHub (Jul 4, 2025):

It only happens when I stop listening for a while, and them attempt to restart. It just happened right now as I'm listening to that book and paused it to reply and tried to resume.

That is good to know. Is the media streaming directly or being transcoded? You should be able to look at the logs for this, or at the top of the player for the words "Direct" or "Streaming", but I'm not sure if the 3rd party apps show this information.

Is there a verbose logging mode I can turn on temporarily to help give more data? BTW thanks for your help so far :)

Yes, you can enable Debug logs in the server settings.

@nichwall commented on GitHub (Jul 4, 2025): > It only happens when I stop listening for a while, and them attempt to restart. It just happened right now as I'm listening to that book and paused it to reply and tried to resume. That is good to know. Is the media streaming directly or being transcoded? You should be able to look at the logs for this, or at the top of the player for the words "Direct" or "Streaming", but I'm not sure if the 3rd party apps show this information. > Is there a verbose logging mode I can turn on temporarily to help give more data? BTW thanks for your help so far :) Yes, you can enable Debug logs in the server settings.
Author
Owner

@timkeefer1 commented on GitHub (Jul 4, 2025):

OK when using ShelfPlayer it's using direct play... when using ABS via the web, it's transcoding. I also enabled verbose mode and here's the log... note that I'm using the web UI here to play, rather than shelfplayer to eliminate potential 3rd party app from the equation...

[2025-07-04 13:58:54.151] DEBUG: Set Log Level to DEBUG
[2025-07-04 13:58:54.180] DEBUG: [ApiCacheManager] Array.afterUpsert: Clearing cache
[2025-07-04 13:59:01.950] DEBUG: [ApiCacheManager] count: 0 size: 0
[2025-07-04 13:59:01.958] DEBUG: [ApiCacheManager] Cache miss: {"user":"root","url":"/libraries/904659dc-7231-47e2-9c7a-a51911839fdd?include=filterdata"}
[2025-07-04 13:59:02.033] DEBUG: [ApiCacheManager] count: 1 size: 2283
[2025-07-04 13:59:02.069] DEBUG: Loaded 3 of 3 items for "Continue Listening/Reading" in 0.03s
[2025-07-04 13:59:02.081] DEBUG: Loaded 0 of 0 items for "Continue Series" in 0.01s
[2025-07-04 13:59:02.101] DEBUG: Loaded 2 of 2 items for "Recently Added" in 0.02s
[2025-07-04 13:59:02.108] DEBUG: Loaded 0 of 0 series for "Recent Series" in 0.01s
[2025-07-04 13:59:02.150] DEBUG: Loaded 10 of 15 items for "Discover" in 0.04s
[2025-07-04 13:59:02.162] DEBUG: Loaded 0 of 0 items for "Listen/Read Again" in 0.01s
[2025-07-04 13:59:02.169] DEBUG: Loaded 1 of 1 authors for "Newest Authors" in 0.01s
[2025-07-04 13:59:02.170] DEBUG: Loaded 4 personalized shelves in 0.13s
[2025-07-04 13:59:02.170] DEBUG: [ApiCacheManager] Cache miss: {"user":"root","url":"/libraries/904659dc-7231-47e2-9c7a-a51911839fdd/personalized?include=rssfeed,numEpisodesIncomplete,share"}
[2025-07-04 13:59:02.171] DEBUG: [ApiCacheManager] Caching with 1800000 ms TTL
[2025-07-04 13:59:04.032] DEBUG: [PlaybackSessionManager] startSessionRequest for device Windows 10 / Firefox
[2025-07-04 13:59:04.034] DEBUG: [PlaybackSessionManager] "root" starting direct play session for item "e6be9a89-cbc2-47a5-b574-5aece8bcb775" with id 3970b773-02d6-4e5b-a0db-8c3121a6882e (Device: Windows 10 / Firefox)
[2025-07-04 13:59:04.058] DEBUG: [SessionController] Serving audio track 1 for session "3970b773-02d6-4e5b-a0db-8c3121a6882e" belonging to user "root"
Error: EINVAL: invalid argument, open '/data/media/audiobooks/Matt Dinniman/Dungeon Crawler Carl/Matt Dinniman - Dungeon Crawler Carl.m4b'
[2025-07-04 13:59:04.090] DEBUG: [PlaybackSessionManager] startSessionRequest for device Windows 10 / Firefox
[2025-07-04 13:59:04.091] INFO: [PlaybackSessionManager] startSession: Closing open session "Dungeon Crawler Carl: A LitRPG/Gamelit Adventure" for user "root" (Device: Windows 10 / Firefox)
[2025-07-04 13:59:04.091] DEBUG: [PlaybackSessionManager] closeSession "3970b773-02d6-4e5b-a0db-8c3121a6882e"
[2025-07-04 13:59:04.097] DEBUG: [PlaybackSessionManager] Removed session "3970b773-02d6-4e5b-a0db-8c3121a6882e"
[2025-07-04 13:59:04.098] DEBUG: [PlaybackSessionManager] "root" starting stream session for item "e6be9a89-cbc2-47a5-b574-5aece8bcb775" (Device: Windows 10 / Firefox)
[2025-07-04 13:59:04.125] INFO: [STREAM] START STREAM - Num Segments: 8116
[2025-07-04 13:59:04.136] INFO: [STREAM] Starting Stream at startTime 7:46:25 (User startTime 7:46:55) and Segment #4664
[2025-07-04 13:59:04.151] INFO: [INFO] FFMPEG transcoding started with command: ffmpeg -seek_timestamp 1 -f concat -safe 0 -ss 27985.5s -noaccurate_seek -i /metadata/streams/2cce4f5b-9e03-4ca6-aba6-12277fe8b3a4/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 4664 -hls_playlist_type vod -hls_list_size 0 -hls_allow_cache 0 -hls_segment_filename /metadata/streams/2cce4f5b-9e03-4ca6-aba6-12277fe8b3a4/output-%d.ts /metadata/streams/2cce4f5b-9e03-4ca6-aba6-12277fe8b3a4/final-output.m3u8
[2025-07-04 13:59:04.152] INFO: 
[2025-07-04 13:59:04.375] INFO: [concat @ 0x7f36e355f940] Impossible to open '/data/media/audiobooks/Matt Dinniman/Dungeon Crawler Carl/Matt Dinniman - Dungeon Crawler Carl.m4b'
[2025-07-04 13:59:04.376] INFO: [in#0 @ 0x7f36e4689980] Error opening input: Invalid argument
[2025-07-04 13:59:04.376] INFO: Error opening input file /metadata/streams/2cce4f5b-9e03-4ca6-aba6-12277fe8b3a4/files.txt.
[2025-07-04 13:59:04.376] INFO: Error opening input files: Invalid argument
[2025-07-04 13:59:04.397] INFO: 
[2025-07-04 13:59:04.399] ERROR: Ffmpeg Err "ffmpeg exited with code 234: Error opening input file /metadata/streams/2cce4f5b-9e03-4ca6-aba6-12277fe8b3a4/files.txt.
Error opening input files: Invalid argument
"
[2025-07-04 13:59:04.400] INFO: Closing Stream 2cce4f5b-9e03-4ca6-aba6-12277fe8b3a4
[2025-07-04 13:59:04.405] INFO: Deleted session data /metadata/streams/2cce4f5b-9e03-4ca6-aba6-12277fe8b3a4
[2025-07-04 13:59:04.406] DEBUG: [PlaybackSessionManager] Stream closed for session "2cce4f5b-9e03-4ca6-aba6-12277fe8b3a4" (Device: Windows 10 / Firefox)
[2025-07-04 13:59:04.692] ERROR: [HlsRouter] Stream "2cce4f5b-9e03-4ca6-aba6-12277fe8b3a4" does not exist
[2025-07-04 13:59:05.910] ERROR: [HlsRouter] Stream "2cce4f5b-9e03-4ca6-aba6-12277fe8b3a4" does not exist
[2025-07-04 13:59:07.929] ERROR: [HlsRouter] Stream "2cce4f5b-9e03-4ca6-aba6-12277fe8b3a4" does not exist
[2025-07-04 13:59:12.495] ERROR: [HlsRouter] Stream "2cce4f5b-9e03-4ca6-aba6-12277fe8b3a4" does not exist
[2025-07-04 13:59:19.633] DEBUG: [SocketAuthority] User Offline root
[2025-07-04 13:59:19.635] INFO: [SocketAuthority] Socket RR0qLv8upX0IwcJSAAAH disconnected from client "root" after 123386ms (Reason: transport close)

When I try the same process, but using SheflPlayer - here's the full log (this includes app launch to hitting "resume"):

[2025-07-04 14:04:53.727] DEBUG: [ApiCacheManager] count: 0 size: 0
[2025-07-04 14:04:53.731] DEBUG: [ApiCacheManager] Cache miss: {"user":"root","url":"/libraries"}
[2025-07-04 14:04:53.883] DEBUG: [ApiCacheManager] Object.afterBulkUpdate: Clearing cache
[2025-07-04 14:04:53.893] ERROR: [PlaybackSessionManager] syncLocalSession: Media item not found for session "Prof G Markets" (F8549D6A-BA79-4CC0-8A6B-E6EEB76C774F)
[2025-07-04 14:04:53.929] DEBUG: [ApiCacheManager] count: 0 size: 0
[2025-07-04 14:04:54.009] DEBUG: Loaded 3 of 3 items for "Continue Listening/Reading" in 0.07s
[2025-07-04 14:04:54.030] DEBUG: Loaded 0 of 0 items for "Continue Series" in 0.02s
[2025-07-04 14:04:54.080] ERROR: [PlaybackSessionManager] syncLocalSession: Media item not found for session "Prof G Markets" (9BE880C3-C09D-482C-9C4A-BF79F783319B)
[2025-07-04 14:04:54.084] DEBUG: Loaded 2 of 2 items for "Recently Added" in 0.05s
[2025-07-04 14:04:54.094] DEBUG: Loaded 0 of 0 series for "Recent Series" in 0.01s
[2025-07-04 14:04:54.137] DEBUG: Loaded 10 of 15 items for "Discover" in 0.04s
[2025-07-04 14:04:54.148] DEBUG: Loaded 0 of 0 items for "Listen/Read Again" in 0.01s
[2025-07-04 14:04:54.158] DEBUG: Loaded 1 of 1 authors for "Newest Authors" in 0.01s
[2025-07-04 14:04:54.158] DEBUG: Loaded 4 personalized shelves in 0.22s
[2025-07-04 14:04:54.159] DEBUG: [ApiCacheManager] Cache miss: {"user":"root","url":"/libraries/904659dc-7231-47e2-9c7a-a51911839fdd/personalized"}
[2025-07-04 14:04:54.159] DEBUG: [ApiCacheManager] Caching with 1800000 ms TTL
[2025-07-04 14:04:54.240] ERROR: [PlaybackSessionManager] syncLocalSession: Media item not found for session "Prof G Markets" (394CCB21-D49E-4B56-BFB8-5433BBB4771D)
[2025-07-04 14:04:54.322] ERROR: [PlaybackSessionManager] syncLocalSession: Media item not found for session "Bogleheads On Investing Podcast" (6C897805-B298-4C99-8C07-AD90289F8074)
[2025-07-04 14:04:54.355] DEBUG: [ApiCacheManager] count: 1 size: 24852
[2025-07-04 14:04:54.358] DEBUG: [ApiCacheManager] Cache miss: {"user":"root","url":"/libraries"}
[2025-07-04 14:04:54.367] DEBUG: [ApiCacheManager] count: 2 size: 26435
[2025-07-04 14:04:54.372] DEBUG: [LibraryItemsPodcastFilters] countCacheKey: {"where":{},"replacements":{"userId":"7890232b-ff7f-490c-924d-3318da1dc1a0"},"distinct":true,"attributes":{"include":{}},"include":{"0":{"model":"libraryItem","required":true,"where":{"libraryId":"267e8860-2329-490b-a41a-e821324a8160"},"include":{}}},"order":{},"subQuery":false}
[2025-07-04 14:04:54.382] DEBUG: Loaded 13 of 13 items for libary page in 0.01s
[2025-07-04 14:04:54.383] DEBUG: [ApiCacheManager] Cache miss: {"user":"root","url":"/libraries/267e8860-2329-490b-a41a-e821324a8160/items?limit=0&include=numEpisodesIncomplete"}
[2025-07-04 14:04:54.395] DEBUG: [ApiCacheManager] count: 3 size: 50985
[2025-07-04 14:04:54.398] DEBUG: [LibraryItemsBookFilters] countCacheKey: {"where":{"0":{}},"distinct":true,"attributes":null,"replacements":{},"include":{"0":{"model":"libraryItem","required":true,"where":{"libraryId":"904659dc-7231-47e2-9c7a-a51911839fdd"},"include":{}},"1":{"model":"bookSeries","attributes":{"0":"id","1":"seriesId","2":"sequence","3":"createdAt"},"include":{"model":"series","attributes":{"0":"id","1":"name","2":"nameIgnorePrefix"}},"order":{"0":{"0":"createdAt","1":"ASC"}},"separate":true},"2":{"model":"bookAuthor","attributes":{"0":"authorId","1":"createdAt"},"include":{"model":"author","attributes":{"0":"id","1":"name"}},"order":{"0":{"0":"createdAt","1":"ASC"}},"separate":true}},"order":{"0":{"0":{"val":"libraryItem.createdAt"},"1":"DESC"}},"subQuery":false}
[2025-07-04 14:04:54.431] DEBUG: Loaded 18 of 18 items for libary page in 0.03s
[2025-07-04 14:04:54.433] DEBUG: [ApiCacheManager] Cache miss: {"user":"root","url":"/libraries/904659dc-7231-47e2-9c7a-a51911839fdd/items?sort=addedAt&desc=1&limit=0"}
[2025-07-04 14:04:54.449] DEBUG: [ApiCacheManager] count: 4 size: 82465
[2025-07-04 14:04:54.449] DEBUG: [ApiCacheManager] Cache hit: {"user":"root","url":"/libraries"}
[2025-07-04 14:04:54.457] DEBUG: [ApiCacheManager] count: 4 size: 82465
[2025-07-04 14:04:54.476] DEBUG: Loaded 6 of 7 items for "Continue Listening/Reading" in 0.02s
[2025-07-04 14:04:54.509] DEBUG: Loaded 10 of 400 episodes for "Newest Episodes" in 0.03s
[2025-07-04 14:04:54.519] DEBUG: Loaded 2 of 2 items for "Recently Added" in 0.01s
[2025-07-04 14:04:54.532] DEBUG: Loaded 4 of 4 items for "Listen/Read Again" in 0.01s
[2025-07-04 14:04:54.532] DEBUG: Loaded 4 personalized shelves in 0.07s
[2025-07-04 14:04:54.533] DEBUG: [ApiCacheManager] Cache miss: {"user":"root","url":"/libraries/267e8860-2329-490b-a41a-e821324a8160/personalized"}
[2025-07-04 14:04:54.533] DEBUG: [ApiCacheManager] Caching with 1800000 ms TTL
[2025-07-04 14:04:54.550] DEBUG: [ApiCacheManager] count: 5 size: 209157
[2025-07-04 14:04:54.550] DEBUG: [ApiCacheManager] Cache hit: {"user":"root","url":"/libraries/904659dc-7231-47e2-9c7a-a51911839fdd/personalized"}
[2025-07-04 14:05:13.295] DEBUG: [ApiCacheManager] count: 5 size: 209157
[2025-07-04 14:05:13.298] DEBUG: [ApiCacheManager] count: 5 size: 209157
[2025-07-04 14:05:13.366] DEBUG: Loaded 4 of 4 items for libary page in 0.05s
[2025-07-04 14:05:13.367] DEBUG: [ApiCacheManager] Cache miss: {"user":"root","url":"/libraries/904659dc-7231-47e2-9c7a-a51911839fdd/items?filter=narrators.SmVmZiBIYXlz&limit=100&page=0"}
[2025-07-04 14:05:13.378] DEBUG: [ApiCacheManager] Cache miss: {"user":"root","url":"/libraries/904659dc-7231-47e2-9c7a-a51911839fdd/search?q=Matt%20Dinniman&limit=1"}
[2025-07-04 14:05:14.238] DEBUG: [ApiCacheManager] Object.afterBulkUpdate: Clearing cache
[2025-07-04 14:05:14.238] DEBUG: [PlaybackSessionManager] startSessionRequest for device iOS null / null
[2025-07-04 14:05:14.239] INFO: [PlaybackSessionManager] startSession: Closing open session "Dungeon Crawler Carl: A LitRPG/Gamelit Adventure" for user "root" (Device: iOS null / null)
[2025-07-04 14:05:14.262] DEBUG: [ApiCacheManager] Object.afterBulkUpdate: Clearing cache
[2025-07-04 14:05:14.263] DEBUG: [PlaybackSessionManager] closeSession "3c0e95c8-5c2a-456a-b98f-a08ad6a5c214"
[2025-07-04 14:05:14.265] DEBUG: [PlaybackSessionManager] Removed session "3c0e95c8-5c2a-456a-b98f-a08ad6a5c214"
[2025-07-04 14:05:14.265] DEBUG: [PlaybackSessionManager] "root" starting direct play session for item "e6be9a89-cbc2-47a5-b574-5aece8bcb775" with id 73a44e74-e005-470c-8c8a-948e2e183ef9 (Device: iOS null / null)
[2025-07-04 14:05:14.404] DEBUG: [PlaybackSessionManager] syncSession "73a44e74-e005-470c-8c8a-948e2e183ef9" (Device: iOS null / null) | Total Time Listened: 0.00003993511199951172
[2025-07-04 14:05:14.409] DEBUG: [PlaybackSessionManager] syncSession "73a44e74-e005-470c-8c8a-948e2e183ef9" (Device: iOS null / null) | Total Time Listened: 0.00004601478576660156
[2025-07-04 14:05:14.413] DEBUG: [PlaybackSessionManager] syncSession "73a44e74-e005-470c-8c8a-948e2e183ef9" (Device: iOS null / null) | Total Time Listened: 0.015591979026794434
Error: EINVAL: invalid argument, open '/data/media/audiobooks/Matt Dinniman/Dungeon Crawler Carl/Matt Dinniman - Dungeon Crawler Carl.m4b'
[2025-07-04 14:05:14.481] DEBUG: [ApiCacheManager] Array.afterUpsert: Clearing cache
[2025-07-04 14:05:14.515] DEBUG: [ApiCacheManager] Object.afterBulkUpdate: Clearing cache
[2025-07-04 14:05:14.534] DEBUG: [ApiCacheManager] Object.afterBulkUpdate: Clearing cache

edit: fixed code snippets

@timkeefer1 commented on GitHub (Jul 4, 2025): OK when using ShelfPlayer it's using direct play... when using ABS via the web, it's transcoding. I also enabled verbose mode and here's the log... note that I'm using the web UI here to play, rather than shelfplayer to eliminate potential 3rd party app from the equation... ``` [2025-07-04 13:58:54.151] DEBUG: Set Log Level to DEBUG [2025-07-04 13:58:54.180] DEBUG: [ApiCacheManager] Array.afterUpsert: Clearing cache [2025-07-04 13:59:01.950] DEBUG: [ApiCacheManager] count: 0 size: 0 [2025-07-04 13:59:01.958] DEBUG: [ApiCacheManager] Cache miss: {"user":"root","url":"/libraries/904659dc-7231-47e2-9c7a-a51911839fdd?include=filterdata"} [2025-07-04 13:59:02.033] DEBUG: [ApiCacheManager] count: 1 size: 2283 [2025-07-04 13:59:02.069] DEBUG: Loaded 3 of 3 items for "Continue Listening/Reading" in 0.03s [2025-07-04 13:59:02.081] DEBUG: Loaded 0 of 0 items for "Continue Series" in 0.01s [2025-07-04 13:59:02.101] DEBUG: Loaded 2 of 2 items for "Recently Added" in 0.02s [2025-07-04 13:59:02.108] DEBUG: Loaded 0 of 0 series for "Recent Series" in 0.01s [2025-07-04 13:59:02.150] DEBUG: Loaded 10 of 15 items for "Discover" in 0.04s [2025-07-04 13:59:02.162] DEBUG: Loaded 0 of 0 items for "Listen/Read Again" in 0.01s [2025-07-04 13:59:02.169] DEBUG: Loaded 1 of 1 authors for "Newest Authors" in 0.01s [2025-07-04 13:59:02.170] DEBUG: Loaded 4 personalized shelves in 0.13s [2025-07-04 13:59:02.170] DEBUG: [ApiCacheManager] Cache miss: {"user":"root","url":"/libraries/904659dc-7231-47e2-9c7a-a51911839fdd/personalized?include=rssfeed,numEpisodesIncomplete,share"} [2025-07-04 13:59:02.171] DEBUG: [ApiCacheManager] Caching with 1800000 ms TTL [2025-07-04 13:59:04.032] DEBUG: [PlaybackSessionManager] startSessionRequest for device Windows 10 / Firefox [2025-07-04 13:59:04.034] DEBUG: [PlaybackSessionManager] "root" starting direct play session for item "e6be9a89-cbc2-47a5-b574-5aece8bcb775" with id 3970b773-02d6-4e5b-a0db-8c3121a6882e (Device: Windows 10 / Firefox) [2025-07-04 13:59:04.058] DEBUG: [SessionController] Serving audio track 1 for session "3970b773-02d6-4e5b-a0db-8c3121a6882e" belonging to user "root" Error: EINVAL: invalid argument, open '/data/media/audiobooks/Matt Dinniman/Dungeon Crawler Carl/Matt Dinniman - Dungeon Crawler Carl.m4b' [2025-07-04 13:59:04.090] DEBUG: [PlaybackSessionManager] startSessionRequest for device Windows 10 / Firefox [2025-07-04 13:59:04.091] INFO: [PlaybackSessionManager] startSession: Closing open session "Dungeon Crawler Carl: A LitRPG/Gamelit Adventure" for user "root" (Device: Windows 10 / Firefox) [2025-07-04 13:59:04.091] DEBUG: [PlaybackSessionManager] closeSession "3970b773-02d6-4e5b-a0db-8c3121a6882e" [2025-07-04 13:59:04.097] DEBUG: [PlaybackSessionManager] Removed session "3970b773-02d6-4e5b-a0db-8c3121a6882e" [2025-07-04 13:59:04.098] DEBUG: [PlaybackSessionManager] "root" starting stream session for item "e6be9a89-cbc2-47a5-b574-5aece8bcb775" (Device: Windows 10 / Firefox) [2025-07-04 13:59:04.125] INFO: [STREAM] START STREAM - Num Segments: 8116 [2025-07-04 13:59:04.136] INFO: [STREAM] Starting Stream at startTime 7:46:25 (User startTime 7:46:55) and Segment #4664 [2025-07-04 13:59:04.151] INFO: [INFO] FFMPEG transcoding started with command: ffmpeg -seek_timestamp 1 -f concat -safe 0 -ss 27985.5s -noaccurate_seek -i /metadata/streams/2cce4f5b-9e03-4ca6-aba6-12277fe8b3a4/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 4664 -hls_playlist_type vod -hls_list_size 0 -hls_allow_cache 0 -hls_segment_filename /metadata/streams/2cce4f5b-9e03-4ca6-aba6-12277fe8b3a4/output-%d.ts /metadata/streams/2cce4f5b-9e03-4ca6-aba6-12277fe8b3a4/final-output.m3u8 [2025-07-04 13:59:04.152] INFO: [2025-07-04 13:59:04.375] INFO: [concat @ 0x7f36e355f940] Impossible to open '/data/media/audiobooks/Matt Dinniman/Dungeon Crawler Carl/Matt Dinniman - Dungeon Crawler Carl.m4b' [2025-07-04 13:59:04.376] INFO: [in#0 @ 0x7f36e4689980] Error opening input: Invalid argument [2025-07-04 13:59:04.376] INFO: Error opening input file /metadata/streams/2cce4f5b-9e03-4ca6-aba6-12277fe8b3a4/files.txt. [2025-07-04 13:59:04.376] INFO: Error opening input files: Invalid argument [2025-07-04 13:59:04.397] INFO: [2025-07-04 13:59:04.399] ERROR: Ffmpeg Err "ffmpeg exited with code 234: Error opening input file /metadata/streams/2cce4f5b-9e03-4ca6-aba6-12277fe8b3a4/files.txt. Error opening input files: Invalid argument " [2025-07-04 13:59:04.400] INFO: Closing Stream 2cce4f5b-9e03-4ca6-aba6-12277fe8b3a4 [2025-07-04 13:59:04.405] INFO: Deleted session data /metadata/streams/2cce4f5b-9e03-4ca6-aba6-12277fe8b3a4 [2025-07-04 13:59:04.406] DEBUG: [PlaybackSessionManager] Stream closed for session "2cce4f5b-9e03-4ca6-aba6-12277fe8b3a4" (Device: Windows 10 / Firefox) [2025-07-04 13:59:04.692] ERROR: [HlsRouter] Stream "2cce4f5b-9e03-4ca6-aba6-12277fe8b3a4" does not exist [2025-07-04 13:59:05.910] ERROR: [HlsRouter] Stream "2cce4f5b-9e03-4ca6-aba6-12277fe8b3a4" does not exist [2025-07-04 13:59:07.929] ERROR: [HlsRouter] Stream "2cce4f5b-9e03-4ca6-aba6-12277fe8b3a4" does not exist [2025-07-04 13:59:12.495] ERROR: [HlsRouter] Stream "2cce4f5b-9e03-4ca6-aba6-12277fe8b3a4" does not exist [2025-07-04 13:59:19.633] DEBUG: [SocketAuthority] User Offline root [2025-07-04 13:59:19.635] INFO: [SocketAuthority] Socket RR0qLv8upX0IwcJSAAAH disconnected from client "root" after 123386ms (Reason: transport close) ``` When I try the same process, but using SheflPlayer - here's the full log (this includes app launch to hitting "resume"): ``` [2025-07-04 14:04:53.727] DEBUG: [ApiCacheManager] count: 0 size: 0 [2025-07-04 14:04:53.731] DEBUG: [ApiCacheManager] Cache miss: {"user":"root","url":"/libraries"} [2025-07-04 14:04:53.883] DEBUG: [ApiCacheManager] Object.afterBulkUpdate: Clearing cache [2025-07-04 14:04:53.893] ERROR: [PlaybackSessionManager] syncLocalSession: Media item not found for session "Prof G Markets" (F8549D6A-BA79-4CC0-8A6B-E6EEB76C774F) [2025-07-04 14:04:53.929] DEBUG: [ApiCacheManager] count: 0 size: 0 [2025-07-04 14:04:54.009] DEBUG: Loaded 3 of 3 items for "Continue Listening/Reading" in 0.07s [2025-07-04 14:04:54.030] DEBUG: Loaded 0 of 0 items for "Continue Series" in 0.02s [2025-07-04 14:04:54.080] ERROR: [PlaybackSessionManager] syncLocalSession: Media item not found for session "Prof G Markets" (9BE880C3-C09D-482C-9C4A-BF79F783319B) [2025-07-04 14:04:54.084] DEBUG: Loaded 2 of 2 items for "Recently Added" in 0.05s [2025-07-04 14:04:54.094] DEBUG: Loaded 0 of 0 series for "Recent Series" in 0.01s [2025-07-04 14:04:54.137] DEBUG: Loaded 10 of 15 items for "Discover" in 0.04s [2025-07-04 14:04:54.148] DEBUG: Loaded 0 of 0 items for "Listen/Read Again" in 0.01s [2025-07-04 14:04:54.158] DEBUG: Loaded 1 of 1 authors for "Newest Authors" in 0.01s [2025-07-04 14:04:54.158] DEBUG: Loaded 4 personalized shelves in 0.22s [2025-07-04 14:04:54.159] DEBUG: [ApiCacheManager] Cache miss: {"user":"root","url":"/libraries/904659dc-7231-47e2-9c7a-a51911839fdd/personalized"} [2025-07-04 14:04:54.159] DEBUG: [ApiCacheManager] Caching with 1800000 ms TTL [2025-07-04 14:04:54.240] ERROR: [PlaybackSessionManager] syncLocalSession: Media item not found for session "Prof G Markets" (394CCB21-D49E-4B56-BFB8-5433BBB4771D) [2025-07-04 14:04:54.322] ERROR: [PlaybackSessionManager] syncLocalSession: Media item not found for session "Bogleheads On Investing Podcast" (6C897805-B298-4C99-8C07-AD90289F8074) [2025-07-04 14:04:54.355] DEBUG: [ApiCacheManager] count: 1 size: 24852 [2025-07-04 14:04:54.358] DEBUG: [ApiCacheManager] Cache miss: {"user":"root","url":"/libraries"} [2025-07-04 14:04:54.367] DEBUG: [ApiCacheManager] count: 2 size: 26435 [2025-07-04 14:04:54.372] DEBUG: [LibraryItemsPodcastFilters] countCacheKey: {"where":{},"replacements":{"userId":"7890232b-ff7f-490c-924d-3318da1dc1a0"},"distinct":true,"attributes":{"include":{}},"include":{"0":{"model":"libraryItem","required":true,"where":{"libraryId":"267e8860-2329-490b-a41a-e821324a8160"},"include":{}}},"order":{},"subQuery":false} [2025-07-04 14:04:54.382] DEBUG: Loaded 13 of 13 items for libary page in 0.01s [2025-07-04 14:04:54.383] DEBUG: [ApiCacheManager] Cache miss: {"user":"root","url":"/libraries/267e8860-2329-490b-a41a-e821324a8160/items?limit=0&include=numEpisodesIncomplete"} [2025-07-04 14:04:54.395] DEBUG: [ApiCacheManager] count: 3 size: 50985 [2025-07-04 14:04:54.398] DEBUG: [LibraryItemsBookFilters] countCacheKey: {"where":{"0":{}},"distinct":true,"attributes":null,"replacements":{},"include":{"0":{"model":"libraryItem","required":true,"where":{"libraryId":"904659dc-7231-47e2-9c7a-a51911839fdd"},"include":{}},"1":{"model":"bookSeries","attributes":{"0":"id","1":"seriesId","2":"sequence","3":"createdAt"},"include":{"model":"series","attributes":{"0":"id","1":"name","2":"nameIgnorePrefix"}},"order":{"0":{"0":"createdAt","1":"ASC"}},"separate":true},"2":{"model":"bookAuthor","attributes":{"0":"authorId","1":"createdAt"},"include":{"model":"author","attributes":{"0":"id","1":"name"}},"order":{"0":{"0":"createdAt","1":"ASC"}},"separate":true}},"order":{"0":{"0":{"val":"libraryItem.createdAt"},"1":"DESC"}},"subQuery":false} [2025-07-04 14:04:54.431] DEBUG: Loaded 18 of 18 items for libary page in 0.03s [2025-07-04 14:04:54.433] DEBUG: [ApiCacheManager] Cache miss: {"user":"root","url":"/libraries/904659dc-7231-47e2-9c7a-a51911839fdd/items?sort=addedAt&desc=1&limit=0"} [2025-07-04 14:04:54.449] DEBUG: [ApiCacheManager] count: 4 size: 82465 [2025-07-04 14:04:54.449] DEBUG: [ApiCacheManager] Cache hit: {"user":"root","url":"/libraries"} [2025-07-04 14:04:54.457] DEBUG: [ApiCacheManager] count: 4 size: 82465 [2025-07-04 14:04:54.476] DEBUG: Loaded 6 of 7 items for "Continue Listening/Reading" in 0.02s [2025-07-04 14:04:54.509] DEBUG: Loaded 10 of 400 episodes for "Newest Episodes" in 0.03s [2025-07-04 14:04:54.519] DEBUG: Loaded 2 of 2 items for "Recently Added" in 0.01s [2025-07-04 14:04:54.532] DEBUG: Loaded 4 of 4 items for "Listen/Read Again" in 0.01s [2025-07-04 14:04:54.532] DEBUG: Loaded 4 personalized shelves in 0.07s [2025-07-04 14:04:54.533] DEBUG: [ApiCacheManager] Cache miss: {"user":"root","url":"/libraries/267e8860-2329-490b-a41a-e821324a8160/personalized"} [2025-07-04 14:04:54.533] DEBUG: [ApiCacheManager] Caching with 1800000 ms TTL [2025-07-04 14:04:54.550] DEBUG: [ApiCacheManager] count: 5 size: 209157 [2025-07-04 14:04:54.550] DEBUG: [ApiCacheManager] Cache hit: {"user":"root","url":"/libraries/904659dc-7231-47e2-9c7a-a51911839fdd/personalized"} [2025-07-04 14:05:13.295] DEBUG: [ApiCacheManager] count: 5 size: 209157 [2025-07-04 14:05:13.298] DEBUG: [ApiCacheManager] count: 5 size: 209157 [2025-07-04 14:05:13.366] DEBUG: Loaded 4 of 4 items for libary page in 0.05s [2025-07-04 14:05:13.367] DEBUG: [ApiCacheManager] Cache miss: {"user":"root","url":"/libraries/904659dc-7231-47e2-9c7a-a51911839fdd/items?filter=narrators.SmVmZiBIYXlz&limit=100&page=0"} [2025-07-04 14:05:13.378] DEBUG: [ApiCacheManager] Cache miss: {"user":"root","url":"/libraries/904659dc-7231-47e2-9c7a-a51911839fdd/search?q=Matt%20Dinniman&limit=1"} [2025-07-04 14:05:14.238] DEBUG: [ApiCacheManager] Object.afterBulkUpdate: Clearing cache [2025-07-04 14:05:14.238] DEBUG: [PlaybackSessionManager] startSessionRequest for device iOS null / null [2025-07-04 14:05:14.239] INFO: [PlaybackSessionManager] startSession: Closing open session "Dungeon Crawler Carl: A LitRPG/Gamelit Adventure" for user "root" (Device: iOS null / null) [2025-07-04 14:05:14.262] DEBUG: [ApiCacheManager] Object.afterBulkUpdate: Clearing cache [2025-07-04 14:05:14.263] DEBUG: [PlaybackSessionManager] closeSession "3c0e95c8-5c2a-456a-b98f-a08ad6a5c214" [2025-07-04 14:05:14.265] DEBUG: [PlaybackSessionManager] Removed session "3c0e95c8-5c2a-456a-b98f-a08ad6a5c214" [2025-07-04 14:05:14.265] DEBUG: [PlaybackSessionManager] "root" starting direct play session for item "e6be9a89-cbc2-47a5-b574-5aece8bcb775" with id 73a44e74-e005-470c-8c8a-948e2e183ef9 (Device: iOS null / null) [2025-07-04 14:05:14.404] DEBUG: [PlaybackSessionManager] syncSession "73a44e74-e005-470c-8c8a-948e2e183ef9" (Device: iOS null / null) | Total Time Listened: 0.00003993511199951172 [2025-07-04 14:05:14.409] DEBUG: [PlaybackSessionManager] syncSession "73a44e74-e005-470c-8c8a-948e2e183ef9" (Device: iOS null / null) | Total Time Listened: 0.00004601478576660156 [2025-07-04 14:05:14.413] DEBUG: [PlaybackSessionManager] syncSession "73a44e74-e005-470c-8c8a-948e2e183ef9" (Device: iOS null / null) | Total Time Listened: 0.015591979026794434 Error: EINVAL: invalid argument, open '/data/media/audiobooks/Matt Dinniman/Dungeon Crawler Carl/Matt Dinniman - Dungeon Crawler Carl.m4b' [2025-07-04 14:05:14.481] DEBUG: [ApiCacheManager] Array.afterUpsert: Clearing cache [2025-07-04 14:05:14.515] DEBUG: [ApiCacheManager] Object.afterBulkUpdate: Clearing cache [2025-07-04 14:05:14.534] DEBUG: [ApiCacheManager] Object.afterBulkUpdate: Clearing cache ``` edit: fixed code snippets
Author
Owner

@Vito0912 commented on GitHub (Jul 4, 2025):

Can you try playing the file with a standard player. (Not something like VLC) And directly via the browser.

Could you also tell the used codec please?

@Vito0912 commented on GitHub (Jul 4, 2025): Can you try playing the file with a standard player. (Not something like VLC) And directly via the browser. Could you also tell the used codec please?
Author
Owner

@timkeefer1 commented on GitHub (Jul 4, 2025):

Sure! I played it using Foobar 2000 and Firefox from the Samba share in windows, and it worked fine.
Here's the log from Foobar:

Components loaded in: 0:00.009265
INFO-OpenLyrics: Successfully initialised the lyric metadata metadb index
INFO-OpenLyrics: Successfully initialised the lyric search history metadb index
Configuration read in: 0:00.000781
foobar2000 v2.1.6 x64 [standard]
Watching: R:\
Playlist #3 loaded in 0:00.000237
User Interface initialized in: 0:00.088198
FFmpeg version: 6.0
Startup time : 0:00.139329
Library initialized after 0:00.172191
Opening track for playback: "R:\media\audiobooks\Matt Dinniman\Dungeon Crawler Carl\Matt Dinniman - Dungeon Crawler Carl.m4b" / index: 1
Automatic resampling: using Resampler (dBpoweramp/SSRC): 48000 Hz, Resampler (RetroArch): 48000 Hz
Device: Speakers (RODECaster Pro II Chat)
Mix format: 48000 Hz / 32-bit float / 2 channels (0x3)
Sending stream: 48000 Hz / 32-bit float / 2 channels (0x3)
Playlist #2 loaded in 0:00.020977
Opening track for playback: "R:\media\audiobooks\Matt Dinniman\Dungeon Crawler Carl\Matt Dinniman - Dungeon Crawler Carl.m4b" / index: 2

Here's the listening session detail from when I'm trying to play from the web browser:

Dungeon Crawler Carl: A LitRPG/Gamelit Adventure

by Matt Dinniman

Details
Started At
07/04/2025 14:47
Updated At
07/04/2025 14:47
Time Listened
Start Time
7:46:55
Last Time
7:46:55

Item
Library Id
904659dc-7231-47e2-9c7a-a51911839fdd
Library Item Id
e6be9a89-cbc2-47a5-b574-5aece8bcb775
Media Type
book
Duration
13 hr 31 min

User

7890232b-ff7f-490c-924d-3318da1dc1a0

Media Player

Transcode

html5

Device

Abs Web 2.25.1

192.168.1.6

Windows 10

Firefox

@timkeefer1 commented on GitHub (Jul 4, 2025): Sure! I played it using Foobar 2000 and Firefox from the Samba share in windows, and it worked fine. Here's the log from Foobar: ``` Components loaded in: 0:00.009265 INFO-OpenLyrics: Successfully initialised the lyric metadata metadb index INFO-OpenLyrics: Successfully initialised the lyric search history metadb index Configuration read in: 0:00.000781 foobar2000 v2.1.6 x64 [standard] Watching: R:\ Playlist #3 loaded in 0:00.000237 User Interface initialized in: 0:00.088198 FFmpeg version: 6.0 Startup time : 0:00.139329 Library initialized after 0:00.172191 Opening track for playback: "R:\media\audiobooks\Matt Dinniman\Dungeon Crawler Carl\Matt Dinniman - Dungeon Crawler Carl.m4b" / index: 1 Automatic resampling: using Resampler (dBpoweramp/SSRC): 48000 Hz, Resampler (RetroArch): 48000 Hz Device: Speakers (RODECaster Pro II Chat) Mix format: 48000 Hz / 32-bit float / 2 channels (0x3) Sending stream: 48000 Hz / 32-bit float / 2 channels (0x3) Playlist #2 loaded in 0:00.020977 Opening track for playback: "R:\media\audiobooks\Matt Dinniman\Dungeon Crawler Carl\Matt Dinniman - Dungeon Crawler Carl.m4b" / index: 2 ``` Here's the listening session detail from when I'm trying to play from the web browser: ``` Dungeon Crawler Carl: A LitRPG/Gamelit Adventure by Matt Dinniman Details Started At 07/04/2025 14:47 Updated At 07/04/2025 14:47 Time Listened Start Time 7:46:55 Last Time 7:46:55 Item Library Id 904659dc-7231-47e2-9c7a-a51911839fdd Library Item Id e6be9a89-cbc2-47a5-b574-5aece8bcb775 Media Type book Duration 13 hr 31 min User 7890232b-ff7f-490c-924d-3318da1dc1a0 Media Player Transcode html5 Device Abs Web 2.25.1 192.168.1.6 Windows 10 Firefox ```
Author
Owner

@timkeefer1 commented on GitHub (Jul 6, 2025):

Is there anything else we can do to get more information on the error? From the looks of the error ("Impossible to open"), it sounds like ABS can't access the file, but logging in as root into the docker container can. However, we do know that ABS can normally access the file, because often playback does work. So, we know it's not a permissions issue or an issue with the share/file itself. Is it possible that somehow ABS is getting stuck when releasing the file, or caching some kind of session information it's trying to re-use? I'm just taking shots in the dark, but trying to be helpful in coming up with a solution.

Is there a way to find out what the argument is that is being used for the input session - where this error is generated?

[2025-07-04 13:59:04.376] INFO: [in#0 @ 0x7f36e4689980] Error opening input: Invalid argument

Here's an example of a successful playback, if this helps?

[2025-07-06 04:39:49.684] DEBUG: [PlaybackSessionManager] syncSession "9df3ccfe-4451-4a75-8eb0-f93b72668663" (Device: iOS null / null) | Total Time Listened: 29867.610040783882
[2025-07-06 04:39:49.733] DEBUG: [ApiCacheManager] mediaProgress.afterUpdate: Clearing cache
[2025-07-06 04:39:49.735] DEBUG: [PlaybackSessionManager] closeSession "9df3ccfe-4451-4a75-8eb0-f93b72668663"
[2025-07-06 04:39:49.736] DEBUG: [PlaybackSessionManager] Removed session "9df3ccfe-4451-4a75-8eb0-f93b72668663"
[2025-07-06 04:39:49.766] DEBUG: [ApiCacheManager] Object.afterBulkUpdate: Clearing cache
[2025-07-06 04:39:51.169] DEBUG: [PlaybackSessionManager] startSessionRequest for device iOS null / null
[2025-07-06 04:39:51.171] DEBUG: [PlaybackSessionManager] "root" starting direct play session for item "e6be9a89-cbc2-47a5-b574-5aece8bcb775" with id 5c202233-668c-4a48-be8d-a5bccc134882 (Device: iOS null / null)
[2025-07-06 04:39:51.482] DEBUG: [PlaybackSessionManager] syncSession "5c202233-668c-4a48-be8d-a5bccc134882" (Device: iOS null / null) | Total Time Listened: 0.0002110004425048828
[2025-07-06 04:39:51.485] DEBUG: [PlaybackSessionManager] syncSession "5c202233-668c-4a48-be8d-a5bccc134882" (Device: iOS null / null) | Total Time Listened: 0.00022292137145996094
[2025-07-06 04:39:51.489] DEBUG: [PlaybackSessionManager] syncSession "5c202233-668c-4a48-be8d-a5bccc134882" (Device: iOS null / null) | Total Time Listened: 0.23513996601104736
[2025-07-06 04:39:51.554] DEBUG: [ApiCacheManager] mediaProgress.afterUpdate: Clearing cache
[2025-07-06 04:39:51.582] DEBUG: [ApiCacheManager] mediaProgress.afterUpdate: Clearing cache
[2025-07-06 04:39:51.616] DEBUG: [ApiCacheManager] mediaProgress.afterUpdate: Clearing cache
[2025-07-06 04:39:51.642] DEBUG: [ApiCacheManager] Array.afterUpsert: Clearing cache
[2025-07-06 04:39:51.660] DEBUG: [ApiCacheManager] Object.afterBulkUpdate: Clearing cache
[2025-07-06 04:39:51.681] DEBUG: [ApiCacheManager] Object.afterBulkUpdate: Clearing cache
[2025-07-06 04:40:18.177] DEBUG: [PlaybackSessionManager] syncSession "5c202233-668c-4a48-be8d-a5bccc134882" (Device: iOS null / null) | Total Time Listened: 26.953309059143066
@timkeefer1 commented on GitHub (Jul 6, 2025): Is there anything else we can do to get more information on the error? From the looks of the error ("Impossible to open"), it sounds like ABS can't access the file, but logging in as root into the docker container can. However, we do know that ABS can normally access the file, because often playback does work. So, we know it's not a permissions issue or an issue with the share/file itself. Is it possible that somehow ABS is getting stuck when releasing the file, or caching some kind of session information it's trying to re-use? I'm just taking shots in the dark, but trying to be helpful in coming up with a solution. Is there a way to find out what the argument is that is being used for the input session - where this error is generated? `[2025-07-04 13:59:04.376] INFO: [in#0 @ 0x7f36e4689980] Error opening input: Invalid argument ` Here's an example of a successful playback, if this helps? ``` [2025-07-06 04:39:49.684] DEBUG: [PlaybackSessionManager] syncSession "9df3ccfe-4451-4a75-8eb0-f93b72668663" (Device: iOS null / null) | Total Time Listened: 29867.610040783882 [2025-07-06 04:39:49.733] DEBUG: [ApiCacheManager] mediaProgress.afterUpdate: Clearing cache [2025-07-06 04:39:49.735] DEBUG: [PlaybackSessionManager] closeSession "9df3ccfe-4451-4a75-8eb0-f93b72668663" [2025-07-06 04:39:49.736] DEBUG: [PlaybackSessionManager] Removed session "9df3ccfe-4451-4a75-8eb0-f93b72668663" [2025-07-06 04:39:49.766] DEBUG: [ApiCacheManager] Object.afterBulkUpdate: Clearing cache [2025-07-06 04:39:51.169] DEBUG: [PlaybackSessionManager] startSessionRequest for device iOS null / null [2025-07-06 04:39:51.171] DEBUG: [PlaybackSessionManager] "root" starting direct play session for item "e6be9a89-cbc2-47a5-b574-5aece8bcb775" with id 5c202233-668c-4a48-be8d-a5bccc134882 (Device: iOS null / null) [2025-07-06 04:39:51.482] DEBUG: [PlaybackSessionManager] syncSession "5c202233-668c-4a48-be8d-a5bccc134882" (Device: iOS null / null) | Total Time Listened: 0.0002110004425048828 [2025-07-06 04:39:51.485] DEBUG: [PlaybackSessionManager] syncSession "5c202233-668c-4a48-be8d-a5bccc134882" (Device: iOS null / null) | Total Time Listened: 0.00022292137145996094 [2025-07-06 04:39:51.489] DEBUG: [PlaybackSessionManager] syncSession "5c202233-668c-4a48-be8d-a5bccc134882" (Device: iOS null / null) | Total Time Listened: 0.23513996601104736 [2025-07-06 04:39:51.554] DEBUG: [ApiCacheManager] mediaProgress.afterUpdate: Clearing cache [2025-07-06 04:39:51.582] DEBUG: [ApiCacheManager] mediaProgress.afterUpdate: Clearing cache [2025-07-06 04:39:51.616] DEBUG: [ApiCacheManager] mediaProgress.afterUpdate: Clearing cache [2025-07-06 04:39:51.642] DEBUG: [ApiCacheManager] Array.afterUpsert: Clearing cache [2025-07-06 04:39:51.660] DEBUG: [ApiCacheManager] Object.afterBulkUpdate: Clearing cache [2025-07-06 04:39:51.681] DEBUG: [ApiCacheManager] Object.afterBulkUpdate: Clearing cache [2025-07-06 04:40:18.177] DEBUG: [PlaybackSessionManager] syncSession "5c202233-668c-4a48-be8d-a5bccc134882" (Device: iOS null / null) | Total Time Listened: 26.953309059143066 ```
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/audiobookshelf#3050
No description provided.