jellyfin / jellyfin

The Free Software Media System
https://jellyfin.org
GNU General Public License v2.0
35.14k stars 3.19k forks source link

[Issue]: Android connects first time only. After close, will not reconnect. #11463

Closed caeci11ius closed 6 months ago

caeci11ius commented 6 months ago

Please describe your bug

I'm having a problem with the Jellyfin Android app. When I connect the first time, it works great. Playback is successful and the UI displays as expected.

If I close the app by swiping it upwards in the task switcher or it is otherwise terminated, it will not reconnect and displays the message "Connection cannot be established. Please check the hostname and your network connection."

If I erase the app storage, it will then reconnect again one time only.

The web-ui and other clients such as Jellyfin Media Player (MacOS) + Jellyfin for WebOS (thanks so much for this one!!!) are working as expected.

Debug logs attached. Note I have removed messages using Grep of the following kinds to try to clean them up a little for you:

Reproduction Steps

  1. Using Jellyfin Unstable 2024042905 Docker Image (also two prior weekly versions) via Traefik 3RC5
  2. Connect to https://server
  3. Login to the server (successful)
  4. Swipe up on the task switcher, then swipe the Jellyfin app up to close
  5. Reopen the app. The connect to server screen appears. Press connect and note that the error message is displayed and connection cannot be made.
  6. Open the app info page for jellyfin in Android. Erase the app storage. Reopen the app and note that it will now connect again (once). Problem returns upon close.

Jellyfin Version

Unstable (master branch)

if other:

No response

Environment

- OS: Ubuntu 24.04
- Linux Kernel: 6.8.0-31-generic
- Virtualization: Docker
- Clients: Android
- Browser: N/A
- FFmpeg Version: N/A
- Playback Method: N/A
- Hardware Acceleration: N/A
- GPU Model: N/A
- Plugins: N/A
- Reverse Proxy: Traefik
- Base URL: none
- Networking: Bridge
- Storage: Local

Jellyfin logs

Working initial connection:

[2024-04-29 23:11:03.935 +10:00] [DBG] [3] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: "CustomAuthentication" was not authenticated.
[2024-04-29 23:11:03.936 +10:00] [DBG] [3] Jellyfin.Networking.Manager.NetworkManager: Trying to get bind address for source "192.168.9.1" - External: False
[2024-04-29 23:11:03.936 +10:00] [DBG] [3] Jellyfin.Networking.Manager.NetworkManager: "192.168.9.1": No matching bind address override found
[2024-04-29 23:11:03.936 +10:00] [DBG] [3] Jellyfin.Networking.Manager.NetworkManager: "192.168.9.1": Internal request received, matching internal bind address found: "127.0.0.1"
[2024-04-29 23:11:04.156 +10:00] [DBG] [31] Jellyfin.Api.Middleware.BaseUrlRedirectionMiddleware: Normalizing an URL at "/"
[2024-04-29 23:11:04.157 +10:00] [DBG] [31] Jellyfin.Api.Middleware.BaseUrlRedirectionMiddleware: Redirecting to "web/"
[2024-04-29 23:11:04.415 +10:00] [DBG] [8] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: "CustomAuthentication" was not authenticated.
[2024-04-29 23:11:04.415 +10:00] [DBG] [8] Jellyfin.Networking.Manager.NetworkManager: Trying to get bind address for source "192.168.9.1" - External: False
[2024-04-29 23:11:04.415 +10:00] [DBG] [8] Jellyfin.Networking.Manager.NetworkManager: "192.168.9.1": No matching bind address override found
[2024-04-29 23:11:04.415 +10:00] [DBG] [8] Jellyfin.Networking.Manager.NetworkManager: "192.168.9.1": Internal request received, matching internal bind address found: "127.0.0.1"
[2024-04-29 23:11:04.576 +10:00] [DBG] [28] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: "CustomAuthentication" was not authenticated.
[2024-04-29 23:11:04.576 +10:00] [DBG] [28] Jellyfin.Networking.Manager.NetworkManager: Trying to get bind address for source "192.168.9.1" - External: False
[2024-04-29 23:11:04.576 +10:00] [DBG] [28] Jellyfin.Networking.Manager.NetworkManager: "192.168.9.1": No matching bind address override found
[2024-04-29 23:11:04.576 +10:00] [DBG] [28] Jellyfin.Networking.Manager.NetworkManager: "192.168.9.1": Internal request received, matching internal bind address found: "127.0.0.1"
[2024-04-29 23:11:04.630 +10:00] [DBG] [8] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: "CustomAuthentication" was not authenticated.
[2024-04-29 23:11:04.683 +10:00] [DBG] [31] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: "CustomAuthentication" was not authenticated.
[2024-04-29 23:11:04.683 +10:00] [DBG] [31] Jellyfin.Networking.Manager.NetworkManager: Trying to get bind address for source "192.168.9.1" - External: False
[2024-04-29 23:11:04.683 +10:00] [DBG] [31] Jellyfin.Networking.Manager.NetworkManager: "192.168.9.1": No matching bind address override found
[2024-04-29 23:11:04.683 +10:00] [DBG] [31] Jellyfin.Networking.Manager.NetworkManager: "192.168.9.1": Internal request received, matching internal bind address found: "127.0.0.1"
[2024-04-29 23:11:04.794 +10:00] [DBG] [47] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: "CustomAuthentication" was not authenticated.
[2024-04-29 23:11:04.794 +10:00] [DBG] [31] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: "CustomAuthentication" was not authenticated.
[2024-04-29 23:11:04.794 +10:00] [DBG] [8] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: "CustomAuthentication" was not authenticated.
[2024-04-29 23:11:04.860 +10:00] [DBG] [27] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: "CustomAuthentication" was not authenticated.
[2024-04-29 23:11:04.860 +10:00] [DBG] [47] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: "CustomAuthentication" was not authenticated.
[2024-04-29 23:11:04.860 +10:00] [DBG] [31] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: "CustomAuthentication" was not authenticated.
[2024-04-29 23:11:04.861 +10:00] [DBG] [44] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: "CustomAuthentication" was not authenticated.
[2024-04-29 23:11:10.324 +10:00] [DBG] [8] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: "CustomAuthentication" was not authenticated.
[2024-04-29 23:11:12.264 +10:00] [DBG] [30] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: "CustomAuthentication" was not authenticated.
[2024-04-29 23:11:12.362 +10:00] [INF] [30] Jellyfin.Server.Implementations.Users.UserManager: Authentication request for "User" has succeeded.
[2024-04-29 23:11:12.362 +10:00] [INF] [30] Emby.Server.Implementations.Session.SessionManager: Current/Max sessions for user "User": 0/0
[2024-04-29 23:11:12.367 +10:00] [INF] [30] Emby.Server.Implementations.Session.SessionManager: Logging out access token "e02cfb3b0ffd4aa88bbb382b0e8c01f4"
[2024-04-29 23:11:12.373 +10:00] [INF] [30] Emby.Server.Implementations.Session.SessionManager: Creating new access token for user 16c10f5e-7ecc-4397-89e0-0f846c544450
[2024-04-29 23:11:12.409 +10:00] [DBG] [30] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: "CustomAuthentication" was successfully authenticated.
[2024-04-29 23:11:12.409 +10:00] [DBG] [30] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: "CustomAuthentication" was successfully authenticated.
[2024-04-29 23:11:12.414 +10:00] [DBG] [8] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: "CustomAuthentication" was successfully authenticated.
[2024-04-29 23:11:12.414 +10:00] [DBG] [8] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: "CustomAuthentication" was successfully authenticated.
[2024-04-29 23:11:12.426 +10:00] [DBG] [44] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: "CustomAuthentication" was successfully authenticated.
[2024-04-29 23:11:12.427 +10:00] [INF] [44] Emby.Server.Implementations.HttpServer.WebSocketManager: WS "192.168.9.1" request
[2024-04-29 23:11:12.430 +10:00] [DBG] [44] Emby.Server.Implementations.Session.SessionManager: Creating new "WebSocketController"
[2024-04-29 23:11:12.430 +10:00] [DBG] [44] Emby.Server.Implementations.Session.WebSocketController: Adding websocket to session "31382b171aef87dbd521b3e017c434ed"
[2024-04-29 23:11:12.435 +10:00] [DBG] [31] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: "CustomAuthentication" was successfully authenticated.
[2024-04-29 23:11:12.435 +10:00] [DBG] [31] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: "CustomAuthentication" was successfully authenticated.
[2024-04-29 23:11:12.447 +10:00] [DBG] [31] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: "CustomAuthentication" was successfully authenticated.
[2024-04-29 23:11:12.447 +10:00] [DBG] [31] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: "CustomAuthentication" was successfully authenticated.
[2024-04-29 23:11:12.454 +10:00] [DBG] [31] Emby.Server.Implementations.HttpServer.WebSocketConnection: WS "192.168.9.1" received message: InboundWebSocketMessage`1 { Data: null, MessageType: KeepAlive, ServerId: null }
[2024-04-29 23:11:12.503 +10:00] [DBG] [28] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: "CustomAuthentication" was not authenticated.
[2024-04-29 23:11:12.511 +10:00] [DBG] [30] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: "CustomAuthentication" was successfully authenticated.
[2024-04-29 23:11:12.511 +10:00] [DBG] [30] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: "CustomAuthentication" was successfully authenticated.
[2024-04-29 23:11:12.571 +10:00] [DBG] [31] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: "CustomAuthentication" was not authenticated.
[2024-04-29 23:11:12.571 +10:00] [DBG] [46] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: "CustomAuthentication" was not authenticated.
[2024-04-29 23:11:12.575 +10:00] [DBG] [28] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: "CustomAuthentication" was successfully authenticated.
[2024-04-29 23:11:12.575 +10:00] [DBG] [28] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: "CustomAuthentication" was successfully authenticated.
[2024-04-29 23:11:12.584 +10:00] [DBG] [45] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: "CustomAuthentication" was successfully authenticated.
[2024-04-29 23:11:12.584 +10:00] [DBG] [45] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: "CustomAuthentication" was successfully authenticated.
[2024-04-29 23:11:12.684 +10:00] [DBG] [8] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: "CustomAuthentication" was not authenticated.
[2024-04-29 23:11:12.684 +10:00] [DBG] [45] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: "CustomAuthentication" was not authenticated.
[2024-04-29 23:11:12.685 +10:00] [DBG] [46] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: "CustomAuthentication" was not authenticated.
[2024-04-29 23:11:12.685 +10:00] [DBG] [28] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: "CustomAuthentication" was not authenticated.
[2024-04-29 23:11:12.726 +10:00] [DBG] [30] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: "CustomAuthentication" was successfully authenticated.
[2024-04-29 23:11:12.726 +10:00] [DBG] [30] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: "CustomAuthentication" was successfully authenticated.
[2024-04-29 23:11:12.729 +10:00] [DBG] [3] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: "CustomAuthentication" was successfully authenticated.
[2024-04-29 23:11:12.729 +10:00] [DBG] [3] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: "CustomAuthentication" was successfully authenticated.
[2024-04-29 23:11:12.779 +10:00] [DBG] [45] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: "CustomAuthentication" was not authenticated.
[2024-04-29 23:11:12.854 +10:00] [DBG] [45] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: "CustomAuthentication" was not authenticated.
[2024-04-29 23:11:12.856 +10:00] [DBG] [45] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: "CustomAuthentication" was not authenticated.
[2024-04-29 23:11:12.879 +10:00] [DBG] [47] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: "CustomAuthentication" was successfully authenticated.
[2024-04-29 23:11:12.885 +10:00] [DBG] [47] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: "CustomAuthentication" was successfully authenticated.
[2024-04-29 23:11:13.029 +10:00] [DBG] [44] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: "CustomAuthentication" was successfully authenticated.
[2024-04-29 23:11:13.029 +10:00] [DBG] [44] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: "CustomAuthentication" was successfully authenticated.
[2024-04-29 23:11:18.495 +10:00] [DBG] [44] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: "CustomAuthentication" was successfully authenticated.
[2024-04-29 23:11:18.495 +10:00] [DBG] [44] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: "CustomAuthentication" was successfully authenticated.
[2024-04-29 23:11:18.527 +10:00] [DBG] [47] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: "CustomAuthentication" was successfully authenticated.
[2024-04-29 23:11:18.527 +10:00] [DBG] [47] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: "CustomAuthentication" was successfully authenticated.
[2024-04-29 23:11:18.570 +10:00] [DBG] [44] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: "CustomAuthentication" was successfully authenticated.
[2024-04-29 23:11:18.570 +10:00] [DBG] [44] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: "CustomAuthentication" was successfully authenticated.
[2024-04-29 23:11:18.611 +10:00] [DBG] [44] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: "CustomAuthentication" was successfully authenticated.
[2024-04-29 23:11:18.611 +10:00] [DBG] [44] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: "CustomAuthentication" was successfully authenticated.
[2024-04-29 23:11:19.594 +10:00] [WRN] [47] Emby.Server.Implementations.HttpServer.WebSocketConnection: WS "192.168.9.1" error receiving data: "The remote party closed the WebSocket connection without completing the close handshake."
[2024-04-29 23:11:19.594 +10:00] [DBG] [47] Emby.Server.Implementations.Session.WebSocketController: Removing websocket from session "31382b171aef87dbd521b3e017c434ed"
[2024-04-29 23:11:19.600 +10:00] [DBG] [47] Emby.Server.Implementations.Session.SessionManager: Disposing session controller asynchronously "WebSocketController"
[2024-04-29 23:11:19.600 +10:00] [DBG] [47] Emby.Server.Implementations.Session.SessionWebSocketListener: WebSocket "Emby.Server.Implementations.HttpServer.WebSocketConnection" is closed.
[2024-04-29 23:11:19.600 +10:00] [INF] [47] Emby.Server.Implementations.HttpServer.WebSocketManager: WS "192.168.9.1" closed
[2024-04-29 23:11:40.392 +10:00] [DBG] [47] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: "CustomAuthentication" was not authenticated.

Not working following connection

[2024-04-29 23:12:02.809 +10:00] [DBG] [18] Jellyfin.Api.Middleware.BaseUrlRedirectionMiddleware: Normalizing an URL at "/"
[2024-04-29 23:12:02.809 +10:00] [DBG] [18] Jellyfin.Api.Middleware.BaseUrlRedirectionMiddleware: Redirecting to "web/"
[2024-04-29 23:12:03.251 +10:00] [DBG] [49] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: "CustomAuthentication" was not authenticated.
[2024-04-29 23:12:03.251 +10:00] [DBG] [49] Jellyfin.Networking.Manager.NetworkManager: Trying to get bind address for source "192.168.9.1" - External: False
[2024-04-29 23:12:03.251 +10:00] [DBG] [49] Jellyfin.Networking.Manager.NetworkManager: "192.168.9.1": No matching bind address override found
[2024-04-29 23:12:03.251 +10:00] [DBG] [49] Jellyfin.Networking.Manager.NetworkManager: "192.168.9.1": Internal request received, matching internal bind address found: "127.0.0.1"
[2024-04-29 23:12:03.262 +10:00] [DBG] [49] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: "CustomAuthentication" was successfully authenticated.
[2024-04-29 23:12:03.263 +10:00] [DBG] [49] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: "CustomAuthentication" was successfully authenticated.
[2024-04-29 23:12:03.264 +10:00] [DBG] [49] Jellyfin.Networking.Manager.NetworkManager: Trying to get bind address for source "192.168.9.1" - External: False
[2024-04-29 23:12:03.264 +10:00] [DBG] [49] Jellyfin.Networking.Manager.NetworkManager: "192.168.9.1": No matching bind address override found
[2024-04-29 23:12:03.264 +10:00] [DBG] [49] Jellyfin.Networking.Manager.NetworkManager: "192.168.9.1": Internal request received, matching internal bind address found: "127.0.0.1"
[2024-04-29 23:12:03.282 +10:00] [DBG] [18] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: "CustomAuthentication" was successfully authenticated.
[2024-04-29 23:12:03.282 +10:00] [DBG] [18] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: "CustomAuthentication" was successfully authenticated.
[2024-04-29 23:12:03.286 +10:00] [DBG] [49] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: "CustomAuthentication" was successfully authenticated.
[2024-04-29 23:12:03.286 +10:00] [DBG] [49] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: "CustomAuthentication" was successfully authenticated.
[2024-04-29 23:12:03.286 +10:00] [DBG] [32] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: "CustomAuthentication" was successfully authenticated.
[2024-04-29 23:12:03.286 +10:00] [DBG] [32] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: "CustomAuthentication" was successfully authenticated.
[2024-04-29 23:12:03.297 +10:00] [DBG] [49] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: "CustomAuthentication" was successfully authenticated.
[2024-04-29 23:12:03.297 +10:00] [INF] [49] Emby.Server.Implementations.HttpServer.WebSocketManager: WS "192.168.9.1" request
[2024-04-29 23:12:03.316 +10:00] [DBG] [21] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: "CustomAuthentication" was successfully authenticated.
[2024-04-29 23:12:03.316 +10:00] [DBG] [21] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: "CustomAuthentication" was successfully authenticated.
[2024-04-29 23:12:03.317 +10:00] [DBG] [51] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: "CustomAuthentication" was not authenticated.
[2024-04-29 23:12:03.438 +10:00] [DBG] [50] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: "CustomAuthentication" was successfully authenticated.
[2024-04-29 23:12:03.438 +10:00] [DBG] [50] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: "CustomAuthentication" was successfully authenticated.
[2024-04-29 23:12:03.453 +10:00] [DBG] [49] Emby.Server.Implementations.Session.SessionManager: Creating new "WebSocketController"
[2024-04-29 23:12:03.453 +10:00] [DBG] [49] Emby.Server.Implementations.Session.WebSocketController: Adding websocket to session "31382b171aef87dbd521b3e017c434ed"
[2024-04-29 23:12:03.458 +10:00] [DBG] [49] Emby.Server.Implementations.HttpServer.WebSocketConnection: WS "192.168.9.1" received message: InboundWebSocketMessage`1 { Data: null, MessageType: KeepAlive, ServerId: null }
[2024-04-29 23:12:03.519 +10:00] [DBG] [18] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: "CustomAuthentication" was successfully authenticated.
[2024-04-29 23:12:03.519 +10:00] [DBG] [18] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: "CustomAuthentication" was successfully authenticated.
[2024-04-29 23:12:03.675 +10:00] [DBG] [51] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: "CustomAuthentication" was successfully authenticated.
[2024-04-29 23:12:03.675 +10:00] [DBG] [51] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: "CustomAuthentication" was successfully authenticated.
[2024-04-29 23:12:03.826 +10:00] [DBG] [32] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: "CustomAuthentication" was successfully authenticated.
[2024-04-29 23:12:03.826 +10:00] [DBG] [32] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: "CustomAuthentication" was successfully authenticated.
[2024-04-29 23:12:03.976 +10:00] [DBG] [50] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: "CustomAuthentication" was successfully authenticated.
[2024-04-29 23:12:03.976 +10:00] [DBG] [50] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: "CustomAuthentication" was successfully authenticated.
[2024-04-29 23:12:04.127 +10:00] [DBG] [53] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: "CustomAuthentication" was successfully authenticated.
[2024-04-29 23:12:04.127 +10:00] [DBG] [53] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: "CustomAuthentication" was successfully authenticated.
[2024-04-29 23:12:04.277 +10:00] [DBG] [49] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: "CustomAuthentication" was successfully authenticated.
[2024-04-29 23:12:04.277 +10:00] [DBG] [49] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: "CustomAuthentication" was successfully authenticated.
[2024-04-29 23:12:04.534 +10:00] [DBG] [53] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: "CustomAuthentication" was not authenticated.
[2024-04-29 23:12:04.535 +10:00] [DBG] [53] Jellyfin.Networking.Manager.NetworkManager: Trying to get bind address for source "192.168.9.1" - External: False
[2024-04-29 23:12:04.535 +10:00] [DBG] [53] Jellyfin.Networking.Manager.NetworkManager: "192.168.9.1": No matching bind address override found
[2024-04-29 23:12:04.535 +10:00] [DBG] [53] Jellyfin.Networking.Manager.NetworkManager: "192.168.9.1": Internal request received, matching internal bind address found: "127.0.0.1"
[2024-04-29 23:12:04.568 +10:00] [DBG] [32] Jellyfin.Api.Middleware.BaseUrlRedirectionMiddleware: Normalizing an URL at "/"
[2024-04-29 23:12:04.569 +10:00] [DBG] [32] Jellyfin.Api.Middleware.BaseUrlRedirectionMiddleware: Redirecting to "web/"
[2024-04-29 23:12:05.242 +10:00] [DBG] [49] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: "CustomAuthentication" was not authenticated.
[2024-04-29 23:12:05.242 +10:00] [DBG] [49] Jellyfin.Networking.Manager.NetworkManager: Trying to get bind address for source "192.168.9.1" - External: False
[2024-04-29 23:12:05.242 +10:00] [DBG] [49] Jellyfin.Networking.Manager.NetworkManager: "192.168.9.1": No matching bind address override found
[2024-04-29 23:12:05.242 +10:00] [DBG] [49] Jellyfin.Networking.Manager.NetworkManager: "192.168.9.1": Internal request received, matching internal bind address found: "127.0.0.1"
[2024-04-29 23:12:05.265 +10:00] [DBG] [53] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: "CustomAuthentication" was successfully authenticated.
[2024-04-29 23:12:05.265 +10:00] [DBG] [53] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: "CustomAuthentication" was successfully authenticated.
[2024-04-29 23:12:05.267 +10:00] [DBG] [53] Jellyfin.Networking.Manager.NetworkManager: Trying to get bind address for source "192.168.9.1" - External: False
[2024-04-29 23:12:05.267 +10:00] [DBG] [53] Jellyfin.Networking.Manager.NetworkManager: "192.168.9.1": No matching bind address override found
[2024-04-29 23:12:05.267 +10:00] [DBG] [53] Jellyfin.Networking.Manager.NetworkManager: "192.168.9.1": Internal request received, matching internal bind address found: "127.0.0.1"
[2024-04-29 23:12:05.295 +10:00] [DBG] [32] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: "CustomAuthentication" was successfully authenticated.
[2024-04-29 23:12:05.295 +10:00] [DBG] [32] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: "CustomAuthentication" was successfully authenticated.
[2024-04-29 23:12:05.299 +10:00] [DBG] [49] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: "CustomAuthentication" was successfully authenticated.
[2024-04-29 23:12:05.299 +10:00] [DBG] [53] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: "CustomAuthentication" was successfully authenticated.
[2024-04-29 23:12:05.299 +10:00] [DBG] [49] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: "CustomAuthentication" was successfully authenticated.
[2024-04-29 23:12:05.300 +10:00] [DBG] [53] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: "CustomAuthentication" was successfully authenticated.
[2024-04-29 23:12:05.316 +10:00] [DBG] [21] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: "CustomAuthentication" was successfully authenticated.
[2024-04-29 23:12:05.317 +10:00] [INF] [21] Emby.Server.Implementations.HttpServer.WebSocketManager: WS "192.168.9.1" request
[2024-04-29 23:12:05.320 +10:00] [DBG] [21] Emby.Server.Implementations.Session.WebSocketController: Adding websocket to session "31382b171aef87dbd521b3e017c434ed"
[2024-04-29 23:12:05.333 +10:00] [DBG] [49] Emby.Server.Implementations.HttpServer.WebSocketConnection: WS "192.168.9.1" received message: InboundWebSocketMessage`1 { Data: null, MessageType: KeepAlive, ServerId: null }
[2024-04-29 23:12:05.333 +10:00] [DBG] [53] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: "CustomAuthentication" was successfully authenticated.
[2024-04-29 23:12:05.333 +10:00] [DBG] [53] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: "CustomAuthentication" was successfully authenticated.
[2024-04-29 23:12:05.380 +10:00] [DBG] [53] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: "CustomAuthentication" was not authenticated.
[2024-04-29 23:12:05.583 +10:00] [DBG] [53] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: "CustomAuthentication" was successfully authenticated.
[2024-04-29 23:12:05.583 +10:00] [DBG] [53] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: "CustomAuthentication" was successfully authenticated.
[2024-04-29 23:12:05.652 +10:00] [DBG] [32] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: "CustomAuthentication" was successfully authenticated.
[2024-04-29 23:12:05.653 +10:00] [DBG] [32] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: "CustomAuthentication" was successfully authenticated.
[2024-04-29 23:12:05.804 +10:00] [DBG] [49] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: "CustomAuthentication" was successfully authenticated.
[2024-04-29 23:12:05.804 +10:00] [DBG] [49] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: "CustomAuthentication" was successfully authenticated.
[2024-04-29 23:12:05.956 +10:00] [DBG] [51] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: "CustomAuthentication" was successfully authenticated.
[2024-04-29 23:12:05.956 +10:00] [DBG] [51] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: "CustomAuthentication" was successfully authenticated.
[2024-04-29 23:12:06.105 +10:00] [DBG] [21] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: "CustomAuthentication" was successfully authenticated.
[2024-04-29 23:12:06.105 +10:00] [DBG] [21] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: "CustomAuthentication" was successfully authenticated.
[2024-04-29 23:12:06.256 +10:00] [DBG] [53] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: "CustomAuthentication" was successfully authenticated.
[2024-04-29 23:12:06.257 +10:00] [DBG] [53] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: "CustomAuthentication" was successfully authenticated.
[2024-04-29 23:12:06.407 +10:00] [DBG] [50] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: "CustomAuthentication" was successfully authenticated.
[2024-04-29 23:12:06.407 +10:00] [DBG] [50] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: "CustomAuthentication" was successfully authenticated.
[2024-04-29 23:12:10.329 +10:00] [DBG] [50] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: "CustomAuthentication" was successfully authenticated.
[2024-04-29 23:12:10.330 +10:00] [DBG] [50] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: "CustomAuthentication" was successfully authenticated.
[2024-04-29 23:12:10.392 +10:00] [DBG] [53] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: "CustomAuthentication" was successfully authenticated.
[2024-04-29 23:12:10.392 +10:00] [DBG] [53] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: "CustomAuthentication" was successfully authenticated.
[2024-04-29 23:12:10.478 +10:00] [DBG] [53] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: "CustomAuthentication" was successfully authenticated.
[2024-04-29 23:12:10.478 +10:00] [DBG] [53] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: "CustomAuthentication" was successfully authenticated.
[2024-04-29 23:12:10.479 +10:00] [DBG] [21] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: "CustomAuthentication" was not authenticated.
[2024-04-29 23:12:10.559 +10:00] [DBG] [53] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: "CustomAuthentication" was successfully authenticated.
[2024-04-29 23:12:10.559 +10:00] [DBG] [53] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: "CustomAuthentication" was successfully authenticated.
[2024-04-29 23:12:12.254 +10:00] [DBG] [21] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: "CustomAuthentication" was successfully authenticated.
[2024-04-29 23:12:12.255 +10:00] [DBG] [21] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: "CustomAuthentication" was successfully authenticated.
[2024-04-29 23:12:12.301 +10:00] [DBG] [21] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: "CustomAuthentication" was successfully authenticated.
[2024-04-29 23:12:12.301 +10:00] [DBG] [21] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: "CustomAuthentication" was successfully authenticated.
[2024-04-29 23:12:12.372 +10:00] [DBG] [21] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: "CustomAuthentication" was successfully authenticated.
[2024-04-29 23:12:12.372 +10:00] [DBG] [21] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: "CustomAuthentication" was successfully authenticated.
[2024-04-29 23:12:12.438 +10:00] [DBG] [50] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: "CustomAuthentication" was successfully authenticated.
[2024-04-29 23:12:12.438 +10:00] [DBG] [50] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: "CustomAuthentication" was successfully authenticated.
[2024-04-29 23:12:15.457 +10:00] [DBG] [11] Emby.Server.Implementations.Session.SessionWebSocketListener: Watching 2 WebSockets.
[2024-04-29 23:12:26.148 +10:00] [DBG] [21] Emby.Server.Implementations.Session.WebSocketController: Removing websocket from session "31382b171aef87dbd521b3e017c434ed"
[2024-04-29 23:12:26.148 +10:00] [DBG] [21] Emby.Server.Implementations.Session.SessionWebSocketListener: WebSocket "Emby.Server.Implementations.HttpServer.WebSocketConnection" is closed.
[2024-04-29 23:12:26.149 +10:00] [INF] [21] Emby.Server.Implementations.HttpServer.WebSocketManager: WS "192.168.9.1" closed
[2024-04-29 23:12:26.257 +10:00] [DBG] [11] Emby.Server.Implementations.Session.WebSocketController: Removing websocket from session "31382b171aef87dbd521b3e017c434ed"
[2024-04-29 23:12:26.266 +10:00] [DBG] [11] Emby.Server.Implementations.Session.SessionManager: Disposing session controller asynchronously "WebSocketController"
[2024-04-29 23:12:26.266 +10:00] [DBG] [11] Emby.Server.Implementations.Session.SessionWebSocketListener: WebSocket "Emby.Server.Implementations.HttpServer.WebSocketConnection" is closed.
[2024-04-29 23:12:26.266 +10:00] [INF] [11] Emby.Server.Implementations.HttpServer.WebSocketManager: WS "192.168.9.1" closed
[2024-04-29 23:12:40.545 +10:00] [DBG] [10] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: "CustomAuthentication" was not authenticated.

FFmpeg logs

No response

Please attach any browser or client logs here

No response

Please attach any screenshots here

No response

Code of Conduct

felix920506 commented 6 months ago

This is most likely a configuration issue. Please head to our forum or chat rooms for troubleshooting help: https://jellyfin.ore/contact

caeci11ius commented 6 months ago

Figured it out.

For anyone who finds this in future - the solution is to set the value "all=https://YOUR_SERVER.com" in the advanced networking settings options "Published Server URIs".

In my case, I have been trying to use a valid url with certificate both on lan and wan and limiting all connections to https - NAT loopback / hairpin NAT allows for it to be resolved locally once the traffic hits the router. I had already configured the "known proxies" and "local networks settings". Note that I intentionally did my config differently to the guide as I wanted to retain as much isolation with docker as possible (avoiding setting host networking). My server is exposed to the internet so this seemed a good idea. I won't use hdhomerun or dlna so this is otherwise not a problem for me.

It seems that after the first connection, the android app was storing some auto detected value for my lan IP rather than the URL I entered myself. After finding the following threads and discovering the issue disappeared when not on the lan, I was able to figure out what to do:

And particularly:

Given people seem to have recurring troubles with some of this stuff, I'd suggest a fallback to the original connection url as a last resort if any smarts with LAN detection etc fails to result in a connection - particularly if that url previously succeeded. After all, that's the value the user expects given what's shown on the display. Clearly an enhancement, but it'd be worthwhile and help keep things understandable for users. Or at the very least, a message explaining that the app didn't try to connect where the user told it to and why...

Zanonia commented 6 months ago

I have the same problem with the current stable android app and server (community TrueNAS docker).

I use the local server ip and no https. After each use, I have to delet all the Android app data (not only the cache) to be able to use it again.

caeci11ius commented 6 months ago

I have the same problem with the current stable android app and server (community TrueNAS docker).

I use the local server ip and no https. After each use, I have to delet all the Android app data (not only the cache) to be able to use it again.

Check my comment above for a solution :-)