[Bug]: A book's playback fails in iOS #1321

Open
opened 2026-04-24 23:57:17 +02:00 by adam · 7 comments
Owner

Originally created by @bigbeka on GitHub (Dec 23, 2025).

I have verified that the bug is not already awaiting release

Yes

What was the Problem?

Playback of an audiobook fails with no errors, when playback is attempted STDOUT shows: audiobookshelf | [2025-12-23 08:31:37.136] INFO: [PlaybackSessionManager] startSession: Closing open session "book name" for user "username" (Device: iPhone16,2 / v0.11.0). No STDOUT for opening a session.

Downloading that book to iOS shows popup message: Failed to download.

Playback of this book works perfectly in a browser, both on desktop and mobile browsers.
Playback of other books in the iOS work perfectly.

I have rechecked the file permissions, audiobookshelf has full permissions to the audiobook files.

The book in question is 341ce306-6f38-4c40-a83e-f332bc53f713 - see iOS logs below.

Steps to Reproduce the Issue

Install the latest versions of the docker compose and iOS TestFlight and playback the audiobook that I have.

What was Expected?

Audiobook should play.

Phone Model

iPhone 15 Pro Max

Phone OS

iOS 26.2

Audiobookshelf App Version

iOS App - 0.11.0

Installation Source

Testflight

Additional Notes

12/23/2025 09:27:51.840 [INFO] playLibraryItem: Received play request for library item d65b9b8a-8f3d-44cb-9830-77d2c031d31d 
12/23/2025 09:27:52.286 [INFO] Starting track index 0 for start time 0.0
12/23/2025 09:27:52.291 [INFO] Setting player items 18
12/23/2025 09:27:52.296 [INFO] WARNING: Item ended
12/23/2025 09:27:52.301 [INFO] queueStatusObserver: Setting up
12/23/2025 09:27:52.304 [INFO] queueStatusObserver: Current item status changed
12/23/2025 09:27:52.308 [INFO] Audioplayer ready
12/23/2025 09:27:53.256 [INFO] queueStatusObserver: Current item status changed
12/23/2025 09:27:53.266 [INFO] queueStatusObserver: Current Item Ready to play. PlayWhenReady: true
12/23/2025 09:27:53.273 [INFO] PLAY: Resuming playback
12/23/2025 09:27:53.286 [INFO] Sending sessionId(9dde95b8-b9a8-472a-8892-018db13ef20b) to server with currentTime(0.0)
12/23/2025 09:27:53.529 [INFO] userMediaProgressUpdate: Received updated media progress for current user from socket event. Media item id 75772ded-d524-4b96-b852-c4e9f0b06419
12/23/2025 09:27:54.883 [INFO] playLibraryItem: Received play request for library item 4d435f0b-d0ca-4522-a7ed-a1be64c72155 
12/23/2025 09:27:54.897 [INFO] PAUSE: Pausing playback
12/23/2025 09:27:54.986 [INFO] PAUSE: Pausing playback
12/23/2025 09:27:55.001 [INFO] Sending sessionId(9dde95b8-b9a8-472a-8892-018db13ef20b) to server with currentTime(1.44987168)
12/23/2025 09:27:55.003 [INFO] Sending sessionId(9dde95b8-b9a8-472a-8892-018db13ef20b) to server with currentTime(1.44987168)
12/23/2025 09:27:55.003 [INFO] New Current track index 1
12/23/2025 09:27:55.016 [INFO] WARNING: Item ended
12/23/2025 09:27:55.299 [INFO] userMediaProgressUpdate: Received updated media progress for current user from socket event. Media item id 75772ded-d524-4b96-b852-c4e9f0b06419
12/23/2025 09:27:55.315 [INFO] userMediaProgressUpdate: Received updated media progress for current user from socket event. Media item id 75772ded-d524-4b96-b852-c4e9f0b06419
12/23/2025 09:27:55.484 [INFO] Starting track index 0 for start time 0.0
12/23/2025 09:27:55.490 [INFO] Setting player items 17
12/23/2025 09:27:55.495 [INFO] WARNING: Item ended
12/23/2025 09:27:55.501 [INFO] queueStatusObserver: Setting up
12/23/2025 09:27:55.504 [INFO] queueStatusObserver: Current item status changed
12/23/2025 09:27:55.508 [INFO] Audioplayer ready
12/23/2025 09:27:56.125 [INFO] queueStatusObserver: Current item status changed
12/23/2025 09:27:56.136 [INFO] queueStatusObserver: Current Item Ready to play. PlayWhenReady: true
12/23/2025 09:27:56.143 [INFO] PLAY: Resuming playback
12/23/2025 09:27:56.157 [INFO] Sending sessionId(4cdeb915-2b0d-43e4-918a-256227fadd5a) to server with currentTime(0.0)
12/23/2025 09:27:56.322 [INFO] userMediaProgressUpdate: Received updated media progress for current user from socket event. Media item id 635c5266-9b95-42ad-ac21-6cdf14f59dfa
12/23/2025 09:27:57.279 [INFO] playLibraryItem: Received play request for library item 341ce306-6f38-4c40-a83e-f332bc53f713 
12/23/2025 09:27:57.294 [INFO] PAUSE: Pausing playback
12/23/2025 09:27:57.389 [INFO] PAUSE: Pausing playback
12/23/2025 09:27:57.405 [INFO] Sending sessionId(4cdeb915-2b0d-43e4-918a-256227fadd5a) to server with currentTime(0.896358559)
12/23/2025 09:27:57.409 [INFO] New Current track index 1
12/23/2025 09:27:57.420 [INFO] Sending sessionId(4cdeb915-2b0d-43e4-918a-256227fadd5a) to server with currentTime(0.896358559)
12/23/2025 09:27:57.420 [INFO] WARNING: Item ended
12/23/2025 09:27:57.602 [INFO] userMediaProgressUpdate: Received updated media progress for current user from socket event. Media item id 635c5266-9b95-42ad-ac21-6cdf14f59dfa
12/23/2025 09:27:57.630 [INFO] userMediaProgressUpdate: Received updated media progress for current user from socket event. Media item id 635c5266-9b95-42ad-ac21-6cdf14f59dfa
12/23/2025 09:27:57.768 [ERROR] api request to api/items/341ce306-6f38-4c40-a83e-f332bc53f713/play failed
12/23/2025 09:27:57.779 [ERROR] startPlaybackSession: Failed to create playback session
12/23/2025 09:27:57.790 [ERROR] Failed to start streaming session
12/23/2025 09:28:00.163 [INFO] playLibraryItem: Received play request for library item 341ce306-6f38-4c40-a83e-f332bc53f713 
12/23/2025 09:28:00.510 [ERROR] api request to api/items/341ce306-6f38-4c40-a83e-f332bc53f713/play failed
12/23/2025 09:28:00.526 [ERROR] startPlaybackSession: Failed to create playback session
12/23/2025 09:28:00.535 [ERROR] Failed to start streaming session
12/23/2025 09:28:02.500 [INFO] Audiobookself is now in the background
12/23/2025 09:28:02.530 [INFO] Audiobookself is terminating
12/23/2025 09:30:57.210 [INFO] Audiobookself is now active
12/23/2025 09:30:57.316 [INFO] mounted: initializing first load (ios v0.11.0-beta)
12/23/2025 09:30:57.738 [INFO] mounted: Server not connected, attempt connection
12/23/2025 09:30:57.750 [INFO] attemptConnection: Got server config, attempt authorize (https://[SERVER_ADDRESS] (username))
12/23/2025 09:30:58.209 [INFO] attemptConnection: Successful connection to last saved server config (https://[SERVER_ADDRESS] (username))
12/23/2025 09:30:58.525 [INFO] initLibraries loading library Audio Books
12/23/2025 09:30:58.699 [INFO] Calling syncLocalSessions
12/23/2025 09:30:58.712 [INFO] Starting syncLocalSessionsWithServer isFirstSync=true
12/23/2025 09:30:58.720 [INFO] syncLocalSessionsWithServer: Found 0 local media progress for server
12/23/2025 09:30:58.725 [INFO] syncLocalSessionsWithServer: No local progress to sync
12/23/2025 09:30:58.730 [INFO] syncLocalSessionsWithServer: Found 2 playback sessions for server (first sync: true)
12/23/2025 09:30:59.228 [INFO] syncLocalSessionsWithServer: Handling Book123 (9dde95b8-b9a8-472a-8892-018db13ef20b) false
12/23/2025 09:30:59.248 [INFO] syncLocalSessionsWithServer: Handling Book123 (4cdeb915-2b0d-43e4-918a-256227fadd5a) false
12/23/2025 09:30:59.270 [INFO] mounted: fully initialized
12/23/2025 09:31:00.837 [INFO] Download library item 341ce306-6f38-4c40-a83e-f332bc53f713 / episode N/A
12/23/2025 09:31:01.047 [INFO] Got library item from server 341ce306-6f38-4c40-a83e-f332bc53f713
12/23/2025 09:31:18.299 [INFO] Download library item 341ce306-6f38-4c40-a83e-f332bc53f713 / episode N/A
12/23/2025 09:31:18.475 [INFO] Got library item from server 341ce306-6f38-4c40-a83e-f332bc53f713
12/23/2025 09:31:34.456 [INFO] playLibraryItem: Received play request for library item 341ce306-6f38-4c40-a83e-f332bc53f713 
12/23/2025 09:31:34.776 [ERROR] api request to api/items/341ce306-6f38-4c40-a83e-f332bc53f713/play failed
12/23/2025 09:31:34.794 [ERROR] startPlaybackSession: Failed to create playback session
12/23/2025 09:31:34.802 [ERROR] Failed to start streaming session
12/23/2025 09:31:37.015 [INFO] playLibraryItem: Received play request for library item 341ce306-6f38-4c40-a83e-f332bc53f713 
12/23/2025 09:31:37.326 [ERROR] api request to api/items/341ce306-6f38-4c40-a83e-f332bc53f713/play failed
12/23/2025 09:31:37.341 [ERROR] startPlaybackSession: Failed to create playback session
12/23/2025 09:31:37.349 [ERROR] Failed to start streaming session
12/23/2025 09:33:37.303 [INFO] Audiobookself is now in the background
12/23/2025 09:35:21.443 [INFO] Audiobookself is now in the foreground
12/23/2025 09:35:22.660 [INFO] Audiobookself is now in the background
12/23/2025 09:35:23.329 [INFO] Audiobookself is now in the foreground
12/23/2025 09:35:23.627 [INFO] Audiobookself is now active
12/23/2025 09:35:24.519 [INFO] Audiobookself is now in the background
12/23/2025 09:35:24.697 [INFO] Audiobookself is now in the foreground
12/23/2025 09:35:25.603 [INFO] Audiobookself is now in the background
12/23/2025 09:36:36.935 [INFO] Audiobookself is now in the foreground
12/23/2025 09:36:37.112 [INFO] Audiobookself is now active
12/23/2025 09:36:42.345 [INFO] playLibraryItem: Received play request for library item 341ce306-6f38-4c40-a83e-f332bc53f713
12/23/2025 09:36:42.754 [ERROR] api request to api/items/341ce306-6f38-4c40-a83e-f332bc53f713/play failed
12/23/2025 09:36:42.771 [ERROR] startPlaybackSession: Failed to create playback session
12/23/2025 09:36:42.783 [ERROR] Failed to start streaming session
12/23/2025 09:36:43.460 [INFO] Download library item 341ce306-6f38-4c40-a83e-f332bc53f713 / episode N/A
12/23/2025 09:36:43.642 [INFO] Got library item from server 341ce306-6f38-4c40-a83e-f332bc53f713
12/23/2025 09:37:00.633 [INFO] playLibraryItem: Received play request for library item 341ce306-6f38-4c40-a83e-f332bc53f713 
12/23/2025 09:37:00.966 [ERROR] api request to api/items/341ce306-6f38-4c40-a83e-f332bc53f713/play failed
12/23/2025 09:37:00.983 [ERROR] startPlaybackSession: Failed to create playback session
12/23/2025 09:37:00.993 [ERROR] Failed to start streaming session
12/23/2025 09:37:41.412 [INFO] Download library item 341ce306-6f38-4c40-a83e-f332bc53f713 / episode N/A
12/23/2025 09:37:41.638 [INFO] Got library item from server 341ce306-6f38-4c40-a83e-f332bc53f713
12/23/2025 09:37:54.839 [INFO] playLibraryItem: Received play request for library item 4d435f0b-d0ca-4522-a7ed-a1be64c72155 
12/23/2025 09:37:55.210 [INFO] Starting track index 0 for start time 0.896358559
12/23/2025 09:37:55.214 [INFO] Setting player items 17
12/23/2025 09:37:55.220 [INFO] WARNING: Item ended
12/23/2025 09:37:55.225 [INFO] queueStatusObserver: Setting up
12/23/2025 09:37:55.229 [INFO] queueStatusObserver: Current item status changed
12/23/2025 09:37:55.232 [INFO] Audioplayer ready
12/23/2025 09:37:56.748 [INFO] queueStatusObserver: Current item status changed
12/23/2025 09:37:56.757 [INFO] queueStatusObserver: Current Item Ready to play. PlayWhenReady: true
12/23/2025 09:37:56.764 [INFO] PLAY: Resuming playback
12/23/2025 09:37:56.778 [INFO] Sending sessionId(edc7ef79-381a-4925-92c6-582dded5461e) to server with currentTime(0.896358559)
12/23/2025 09:37:56.941 [INFO] userMediaProgressUpdate: Received updated media progress for current user from socket event. Media item id 635c5266-9b95-42ad-ac21-6cdf14f59dfa
12/23/2025 09:37:57.464 [INFO] PAUSE: Pausing playback
12/23/2025 09:37:58.096 [INFO] Sending sessionId(edc7ef79-381a-4925-92c6-582dded5461e) to server with currentTime(1.427797315)
12/23/2025 09:37:58.285 [INFO] userMediaProgressUpdate: Received updated media progress for current user from socket event. Media item id 635c5266-9b95-42ad-ac21-6cdf14f59dfa
Originally created by @bigbeka on GitHub (Dec 23, 2025). ### I have verified that the [bug is not already awaiting release](https://github.com/advplyr/audiobookshelf-app/issues?q=is%3Aissue%20label%3A%22awaiting%20release%22) Yes ### What was the Problem? Playback of an audiobook fails with no errors, when playback is attempted STDOUT shows: `audiobookshelf | [2025-12-23 08:31:37.136] INFO: [PlaybackSessionManager] startSession: Closing open session "book name" for user "username" (Device: iPhone16,2 / v0.11.0)`. No STDOUT for opening a session. Downloading that book to iOS shows popup message: `Failed to download`. Playback of this book works perfectly in a browser, both on desktop and mobile browsers. Playback of other books in the iOS work perfectly. I have rechecked the file permissions, audiobookshelf has full permissions to the audiobook files. The book in question is `341ce306-6f38-4c40-a83e-f332bc53f713` - see iOS logs below. ### Steps to Reproduce the Issue Install the latest versions of the docker compose and iOS TestFlight and playback the audiobook that I have. ### What was Expected? Audiobook should play. ### Phone Model iPhone 15 Pro Max ### Phone OS iOS 26.2 ### Audiobookshelf App Version iOS App - 0.11.0 ### Installation Source Testflight ### Additional Notes ``` 12/23/2025 09:27:51.840 [INFO] playLibraryItem: Received play request for library item d65b9b8a-8f3d-44cb-9830-77d2c031d31d 12/23/2025 09:27:52.286 [INFO] Starting track index 0 for start time 0.0 12/23/2025 09:27:52.291 [INFO] Setting player items 18 12/23/2025 09:27:52.296 [INFO] WARNING: Item ended 12/23/2025 09:27:52.301 [INFO] queueStatusObserver: Setting up 12/23/2025 09:27:52.304 [INFO] queueStatusObserver: Current item status changed 12/23/2025 09:27:52.308 [INFO] Audioplayer ready 12/23/2025 09:27:53.256 [INFO] queueStatusObserver: Current item status changed 12/23/2025 09:27:53.266 [INFO] queueStatusObserver: Current Item Ready to play. PlayWhenReady: true 12/23/2025 09:27:53.273 [INFO] PLAY: Resuming playback 12/23/2025 09:27:53.286 [INFO] Sending sessionId(9dde95b8-b9a8-472a-8892-018db13ef20b) to server with currentTime(0.0) 12/23/2025 09:27:53.529 [INFO] userMediaProgressUpdate: Received updated media progress for current user from socket event. Media item id 75772ded-d524-4b96-b852-c4e9f0b06419 12/23/2025 09:27:54.883 [INFO] playLibraryItem: Received play request for library item 4d435f0b-d0ca-4522-a7ed-a1be64c72155 12/23/2025 09:27:54.897 [INFO] PAUSE: Pausing playback 12/23/2025 09:27:54.986 [INFO] PAUSE: Pausing playback 12/23/2025 09:27:55.001 [INFO] Sending sessionId(9dde95b8-b9a8-472a-8892-018db13ef20b) to server with currentTime(1.44987168) 12/23/2025 09:27:55.003 [INFO] Sending sessionId(9dde95b8-b9a8-472a-8892-018db13ef20b) to server with currentTime(1.44987168) 12/23/2025 09:27:55.003 [INFO] New Current track index 1 12/23/2025 09:27:55.016 [INFO] WARNING: Item ended 12/23/2025 09:27:55.299 [INFO] userMediaProgressUpdate: Received updated media progress for current user from socket event. Media item id 75772ded-d524-4b96-b852-c4e9f0b06419 12/23/2025 09:27:55.315 [INFO] userMediaProgressUpdate: Received updated media progress for current user from socket event. Media item id 75772ded-d524-4b96-b852-c4e9f0b06419 12/23/2025 09:27:55.484 [INFO] Starting track index 0 for start time 0.0 12/23/2025 09:27:55.490 [INFO] Setting player items 17 12/23/2025 09:27:55.495 [INFO] WARNING: Item ended 12/23/2025 09:27:55.501 [INFO] queueStatusObserver: Setting up 12/23/2025 09:27:55.504 [INFO] queueStatusObserver: Current item status changed 12/23/2025 09:27:55.508 [INFO] Audioplayer ready 12/23/2025 09:27:56.125 [INFO] queueStatusObserver: Current item status changed 12/23/2025 09:27:56.136 [INFO] queueStatusObserver: Current Item Ready to play. PlayWhenReady: true 12/23/2025 09:27:56.143 [INFO] PLAY: Resuming playback 12/23/2025 09:27:56.157 [INFO] Sending sessionId(4cdeb915-2b0d-43e4-918a-256227fadd5a) to server with currentTime(0.0) 12/23/2025 09:27:56.322 [INFO] userMediaProgressUpdate: Received updated media progress for current user from socket event. Media item id 635c5266-9b95-42ad-ac21-6cdf14f59dfa 12/23/2025 09:27:57.279 [INFO] playLibraryItem: Received play request for library item 341ce306-6f38-4c40-a83e-f332bc53f713 12/23/2025 09:27:57.294 [INFO] PAUSE: Pausing playback 12/23/2025 09:27:57.389 [INFO] PAUSE: Pausing playback 12/23/2025 09:27:57.405 [INFO] Sending sessionId(4cdeb915-2b0d-43e4-918a-256227fadd5a) to server with currentTime(0.896358559) 12/23/2025 09:27:57.409 [INFO] New Current track index 1 12/23/2025 09:27:57.420 [INFO] Sending sessionId(4cdeb915-2b0d-43e4-918a-256227fadd5a) to server with currentTime(0.896358559) 12/23/2025 09:27:57.420 [INFO] WARNING: Item ended 12/23/2025 09:27:57.602 [INFO] userMediaProgressUpdate: Received updated media progress for current user from socket event. Media item id 635c5266-9b95-42ad-ac21-6cdf14f59dfa 12/23/2025 09:27:57.630 [INFO] userMediaProgressUpdate: Received updated media progress for current user from socket event. Media item id 635c5266-9b95-42ad-ac21-6cdf14f59dfa 12/23/2025 09:27:57.768 [ERROR] api request to api/items/341ce306-6f38-4c40-a83e-f332bc53f713/play failed 12/23/2025 09:27:57.779 [ERROR] startPlaybackSession: Failed to create playback session 12/23/2025 09:27:57.790 [ERROR] Failed to start streaming session 12/23/2025 09:28:00.163 [INFO] playLibraryItem: Received play request for library item 341ce306-6f38-4c40-a83e-f332bc53f713 12/23/2025 09:28:00.510 [ERROR] api request to api/items/341ce306-6f38-4c40-a83e-f332bc53f713/play failed 12/23/2025 09:28:00.526 [ERROR] startPlaybackSession: Failed to create playback session 12/23/2025 09:28:00.535 [ERROR] Failed to start streaming session 12/23/2025 09:28:02.500 [INFO] Audiobookself is now in the background 12/23/2025 09:28:02.530 [INFO] Audiobookself is terminating 12/23/2025 09:30:57.210 [INFO] Audiobookself is now active 12/23/2025 09:30:57.316 [INFO] mounted: initializing first load (ios v0.11.0-beta) 12/23/2025 09:30:57.738 [INFO] mounted: Server not connected, attempt connection 12/23/2025 09:30:57.750 [INFO] attemptConnection: Got server config, attempt authorize (https://[SERVER_ADDRESS] (username)) 12/23/2025 09:30:58.209 [INFO] attemptConnection: Successful connection to last saved server config (https://[SERVER_ADDRESS] (username)) 12/23/2025 09:30:58.525 [INFO] initLibraries loading library Audio Books 12/23/2025 09:30:58.699 [INFO] Calling syncLocalSessions 12/23/2025 09:30:58.712 [INFO] Starting syncLocalSessionsWithServer isFirstSync=true 12/23/2025 09:30:58.720 [INFO] syncLocalSessionsWithServer: Found 0 local media progress for server 12/23/2025 09:30:58.725 [INFO] syncLocalSessionsWithServer: No local progress to sync 12/23/2025 09:30:58.730 [INFO] syncLocalSessionsWithServer: Found 2 playback sessions for server (first sync: true) 12/23/2025 09:30:59.228 [INFO] syncLocalSessionsWithServer: Handling Book123 (9dde95b8-b9a8-472a-8892-018db13ef20b) false 12/23/2025 09:30:59.248 [INFO] syncLocalSessionsWithServer: Handling Book123 (4cdeb915-2b0d-43e4-918a-256227fadd5a) false 12/23/2025 09:30:59.270 [INFO] mounted: fully initialized 12/23/2025 09:31:00.837 [INFO] Download library item 341ce306-6f38-4c40-a83e-f332bc53f713 / episode N/A 12/23/2025 09:31:01.047 [INFO] Got library item from server 341ce306-6f38-4c40-a83e-f332bc53f713 12/23/2025 09:31:18.299 [INFO] Download library item 341ce306-6f38-4c40-a83e-f332bc53f713 / episode N/A 12/23/2025 09:31:18.475 [INFO] Got library item from server 341ce306-6f38-4c40-a83e-f332bc53f713 12/23/2025 09:31:34.456 [INFO] playLibraryItem: Received play request for library item 341ce306-6f38-4c40-a83e-f332bc53f713 12/23/2025 09:31:34.776 [ERROR] api request to api/items/341ce306-6f38-4c40-a83e-f332bc53f713/play failed 12/23/2025 09:31:34.794 [ERROR] startPlaybackSession: Failed to create playback session 12/23/2025 09:31:34.802 [ERROR] Failed to start streaming session 12/23/2025 09:31:37.015 [INFO] playLibraryItem: Received play request for library item 341ce306-6f38-4c40-a83e-f332bc53f713 12/23/2025 09:31:37.326 [ERROR] api request to api/items/341ce306-6f38-4c40-a83e-f332bc53f713/play failed 12/23/2025 09:31:37.341 [ERROR] startPlaybackSession: Failed to create playback session 12/23/2025 09:31:37.349 [ERROR] Failed to start streaming session 12/23/2025 09:33:37.303 [INFO] Audiobookself is now in the background 12/23/2025 09:35:21.443 [INFO] Audiobookself is now in the foreground 12/23/2025 09:35:22.660 [INFO] Audiobookself is now in the background 12/23/2025 09:35:23.329 [INFO] Audiobookself is now in the foreground 12/23/2025 09:35:23.627 [INFO] Audiobookself is now active 12/23/2025 09:35:24.519 [INFO] Audiobookself is now in the background 12/23/2025 09:35:24.697 [INFO] Audiobookself is now in the foreground 12/23/2025 09:35:25.603 [INFO] Audiobookself is now in the background 12/23/2025 09:36:36.935 [INFO] Audiobookself is now in the foreground 12/23/2025 09:36:37.112 [INFO] Audiobookself is now active 12/23/2025 09:36:42.345 [INFO] playLibraryItem: Received play request for library item 341ce306-6f38-4c40-a83e-f332bc53f713 12/23/2025 09:36:42.754 [ERROR] api request to api/items/341ce306-6f38-4c40-a83e-f332bc53f713/play failed 12/23/2025 09:36:42.771 [ERROR] startPlaybackSession: Failed to create playback session 12/23/2025 09:36:42.783 [ERROR] Failed to start streaming session 12/23/2025 09:36:43.460 [INFO] Download library item 341ce306-6f38-4c40-a83e-f332bc53f713 / episode N/A 12/23/2025 09:36:43.642 [INFO] Got library item from server 341ce306-6f38-4c40-a83e-f332bc53f713 12/23/2025 09:37:00.633 [INFO] playLibraryItem: Received play request for library item 341ce306-6f38-4c40-a83e-f332bc53f713 12/23/2025 09:37:00.966 [ERROR] api request to api/items/341ce306-6f38-4c40-a83e-f332bc53f713/play failed 12/23/2025 09:37:00.983 [ERROR] startPlaybackSession: Failed to create playback session 12/23/2025 09:37:00.993 [ERROR] Failed to start streaming session 12/23/2025 09:37:41.412 [INFO] Download library item 341ce306-6f38-4c40-a83e-f332bc53f713 / episode N/A 12/23/2025 09:37:41.638 [INFO] Got library item from server 341ce306-6f38-4c40-a83e-f332bc53f713 12/23/2025 09:37:54.839 [INFO] playLibraryItem: Received play request for library item 4d435f0b-d0ca-4522-a7ed-a1be64c72155 12/23/2025 09:37:55.210 [INFO] Starting track index 0 for start time 0.896358559 12/23/2025 09:37:55.214 [INFO] Setting player items 17 12/23/2025 09:37:55.220 [INFO] WARNING: Item ended 12/23/2025 09:37:55.225 [INFO] queueStatusObserver: Setting up 12/23/2025 09:37:55.229 [INFO] queueStatusObserver: Current item status changed 12/23/2025 09:37:55.232 [INFO] Audioplayer ready 12/23/2025 09:37:56.748 [INFO] queueStatusObserver: Current item status changed 12/23/2025 09:37:56.757 [INFO] queueStatusObserver: Current Item Ready to play. PlayWhenReady: true 12/23/2025 09:37:56.764 [INFO] PLAY: Resuming playback 12/23/2025 09:37:56.778 [INFO] Sending sessionId(edc7ef79-381a-4925-92c6-582dded5461e) to server with currentTime(0.896358559) 12/23/2025 09:37:56.941 [INFO] userMediaProgressUpdate: Received updated media progress for current user from socket event. Media item id 635c5266-9b95-42ad-ac21-6cdf14f59dfa 12/23/2025 09:37:57.464 [INFO] PAUSE: Pausing playback 12/23/2025 09:37:58.096 [INFO] Sending sessionId(edc7ef79-381a-4925-92c6-582dded5461e) to server with currentTime(1.427797315) 12/23/2025 09:37:58.285 [INFO] userMediaProgressUpdate: Received updated media progress for current user from socket event. Media item id 635c5266-9b95-42ad-ac21-6cdf14f59dfa ```
adam added the bug label 2026-04-24 23:57:17 +02:00
Author
Owner

@Vito0912 commented on GitHub (Dec 23, 2025):

Please include logs from the server side when you try to start this book.

Please also include the codec and container of that book

@Vito0912 commented on GitHub (Dec 23, 2025): Please include logs from the server side when you try to start this book. Please also include the codec and container of that book
Author
Owner

@bigbeka commented on GitHub (Dec 23, 2025):

Please read "What was the Problem?" for STDOUT of the server.

Codec and container (from VLC info):

Container: MP3
Codec MPEG Audio layer 1/2 (mpga)
Type Audio
Channels Mono
Sample rate 22050 Hz
Bits per sample 32
Bitrate 32 kb/s

NOTE: this book's codec and container information are identical to the books that DO play on the iOS app.

@bigbeka commented on GitHub (Dec 23, 2025): Please read "What was the Problem?" for STDOUT of the server. Codec and container (from VLC info): ``` Container: MP3 Codec MPEG Audio layer 1/2 (mpga) Type Audio Channels Mono Sample rate 22050 Hz Bits per sample 32 Bitrate 32 kb/s ``` NOTE: this book's codec and container information are identical to the books that DO play on the iOS app.
Author
Owner

@Vito0912 commented on GitHub (Dec 23, 2025):

STDOUT of the server.

You probably have a too high info level. Try to set the level to debug.

The app tries to make the request. See api request to api/items/341ce306-6f38-4c40-a83e-f332bc53f713/play failed

If there is any crash it should be reported.
Please also check if that item exists

@Vito0912 commented on GitHub (Dec 23, 2025): > STDOUT of the server. You probably have a too high info level. Try to set the level to debug. The app tries to make the request. See `api request to api/items/341ce306-6f38-4c40-a83e-f332bc53f713/play failed` If there is any crash it should be reported. Please also check if that item exists
Author
Owner

@bigbeka commented on GitHub (Dec 23, 2025):

@Vito0912 thank you for your reply, I described this in my original post, the items do exit in the folder and the audiobook in question plays perfectly in the browser.

Crash logs are empty, I checked /metadata/logs/crash_logs.txt

These are the WebGUI > Settings > Logs (with Debug level). As I press play on iOS, they repeat the same Debug message:

2025-12-23 12:14:27.238
DEBUG
[PlaybackSessionManager] startSessionRequest for device iPhone16,2 / v0.11.0
2025-12-23 12:14:27.238
INFO
[PlaybackSessionManager] startSession: Closing open session "Book123" for user "username" (Device: iPhone16,2 / v0.11.0)
2025-12-23 12:14:27.238
DEBUG
[PlaybackSessionManager] closeSession "193f4425-d2a9-4e2b-8545-46c2683375ff"
2025-12-23 12:14:27.239
DEBUG
[PlaybackSessionManager] Removed session "193f4425-d2a9-4e2b-8545-46c2683375ff"
2025-12-23 12:14:27.240
DEBUG
[PlaybackSessionManager] "username" starting direct play session for item "341ce306-6f38-4c40-a83e-f332bc53f713" with id 961e1565-eab8-4105-9171-1755cba09ec6 (Device: iPhone16,2 / v0.11.0)
2025-12-23 12:14:28.447
DEBUG
[PlaybackSessionManager] startSessionRequest for device iPhone16,2 / v0.11.0
2025-12-23 12:14:28.447
INFO
[PlaybackSessionManager] startSession: Closing open session "Book123" for user "username" (Device: iPhone16,2 / v0.11.0)
2025-12-23 12:14:28.447
DEBUG
[PlaybackSessionManager] closeSession "961e1565-eab8-4105-9171-1755cba09ec6"
2025-12-23 12:14:28.448
DEBUG
[PlaybackSessionManager] Removed session "961e1565-eab8-4105-9171-1755cba09ec6"
2025-12-23 12:14:28.448
DEBUG
[PlaybackSessionManager] "username" starting direct play session for item "341ce306-6f38-4c40-a83e-f332bc53f713" with id 373fc129-2dae-4e5e-a7aa-968c7960f41c (Device: iPhone16,2 / v0.11.0)
2025-12-23 12:14:30.087
DEBUG
[PlaybackSessionManager] startSessionRequest for device iPhone16,2 / v0.11.0
2025-12-23 12:14:30.088
INFO
[PlaybackSessionManager] startSession: Closing open session "Book123" for user "username" (Device: iPhone16,2 / v0.11.0)
2025-12-23 12:14:30.088
DEBUG
[PlaybackSessionManager] closeSession "373fc129-2dae-4e5e-a7aa-968c7960f41c"
2025-12-23 12:14:30.089
DEBUG
[PlaybackSessionManager] Removed session "373fc129-2dae-4e5e-a7aa-968c7960f41c"
2025-12-23 12:14:30.089
DEBUG
[PlaybackSessionManager] "username" starting direct play session for item "341ce306-6f38-4c40-a83e-f332bc53f713" with id 09c06379-6e56-46b1-84eb-69d9cb4b6da7 (Device: iPhone16,2 / v0.11.0)
2025-12-23 12:14:43.771
DEBUG
[PlaybackSessionManager] startSessionRequest for device iPhone16,2 / v0.11.0
2025-12-23 12:14:43.771
INFO
[PlaybackSessionManager] startSession: Closing open session "Book123" for user "username" (Device: iPhone16,2 / v0.11.0)
2025-12-23 12:14:43.771
DEBUG
[PlaybackSessionManager] closeSession "09c06379-6e56-46b1-84eb-69d9cb4b6da7"
2025-12-23 12:14:43.772
DEBUG
[PlaybackSessionManager] Removed session "09c06379-6e56-46b1-84eb-69d9cb4b6da7"
2025-12-23 12:14:43.772
DEBUG
[PlaybackSessionManager] "username" starting direct play session for item "341ce306-6f38-4c40-a83e-f332bc53f713" with id 39154300-8e48-4032-9ea4-527ee904a289 (Device: iPhone16,2 / v0.11.0)
@bigbeka commented on GitHub (Dec 23, 2025): @Vito0912 thank you for your reply, I described this in my original post, the items do exit in the folder and the audiobook in question plays perfectly in the browser. Crash logs are empty, I checked `/metadata/logs/crash_logs.txt` These are the WebGUI > Settings > Logs (with Debug level). As I press play on iOS, they repeat the same `Debug` message: ``` 2025-12-23 12:14:27.238 DEBUG [PlaybackSessionManager] startSessionRequest for device iPhone16,2 / v0.11.0 2025-12-23 12:14:27.238 INFO [PlaybackSessionManager] startSession: Closing open session "Book123" for user "username" (Device: iPhone16,2 / v0.11.0) 2025-12-23 12:14:27.238 DEBUG [PlaybackSessionManager] closeSession "193f4425-d2a9-4e2b-8545-46c2683375ff" 2025-12-23 12:14:27.239 DEBUG [PlaybackSessionManager] Removed session "193f4425-d2a9-4e2b-8545-46c2683375ff" 2025-12-23 12:14:27.240 DEBUG [PlaybackSessionManager] "username" starting direct play session for item "341ce306-6f38-4c40-a83e-f332bc53f713" with id 961e1565-eab8-4105-9171-1755cba09ec6 (Device: iPhone16,2 / v0.11.0) 2025-12-23 12:14:28.447 DEBUG [PlaybackSessionManager] startSessionRequest for device iPhone16,2 / v0.11.0 2025-12-23 12:14:28.447 INFO [PlaybackSessionManager] startSession: Closing open session "Book123" for user "username" (Device: iPhone16,2 / v0.11.0) 2025-12-23 12:14:28.447 DEBUG [PlaybackSessionManager] closeSession "961e1565-eab8-4105-9171-1755cba09ec6" 2025-12-23 12:14:28.448 DEBUG [PlaybackSessionManager] Removed session "961e1565-eab8-4105-9171-1755cba09ec6" 2025-12-23 12:14:28.448 DEBUG [PlaybackSessionManager] "username" starting direct play session for item "341ce306-6f38-4c40-a83e-f332bc53f713" with id 373fc129-2dae-4e5e-a7aa-968c7960f41c (Device: iPhone16,2 / v0.11.0) 2025-12-23 12:14:30.087 DEBUG [PlaybackSessionManager] startSessionRequest for device iPhone16,2 / v0.11.0 2025-12-23 12:14:30.088 INFO [PlaybackSessionManager] startSession: Closing open session "Book123" for user "username" (Device: iPhone16,2 / v0.11.0) 2025-12-23 12:14:30.088 DEBUG [PlaybackSessionManager] closeSession "373fc129-2dae-4e5e-a7aa-968c7960f41c" 2025-12-23 12:14:30.089 DEBUG [PlaybackSessionManager] Removed session "373fc129-2dae-4e5e-a7aa-968c7960f41c" 2025-12-23 12:14:30.089 DEBUG [PlaybackSessionManager] "username" starting direct play session for item "341ce306-6f38-4c40-a83e-f332bc53f713" with id 09c06379-6e56-46b1-84eb-69d9cb4b6da7 (Device: iPhone16,2 / v0.11.0) 2025-12-23 12:14:43.771 DEBUG [PlaybackSessionManager] startSessionRequest for device iPhone16,2 / v0.11.0 2025-12-23 12:14:43.771 INFO [PlaybackSessionManager] startSession: Closing open session "Book123" for user "username" (Device: iPhone16,2 / v0.11.0) 2025-12-23 12:14:43.771 DEBUG [PlaybackSessionManager] closeSession "09c06379-6e56-46b1-84eb-69d9cb4b6da7" 2025-12-23 12:14:43.772 DEBUG [PlaybackSessionManager] Removed session "09c06379-6e56-46b1-84eb-69d9cb4b6da7" 2025-12-23 12:14:43.772 DEBUG [PlaybackSessionManager] "username" starting direct play session for item "341ce306-6f38-4c40-a83e-f332bc53f713" with id 39154300-8e48-4032-9ea4-527ee904a289 (Device: iPhone16,2 / v0.11.0) ```
Author
Owner

@bigbeka commented on GitHub (Jan 3, 2026):

@Vito0912 did you get a chance to have a look at the more in-depth logs above? Do you need anything else?

@bigbeka commented on GitHub (Jan 3, 2026): @Vito0912 did you get a chance to have a look at the more in-depth logs above? Do you need anything else?
Author
Owner

@Vito0912 commented on GitHub (Jan 3, 2026):

No, not really. I know I asked some questions that you indirectly answered. I just wanted to be sure.

It seems like https://github.com/advplyr/audiobookshelf-app/blob/b2c2b625e3cf586562397f4c02e38059f2b8ef5c/ios/App/Shared/util/ApiClient.swift#L491 fails.

But the server correctly starts the session and should return it. I am not an iOS developer, so I do not understand the Swift code at all. From what it looks like to me, only a failed request should cause this to fail. Assuming you are on the newest ABS version, this should not be a problem, sorry.

I would suspect a bad codec that apple does not correctly support, but as it works in the browser this probably is no issue too.
The file is in MPEG-1 and MPEG-2 and not actually MPEG-3, which I am not sure, but as it is even older than MPEG-3 I assume it should be no problem too. The browser could support additional codecs, but is unlikley. Also ABS should transcode then instead of failing. So after all I have absolutely no clue

@Vito0912 commented on GitHub (Jan 3, 2026): No, not really. I know I asked some questions that you indirectly answered. I just wanted to be sure. It seems like https://github.com/advplyr/audiobookshelf-app/blob/b2c2b625e3cf586562397f4c02e38059f2b8ef5c/ios/App/Shared/util/ApiClient.swift#L491 fails. But the server correctly starts the session and should return it. I am not an iOS developer, so I do not understand the Swift code at all. From what it looks like to me, only a failed request should cause this to fail. Assuming you are on the newest ABS version, this should not be a problem, sorry. I would suspect a bad codec that apple does not correctly support, but as it works in the browser this probably is no issue too. The file is in MPEG-1 and MPEG-2 and not actually MPEG-3, which I am not sure, but as it is even older than MPEG-3 I assume it should be no problem too. The browser could support additional codecs, but is unlikley. Also ABS should transcode then instead of failing. So after all I have absolutely no clue
Author
Owner

@bigbeka commented on GitHub (Jan 3, 2026):

Thank you for looking into it and for your long reply.

I have two other iOS clients who use ABS (latest iOS TestFlight versions), they are also facing the same issue. This specific book is in a series, 1 of 7 other audio books, which were imported from the same source at the same time and they all played back normally. All other 6 audiobooks playback normally on iOS client and on webUI.

I will keep this issue open, maybe it will get resolved in the future.

@bigbeka commented on GitHub (Jan 3, 2026): Thank you for looking into it and for your long reply. I have two other iOS clients who use ABS (latest iOS TestFlight versions), they are also facing the same issue. This specific book is in a series, 1 of 7 other audio books, which were imported from the same source at the same time and they all played back normally. All other 6 audiobooks playback normally on iOS client and on webUI. I will keep this issue open, maybe it will get resolved in the future.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/audiobookshelf-app#1321