[Bug]: Progress is lost or reset randomly #3301

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

Originally created by @kymahi on GitHub (Apr 14, 2026).

What happened?

This last instance was when I was using Android Auto. I was going through the different options on my car screen and accidentally started a new book while listening to one at the time. It started, and I went to my phone to start the other book again. However, when I started the book, even though it showed the correct progress on the book screen, it started the book over. Pausing it updated the progress on the book screen back to 0%.

What did you expect to happen?

When clicking on a book to play, to start the book at the current progress and not restart it

Steps to reproduce the issue

  1. Play book through Android Auto
  2. Select another book to play via Android Auto interface
  3. Select previously played book from phone interface (official app)

Audiobookshelf version

v2.33.1

How are you running audiobookshelf?

Docker

What OS is your Audiobookshelf server hosted from?

macOS

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

None

Logs

2026-04-14 19:16:00.089

DEBUG

[PlaybackSessionManager] Updated session for "Toradora!, Vol. 1" (f5ab907d-9e70-4426-9a39-07529e9cb45a)

2026-04-14 19:16:00.097

DEBUG

[ApiCacheManager] playbackSession.afterBulkUpdate: cleared user-progress cache slices (personalized=0, me=0)

2026-04-14 19:16:00.097

INFO

[PlaybackSessionManager] Updating progress for "Toradora!, Vol. 1" with current time 13599.346 (previously 13584.352)

2026-04-14 19:16:00.103

DEBUG

[ApiCacheManager] mediaProgress.afterUpdate: cleared user-progress cache slices (personalized=0, me=0)

2026-04-14 19:16:00.103

INFO

[MediaProgress] Manually setting updatedAt to '2026-04-14 19:15:59.209 +00:00' (media item 9e6b5ffb-1a1f-405a-9467-4f17cc322fa8)

2026-04-14 19:16:00.107

DEBUG

[SocketAuthority] clientEmitter - no clients found for user 168bcfb3-2606-42bc-9af3-217d5b06c1d2

2026-04-14 19:16:15.012

DEBUG

[PlaybackSessionManager] Updated session for "Toradora!, Vol. 1" (f5ab907d-9e70-4426-9a39-07529e9cb45a)

2026-04-14 19:16:15.018

DEBUG

[ApiCacheManager] playbackSession.afterBulkUpdate: cleared user-progress cache slices (personalized=0, me=0)

2026-04-14 19:16:15.018

INFO

[PlaybackSessionManager] Updating progress for "Toradora!, Vol. 1" with current time 13614.595 (previously 13599.346)

2026-04-14 19:16:15.022

DEBUG

[ApiCacheManager] mediaProgress.afterUpdate: cleared user-progress cache slices (personalized=0, me=0)

2026-04-14 19:16:15.022

INFO

[MediaProgress] Manually setting updatedAt to '2026-04-14 19:16:14.454 +00:00' (media item 9e6b5ffb-1a1f-405a-9467-4f17cc322fa8)

2026-04-14 19:16:15.025

DEBUG

[SocketAuthority] clientEmitter - no clients found for user 168bcfb3-2606-42bc-9af3-217d5b06c1d2

2026-04-14 19:16:29.885

DEBUG

[PlaybackSessionManager] Updated session for "Toradora!, Vol. 1" (f5ab907d-9e70-4426-9a39-07529e9cb45a)

2026-04-14 19:16:29.888

DEBUG

[ApiCacheManager] playbackSession.afterBulkUpdate: cleared user-progress cache slices (personalized=0, me=0)

2026-04-14 19:16:29.888

INFO

[PlaybackSessionManager] Updating progress for "Toradora!, Vol. 1" with current time 13629.352 (previously 13614.595)

2026-04-14 19:16:29.891

DEBUG

[ApiCacheManager] mediaProgress.afterUpdate: cleared user-progress cache slices (personalized=0, me=0)

2026-04-14 19:16:29.891

INFO

[MediaProgress] Manually setting updatedAt to '2026-04-14 19:16:29.210 +00:00' (media item 9e6b5ffb-1a1f-405a-9467-4f17cc322fa8)

2026-04-14 19:16:29.894

DEBUG

[SocketAuthority] clientEmitter - no clients found for user 168bcfb3-2606-42bc-9af3-217d5b06c1d2

2026-04-14 19:16:34.392

DEBUG

[FfmpegHelpers] Resize Image Cmd: ffmpeg -i /metadata/items/9f55b5ba-c39a-433c-af83-ec1da1f4d1d8/cover.jpg -y -vf scale=400:-1 /metadata/cache/covers/9f55b5ba-c39a-433c-af83-ec1da1f4d1d8_400.jpeg

2026-04-14 19:16:34.652

DEBUG

[FfmpegHelpers] Image resized Successfully

2026-04-14 19:16:40.323

DEBUG

[PlaybackSessionManager] Updated session for "Toradora!, Vol. 1" (f5ab907d-9e70-4426-9a39-07529e9cb45a)

2026-04-14 19:16:40.329

DEBUG

[ApiCacheManager] playbackSession.afterBulkUpdate: cleared user-progress cache slices (personalized=0, me=0)

2026-04-14 19:16:40.329

INFO

[PlaybackSessionManager] Updating progress for "Toradora!, Vol. 1" with current time 5.133 (previously 13629.352)

2026-04-14 19:16:40.333

DEBUG

[ApiCacheManager] mediaProgress.afterUpdate: cleared user-progress cache slices (personalized=0, me=0)

2026-04-14 19:16:40.333

INFO

[MediaProgress] Manually setting updatedAt to '2026-04-14 19:16:39.767 +00:00' (media item 9e6b5ffb-1a1f-405a-9467-4f17cc322fa8)

2026-04-14 19:16:40.335

DEBUG

[SocketAuthority] clientEmitter - no clients found for user 168bcfb3-2606-42bc-9af3-217d5b06c1d2

2026-04-14 19:16:53.158

INFO

[SocketAuthority] Socket Connected to /socket.io q3dPNY9gDW9ogr0XAAEy

2026-04-14 19:16:53.184

DEBUG

[SocketAuthority] Authenticating socket to user "kymahi"

2026-04-14 19:16:57.593

DEBUG

[PlaybackSessionManager] Inserting new session for "Toradora!, Vol. 1" (3a1c9447-90d0-4479-ae8b-4432bb3edbac)

2026-04-14 19:16:57.597

DEBUG

[ApiCacheManager] Array.afterUpsert: Clearing cache

2026-04-14 19:16:57.598

INFO

[PlaybackSessionManager] Updating progress for "Toradora!, Vol. 1" with current time 9.083 (previously 5.133)

Additional Notes

Unknown why the book started accidentally is not shown in the logs as being started

Originally created by @kymahi on GitHub (Apr 14, 2026). ### What happened? This last instance was when I was using Android Auto. I was going through the different options on my car screen and accidentally started a new book while listening to one at the time. It started, and I went to my phone to start the other book again. However, when I started the book, even though it showed the correct progress on the book screen, it started the book over. Pausing it updated the progress on the book screen back to 0%. ### What did you expect to happen? When clicking on a book to play, to start the book at the current progress and not restart it ### Steps to reproduce the issue 1. Play book through Android Auto 2. Select another book to play via Android Auto interface 3. Select previously played book from phone interface (official app) ### Audiobookshelf version v2.33.1 ### How are you running audiobookshelf? Docker ### What OS is your Audiobookshelf server hosted from? macOS ### If the issue is being seen in the UI, what browsers are you seeing the problem on? None ### Logs ```shell 2026-04-14 19:16:00.089 DEBUG [PlaybackSessionManager] Updated session for "Toradora!, Vol. 1" (f5ab907d-9e70-4426-9a39-07529e9cb45a) 2026-04-14 19:16:00.097 DEBUG [ApiCacheManager] playbackSession.afterBulkUpdate: cleared user-progress cache slices (personalized=0, me=0) 2026-04-14 19:16:00.097 INFO [PlaybackSessionManager] Updating progress for "Toradora!, Vol. 1" with current time 13599.346 (previously 13584.352) 2026-04-14 19:16:00.103 DEBUG [ApiCacheManager] mediaProgress.afterUpdate: cleared user-progress cache slices (personalized=0, me=0) 2026-04-14 19:16:00.103 INFO [MediaProgress] Manually setting updatedAt to '2026-04-14 19:15:59.209 +00:00' (media item 9e6b5ffb-1a1f-405a-9467-4f17cc322fa8) 2026-04-14 19:16:00.107 DEBUG [SocketAuthority] clientEmitter - no clients found for user 168bcfb3-2606-42bc-9af3-217d5b06c1d2 2026-04-14 19:16:15.012 DEBUG [PlaybackSessionManager] Updated session for "Toradora!, Vol. 1" (f5ab907d-9e70-4426-9a39-07529e9cb45a) 2026-04-14 19:16:15.018 DEBUG [ApiCacheManager] playbackSession.afterBulkUpdate: cleared user-progress cache slices (personalized=0, me=0) 2026-04-14 19:16:15.018 INFO [PlaybackSessionManager] Updating progress for "Toradora!, Vol. 1" with current time 13614.595 (previously 13599.346) 2026-04-14 19:16:15.022 DEBUG [ApiCacheManager] mediaProgress.afterUpdate: cleared user-progress cache slices (personalized=0, me=0) 2026-04-14 19:16:15.022 INFO [MediaProgress] Manually setting updatedAt to '2026-04-14 19:16:14.454 +00:00' (media item 9e6b5ffb-1a1f-405a-9467-4f17cc322fa8) 2026-04-14 19:16:15.025 DEBUG [SocketAuthority] clientEmitter - no clients found for user 168bcfb3-2606-42bc-9af3-217d5b06c1d2 2026-04-14 19:16:29.885 DEBUG [PlaybackSessionManager] Updated session for "Toradora!, Vol. 1" (f5ab907d-9e70-4426-9a39-07529e9cb45a) 2026-04-14 19:16:29.888 DEBUG [ApiCacheManager] playbackSession.afterBulkUpdate: cleared user-progress cache slices (personalized=0, me=0) 2026-04-14 19:16:29.888 INFO [PlaybackSessionManager] Updating progress for "Toradora!, Vol. 1" with current time 13629.352 (previously 13614.595) 2026-04-14 19:16:29.891 DEBUG [ApiCacheManager] mediaProgress.afterUpdate: cleared user-progress cache slices (personalized=0, me=0) 2026-04-14 19:16:29.891 INFO [MediaProgress] Manually setting updatedAt to '2026-04-14 19:16:29.210 +00:00' (media item 9e6b5ffb-1a1f-405a-9467-4f17cc322fa8) 2026-04-14 19:16:29.894 DEBUG [SocketAuthority] clientEmitter - no clients found for user 168bcfb3-2606-42bc-9af3-217d5b06c1d2 2026-04-14 19:16:34.392 DEBUG [FfmpegHelpers] Resize Image Cmd: ffmpeg -i /metadata/items/9f55b5ba-c39a-433c-af83-ec1da1f4d1d8/cover.jpg -y -vf scale=400:-1 /metadata/cache/covers/9f55b5ba-c39a-433c-af83-ec1da1f4d1d8_400.jpeg 2026-04-14 19:16:34.652 DEBUG [FfmpegHelpers] Image resized Successfully 2026-04-14 19:16:40.323 DEBUG [PlaybackSessionManager] Updated session for "Toradora!, Vol. 1" (f5ab907d-9e70-4426-9a39-07529e9cb45a) 2026-04-14 19:16:40.329 DEBUG [ApiCacheManager] playbackSession.afterBulkUpdate: cleared user-progress cache slices (personalized=0, me=0) 2026-04-14 19:16:40.329 INFO [PlaybackSessionManager] Updating progress for "Toradora!, Vol. 1" with current time 5.133 (previously 13629.352) 2026-04-14 19:16:40.333 DEBUG [ApiCacheManager] mediaProgress.afterUpdate: cleared user-progress cache slices (personalized=0, me=0) 2026-04-14 19:16:40.333 INFO [MediaProgress] Manually setting updatedAt to '2026-04-14 19:16:39.767 +00:00' (media item 9e6b5ffb-1a1f-405a-9467-4f17cc322fa8) 2026-04-14 19:16:40.335 DEBUG [SocketAuthority] clientEmitter - no clients found for user 168bcfb3-2606-42bc-9af3-217d5b06c1d2 2026-04-14 19:16:53.158 INFO [SocketAuthority] Socket Connected to /socket.io q3dPNY9gDW9ogr0XAAEy 2026-04-14 19:16:53.184 DEBUG [SocketAuthority] Authenticating socket to user "kymahi" 2026-04-14 19:16:57.593 DEBUG [PlaybackSessionManager] Inserting new session for "Toradora!, Vol. 1" (3a1c9447-90d0-4479-ae8b-4432bb3edbac) 2026-04-14 19:16:57.597 DEBUG [ApiCacheManager] Array.afterUpsert: Clearing cache 2026-04-14 19:16:57.598 INFO [PlaybackSessionManager] Updating progress for "Toradora!, Vol. 1" with current time 9.083 (previously 5.133) ``` ### Additional Notes Unknown why the book started accidentally is not shown in the logs as being started
adam added the bug label 2026-04-25 00:14:50 +02:00
Author
Owner

@Vito0912 commented on GitHub (Apr 14, 2026):

Android Auto is bugged.

Progress is only synced if you have not an open session (so mini player). If you have a session from before, either listening to the phone, or starting via Auto, any new starting trough Android Auto will not sync at all

@Vito0912 commented on GitHub (Apr 14, 2026): Android Auto is bugged. Progress is only synced if you have not an open session (so mini player). If you have a session from before, either listening to the phone, or starting via Auto, any new starting trough Android Auto will not sync at all
Author
Owner

@seh-len commented on GitHub (Apr 17, 2026):

Audiobookshelf also contributes to the fact that the listening experience is, at best, suboptimal when listening on different devices. For example, if I start a session on the web and want to continue it in the Android app, the Android app initially shows the correct progress after I open it, but when I click play, the Android app jumps back to the last position I listened to in the app instead of continuing from the position of the web session, which it had correctly saved. For some reason, the Android app prioritizes its own progress over that from the web session. This can really only be a small bug with a big impact.

@seh-len commented on GitHub (Apr 17, 2026): Audiobookshelf also contributes to the fact that the listening experience is, at best, suboptimal when listening on different devices. For example, if I start a session on the web and want to continue it in the Android app, the Android app initially shows the correct progress after I open it, but when I click play, the Android app jumps back to the last position I listened to in the app instead of continuing from the position of the web session, which it had correctly saved. For some reason, the Android app prioritizes its own progress over that from the web session. This can really only be a small bug with a big impact.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/audiobookshelf#3301