[Bug]: Book not playing in Firefox on Linux #2749

Closed
opened 2026-04-25 00:10:11 +02:00 by adam · 6 comments
Owner

Originally created by @realredknight on GitHub (May 5, 2025).

What happened?

On clicking the play-Button in Firefox on Linux (Ubuntu/deb-install, not snap) the play-Icon morphs to the "Sync"-Icon. Playback never starts. On the Backend, my Container uses 100% CPU at that moment. Closing the Player-div or the tab immediately ends the CPU-Burn

Firefox on windows plays the File perfectly. The Android App 0.9.81 plays the file perfectly. Firefox Versions match on Windows and linux.

After checking the support channel on discord, I open this ticket as the Server Log states "Direct play" for the file.

What did you expect to happen?

The file should be played on linux too

Steps to reproduce the issue

  1. Open the web interface
  2. Click play

Audiobookshelf version

v2.21.0

How are you running audiobookshelf?

Docker

What OS is your Audiobookshelf server hosted from?

Other (list in "Additional Notes" box)

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

Firefox

Logs

{"timestamp":"2025-05-05 04:33:56.338","source":"ApiCacheManager.js:48","message":"[ApiCacheManager] count: 3 size: 138126","levelName":"DEBUG","level":1}
{"timestamp":"2025-05-05 04:33:56.338","source":"ApiCacheManager.js:51","message":"[ApiCacheManager] Cache hit: {\"user\":\"prof\",\"url\":\"/libraries\"}","levelName":"DEBUG","level":1}
{"timestamp":"2025-05-05 04:33:56.618","source":"SocketAuthority.js:175","message":"[SocketAuthority] Socket Connected to /audiobookshelf/socket.io I6jNZh5BBkgIoA4xAAAV","levelName":"INFO","level":2}
{"timestamp":"2025-05-05 04:33:56.641","source":"SocketAuthority.js:268","message":"[SocketAuthority] User Online prof","levelName":"DEBUG","level":1}
{"timestamp":"2025-05-05 04:34:15.881","source":"ApiCacheManager.js:20","message":"[ApiCacheManager] Object.afterBulkUpdate: Clearing cache","levelName":"DEBUG","level":1}
{"timestamp":"2025-05-05 04:34:15.882","source":"PlaybackSessionManager.js:76","message":"[PlaybackSessionManager] startSessionRequest for device Windows 10 / Firefox","levelName":"DEBUG","level":1}
{"timestamp":"2025-05-05 04:34:15.884","source":"PlaybackSessionManager.js:311","message":"[PlaybackSessionManager] startSession: Closing open session \"Leviathan fällt\" for user \"prof\" (Device: Windows 10 / Firefox)","levelName":"INFO","level":2}
{"timestamp":"2025-05-05 04:34:16.424","source":"ApiCacheManager.js:20","message":"[ApiCacheManager] Object.afterBulkUpdate: Clearing cache","levelName":"DEBUG","level":1}
{"timestamp":"2025-05-05 04:34:16.425","source":"PlaybackSessionManager.js:421","message":"[PlaybackSessionManager] closeSession \"7819d911-03bf-4267-b638-d01daacbe108\"","levelName":"DEBUG","level":1}
{"timestamp":"2025-05-05 04:34:16.427","source":"PlaybackSessionManager.js:449","message":"[PlaybackSessionManager] Removed session \"7819d911-03bf-4267-b638-d01daacbe108\"","levelName":"DEBUG","level":1}
{"timestamp":"2025-05-05 04:34:16.432","source":"PlaybackSessionManager.js:334","message":"[PlaybackSessionManager] \"prof\" starting direct play session for item \"abd53b1e-26dc-44ae-accb-802878ca066d\" with id 34344fd1-e8d3-4219-980a-2675982e96f5 (Device: Windows 10 / Firefox)","levelName":"DEBUG","level":1}
{"timestamp":"2025-05-05 04:35:06.452","source":"PlaybackSessionManager.js:383","message":"[PlaybackSessionManager] syncSession \"34344fd1-e8d3-4219-980a-2675982e96f5\" (Device: Windows 10 / Firefox) | Total Time Listened: 0","levelName":"DEBUG","level":1}
{"timestamp":"2025-05-05 04:35:07.832","source":"ApiCacheManager.js:20","message":"[ApiCacheManager] mediaProgress.afterUpdate: Clearing cache","levelName":"DEBUG","level":1}
{"timestamp":"2025-05-05 04:56:54.493","source":"ApiCacheManager.js:48","message":"[ApiCacheManager] count: 0 size: 0","levelName":"DEBUG","level":1}
{"timestamp":"2025-05-05 04:56:54.837","source":"libraryFilters.js:622","message":"Filter data for 837558a8-49c6-4932-b3e2-ad95675858f8 has not changed, returning cached data and updating cache time after 0.34s","levelName":"DEBUG","level":1}
{"timestamp":"2025-05-05 04:56:54.843","source":"ApiCacheManager.js:59","message":"[ApiCacheManager] Cache miss: {\"user\":\"prof\",\"url\":\"/libraries/837558a8-49c6-4932-b3e2-ad95675858f8?include=filterdata\"}","levelName":"DEBUG","level":1}
{"timestamp":"2025-05-05 04:56:54.935","source":"ApiCacheManager.js:48","message":"[ApiCacheManager] count: 1 size: 15830","levelName":"DEBUG","level":1}
{"timestamp":"2025-05-05 04:56:55.003","source":"LibraryItem.js:373","message":"Loaded 1 of 1 items for \"Continue Listening/Reading\" in 0.06s","levelName":"DEBUG","level":1}
{"timestamp":"2025-05-05 04:56:55.248","source":"LibraryItem.js:390","message":"Loaded 3 of 3 items for \"Continue Series\" in 0.24s","levelName":"DEBUG","level":1}
{"timestamp":"2025-05-05 04:56:55.360","source":"LibraryItem.js:420","message":"Loaded 10 of 39 items for \"Recently Added\" in 0.11s","levelName":"DEBUG","level":1}
{"timestamp":"2025-05-05 04:56:55.561","source":"LibraryItem.js:436","message":"Loaded 5 of 9 series for \"Recent Series\" in 0.20s","levelName":"DEBUG","level":1}
{"timestamp":"2025-05-05 04:56:55.754","source":"LibraryItem.js:451","message":"Loaded 10 of 120 items for \"Discover\" in 0.19s","levelName":"DEBUG","level":1}
{"timestamp":"2025-05-05 04:56:55.812","source":"LibraryItem.js:484","message":"Loaded 10 of 51 items for \"Listen/Read Again\" in 0.06s","levelName":"DEBUG","level":1}
{"timestamp":"2025-05-05 04:56:55.832","source":"LibraryItem.js:500","message":"Loaded 10 of 16 authors for \"Newest Authors\" in 0.02s","levelName":"DEBUG","level":1}
{"timestamp":"2025-05-05 04:56:55.832","source":"LibraryItem.js:503","message":"Loaded 7 personalized shelves in 0.89s","levelName":"DEBUG","level":1}
{"timestamp":"2025-05-05 04:56:55.835","source":"ApiCacheManager.js:59","message":"[ApiCacheManager] Cache miss: {\"user\":\"prof\",\"url\":\"/libraries/837558a8-49c6-4932-b3e2-ad95675858f8/personalized?include=rssfeed,numEpisodesIncomplete,share\"}","levelName":"DEBUG","level":1}
{"timestamp":"2025-05-05 04:56:55.835","source":"ApiCacheManager.js:62","message":"[ApiCacheManager] Caching with 1800000 ms TTL","levelName":"DEBUG","level":1}

Additional Notes

ABS Container is running on my Synology NAS, technically Linux

I attached a log of my server with one playback on Linux (04:33 GMT) and one playback on Windows (04:56 GMT).

Originally created by @realredknight on GitHub (May 5, 2025). ### What happened? On clicking the play-Button in Firefox on Linux (Ubuntu/deb-install, not snap) the play-Icon morphs to the "Sync"-Icon. Playback never starts. On the Backend, my Container uses 100% CPU at that moment. Closing the Player-div or the tab immediately ends the CPU-Burn Firefox on windows plays the File perfectly. The Android App 0.9.81 plays the file perfectly. Firefox Versions match on Windows and linux. After checking the support channel on discord, I open this ticket as the Server Log states "Direct play" for the file. ### What did you expect to happen? The file should be played on linux too ### Steps to reproduce the issue 1. Open the web interface 2. Click play ### Audiobookshelf version v2.21.0 ### How are you running audiobookshelf? Docker ### What OS is your Audiobookshelf server hosted from? Other (list in "Additional Notes" box) ### If the issue is being seen in the UI, what browsers are you seeing the problem on? Firefox ### Logs ```shell {"timestamp":"2025-05-05 04:33:56.338","source":"ApiCacheManager.js:48","message":"[ApiCacheManager] count: 3 size: 138126","levelName":"DEBUG","level":1} {"timestamp":"2025-05-05 04:33:56.338","source":"ApiCacheManager.js:51","message":"[ApiCacheManager] Cache hit: {\"user\":\"prof\",\"url\":\"/libraries\"}","levelName":"DEBUG","level":1} {"timestamp":"2025-05-05 04:33:56.618","source":"SocketAuthority.js:175","message":"[SocketAuthority] Socket Connected to /audiobookshelf/socket.io I6jNZh5BBkgIoA4xAAAV","levelName":"INFO","level":2} {"timestamp":"2025-05-05 04:33:56.641","source":"SocketAuthority.js:268","message":"[SocketAuthority] User Online prof","levelName":"DEBUG","level":1} {"timestamp":"2025-05-05 04:34:15.881","source":"ApiCacheManager.js:20","message":"[ApiCacheManager] Object.afterBulkUpdate: Clearing cache","levelName":"DEBUG","level":1} {"timestamp":"2025-05-05 04:34:15.882","source":"PlaybackSessionManager.js:76","message":"[PlaybackSessionManager] startSessionRequest for device Windows 10 / Firefox","levelName":"DEBUG","level":1} {"timestamp":"2025-05-05 04:34:15.884","source":"PlaybackSessionManager.js:311","message":"[PlaybackSessionManager] startSession: Closing open session \"Leviathan fällt\" for user \"prof\" (Device: Windows 10 / Firefox)","levelName":"INFO","level":2} {"timestamp":"2025-05-05 04:34:16.424","source":"ApiCacheManager.js:20","message":"[ApiCacheManager] Object.afterBulkUpdate: Clearing cache","levelName":"DEBUG","level":1} {"timestamp":"2025-05-05 04:34:16.425","source":"PlaybackSessionManager.js:421","message":"[PlaybackSessionManager] closeSession \"7819d911-03bf-4267-b638-d01daacbe108\"","levelName":"DEBUG","level":1} {"timestamp":"2025-05-05 04:34:16.427","source":"PlaybackSessionManager.js:449","message":"[PlaybackSessionManager] Removed session \"7819d911-03bf-4267-b638-d01daacbe108\"","levelName":"DEBUG","level":1} {"timestamp":"2025-05-05 04:34:16.432","source":"PlaybackSessionManager.js:334","message":"[PlaybackSessionManager] \"prof\" starting direct play session for item \"abd53b1e-26dc-44ae-accb-802878ca066d\" with id 34344fd1-e8d3-4219-980a-2675982e96f5 (Device: Windows 10 / Firefox)","levelName":"DEBUG","level":1} {"timestamp":"2025-05-05 04:35:06.452","source":"PlaybackSessionManager.js:383","message":"[PlaybackSessionManager] syncSession \"34344fd1-e8d3-4219-980a-2675982e96f5\" (Device: Windows 10 / Firefox) | Total Time Listened: 0","levelName":"DEBUG","level":1} {"timestamp":"2025-05-05 04:35:07.832","source":"ApiCacheManager.js:20","message":"[ApiCacheManager] mediaProgress.afterUpdate: Clearing cache","levelName":"DEBUG","level":1} {"timestamp":"2025-05-05 04:56:54.493","source":"ApiCacheManager.js:48","message":"[ApiCacheManager] count: 0 size: 0","levelName":"DEBUG","level":1} {"timestamp":"2025-05-05 04:56:54.837","source":"libraryFilters.js:622","message":"Filter data for 837558a8-49c6-4932-b3e2-ad95675858f8 has not changed, returning cached data and updating cache time after 0.34s","levelName":"DEBUG","level":1} {"timestamp":"2025-05-05 04:56:54.843","source":"ApiCacheManager.js:59","message":"[ApiCacheManager] Cache miss: {\"user\":\"prof\",\"url\":\"/libraries/837558a8-49c6-4932-b3e2-ad95675858f8?include=filterdata\"}","levelName":"DEBUG","level":1} {"timestamp":"2025-05-05 04:56:54.935","source":"ApiCacheManager.js:48","message":"[ApiCacheManager] count: 1 size: 15830","levelName":"DEBUG","level":1} {"timestamp":"2025-05-05 04:56:55.003","source":"LibraryItem.js:373","message":"Loaded 1 of 1 items for \"Continue Listening/Reading\" in 0.06s","levelName":"DEBUG","level":1} {"timestamp":"2025-05-05 04:56:55.248","source":"LibraryItem.js:390","message":"Loaded 3 of 3 items for \"Continue Series\" in 0.24s","levelName":"DEBUG","level":1} {"timestamp":"2025-05-05 04:56:55.360","source":"LibraryItem.js:420","message":"Loaded 10 of 39 items for \"Recently Added\" in 0.11s","levelName":"DEBUG","level":1} {"timestamp":"2025-05-05 04:56:55.561","source":"LibraryItem.js:436","message":"Loaded 5 of 9 series for \"Recent Series\" in 0.20s","levelName":"DEBUG","level":1} {"timestamp":"2025-05-05 04:56:55.754","source":"LibraryItem.js:451","message":"Loaded 10 of 120 items for \"Discover\" in 0.19s","levelName":"DEBUG","level":1} {"timestamp":"2025-05-05 04:56:55.812","source":"LibraryItem.js:484","message":"Loaded 10 of 51 items for \"Listen/Read Again\" in 0.06s","levelName":"DEBUG","level":1} {"timestamp":"2025-05-05 04:56:55.832","source":"LibraryItem.js:500","message":"Loaded 10 of 16 authors for \"Newest Authors\" in 0.02s","levelName":"DEBUG","level":1} {"timestamp":"2025-05-05 04:56:55.832","source":"LibraryItem.js:503","message":"Loaded 7 personalized shelves in 0.89s","levelName":"DEBUG","level":1} {"timestamp":"2025-05-05 04:56:55.835","source":"ApiCacheManager.js:59","message":"[ApiCacheManager] Cache miss: {\"user\":\"prof\",\"url\":\"/libraries/837558a8-49c6-4932-b3e2-ad95675858f8/personalized?include=rssfeed,numEpisodesIncomplete,share\"}","levelName":"DEBUG","level":1} {"timestamp":"2025-05-05 04:56:55.835","source":"ApiCacheManager.js:62","message":"[ApiCacheManager] Caching with 1800000 ms TTL","levelName":"DEBUG","level":1} ``` ### Additional Notes ABS Container is running on my Synology NAS, technically Linux I attached a log of my server with one playback on Linux (04:33 GMT) and one playback on Windows (04:56 GMT).
adam added the bug label 2026-04-25 00:10:11 +02:00
adam closed this issue 2026-04-25 00:10:11 +02:00
Author
Owner

@nichwall commented on GitHub (May 5, 2025):

What is the file format and codec? Is this true for all files or only certain ones?

@nichwall commented on GitHub (May 5, 2025): What is the file format and codec? Is this true for all files or only certain ones?
Author
Owner

@realredknight commented on GitHub (May 5, 2025):

Container .oga (OGG Audio), Codec Opus 32kbit.

In my sample, Books with less then 85 MB AND only one file will play

@realredknight commented on GitHub (May 5, 2025): Container .oga (OGG Audio), Codec Opus 32kbit. In my sample, Books with less then 85 MB AND only one file will play
Author
Owner

@realredknight commented on GitHub (May 5, 2025):

Addendum: This is getting weird. After 5 minutes the last checked Book started playing. Even though I was logged out at that time

@realredknight commented on GitHub (May 5, 2025): Addendum: This is getting weird. After 5 minutes the last checked Book started playing. Even though I was logged out at that time
Author
Owner

@realredknight commented on GitHub (May 20, 2025):

I understand this is "unable to reproduce". Although I'd like to solve this, so I'd appreciate some hints like which logs could be of value or if I can do anything to narrow this down

@realredknight commented on GitHub (May 20, 2025): I understand this is "unable to reproduce". Although I'd like to solve this, so I'd appreciate some hints like which logs could be of value or if I can do anything to narrow this down
Author
Owner

@advplyr commented on GitHub (May 20, 2025):

You can check the logs in the browser console. Abs uses the browser audio player

@advplyr commented on GitHub (May 20, 2025): You can check the logs in the browser console. Abs uses the browser audio player
Author
Owner

@realredknight commented on GitHub (Jul 20, 2025):

As of 2.26.1 , this is gone

@realredknight commented on GitHub (Jul 20, 2025): As of 2.26.1 , this is gone
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/audiobookshelf#2749