[Bug]: Playback progress no longer saved #2251

Closed
opened 2026-04-25 00:05:27 +02:00 by adam · 5 comments
Owner

Originally created by @Unending on GitHub (Sep 11, 2024).

What happened?

When playing an audiobook the progress is no longer saved. When stopping playback (not pause) and resuming, it starts playback back at the beginning instead of where it was last stopped.

What did you expect to happen?

Playback to resume from where last left off.

Steps to reproduce the issue

  1. Start playback (t=X)
  2. Stop playback at a later time (t=Y)
  3. Start playback again. Player starts at t=X instead of t=Y

Audiobookshelf version

v2.13.4

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?

Safari

Logs

No response

Additional Notes

  • Issue reproduced in v2.13.0, .1, .2, .3 and .4. Downgrading to v2.12.3 fixes this issue.
  • Tried multiple browsers (Safari, Chrome, Firefox)
Originally created by @Unending on GitHub (Sep 11, 2024). ### What happened? When playing an audiobook the progress is no longer saved. When stopping playback (not pause) and resuming, it starts playback back at the beginning instead of where it was last stopped. ### What did you expect to happen? Playback to resume from where last left off. ### Steps to reproduce the issue 1. Start playback (t=X) 2. Stop playback at a later time (t=Y) 3. Start playback again. Player starts at t=X instead of t=Y ### Audiobookshelf version v2.13.4 ### 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? Safari ### Logs _No response_ ### Additional Notes - Issue reproduced in v2.13.0, .1, .2, .3 and .4. Downgrading to v2.12.3 fixes this issue. - Tried multiple browsers (Safari, Chrome, Firefox)
adam added the bug label 2026-04-25 00:05:27 +02:00
adam closed this issue 2026-04-25 00:05:27 +02:00
Author
Owner

@advplyr commented on GitHub (Sep 11, 2024):

Is this happening with multiple different books?

Do you see any errors in the logs?

@advplyr commented on GitHub (Sep 11, 2024): Is this happening with multiple different books? Do you see any errors in the logs?
Author
Owner

@Unending commented on GitHub (Sep 11, 2024):

Yes, every book I tried, unplayed, finished and in-progress books. I'm not getting anything useful in the logs:

2024-09-11 17:29:53.724 DEBUG [PlaybackSessionManager] startSessionRequest for device Mac OS 10.15.7 / Safari
2024-09-11 17:29:53.727 DEBUG [PlaybackSessionManager] "user" starting direct play session for item "db33fc5d-68d7-4c80-870b-a47da8b635f1" with id e7b9c05c-331b-48e3-8702-0803595c7ffd (Device: Mac OS 10.15.7 / Safari)
2024-09-11 17:30:02.558 DEBUG [PlaybackSessionManager] closeSession "e7b9c05c-331b-48e3-8702-0803595c7ffd"
2024-09-11 17:30:02.560 DEBUG [PlaybackSessionManager] Removed session "e7b9c05c-331b-48e3-8702-0803595c7ffd"
2024-09-11 17:30:20.167 DEBUG [PlaybackSessionManager] startSessionRequest for device Mac OS 10.15.7 / Safari
2024-09-11 17:30:20.169 DEBUG [PlaybackSessionManager] "user" starting direct play session for item "db33fc5d-68d7-4c80-870b-a47da8b635f1" with id 95c04341-f668-4fbb-a11b-0cf863aeafd7 (Device: Mac OS 10.15.7 / Safari)
2024-09-11 17:30:30.044 DEBUG [PlaybackSessionManager] closeSession "95c04341-f668-4fbb-a11b-0cf863aeafd7"
2024-09-11 17:30:30.047 DEBUG [PlaybackSessionManager] Removed session "95c04341-f668-4fbb-a11b-0cf863aeafd7"
@Unending commented on GitHub (Sep 11, 2024): Yes, every book I tried, unplayed, finished and in-progress books. I'm not getting anything useful in the logs: ``` 2024-09-11 17:29:53.724 DEBUG [PlaybackSessionManager] startSessionRequest for device Mac OS 10.15.7 / Safari 2024-09-11 17:29:53.727 DEBUG [PlaybackSessionManager] "user" starting direct play session for item "db33fc5d-68d7-4c80-870b-a47da8b635f1" with id e7b9c05c-331b-48e3-8702-0803595c7ffd (Device: Mac OS 10.15.7 / Safari) 2024-09-11 17:30:02.558 DEBUG [PlaybackSessionManager] closeSession "e7b9c05c-331b-48e3-8702-0803595c7ffd" 2024-09-11 17:30:02.560 DEBUG [PlaybackSessionManager] Removed session "e7b9c05c-331b-48e3-8702-0803595c7ffd" 2024-09-11 17:30:20.167 DEBUG [PlaybackSessionManager] startSessionRequest for device Mac OS 10.15.7 / Safari 2024-09-11 17:30:20.169 DEBUG [PlaybackSessionManager] "user" starting direct play session for item "db33fc5d-68d7-4c80-870b-a47da8b635f1" with id 95c04341-f668-4fbb-a11b-0cf863aeafd7 (Device: Mac OS 10.15.7 / Safari) 2024-09-11 17:30:30.044 DEBUG [PlaybackSessionManager] closeSession "95c04341-f668-4fbb-a11b-0cf863aeafd7" 2024-09-11 17:30:30.047 DEBUG [PlaybackSessionManager] Removed session "95c04341-f668-4fbb-a11b-0cf863aeafd7" ```
Author
Owner

@Unending commented on GitHub (Sep 11, 2024):

Logs for finished book, for which progress stays finished:

2024-09-11 17:22:36.839 DEBUG [PlaybackSessionManager] startSessionRequest for device Mac OS 10.15.7 / Safari
2024-09-11 17:22:36.841 INFO [PlaybackSessionManager] Starting session for user "user" and resetting progress for finished item "audiobook"
2024-09-11 17:22:36.842 DEBUG [PlaybackSessionManager] "user" starting direct play session for item "8c23e066-19be-4407-9019-21bd0608351c" with id a1624cd9-2b0c-4414-ab92-d384d6cee225 (Device: Mac OS 10.15.7 / Safari)
2024-09-11 17:22:41.042 DEBUG [PlaybackSessionManager] closeSession "a1624cd9-2b0c-4414-ab92-d384d6cee225"
2024-09-11 17:22:41.044 DEBUG [PlaybackSessionManager] Removed session "a1624cd9-2b0c-4414-ab92-d384d6cee225"
2024-09-11 17:22:42.427 DEBUG [PlaybackSessionManager] startSessionRequest for device Mac OS 10.15.7 / Safari
2024-09-11 17:22:42.428 INFO [PlaybackSessionManager] Starting session for user "user" and resetting progress for finished item "audiobook"
2024-09-11 17:22:42.428 DEBUG [PlaybackSessionManager] "user" starting direct play session for item "8c23e066-19be-4407-9019-21bd0608351c" with id f3f41a5d-8d97-4b24-aa78-d67f023f9457 (Device: Mac OS 10.15.7 / Safari)
2024-09-11 17:22:44.981 DEBUG [PlaybackSessionManager] closeSession "f3f41a5d-8d97-4b24-aa78-d67f023f9457"
2024-09-11 17:22:44.983 DEBUG [PlaybackSessionManager] Removed session "f3f41a5d-8d97-4b24-aa78-d67f023f9457"
@Unending commented on GitHub (Sep 11, 2024): Logs for finished book, for which progress stays finished: ``` 2024-09-11 17:22:36.839 DEBUG [PlaybackSessionManager] startSessionRequest for device Mac OS 10.15.7 / Safari 2024-09-11 17:22:36.841 INFO [PlaybackSessionManager] Starting session for user "user" and resetting progress for finished item "audiobook" 2024-09-11 17:22:36.842 DEBUG [PlaybackSessionManager] "user" starting direct play session for item "8c23e066-19be-4407-9019-21bd0608351c" with id a1624cd9-2b0c-4414-ab92-d384d6cee225 (Device: Mac OS 10.15.7 / Safari) 2024-09-11 17:22:41.042 DEBUG [PlaybackSessionManager] closeSession "a1624cd9-2b0c-4414-ab92-d384d6cee225" 2024-09-11 17:22:41.044 DEBUG [PlaybackSessionManager] Removed session "a1624cd9-2b0c-4414-ab92-d384d6cee225" 2024-09-11 17:22:42.427 DEBUG [PlaybackSessionManager] startSessionRequest for device Mac OS 10.15.7 / Safari 2024-09-11 17:22:42.428 INFO [PlaybackSessionManager] Starting session for user "user" and resetting progress for finished item "audiobook" 2024-09-11 17:22:42.428 DEBUG [PlaybackSessionManager] "user" starting direct play session for item "8c23e066-19be-4407-9019-21bd0608351c" with id f3f41a5d-8d97-4b24-aa78-d67f023f9457 (Device: Mac OS 10.15.7 / Safari) 2024-09-11 17:22:44.981 DEBUG [PlaybackSessionManager] closeSession "f3f41a5d-8d97-4b24-aa78-d67f023f9457" 2024-09-11 17:22:44.983 DEBUG [PlaybackSessionManager] Removed session "f3f41a5d-8d97-4b24-aa78-d67f023f9457" ```
Author
Owner

@advplyr commented on GitHub (Sep 11, 2024):

Are you listening in the web client? If I play the book in the web client I can see the progress updating on the page. It takes 30 seconds for the first sync to happen. Then I close the book and re-open and it opens at the same spot.

It appears you are only testing on a 3rd party client. Try using the web client and try playing a book you've not yet played on the 3rd part client.

@advplyr commented on GitHub (Sep 11, 2024): Are you listening in the web client? If I play the book in the web client I can see the progress updating on the page. It takes 30 seconds for the first sync to happen. Then I close the book and re-open and it opens at the same spot. It appears you are only testing on a 3rd party client. Try using the web client and try playing a book you've not yet played on the 3rd part client.
Author
Owner

@Unending commented on GitHub (Sep 11, 2024):

I did run into this issue when using a third party client but tested it in the web client to confirm. The logs provided are from the web client.

I was unaware it took 30 seconds of real time to sync, even when skipping around.

@Unending commented on GitHub (Sep 11, 2024): I did run into this issue when using a third party client but tested it in the web client to confirm. The logs provided are from the web client. I was unaware it took 30 seconds of real time to sync, even when skipping around.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/audiobookshelf#2251