iOS Audiobook plays automatically at night without any user interaction #937

Closed
opened 2026-04-24 23:43:34 +02:00 by adam · 5 comments
Owner

Originally created by @neilasiii on GitHub (Apr 4, 2024).

Steps to reproduce

  1. Listen to ABS during the day.
  2. Stop book and close the app
  3. iPhone plugged into charger next to bed
  4. Around 0200+- audiobook starts playing with phone locked and inactive for 4+ hours.
  5. Lock Screen widget doesn't work to stop the book.
  6. Only way to stop the book if force close the app.

Expected behaviour

  • book should only play with user interaction.

Actual behaviour

  • book plays most nights around 0200 after hours of non use without user interaction. Only way to stop it from playing is to force close the app.

  • For a while I suspected there was something weird happening after Proxmox runs backups of my VM (hosting ABS). Backup occurs at 0100. But I had the same issue while I had backups turned off.

Environment data

Audiobookshelf Version: docker v2.8.1 on Ubuntu 22.04

  • Android App?
  • iOS App?

Android Issue

Android version:

Device model:

Stock or customized system:

iOS Issue

iOS Version: 17.3.1

iPhone model: 12

Originally created by @neilasiii on GitHub (Apr 4, 2024). ### Steps to reproduce 1. Listen to ABS during the day. 2. Stop book and close the app 2. iPhone plugged into charger next to bed 3. Around 0200+- audiobook starts playing with phone locked and inactive for 4+ hours. 5. Lock Screen widget doesn't work to stop the book. 6. Only way to stop the book if force close the app. ### Expected behaviour - book should only play with user interaction. ### Actual behaviour - book plays most nights around 0200 after hours of non use without user interaction. Only way to stop it from playing is to force close the app. - For a while I suspected there was something weird happening after Proxmox runs backups of my VM (hosting ABS). Backup occurs at 0100. But I had the same issue while I had backups turned off. ### Environment data Audiobookshelf Version: docker v2.8.1 on Ubuntu 22.04 - [ ] Android App? - [x] iOS App? #### Android Issue Android version: Device model: Stock or customized system: #### iOS Issue iOS Version: 17.3.1 iPhone model: 12
adam added the bugiOS labels 2026-04-24 23:43:34 +02:00
adam closed this issue 2026-04-24 23:43:34 +02:00
Author
Owner

@neilasiii commented on GitHub (Apr 4, 2024):

Upon further inspection, two sessions show up in the Listening sessions section for this event:

image

In addition these are the server logs for this session:

[2024-04-04 02:34:08.040] DEBUG: [ApiCacheManager] count: 0 size: 0 (ApiCacheManager.js:39)
[2024-04-04 02:34:08.043] DEBUG: [ApiCacheManager] Cache miss: {"user":"neilasiii","url":"/libraries"} (ApiCacheManager.js:50)
[2024-04-04 02:34:08.125] DEBUG: [ApiCacheManager] count: 1 size: 1019 (ApiCacheManager.js:39)
[2024-04-04 02:34:08.135] DEBUG: Loaded filterdata in 0.01s (libraryFilters.js:517)
[2024-04-04 02:34:08.137] DEBUG: [ApiCacheManager] Cache miss: {"user":"neilasiii","url":"/libraries/a18fe13d-afd5-4fc4-b091-01763b996108?include=filterdata"} (ApiCacheManager.js:50)
[2024-04-04 02:34:08.163] DEBUG: [PlaybackSessionManager] Updated session for "A Game of Thrones" (C5E616DD-4CB5-42EF-86A2-FD694EE296BA) (PlaybackSessionManager.js:150)
[2024-04-04 02:34:08.175] DEBUG: [ApiCacheManager] Object.afterBulkUpdate: Clearing cache (ApiCacheManager.js:21)
[2024-04-04 02:34:08.176] DEBUG: [PlaybackSessionManager] Updating progress for "A Game of Thrones" with current time 79141.527098817 (previously 79141.527098817) (PlaybackSessionManager.js:165)
[2024-04-04 02:34:08.187] DEBUG: [ApiCacheManager] Array.afterUpsert: Clearing cache (ApiCacheManager.js:21)
[2024-04-04 02:34:08.188] DEBUG: [SocketAuthority] clientEmitter - no clients found for user 9cf4d27f-e491-48ef-ba44-70d2e486566a (SocketAuthority.js:58)
[2024-04-04 02:34:08.189] INFO: [SocketAuthority] Socket Connected DkrOHj-WUYHyFP0rAABt
[2024-04-04 02:34:08.213] DEBUG: [ApiCacheManager] count: 0 size: 0 (ApiCacheManager.js:39)
[2024-04-04 02:34:08.225] DEBUG: [SocketAuthority] User Online neilasiii (SocketAuthority.js:204)
[2024-04-04 02:34:08.245] DEBUG: Loaded 1 of 1 items for "Continue Listening/Reading" in 0.03s (LibraryItem.js:611)
[2024-04-04 02:34:08.255] INFO: [PlaybackSessionManager] Syncing local session "A Game of Thrones" (C5E616DD-4CB5-42EF-86A2-FD694EE296BA)
[2024-04-04 02:34:08.256] DEBUG: Loaded 0 of 0 items for "Continue Series" in 0.01s (LibraryItem.js:628)
[2024-04-04 02:34:08.276] DEBUG: Loaded 10 of 60 items for "Recently Added" in 0.02s (LibraryItem.js:658)
[2024-04-04 02:34:08.282] DEBUG: [PlaybackSessionManager] Updated session for "A Game of Thrones" (C5E616DD-4CB5-42EF-86A2-FD694EE296BA) (PlaybackSessionManager.js:150)
[2024-04-04 02:34:08.299] DEBUG: [ApiCacheManager] Object.afterBulkUpdate: Clearing cache (ApiCacheManager.js:21)
[2024-04-04 02:34:08.300] DEBUG: [PlaybackSessionManager] Updating progress for "A Game of Thrones" with current time 79141.527098817 (previously 79141.527098817) (PlaybackSessionManager.js:165)
[2024-04-04 02:34:08.314] DEBUG: [ApiCacheManager] Array.afterUpsert: Clearing cache (ApiCacheManager.js:21)
[2024-04-04 02:34:08.331] DEBUG: Loaded 5 of 12 series for "Recent Series" in 0.06s (LibraryItem.js:674)
[2024-04-04 02:34:08.359] DEBUG: Loaded 10 of 12 items for "Discover" in 0.03s (LibraryItem.js:689)
[2024-04-04 02:34:08.373] DEBUG: Loaded 7 of 7 items for "Listen/Read Again" in 0.01s (LibraryItem.js:720)
[2024-04-04 02:34:08.378] DEBUG: Loaded 1 of 1 authors for "Newest Authors" in 0.01s (LibraryItem.js:736)
[2024-04-04 02:34:08.379] DEBUG: Loaded 6 personalized shelves in 0.16s (LibraryItem.js:739)
[2024-04-04 02:34:08.379] DEBUG: [ApiCacheManager] Cache miss: {"user":"neilasiii","url":"/libraries/a18fe13d-afd5-4fc4-b091-01763b996108/personalized?minified=1&include=rssfeed,numEpisodesIncomplete"} (ApiCacheManager.js:50)
[2024-04-04 02:34:08.379] DEBUG: [ApiCacheManager] Caching with 1800000 ms TTL (ApiCacheManager.js:53)
[2024-04-04 02:36:43.898] DEBUG: [PlaybackSessionManager] Inserting new session for "A Game of Thrones" (745B8CA0-5686-4144-9DD9-C9BCD1D41984) (PlaybackSessionManager.js:141)
[2024-04-04 02:36:43.918] DEBUG: [ApiCacheManager] playbackSession.afterCreate: Clearing cache (ApiCacheManager.js:21)
[2024-04-04 02:36:43.918] DEBUG: [PlaybackSessionManager] Updating progress for "A Game of Thrones" with current time 79141.527098817 (previously 79141.527098817) (PlaybackSessionManager.js:165)
[2024-04-04 02:36:43.933] DEBUG: [ApiCacheManager] Array.afterUpsert: Clearing cache (ApiCacheManager.js:21)
[2024-04-04 02:36:46.239] DEBUG: [PlaybackSessionManager] Updated session for "A Game of Thrones" (745B8CA0-5686-4144-9DD9-C9BCD1D41984) (PlaybackSessionManager.js:150)
[2024-04-04 02:36:46.253] DEBUG: [ApiCacheManager] Object.afterBulkUpdate: Clearing cache (ApiCacheManager.js:21)
[2024-04-04 02:36:46.253] DEBUG: [PlaybackSessionManager] Updating progress for "A Game of Thrones" with current time 79144.289355277 (previously 79141.527098817) (PlaybackSessionManager.js:165)
[2024-04-04 02:36:46.265] DEBUG: [ApiCacheManager] Array.afterUpsert: Clearing cache (ApiCacheManager.js:21)
[2024-04-04 02:36:58.299] DEBUG: [SocketAuthority] User Offline neilasiii (SocketAuthority.js:131)
[2024-04-04 02:36:58.299] INFO: [SocketAuthority] Socket DkrOHj-WUYHyFP0rAABt disconnected from client "neilasiii" after 170110ms (Reason: transport close)
@neilasiii commented on GitHub (Apr 4, 2024): Upon further inspection, two sessions show up in the Listening sessions section for this event: ![image](https://github.com/advplyr/audiobookshelf-app/assets/17012908/72e7470a-6b2a-42e9-85a8-096c69c05d77) In addition these are the server logs for this session: ``` [2024-04-04 02:34:08.040] DEBUG: [ApiCacheManager] count: 0 size: 0 (ApiCacheManager.js:39) [2024-04-04 02:34:08.043] DEBUG: [ApiCacheManager] Cache miss: {"user":"neilasiii","url":"/libraries"} (ApiCacheManager.js:50) [2024-04-04 02:34:08.125] DEBUG: [ApiCacheManager] count: 1 size: 1019 (ApiCacheManager.js:39) [2024-04-04 02:34:08.135] DEBUG: Loaded filterdata in 0.01s (libraryFilters.js:517) [2024-04-04 02:34:08.137] DEBUG: [ApiCacheManager] Cache miss: {"user":"neilasiii","url":"/libraries/a18fe13d-afd5-4fc4-b091-01763b996108?include=filterdata"} (ApiCacheManager.js:50) [2024-04-04 02:34:08.163] DEBUG: [PlaybackSessionManager] Updated session for "A Game of Thrones" (C5E616DD-4CB5-42EF-86A2-FD694EE296BA) (PlaybackSessionManager.js:150) [2024-04-04 02:34:08.175] DEBUG: [ApiCacheManager] Object.afterBulkUpdate: Clearing cache (ApiCacheManager.js:21) [2024-04-04 02:34:08.176] DEBUG: [PlaybackSessionManager] Updating progress for "A Game of Thrones" with current time 79141.527098817 (previously 79141.527098817) (PlaybackSessionManager.js:165) [2024-04-04 02:34:08.187] DEBUG: [ApiCacheManager] Array.afterUpsert: Clearing cache (ApiCacheManager.js:21) [2024-04-04 02:34:08.188] DEBUG: [SocketAuthority] clientEmitter - no clients found for user 9cf4d27f-e491-48ef-ba44-70d2e486566a (SocketAuthority.js:58) [2024-04-04 02:34:08.189] INFO: [SocketAuthority] Socket Connected DkrOHj-WUYHyFP0rAABt [2024-04-04 02:34:08.213] DEBUG: [ApiCacheManager] count: 0 size: 0 (ApiCacheManager.js:39) [2024-04-04 02:34:08.225] DEBUG: [SocketAuthority] User Online neilasiii (SocketAuthority.js:204) [2024-04-04 02:34:08.245] DEBUG: Loaded 1 of 1 items for "Continue Listening/Reading" in 0.03s (LibraryItem.js:611) [2024-04-04 02:34:08.255] INFO: [PlaybackSessionManager] Syncing local session "A Game of Thrones" (C5E616DD-4CB5-42EF-86A2-FD694EE296BA) [2024-04-04 02:34:08.256] DEBUG: Loaded 0 of 0 items for "Continue Series" in 0.01s (LibraryItem.js:628) [2024-04-04 02:34:08.276] DEBUG: Loaded 10 of 60 items for "Recently Added" in 0.02s (LibraryItem.js:658) [2024-04-04 02:34:08.282] DEBUG: [PlaybackSessionManager] Updated session for "A Game of Thrones" (C5E616DD-4CB5-42EF-86A2-FD694EE296BA) (PlaybackSessionManager.js:150) [2024-04-04 02:34:08.299] DEBUG: [ApiCacheManager] Object.afterBulkUpdate: Clearing cache (ApiCacheManager.js:21) [2024-04-04 02:34:08.300] DEBUG: [PlaybackSessionManager] Updating progress for "A Game of Thrones" with current time 79141.527098817 (previously 79141.527098817) (PlaybackSessionManager.js:165) [2024-04-04 02:34:08.314] DEBUG: [ApiCacheManager] Array.afterUpsert: Clearing cache (ApiCacheManager.js:21) [2024-04-04 02:34:08.331] DEBUG: Loaded 5 of 12 series for "Recent Series" in 0.06s (LibraryItem.js:674) [2024-04-04 02:34:08.359] DEBUG: Loaded 10 of 12 items for "Discover" in 0.03s (LibraryItem.js:689) [2024-04-04 02:34:08.373] DEBUG: Loaded 7 of 7 items for "Listen/Read Again" in 0.01s (LibraryItem.js:720) [2024-04-04 02:34:08.378] DEBUG: Loaded 1 of 1 authors for "Newest Authors" in 0.01s (LibraryItem.js:736) [2024-04-04 02:34:08.379] DEBUG: Loaded 6 personalized shelves in 0.16s (LibraryItem.js:739) [2024-04-04 02:34:08.379] DEBUG: [ApiCacheManager] Cache miss: {"user":"neilasiii","url":"/libraries/a18fe13d-afd5-4fc4-b091-01763b996108/personalized?minified=1&include=rssfeed,numEpisodesIncomplete"} (ApiCacheManager.js:50) [2024-04-04 02:34:08.379] DEBUG: [ApiCacheManager] Caching with 1800000 ms TTL (ApiCacheManager.js:53) [2024-04-04 02:36:43.898] DEBUG: [PlaybackSessionManager] Inserting new session for "A Game of Thrones" (745B8CA0-5686-4144-9DD9-C9BCD1D41984) (PlaybackSessionManager.js:141) [2024-04-04 02:36:43.918] DEBUG: [ApiCacheManager] playbackSession.afterCreate: Clearing cache (ApiCacheManager.js:21) [2024-04-04 02:36:43.918] DEBUG: [PlaybackSessionManager] Updating progress for "A Game of Thrones" with current time 79141.527098817 (previously 79141.527098817) (PlaybackSessionManager.js:165) [2024-04-04 02:36:43.933] DEBUG: [ApiCacheManager] Array.afterUpsert: Clearing cache (ApiCacheManager.js:21) [2024-04-04 02:36:46.239] DEBUG: [PlaybackSessionManager] Updated session for "A Game of Thrones" (745B8CA0-5686-4144-9DD9-C9BCD1D41984) (PlaybackSessionManager.js:150) [2024-04-04 02:36:46.253] DEBUG: [ApiCacheManager] Object.afterBulkUpdate: Clearing cache (ApiCacheManager.js:21) [2024-04-04 02:36:46.253] DEBUG: [PlaybackSessionManager] Updating progress for "A Game of Thrones" with current time 79144.289355277 (previously 79141.527098817) (PlaybackSessionManager.js:165) [2024-04-04 02:36:46.265] DEBUG: [ApiCacheManager] Array.afterUpsert: Clearing cache (ApiCacheManager.js:21) [2024-04-04 02:36:58.299] DEBUG: [SocketAuthority] User Offline neilasiii (SocketAuthority.js:131) [2024-04-04 02:36:58.299] INFO: [SocketAuthority] Socket DkrOHj-WUYHyFP0rAABt disconnected from client "neilasiii" after 170110ms (Reason: transport close) ```
Author
Owner

@advplyr commented on GitHub (Apr 7, 2024):

This is only for downloaded books?

@advplyr commented on GitHub (Apr 7, 2024): This is only for downloaded books?
Author
Owner

@neilasiii commented on GitHub (Apr 7, 2024):

This is only for downloaded books?

I think so, it's only the last played downloaded book

@neilasiii commented on GitHub (Apr 7, 2024): > This is only for downloaded books? I think so, it's only the last played downloaded book
Author
Owner

@advplyr commented on GitHub (Jun 17, 2024):

Is this resolved now on the latest release?

@advplyr commented on GitHub (Jun 17, 2024): Is this resolved now on the latest release?
Author
Owner

@neilasiii commented on GitHub (Jun 18, 2024):

I believe so. I haven’t noticed it happening again. ThanksSent from my iPhoneOn Jun 17, 2024, at 17:47, advplyr @.***> wrote:
Is this resolved now on the latest release?

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>

@neilasiii commented on GitHub (Jun 18, 2024): I believe so. I haven’t noticed it happening again. ThanksSent from my iPhoneOn Jun 17, 2024, at 17:47, advplyr ***@***.***> wrote: Is this resolved now on the latest release? —Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: ***@***.***>
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/audiobookshelf-app#937