[Bug]: Android client stop playback with "transport close" #2209

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

Originally created by @stereosoul on GitHub (Aug 25, 2024).

What happened?

Android client stop playback with "transport close"

What did you expect to happen?

Just listen my podcasts and lock screen on my phone,Playback stops.Web-client work fine on same device (Nothing phone 1,Android 14,app installed from google play)

Steps to reproduce the issue

  1. Open client, choose podcast, start playback
  2. Lock screen on my phone or just switch to another app
  3. Playback stop randomly

Audiobookshelf version

2.12.3

How are you running audiobookshelf?

Debian/PPA

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?

None

Logs

2024-08-25 19:08:33.071

INFO

[SocketAuthority] Socket zzBDNr2GzdIqUhPfAAA3 disconnected from client "root" after 27789ms (Reason: transport close)

2024-08-25 19:08:33.581

INFO

[SocketAuthority] Socket Connected MrUbD5k16AOC3HI4AAA7

2024-08-25 19:08:56.892

INFO

[SocketAuthority] Socket R_-8JP4Kh8lqK2C-AAA5 disconnected from client "root" after 44987ms (Reason: ping timeout)

2024-08-25 19:10:48.552

INFO

[SocketAuthority] Socket Connected DdVe9B9mXGs72aotAAA9

2024-08-25 19:10:57.987

INFO

[PlaybackSessionManager] startSession: Closing open session "Special. Жёлтый Ключ." for user "root" (Device: A063 SDK 34 / v0.9.76-beta)

2024-08-25 19:10:58.781

INFO

Received ping

2024-08-25 19:12:18.396

INFO

[SocketAuthority] Socket MrUbD5k16AOC3HI4AAA7 disconnected from client "root" after 224815ms (Reason: ping timeout)

2024-08-25 19:12:33.246

INFO

[SocketAuthority] Socket Connected 73XBQwpx50RPIb4TAAA_

2024-08-25 19:14:08.318

INFO

[SocketAuthority] Socket 73XBQwpx50RPIb4TAAA_ disconnected from client "root" after 95071ms (Reason: ping timeout)

2024-08-25 19:16:22.282

INFO

[SocketAuthority] Socket DdVe9B9mXGs72aotAAA9 disconnected from client "root" after 333730ms (Reason: client namespace disconnect)

2024-08-25 19:16:49.030

INFO

[SocketAuthority] Socket Connected n9KW88151bdPEXObAABB

2024-08-25 19:16:49.448

INFO

[PlaybackSessionManager] Syncing local session "564: Громкие журналистские расследования" (c397c9bd-ecef-432b-bd3d-edb6b1f84b24)

2024-08-25 19:17:24.240

INFO

[PlaybackSessionManager] startSession: Closing open session "564: Громкие журналистские расследования" for user "root" (Device: A063 SDK 34 / v0.9.76-beta)

2024-08-25 19:17:24.244

INFO

[PlaybackSessionManager] Starting session for user "root" and resetting progress for finished item "Ход Котами"

2024-08-25 19:17:25.002

INFO

Received ping

2024-08-25 19:17:27.658

INFO

[PlaybackSessionManager] startSession: Closing open session "Special. Жёлтый Ключ." for user "root" (Device: A063 SDK 34 / v0.9.76-beta)

2024-08-25 19:18:29.958

INFO

[SocketAuthority] Socket Connected tbye56gCn8p7c30-AABD

2024-08-25 19:18:32.495

INFO

[SocketAuthority] Socket tbye56gCn8p7c30-AABD disconnected from client "root" after 2537ms (Reason: transport close)

2024-08-25 19:18:49.308

INFO

[SocketAuthority] Socket n9KW88151bdPEXObAABB disconnected from client "root" after 120278ms (Reason: ping timeout)

2024-08-25 19:19:03.382

INFO

[SocketAuthority] Socket Connected UaS7d6xdhTEqtsi5AABF

2024-08-25 19:19:25.384

INFO

[SocketAuthority] Socket Connected z6nkcvfV4jx8WGO3AABH

2024-08-25 19:20:13.483

INFO

[SocketAuthority] Socket UaS7d6xdhTEqtsi5AABF disconnected from client "root" after 70100ms (Reason: ping timeout)

2024-08-25 19:20:17.107

INFO

[SocketAuthority] Socket Connected T0oupgkIB0ssTlHlAABJ

2024-08-25 19:20:18.356

INFO

[PlaybackSessionManager] startSession: Closing open session "564: Громкие журналистские расследования" for user "root" (Device: A063 SDK 34 / v0.9.76-beta)

2024-08-25 19:20:19.266

INFO

Received ping

2024-08-25 19:22:45.768

INFO

[SocketAuthority] Socket z6nkcvfV4jx8WGO3AABH disconnected from client "root" after 200385ms (Reason: transport close)

2024-08-25 19:22:46.204

INFO

[SocketAuthority] Socket Connected oGKXc5X3JuMsXIREAABL

2024-08-25 19:23:07.557

INFO

[SocketAuthority] Socket T0oupgkIB0ssTlHlAABJ disconnected from client "root" after 170451ms (Reason: ping timeout)

2024-08-25 19:30:31.557

INFO

[SocketAuthority] Socket Connected c5UlnfvDOa1f4WldAABN

2024-08-25 19:32:56.876

INFO

[SocketAuthority] Socket c5UlnfvDOa1f4WldAABN disconnected from client "root" after 145324ms (Reason: ping timeout)

Additional Notes

No response

Originally created by @stereosoul on GitHub (Aug 25, 2024). ### What happened? Android client stop playback with "transport close" ### What did you expect to happen? Just listen my podcasts and lock screen on my phone,Playback stops.Web-client work fine on same device (Nothing phone 1,Android 14,app installed from google play) ### Steps to reproduce the issue 1. Open client, choose podcast, start playback 2. Lock screen on my phone or just switch to another app 3. Playback stop randomly ### Audiobookshelf version 2.12.3 ### How are you running audiobookshelf? Debian/PPA ### 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? None ### Logs ```shell 2024-08-25 19:08:33.071 INFO [SocketAuthority] Socket zzBDNr2GzdIqUhPfAAA3 disconnected from client "root" after 27789ms (Reason: transport close) 2024-08-25 19:08:33.581 INFO [SocketAuthority] Socket Connected MrUbD5k16AOC3HI4AAA7 2024-08-25 19:08:56.892 INFO [SocketAuthority] Socket R_-8JP4Kh8lqK2C-AAA5 disconnected from client "root" after 44987ms (Reason: ping timeout) 2024-08-25 19:10:48.552 INFO [SocketAuthority] Socket Connected DdVe9B9mXGs72aotAAA9 2024-08-25 19:10:57.987 INFO [PlaybackSessionManager] startSession: Closing open session "Special. Жёлтый Ключ." for user "root" (Device: A063 SDK 34 / v0.9.76-beta) 2024-08-25 19:10:58.781 INFO Received ping 2024-08-25 19:12:18.396 INFO [SocketAuthority] Socket MrUbD5k16AOC3HI4AAA7 disconnected from client "root" after 224815ms (Reason: ping timeout) 2024-08-25 19:12:33.246 INFO [SocketAuthority] Socket Connected 73XBQwpx50RPIb4TAAA_ 2024-08-25 19:14:08.318 INFO [SocketAuthority] Socket 73XBQwpx50RPIb4TAAA_ disconnected from client "root" after 95071ms (Reason: ping timeout) 2024-08-25 19:16:22.282 INFO [SocketAuthority] Socket DdVe9B9mXGs72aotAAA9 disconnected from client "root" after 333730ms (Reason: client namespace disconnect) 2024-08-25 19:16:49.030 INFO [SocketAuthority] Socket Connected n9KW88151bdPEXObAABB 2024-08-25 19:16:49.448 INFO [PlaybackSessionManager] Syncing local session "564: Громкие журналистские расследования" (c397c9bd-ecef-432b-bd3d-edb6b1f84b24) 2024-08-25 19:17:24.240 INFO [PlaybackSessionManager] startSession: Closing open session "564: Громкие журналистские расследования" for user "root" (Device: A063 SDK 34 / v0.9.76-beta) 2024-08-25 19:17:24.244 INFO [PlaybackSessionManager] Starting session for user "root" and resetting progress for finished item "Ход Котами" 2024-08-25 19:17:25.002 INFO Received ping 2024-08-25 19:17:27.658 INFO [PlaybackSessionManager] startSession: Closing open session "Special. Жёлтый Ключ." for user "root" (Device: A063 SDK 34 / v0.9.76-beta) 2024-08-25 19:18:29.958 INFO [SocketAuthority] Socket Connected tbye56gCn8p7c30-AABD 2024-08-25 19:18:32.495 INFO [SocketAuthority] Socket tbye56gCn8p7c30-AABD disconnected from client "root" after 2537ms (Reason: transport close) 2024-08-25 19:18:49.308 INFO [SocketAuthority] Socket n9KW88151bdPEXObAABB disconnected from client "root" after 120278ms (Reason: ping timeout) 2024-08-25 19:19:03.382 INFO [SocketAuthority] Socket Connected UaS7d6xdhTEqtsi5AABF 2024-08-25 19:19:25.384 INFO [SocketAuthority] Socket Connected z6nkcvfV4jx8WGO3AABH 2024-08-25 19:20:13.483 INFO [SocketAuthority] Socket UaS7d6xdhTEqtsi5AABF disconnected from client "root" after 70100ms (Reason: ping timeout) 2024-08-25 19:20:17.107 INFO [SocketAuthority] Socket Connected T0oupgkIB0ssTlHlAABJ 2024-08-25 19:20:18.356 INFO [PlaybackSessionManager] startSession: Closing open session "564: Громкие журналистские расследования" for user "root" (Device: A063 SDK 34 / v0.9.76-beta) 2024-08-25 19:20:19.266 INFO Received ping 2024-08-25 19:22:45.768 INFO [SocketAuthority] Socket z6nkcvfV4jx8WGO3AABH disconnected from client "root" after 200385ms (Reason: transport close) 2024-08-25 19:22:46.204 INFO [SocketAuthority] Socket Connected oGKXc5X3JuMsXIREAABL 2024-08-25 19:23:07.557 INFO [SocketAuthority] Socket T0oupgkIB0ssTlHlAABJ disconnected from client "root" after 170451ms (Reason: ping timeout) 2024-08-25 19:30:31.557 INFO [SocketAuthority] Socket Connected c5UlnfvDOa1f4WldAABN 2024-08-25 19:32:56.876 INFO [SocketAuthority] Socket c5UlnfvDOa1f4WldAABN disconnected from client "root" after 145324ms (Reason: ping timeout) ``` ### Additional Notes _No response_
adam added the bug label 2026-04-25 00:04:58 +02:00
adam closed this issue 2026-04-25 00:04:58 +02:00
Author
Owner

@stereosoul commented on GitHub (Aug 26, 2024):

i just find, maybe its about cellurar 4g\5g in my locations, on home wifi6 network everything work fine.

@stereosoul commented on GitHub (Aug 26, 2024): i just find, maybe its about cellurar 4g\5g in my locations, on home wifi6 network everything work fine.
Author
Owner

@stereosoul commented on GitHub (Aug 26, 2024):

nope, on wifi issue exists
2024-08-26 18:48:38.568

INFO

[SocketAuthority] Socket ypFiwUfRElEO_xsCAABn disconnected from client "root" after 307176ms (Reason: transport close)

2024-08-26 18:53:35.829

INFO

Received ping

2024-08-26 18:53:46.451

INFO

[SocketAuthority] Socket Connected ynTwk80eLcYVvyZUAABp

2024-08-26 18:54:02.797

INFO

[SocketAuthority] Socket Connected 0rGnqHZvIKDKRgGLAABr

@stereosoul commented on GitHub (Aug 26, 2024): nope, on wifi issue exists 2024-08-26 18:48:38.568 INFO [SocketAuthority] Socket ypFiwUfRElEO_xsCAABn disconnected from client "root" after 307176ms (Reason: transport close) 2024-08-26 18:53:35.829 INFO Received ping 2024-08-26 18:53:46.451 INFO [SocketAuthority] Socket Connected ynTwk80eLcYVvyZUAABp 2024-08-26 18:54:02.797 INFO [SocketAuthority] Socket Connected 0rGnqHZvIKDKRgGLAABr
Author
Owner

@advplyr commented on GitHub (Aug 26, 2024):

This is normal behavior and shouldn't have anything to do with the audio stopping. Your device may be killing the audio in the background to save battery or something.

@advplyr commented on GitHub (Aug 26, 2024): This is normal behavior and shouldn't have anything to do with the audio stopping. Your device may be killing the audio in the background to save battery or something.
Author
Owner

@stereosoul commented on GitHub (Aug 26, 2024):

In iOS client its never happens, cellular or wifi.How can i prevent this on Android?No limitation on app on android system settings.

@stereosoul commented on GitHub (Aug 26, 2024): In iOS client its never happens, cellular or wifi.How can i prevent this on Android?No limitation on app on android system settings.
Author
Owner

@eric10k93 commented on GitHub (Aug 27, 2024):

I'm seeing these constant "ping timeout" and "transport close" issues as well since updating to the latest version of ABS. My Android apps won't even connect and I can strangely ONLY get the app to load in the browser through my reverse proxy... it won't load anything with the local IP address... I'm not sure if my problems are related to yours, but I'm seeing similar messages in the logs (and no crash reports or anything else helpful that I can find)

@eric10k93 commented on GitHub (Aug 27, 2024): I'm seeing these constant "ping timeout" and "transport close" issues as well since updating to the latest version of ABS. My Android apps won't even connect and I can strangely ONLY get the app to load in the browser through my reverse proxy... it won't load anything with the local IP address... I'm not sure if my problems are related to yours, but I'm seeing similar messages in the logs (and no crash reports or anything else helpful that I can find)
Author
Owner

@stereosoul commented on GitHub (Aug 28, 2024):

I deep checkout android settings and find about app batteri usage is restricted. I change it and everything ok now

@stereosoul commented on GitHub (Aug 28, 2024): I deep checkout android settings and find about app batteri usage is restricted. I change it and everything ok now
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/audiobookshelf#2209