Unable to connect to Jellyfin on first start #2052

Closed
opened 2026-02-06 21:41:36 +03:00 by OVERLORD · 5 comments
Owner

Originally created by @quentinus95 on GitHub (Aug 17, 2020).

Describe the bug
I'm trying to start the app, but I can't pass the first screen of the wizard. Screen locks on a loading spinner when clicking on Next on the language selection screen.

System (please complete the following information):

  • OS: Debian
  • Virtualization: Docker
  • Clients: Web
  • Browser: Chrome 84
  • Jellyfin Version: docker.io/jellyfin/jellyfin:10.6.3
  • Playback: N/A
  • Installed Plugins: N/A
  • Reverse Proxy: N/A
  • Base URL: None
  • Networking: N/A
  • Storage: NFS

To Reproduce
Start a new container and try to use the wizard.

Expected behavior
Being able to log in the app.

Logs
When clicking on Next, server-side:

image

[13:19:29] [INF] [20] Jellyfin.Api.Auth.CustomAuthenticationHandler: CustomAuthentication was not authenticated. Failure message: Invalid user

Client-side:

Error opening web socket: Error: Cannot open web socket without access token.
bundle.js?v=17:266 Requesting url without automatic networking: https://<redacted>/Startup/Configuration
bundle.js?v=17:266 Requesting url without automatic networking: https://<redacted>//Startup/Configuration
bundle.js?v=17:266 POST https://<redacted>/Startup/Configuration net::ERR_ABORTED 400
w @ bundle.js?v=17:266
value @ bundle.js?v=17:266
value @ bundle.js?v=17:266
(anonymous) @ start.js?v=17:1
Promise.then (async)
save @ start.js?v=17:1
onSubmit @ start.js?v=17:1
dispatch @ bundle.js?v=17:25
m.handle @ bundle.js?v=17:25
/web/index.html?start=wizard#!/wizardstart.html?start=wizard:1 Uncaught (in promise) Response {type: "basic", url: "<redacted>/Startup/Configuration", redirected: false, status: 400, ok: false, …}

When trying to login using the login form (bypassing the wizard), server-side, trying to connect with username jellyfin, no password:

System.NullReferenceException: Object reference not set to an instance of an object.
   at Emby.Server.Implementations.ResourceFileManager.GetResourcePath(String basePath, String virtualPath)
   at MediaBrowser.WebDashboard.Api.DashboardService.Get(GetDashboardResource request)
   at Emby.Server.Implementations.Services.ServiceExecGeneral.GetTaskResult(Task task)
   at Emby.Server.Implementations.Services.ServiceHandler.ProcessRequestAsync(HttpListenerHost httpHost, IRequest httpReq, HttpResponse httpRes, ILogger logger, CancellationToken cancellationToken)
   at Emby.Server.Implementations.HttpServer.HttpListenerHost.RequestHandler(IHttpRequest httpReq, String urlString, String host, String localPath, CancellationToken cancellationToken)
Originally created by @quentinus95 on GitHub (Aug 17, 2020). **Describe the bug** I'm trying to start the app, but I can't pass the first screen of the wizard. Screen locks on a loading spinner when clicking on `Next` on the language selection screen. **System (please complete the following information):** - OS: Debian - Virtualization: Docker - Clients: Web - Browser: Chrome 84 - Jellyfin Version: docker.io/jellyfin/jellyfin:10.6.3 - Playback: N/A - Installed Plugins: N/A - Reverse Proxy: N/A - Base URL: None - Networking: N/A - Storage: NFS **To Reproduce** Start a new container and try to use the wizard. **Expected behavior** Being able to log in the app. **Logs** When clicking on Next, server-side: ![image](https://user-images.githubusercontent.com/8060564/90401876-e0408200-e09e-11ea-9cda-b3fc60560240.png) ``` [13:19:29] [INF] [20] Jellyfin.Api.Auth.CustomAuthenticationHandler: CustomAuthentication was not authenticated. Failure message: Invalid user ``` Client-side: ``` Error opening web socket: Error: Cannot open web socket without access token. bundle.js?v=17:266 Requesting url without automatic networking: https://<redacted>/Startup/Configuration bundle.js?v=17:266 Requesting url without automatic networking: https://<redacted>//Startup/Configuration bundle.js?v=17:266 POST https://<redacted>/Startup/Configuration net::ERR_ABORTED 400 w @ bundle.js?v=17:266 value @ bundle.js?v=17:266 value @ bundle.js?v=17:266 (anonymous) @ start.js?v=17:1 Promise.then (async) save @ start.js?v=17:1 onSubmit @ start.js?v=17:1 dispatch @ bundle.js?v=17:25 m.handle @ bundle.js?v=17:25 /web/index.html?start=wizard#!/wizardstart.html?start=wizard:1 Uncaught (in promise) Response {type: "basic", url: "<redacted>/Startup/Configuration", redirected: false, status: 400, ok: false, …} ``` When trying to login using the login form (bypassing the wizard), server-side, trying to connect with username `jellyfin`, no password: ``` System.NullReferenceException: Object reference not set to an instance of an object. at Emby.Server.Implementations.ResourceFileManager.GetResourcePath(String basePath, String virtualPath) at MediaBrowser.WebDashboard.Api.DashboardService.Get(GetDashboardResource request) at Emby.Server.Implementations.Services.ServiceExecGeneral.GetTaskResult(Task task) at Emby.Server.Implementations.Services.ServiceHandler.ProcessRequestAsync(HttpListenerHost httpHost, IRequest httpReq, HttpResponse httpRes, ILogger logger, CancellationToken cancellationToken) at Emby.Server.Implementations.HttpServer.HttpListenerHost.RequestHandler(IHttpRequest httpReq, String urlString, String host, String localPath, CancellationToken cancellationToken) ```
OVERLORD added the bug label 2026-02-06 21:41:36 +03:00
Author
Owner

@csveritas commented on GitHub (Sep 22, 2020):

Same issue on Debian 4.19 in docker behind reverse proxy, but when I click the back arrow I also see

jellyfin         | [02:50:30] [ERR] [68] Emby.Server.Implementations.HttpServer.HttpListenerHost: Could not find handler for /controllers/auth/login.js
jellyfin         | [02:50:30] [ERR] [68] Emby.Server.Implementations.HttpServer.HttpListenerHost: Error processing request: Unable to find the specified file. URL: http://<internalDomain>/controllers/auth/login.js?v=21

Looks like a broken reference to the file that's actually at /web/controllers/auth/login.js ?

@csveritas commented on GitHub (Sep 22, 2020): Same issue on Debian 4.19 in docker behind reverse proxy, but when I click the back arrow I also see ``` jellyfin | [02:50:30] [ERR] [68] Emby.Server.Implementations.HttpServer.HttpListenerHost: Could not find handler for /controllers/auth/login.js jellyfin | [02:50:30] [ERR] [68] Emby.Server.Implementations.HttpServer.HttpListenerHost: Error processing request: Unable to find the specified file. URL: http://<internalDomain>/controllers/auth/login.js?v=21 ``` Looks like a broken reference to the file that's actually at `/web/controllers/auth/login.js` ?
Author
Owner

@johnhamelink commented on GitHub (Oct 7, 2020):

I'm also experiencing this issue, it happened to me while modifying the poster of a TV show. The iOS app continues to work fine: it seems to be an issue with the web component only.

@johnhamelink commented on GitHub (Oct 7, 2020): I'm also experiencing this issue, it happened to me while modifying the poster of a TV show. The iOS app continues to work fine: it seems to be an issue with the web component only.
Author
Owner

@quentinus95 commented on GitHub (Nov 1, 2020):

It looks like this has been fixed in 10.6.4.

@quentinus95 commented on GitHub (Nov 1, 2020): It looks like this has been fixed in `10.6.4`.
Author
Owner

@CalebFenton commented on GitHub (Dec 19, 2020):

I'm having the same issue with 10.6.4 on Windows. Can't get past very first screen in the Wizard. Same spinner. This is the server error:

[2020-12-18 15:11:02.592 -08:00] [INF] [10] Jellyfin.Api.Auth.CustomAuthenticationHandler: "CustomAuthentication" was not authenticated. Failure message: "Invalid user"

This is the browser error (in the console):

Failed to load resource: the server responded with a status of 400 (Bad Request)
:8096/web/index.html?start=wizard#!/wizardstart.html?start=wizard:1 Uncaught (in promise) Response
4bundle.js?v=18:266 Error opening web socket: Error: Cannot open web socket without access token.

Seems like the issue is fixed in 10.7.0~rc1. That's working fine.

@CalebFenton commented on GitHub (Dec 19, 2020): I'm having the same issue with 10.6.4 on Windows. Can't get past very first screen in the Wizard. Same spinner. This is the server error: ```[2020-12-18 15:11:02.583 -08:00] [INF] [6] Jellyfin.Api.Auth.CustomAuthenticationHandler: "CustomAuthentication" was not authenticated. Failure message: "Invalid user" [2020-12-18 15:11:02.592 -08:00] [INF] [10] Jellyfin.Api.Auth.CustomAuthenticationHandler: "CustomAuthentication" was not authenticated. Failure message: "Invalid user" ``` This is the browser error (in the console): ``` Failed to load resource: the server responded with a status of 400 (Bad Request) :8096/web/index.html?start=wizard#!/wizardstart.html?start=wizard:1 Uncaught (in promise) Response 4bundle.js?v=18:266 Error opening web socket: Error: Cannot open web socket without access token. ``` Seems like the issue is fixed in 10.7.0~rc1. That's working fine.
Author
Owner

@zenodotus280 commented on GitHub (Feb 14, 2021):

For anyone else reading this in the future, try switching between your local IP, localhost, and 127.0.0.1. Takes a minute and may save you hours - it did for me.

@zenodotus280 commented on GitHub (Feb 14, 2021): For anyone else reading this in the future, try switching between your local IP, localhost, and 127.0.0.1. Takes a minute and may save you hours - it did for me.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/jellyfin#2052