[Issue]: After 10.9.0 upgrade, user connection glitch when "Allow remote connections to this server" is disabled #5687

Closed
opened 2026-02-07 02:05:59 +03:00 by OVERLORD · 2 comments
Owner

Originally created by @MustThinkOfAName on GitHub (May 12, 2024).

Please describe your bug

Have been using unstable for a few weeks. I jumped on the release of 10.9.0 and restored my 10.8.13 backup.

I've noticed some glitch where the user gets disconnected and unable to reconnect themselves when the account has the option Allow remote connections to this server disabled. Emptying the local storage momentarily fixes the issue (usually, lasts until a hard reload of the page) before the user gets disconnected. Trying to reconnect will show the following error message: You are not authorized to access the server at this time. Please contact your server administrator for more information. And the user will have to empty the cache again.

I've noticed that even after emptying the cache if the user simply reloads the page while keeping the URL intact ie: /web/#/login.html?serverid=xxxxxxxxx&url=%2Fdashboard%2Fusers . The user also has to remove everything after the domain name.

This happens while I'm connected to the same network as my NAS and connecting via IP.

Reproduction Steps

  1. Upgrade to 10.9.0
  2. Disable Allow remote connections to this server
  3. Hard reload the page
  4. Get disconnected

Jellyfin Version

Unstable (master branch)

if other:

10.9.0

Environment

- OS:Synology
- Linux Kernel: /
- Virtualization:Docker
- Clients:Browser
- Browser: Firefox 123.0.1
- FFmpeg Version: /
- Playback Method: /
- Hardware Acceleration: /
- GPU Model: /
- Plugins: /
- Reverse Proxy: Nginx
- Base URL: None
- Networking: Host
- Storage: local

Jellyfin logs

[2024-05-11 20:55:57.891 +00:00] [INF] [48] Emby.Server.Implementations.ApplicationHost: ServerId: "xxxxxxx"
[2024-05-11 20:55:57.891 +00:00] [INF] [48] Emby.Server.Implementations.ApplicationHost: Core startup complete
[2024-05-11 20:55:57.891 +00:00] [INF] [48] Main: Startup complete 0:00:11.9652491
[2024-05-11 20:56:00.275 +00:00] [INF] [47] Emby.Server.Implementations.ScheduledTasks.TaskManager: "Clean up collections and playlists" Completed after 0 minute(s) and 0 seconds
[2024-05-11 20:56:01.242 +00:00] [INF] [29] Emby.Server.Implementations.ScheduledTasks.TaskManager: "Update Plugins" Completed after 0 minute(s) and 0 seconds
[2024-05-11 20:56:03.545 +00:00] [INF] [47] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: "CustomAuthentication" was forbidden.
[2024-05-11 20:56:03.588 +00:00] [INF] [48] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: "CustomAuthentication" was forbidden.
[2024-05-11 20:56:38.003 +00:00] [INF] [48] Emby.Server.Implementations.HttpServer.WebSocketManager: WS "xxxxxxxx" request
[2024-05-11 20:56:38.176 +00:00] [INF] [48] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: "CustomAuthentication" was forbidden.
[2024-05-11 20:56:38.176 +00:00] [INF] [3] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: "CustomAuthentication" was forbidden.
[2024-05-11 20:56:40.463 +00:00] [INF] [48] Emby.Server.Implementations.HttpServer.WebSocketManager: WS "xxxxxxxx" closed
[2024-05-11 20:56:42.289 +00:00] [INF] [3] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: "CustomAuthentication" was forbidden.
[2024-05-11 20:56:45.590 +00:00] [INF] [43] Jellyfin.Server.Implementations.Users.UserManager: Authentication request for "root" forbidden: remote access disabled and user not in local network (IP: "xxxxxxx").
[2024-05-11 20:56:45.592 +00:00] [ERR] [43] Jellyfin.Api.Middleware.ExceptionMiddleware: Error processing request: "[xxxxxxxx] Forbidden". URL "POST" "/Users/authenticatebyname".
[2024-05-11 20:56:51.448 +00:00] [INF] [29] Jellyfin.Server.Implementations.Users.UserManager: Authentication request for "root" forbidden: remote access disabled and user not in local network (IP: "xxxxxx").
[2024-05-11 20:56:51.452 +00:00] [ERR] [29] Jellyfin.Api.Middleware.ExceptionMiddleware: Error processing request: "[xxxxxxx] Forbidden". URL "POST" "/Users/authenticatebyname".
[2024-05-11 20:57:07.539 +00:00] [INF] [45] Jellyfin.Server.Implementations.Users.UserManager: Authentication request for "root" has succeeded.
[2024-05-11 20:57:07.539 +00:00] [INF] [45] Emby.Server.Implementations.Session.SessionManager: Current/Max sessions for user "root": 0/0
[2024-05-11 20:57:07.541 +00:00] [INF] [45] Emby.Server.Implementations.Session.SessionManager: Creating new access token for user xxxxxxxxx
[2024-05-11 20:57:07.701 +00:00] [INF] [19] Emby.Server.Implementations.HttpServer.WebSocketManager: WS "xxxxxxxxx" request
[2024-05-11 20:57:10.978 +00:00] [INF] [44] Jellyfin.Server.Implementations.Users.UserManager: Authentication request for "root" has succeeded.
[2024-05-11 20:57:10.978 +00:00] [INF] [44] Emby.Server.Implementations.Session.SessionManager: Current/Max sessions for user "root": 1/0
[2024-05-11 20:57:10.980 +00:00] [INF] [44] Emby.Server.Implementations.Session.SessionManager: Logging out access token "xxxxxxx"
[2024-05-11 20:57:10.991 +00:00] [INF] [44] Emby.Server.Implementations.Session.SessionManager: Creating new access token for user xxxxxxx
[2024-05-11 20:57:11.119 +00:00] [INF] [44] Emby.Server.Implementations.HttpServer.WebSocketManager: WS "xxxxxxxxx" closed
[2024-05-11 20:57:11.157 +00:00] [INF] [43] Emby.Server.Implementations.HttpServer.WebSocketManager: WS "xxxxxxxxx" request
[2024-05-11 20:57:13.368 +00:00] [INF] [29] Emby.Server.Implementations.HttpServer.WebSocketManager: WS "xxxxxxxxx" closed
[2024-05-11 20:57:14.419 +00:00] [INF] [43] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: "CustomAuthentication" was forbidden.
[2024-05-11 20:57:17.696 +00:00] [INF] [43] Jellyfin.Server.Implementations.Users.UserManager: Authentication request for "root" forbidden: remote access disabled and user not in local network (IP: "xxxxxxxxx").
[2024-05-11 20:57:17.698 +00:00] [ERR] [43] Jellyfin.Api.Middleware.ExceptionMiddleware: Error processing request: "[xxxxxxxx] Forbidden". URL "POST" "/Users/authenticatebyname".
[2024-05-11 20:57:23.241 +00:00] [INF] [43] Jellyfin.Server.Implementations.Users.UserManager: Authentication request for "root" forbidden: remote access disabled and user not in local network (IP: "xxxxxxxxx").
[2024-05-11 20:57:23.243 +00:00] [ERR] [43] Jellyfin.Api.Middleware.ExceptionMiddleware: Error processing request: "[xxxxxxxxx] Forbidden". URL "POST" "/Users/authenticatebyname".
[2024-05-11 20:57:26.770 +00:00] [INF] [44] Jellyfin.Server.Implementations.Users.UserManager: Authentication request for "root" forbidden: remote access disabled and user not in local network (IP: "xxxxxxxx").
[2024-05-11 20:57:26.771 +00:00] [ERR] [44] Jellyfin.Api.Middleware.ExceptionMiddleware: Error processing request: "[xxxxxxx] Forbidden". URL "POST" "/Users/authenticatebyname".
[2024-05-11 20:57:51.306 +00:00] [INF] [19] Jellyfin.Server.Implementations.Users.UserManager: Authentication request for "root" has succeeded.
[2024-05-11 20:57:51.306 +00:00] [INF] [19] Emby.Server.Implementations.Session.SessionManager: Current/Max sessions for user "root": 0/0
[2024-05-11 20:57:51.308 +00:00] [INF] [19] Emby.Server.Implementations.Session.SessionManager: Creating new access token for user xxxxxx
[2024-05-11 20:57:51.577 +00:00] [INF] [43] Emby.Server.Implementations.HttpServer.WebSocketManager: WS "xxxxxxx" request
[2024-05-11 20:58:04.452 +00:00] [INF] [44] Emby.Server.Implementations.ApplicationHost: App needs to be restarted.
[2024-05-11 20:58:05.499 +00:00] [INF] [43] Emby.Server.Implementations.HttpServer.WebSocketManager: WS "xxxxxxx" closed
[2024-05-11 20:58:06.381 +00:00] [INF] [46] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: "CustomAuthentication" was forbidden.
[2024-05-11 20:58:11.085 +00:00] [INF] [57] Jellyfin.Server.Implementations.Users.UserManager: Authentication request for "root" forbidden: remote access disabled and user not in local network (IP: "xxxxxxxx").
[2024-05-11 20:58:11.087 +00:00] [ERR] [57] Jellyfin.Api.Middleware.ExceptionMiddleware: Error processing request: "[xxxxxxx] Forbidden". URL "POST" "/Users/authenticatebyname".
[2024-05-11 20:58:33.181 +00:00] [INF] [27] Jellyfin.Server.Implementations.Users.UserManager: Authentication request for "root" forbidden: remote access disabled and user not in local network (IP: "xxxxxxxx").
[2024-05-11 20:58:33.183 +00:00] [ERR] [27] Jellyfin.Api.Middleware.ExceptionMiddleware: Error processing request: "[xxxxxxxxx] Forbidden". URL "POST" "/Users/authenticatebyname".
[2024-05-11 20:58:37.550 +00:00] [INF] [41] Jellyfin.Server.Implementations.Users.UserManager: Authentication request for "root" forbidden: remote access disabled and user not in local network (IP: "xxxxxxxxx").
[2024-05-11 20:58:37.551 +00:00] [ERR] [41] Jellyfin.Api.Middleware.ExceptionMiddleware: Error processing request: "[xxxxxxxxx] Forbidden". URL "POST" "/Users/authenticatebyname".
[2024-05-11 20:58:52.316 +00:00] [INF] [20] Jellyfin.Server.Implementations.Users.UserManager: Authentication request for "root" has succeeded.
[2024-05-11 20:58:52.316 +00:00] [INF] [20] Emby.Server.Implementations.Session.SessionManager: Current/Max sessions for user "root": 0/0
[2024-05-11 20:58:52.318 +00:00] [INF] [20] Emby.Server.Implementations.Session.SessionManager: Creating new access token for user xxxxxxx
[2024-05-11 20:58:52.516 +00:00] [INF] [41] Emby.Server.Implementations.HttpServer.WebSocketManager: WS "xxxxxxxxx" request

FFmpeg logs

No response

Please attach any browser or client logs here

No response

Please attach any screenshots here

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
Originally created by @MustThinkOfAName on GitHub (May 12, 2024). ### Please describe your bug Have been using unstable for a few weeks. I jumped on the release of 10.9.0 and restored my 10.8.13 backup. I've noticed some glitch where the user gets disconnected and unable to reconnect themselves when the account has the option `Allow remote connections to this server` disabled. Emptying the local storage momentarily fixes the issue (usually, lasts until a hard reload of the page) before the user gets disconnected. Trying to reconnect will show the following error message: `You are not authorized to access the server at this time. Please contact your server administrator for more information.` And the user will have to empty the cache again. I've noticed that even after emptying the cache if the user simply reloads the page while keeping the URL intact ie: `/web/#/login.html?serverid=xxxxxxxxx&url=%2Fdashboard%2Fusers` . The user also has to remove everything after the domain name. This happens while I'm connected to the same network as my NAS and connecting via IP. ### Reproduction Steps 1. Upgrade to 10.9.0 2. Disable `Allow remote connections to this server` 3. Hard reload the page 4. Get disconnected ### Jellyfin Version Unstable (master branch) ### if other: 10.9.0 ### Environment ```markdown - OS:Synology - Linux Kernel: / - Virtualization:Docker - Clients:Browser - Browser: Firefox 123.0.1 - FFmpeg Version: / - Playback Method: / - Hardware Acceleration: / - GPU Model: / - Plugins: / - Reverse Proxy: Nginx - Base URL: None - Networking: Host - Storage: local ``` ### Jellyfin logs ```shell [2024-05-11 20:55:57.891 +00:00] [INF] [48] Emby.Server.Implementations.ApplicationHost: ServerId: "xxxxxxx" [2024-05-11 20:55:57.891 +00:00] [INF] [48] Emby.Server.Implementations.ApplicationHost: Core startup complete [2024-05-11 20:55:57.891 +00:00] [INF] [48] Main: Startup complete 0:00:11.9652491 [2024-05-11 20:56:00.275 +00:00] [INF] [47] Emby.Server.Implementations.ScheduledTasks.TaskManager: "Clean up collections and playlists" Completed after 0 minute(s) and 0 seconds [2024-05-11 20:56:01.242 +00:00] [INF] [29] Emby.Server.Implementations.ScheduledTasks.TaskManager: "Update Plugins" Completed after 0 minute(s) and 0 seconds [2024-05-11 20:56:03.545 +00:00] [INF] [47] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: "CustomAuthentication" was forbidden. [2024-05-11 20:56:03.588 +00:00] [INF] [48] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: "CustomAuthentication" was forbidden. [2024-05-11 20:56:38.003 +00:00] [INF] [48] Emby.Server.Implementations.HttpServer.WebSocketManager: WS "xxxxxxxx" request [2024-05-11 20:56:38.176 +00:00] [INF] [48] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: "CustomAuthentication" was forbidden. [2024-05-11 20:56:38.176 +00:00] [INF] [3] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: "CustomAuthentication" was forbidden. [2024-05-11 20:56:40.463 +00:00] [INF] [48] Emby.Server.Implementations.HttpServer.WebSocketManager: WS "xxxxxxxx" closed [2024-05-11 20:56:42.289 +00:00] [INF] [3] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: "CustomAuthentication" was forbidden. [2024-05-11 20:56:45.590 +00:00] [INF] [43] Jellyfin.Server.Implementations.Users.UserManager: Authentication request for "root" forbidden: remote access disabled and user not in local network (IP: "xxxxxxx"). [2024-05-11 20:56:45.592 +00:00] [ERR] [43] Jellyfin.Api.Middleware.ExceptionMiddleware: Error processing request: "[xxxxxxxx] Forbidden". URL "POST" "/Users/authenticatebyname". [2024-05-11 20:56:51.448 +00:00] [INF] [29] Jellyfin.Server.Implementations.Users.UserManager: Authentication request for "root" forbidden: remote access disabled and user not in local network (IP: "xxxxxx"). [2024-05-11 20:56:51.452 +00:00] [ERR] [29] Jellyfin.Api.Middleware.ExceptionMiddleware: Error processing request: "[xxxxxxx] Forbidden". URL "POST" "/Users/authenticatebyname". [2024-05-11 20:57:07.539 +00:00] [INF] [45] Jellyfin.Server.Implementations.Users.UserManager: Authentication request for "root" has succeeded. [2024-05-11 20:57:07.539 +00:00] [INF] [45] Emby.Server.Implementations.Session.SessionManager: Current/Max sessions for user "root": 0/0 [2024-05-11 20:57:07.541 +00:00] [INF] [45] Emby.Server.Implementations.Session.SessionManager: Creating new access token for user xxxxxxxxx [2024-05-11 20:57:07.701 +00:00] [INF] [19] Emby.Server.Implementations.HttpServer.WebSocketManager: WS "xxxxxxxxx" request [2024-05-11 20:57:10.978 +00:00] [INF] [44] Jellyfin.Server.Implementations.Users.UserManager: Authentication request for "root" has succeeded. [2024-05-11 20:57:10.978 +00:00] [INF] [44] Emby.Server.Implementations.Session.SessionManager: Current/Max sessions for user "root": 1/0 [2024-05-11 20:57:10.980 +00:00] [INF] [44] Emby.Server.Implementations.Session.SessionManager: Logging out access token "xxxxxxx" [2024-05-11 20:57:10.991 +00:00] [INF] [44] Emby.Server.Implementations.Session.SessionManager: Creating new access token for user xxxxxxx [2024-05-11 20:57:11.119 +00:00] [INF] [44] Emby.Server.Implementations.HttpServer.WebSocketManager: WS "xxxxxxxxx" closed [2024-05-11 20:57:11.157 +00:00] [INF] [43] Emby.Server.Implementations.HttpServer.WebSocketManager: WS "xxxxxxxxx" request [2024-05-11 20:57:13.368 +00:00] [INF] [29] Emby.Server.Implementations.HttpServer.WebSocketManager: WS "xxxxxxxxx" closed [2024-05-11 20:57:14.419 +00:00] [INF] [43] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: "CustomAuthentication" was forbidden. [2024-05-11 20:57:17.696 +00:00] [INF] [43] Jellyfin.Server.Implementations.Users.UserManager: Authentication request for "root" forbidden: remote access disabled and user not in local network (IP: "xxxxxxxxx"). [2024-05-11 20:57:17.698 +00:00] [ERR] [43] Jellyfin.Api.Middleware.ExceptionMiddleware: Error processing request: "[xxxxxxxx] Forbidden". URL "POST" "/Users/authenticatebyname". [2024-05-11 20:57:23.241 +00:00] [INF] [43] Jellyfin.Server.Implementations.Users.UserManager: Authentication request for "root" forbidden: remote access disabled and user not in local network (IP: "xxxxxxxxx"). [2024-05-11 20:57:23.243 +00:00] [ERR] [43] Jellyfin.Api.Middleware.ExceptionMiddleware: Error processing request: "[xxxxxxxxx] Forbidden". URL "POST" "/Users/authenticatebyname". [2024-05-11 20:57:26.770 +00:00] [INF] [44] Jellyfin.Server.Implementations.Users.UserManager: Authentication request for "root" forbidden: remote access disabled and user not in local network (IP: "xxxxxxxx"). [2024-05-11 20:57:26.771 +00:00] [ERR] [44] Jellyfin.Api.Middleware.ExceptionMiddleware: Error processing request: "[xxxxxxx] Forbidden". URL "POST" "/Users/authenticatebyname". [2024-05-11 20:57:51.306 +00:00] [INF] [19] Jellyfin.Server.Implementations.Users.UserManager: Authentication request for "root" has succeeded. [2024-05-11 20:57:51.306 +00:00] [INF] [19] Emby.Server.Implementations.Session.SessionManager: Current/Max sessions for user "root": 0/0 [2024-05-11 20:57:51.308 +00:00] [INF] [19] Emby.Server.Implementations.Session.SessionManager: Creating new access token for user xxxxxx [2024-05-11 20:57:51.577 +00:00] [INF] [43] Emby.Server.Implementations.HttpServer.WebSocketManager: WS "xxxxxxx" request [2024-05-11 20:58:04.452 +00:00] [INF] [44] Emby.Server.Implementations.ApplicationHost: App needs to be restarted. [2024-05-11 20:58:05.499 +00:00] [INF] [43] Emby.Server.Implementations.HttpServer.WebSocketManager: WS "xxxxxxx" closed [2024-05-11 20:58:06.381 +00:00] [INF] [46] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: "CustomAuthentication" was forbidden. [2024-05-11 20:58:11.085 +00:00] [INF] [57] Jellyfin.Server.Implementations.Users.UserManager: Authentication request for "root" forbidden: remote access disabled and user not in local network (IP: "xxxxxxxx"). [2024-05-11 20:58:11.087 +00:00] [ERR] [57] Jellyfin.Api.Middleware.ExceptionMiddleware: Error processing request: "[xxxxxxx] Forbidden". URL "POST" "/Users/authenticatebyname". [2024-05-11 20:58:33.181 +00:00] [INF] [27] Jellyfin.Server.Implementations.Users.UserManager: Authentication request for "root" forbidden: remote access disabled and user not in local network (IP: "xxxxxxxx"). [2024-05-11 20:58:33.183 +00:00] [ERR] [27] Jellyfin.Api.Middleware.ExceptionMiddleware: Error processing request: "[xxxxxxxxx] Forbidden". URL "POST" "/Users/authenticatebyname". [2024-05-11 20:58:37.550 +00:00] [INF] [41] Jellyfin.Server.Implementations.Users.UserManager: Authentication request for "root" forbidden: remote access disabled and user not in local network (IP: "xxxxxxxxx"). [2024-05-11 20:58:37.551 +00:00] [ERR] [41] Jellyfin.Api.Middleware.ExceptionMiddleware: Error processing request: "[xxxxxxxxx] Forbidden". URL "POST" "/Users/authenticatebyname". [2024-05-11 20:58:52.316 +00:00] [INF] [20] Jellyfin.Server.Implementations.Users.UserManager: Authentication request for "root" has succeeded. [2024-05-11 20:58:52.316 +00:00] [INF] [20] Emby.Server.Implementations.Session.SessionManager: Current/Max sessions for user "root": 0/0 [2024-05-11 20:58:52.318 +00:00] [INF] [20] Emby.Server.Implementations.Session.SessionManager: Creating new access token for user xxxxxxx [2024-05-11 20:58:52.516 +00:00] [INF] [41] Emby.Server.Implementations.HttpServer.WebSocketManager: WS "xxxxxxxxx" request ``` ### FFmpeg logs _No response_ ### Please attach any browser or client logs here _No response_ ### Please attach any screenshots here _No response_ ### Code of Conduct - [X] I agree to follow this project's Code of Conduct
OVERLORD added the bug label 2026-02-07 02:05:59 +03:00
Author
Owner

@MustThinkOfAName commented on GitHub (May 12, 2024):

It seems that within the local storage; I specifically need to delete the jellyfin_credentials key to be able to connect to my server.

@MustThinkOfAName commented on GitHub (May 12, 2024): It seems that within the local storage; I specifically need to delete the` jellyfin_credentials` key to be able to connect to my server.
Author
Owner

@MustThinkOfAName commented on GitHub (May 12, 2024):

Solved my issue by removing this option from my docker-compose file.

    environment:
      - JELLYFIN_PublishedServerUrl=https://xxxxxxxxx/
@MustThinkOfAName commented on GitHub (May 12, 2024): Solved my issue by removing this option from my docker-compose file. ``` environment: - JELLYFIN_PublishedServerUrl=https://xxxxxxxxx/ ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/jellyfin#5687