[Bug]: Intermittent listening session sync issues #996

Open
opened 2026-04-24 23:45:18 +02:00 by adam · 2 comments
Owner

Originally created by @valdearg on GitHub (Jul 19, 2024).

What was the Problem?

After having the ABS app open, when I playback the video sometimes it stops syncing the history with the server. Selecting the History for the book will give the time syncs as an error.

Checking the server logs, I'm not actually seeing these responses logged in the DEBUG log.

Screenshot_20240719_120343_Audiobookshelf

You can see in the above screenshot the error icons. I was wondering if it might be possible to either make the error icon so that when you tap on the icon, it provides an error message.

The most recent successful sync there happens when I close down the app and re-open the the audiobook.

This however leads to a bit of a weird situation where it syncs up and gives the incorrect time listened. The actual amount history point however is correct:

image

I'd be impressed if I managed to listen to 94 hours!

Steps to Reproduce the Issue

I'm currently trying to replicate this on a more reliable basis, with this being intermittent I don't always notice it. I'm wondering if it might be either:

  1. Resuming the audiobook when in Android Auto.
  2. Something with my nginx website publishing?
  3. Some token expiring?

What was Expected?

Sync each time

Phone Model

Samsung Galaxy S23 Ultra

Phone OS

Android 14

Audiobookshelf App Version

Android App - 0.9.74

Installation Source

Google Play Store

Additional Notes

No response

Originally created by @valdearg on GitHub (Jul 19, 2024). ### What was the Problem? After having the ABS app open, when I playback the video sometimes it stops syncing the history with the server. Selecting the History for the book will give the time syncs as an error. Checking the server logs, I'm not actually seeing these responses logged in the DEBUG log. ![Screenshot_20240719_120343_Audiobookshelf](https://github.com/user-attachments/assets/d766280a-8399-4712-8557-088d210d661c) You can see in the above screenshot the error icons. I was wondering if it might be possible to either make the error icon so that when you tap on the icon, it provides an error message. The most recent successful sync there happens when I close down the app and re-open the the audiobook. This however leads to a bit of a weird situation where it syncs up and gives the incorrect time listened. The actual amount history point however is correct: ![image](https://github.com/user-attachments/assets/e999afd0-5317-4a82-a112-164f27f7d6b3) I'd be impressed if I managed to listen to 94 hours! ### Steps to Reproduce the Issue I'm currently trying to replicate this on a more reliable basis, with this being intermittent I don't always notice it. I'm wondering if it might be either: 1. Resuming the audiobook when in Android Auto. 2. Something with my nginx website publishing? 3. Some token expiring? ### What was Expected? Sync each time ### Phone Model Samsung Galaxy S23 Ultra ### Phone OS Android 14 ### Audiobookshelf App Version Android App - 0.9.74 ### Installation Source Google Play Store ### Additional Notes _No response_
adam added the bugandroidprogress sync labels 2026-04-24 23:45:18 +02:00
Author
Owner

@nichwall commented on GitHub (Jul 19, 2024):

The error is "the sync didn't go through", so for some reason the server was not reachable (could be poor signal, something is up with the reverse proxy, websocket is closing, etc). If you are listening in offline mode then there is no cloud. There is a PR currently open to help with reporting on the history page, because only the most recent sync status is shown for all of the sequential "Save" icons (there could be 99 good syncs and then 1 bad sync, making you think all 100 syncs were bad). https://github.com/advplyr/audiobookshelf-app/pull/1257

Reopening the app forces a sync with the server.

Listening sessions are planned to be reworked (how long you were listening), but not sure on a timetable for that. It has been discussed more in Discord, but a few related issues:
https://github.com/advplyr/audiobookshelf# /issues/2548
https://github.com/advplyr/audiobookshelf/issues/2565

@nichwall commented on GitHub (Jul 19, 2024): The error is "the sync didn't go through", so for some reason the server was not reachable (could be poor signal, something is up with the reverse proxy, websocket is closing, etc). If you are listening in offline mode then there is no cloud. There is a PR currently open to help with reporting on the history page, because only the most recent sync status is shown for all of the sequential "Save" icons (there could be 99 good syncs and then 1 bad sync, making you think all 100 syncs were bad). https://github.com/advplyr/audiobookshelf-app/pull/1257 Reopening the app forces a sync with the server. Listening sessions are planned to be reworked (how long you were listening), but not sure on a timetable for that. It has been discussed more in Discord, but a few related issues: https://github.com/advplyr/audiobookshelf# /issues/2548 https://github.com/advplyr/audiobookshelf/issues/2565
Author
Owner

@valdearg commented on GitHub (Jul 21, 2024):

Yeah, like I said, that much is obvious but saying why would be really helpful for diagnosing the issue.

@valdearg commented on GitHub (Jul 21, 2024): Yeah, like I said, that much is obvious but saying why would be really helpful for diagnosing the issue.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/audiobookshelf-app#996