[Bug]: Logs - Error - Session Controller spams dozens of "Unable to find playback session with id=XYZ" logs when client is listening to audiobook #3288

Open
opened 2026-04-25 00:14:46 +02:00 by adam · 0 comments
Owner

Originally created by @Tossoutaccount42 on GitHub (Apr 3, 2026).

What happened?

I was messing around with an ebook rendering issue and used one of the two clear cache settings. Afterward, I happened upon the logs page and saw it was filling with dozens of "ERROR [SessionController] Unable to find playback session with id=XYZ" logs per second. There were likely tens of thousands of them before it went away on its own when the user stopped listening after around 30 minutes. Reboot, further cache clears, manually deleting various cache and log related folders, etc. did not fix it.

The issue later came back, only to disappear after I went to the listening tab and killed all sessions (side note, there were hundreds of sessions under this same user - seems like every time they open their tab, it counts as a "new" session despite being the same tab and not a new instance).

User device details:
Abs Web
2.33.1 iOS 18.7
Mobile Safari
Direct Play

Image

What did you expect to happen?

I would expect it not to submit dozens of these logs per second. It should attempt, receive an error response, and recreate a new session instead of attempting to fetch a non-existent one more than a few times.

Steps to reproduce the issue

  1. Clear cache while a user is listening using the device listed in the issue
  2. Observe logs

Audiobookshelf version

v2.33.1

How are you running audiobookshelf?

Docker

What OS is your Audiobookshelf server hosted from?

Windows

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

Safari on iOS

Logs


Additional Notes

No response

Originally created by @Tossoutaccount42 on GitHub (Apr 3, 2026). ### What happened? I was messing around with an ebook rendering issue and used one of the two clear cache settings. Afterward, I happened upon the logs page and saw it was filling with dozens of "ERROR [SessionController] Unable to find playback session with id=XYZ" logs per second. There were likely tens of thousands of them before it went away on its own when the user stopped listening after around 30 minutes. Reboot, further cache clears, manually deleting various cache and log related folders, etc. did not fix it. The issue later came back, only to disappear after I went to the listening tab and killed all sessions (side note, there were hundreds of sessions under this same user - seems like every time they open their tab, it counts as a "new" session despite being the same tab and not a new instance). User device details: Abs Web 2.33.1 iOS 18.7 Mobile Safari Direct Play <img width="1201" height="558" alt="Image" src="https://github.com/user-attachments/assets/68713cda-d776-40bf-be2e-44caf89e777c" /> ### What did you expect to happen? I would expect it not to submit dozens of these logs per second. It should attempt, receive an error response, and recreate a new session instead of attempting to fetch a non-existent one more than a few times. ### Steps to reproduce the issue 1. Clear cache while a user is listening using the device listed in the issue 2. Observe logs ### Audiobookshelf version v2.33.1 ### How are you running audiobookshelf? Docker ### What OS is your Audiobookshelf server hosted from? Windows ### If the issue is being seen in the UI, what browsers are you seeing the problem on? Safari on iOS ### Logs ```shell ``` ### Additional Notes _No response_
adam added the bug label 2026-04-25 00:14:46 +02:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/audiobookshelf#3288