jellyfin / jellyfin-web

Web Client for Jellyfin
https://jellyfin.org
GNU General Public License v2.0
2.42k stars 1.29k forks source link

Web interface gets stuck on loading screen #2525

Closed sang-ook closed 3 years ago

sang-ook commented 3 years ago

Describe The Bug

When I deploy the latest version of Jellyfin via Portainer on Raspberry Pi 4, it gets stuck on loading screen. There were a similar bugs mentioned in #2493 and #2494. Well, I do have plugin section in my config.json file and the same issue is still happening.

Steps To Reproduce

  1. Deploy the latest version of Jellyfin via Portainer.
  2. Go to Jellyfin's web interface.
  3. Get stuck on loading screen.

Expected Behavior

Web interface should show initial setup page.

Logs

[18:35:12] [INF] [1] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: Available decoders: ["h264", "h264_mmal", "hevc", "mpeg2video", "mpeg2_mmal", "mpeg4", "mpeg4_mmal", "msmpeg4", "vc1_mmal", "aac", "ac3", "flac", "mp3"], [18:35:12] [INF] [1] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: Available encoders: ["libx264", "h264_omx", "h264_v4l2m2m", "libx265", "mpeg4", "msmpeg4", "libvpx", "libvpx-vp9", "aac", "ac3", "flac", "libmp3lame", "libopus", "libvorbis", "srt"], [18:35:12] [INF] [1] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: Available hwaccel types: ["vdpau", "drm"], [18:35:12] [INF] [1] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: FFmpeg: SetByArgument: /usr/lib/jellyfin-ffmpeg/ffmpeg, [18:35:12] [INF] [1] Emby.Server.Implementations.ApplicationHost: ServerId: 65fe656c20554324b10f0dad800800ff, [18:35:13] [INF] [1] Emby.Dlna.Main.DlnaEntryPoint: Registering publisher for urn:schemas-upnp-org:device:MediaServer:1 on 172.17.0.6/16, [18:35:13] [INF] [1] Emby.Server.Implementations.ApplicationHost: Executed all pre-startup entry points in 0:00:00.3817152, [18:35:13] [INF] [1] Emby.Server.Implementations.ApplicationHost: Core startup complete, [18:35:13] [INF] [1] Emby.Server.Implementations.ApplicationHost: Executed all post-startup entry points in 0:00:00.3756341, [18:35:13] [INF] [1] Main: Startup complete 0:00:09.6415843, [18:35:15] [INF] [11] Emby.Server.Implementations.ScheduledTasks.TaskManager: StartupTrigger fired for task: Update Plugins, [18:35:15] [INF] [11] Emby.Server.Implementations.ScheduledTasks.TaskManager: Queuing task PluginUpdateTask, [18:35:15] [INF] [4] Emby.Server.Implementations.ScheduledTasks.TaskManager: Executing Update Plugins, [18:35:17] [INF] [10] Emby.Server.Implementations.ScheduledTasks.TaskManager: Update Plugins Completed after 0 minute(s) and 1 seconds, [18:35:17] [INF] [10] Emby.Server.Implementations.ScheduledTasks.TaskManager: ExecuteQueuedTasks, [18:35:55] [WRN] [21] Jellyfin.Server.Middleware.ResponseTimeMiddleware: Slow HTTP Response from http://192.168.1.61:8096/System/Info/Public to 192.168.1.82 in 0:00:00.7302072 with Status Code 200, [18:35:56] [INF] [25] Jellyfin.Api.Auth.CustomAuthenticationHandler: CustomAuthentication was not authenticated. Failure message: Invalid token., [18:35:56] [INF] [21] Jellyfin.Api.Auth.CustomAuthenticationHandler: CustomAuthentication was not authenticated. Failure message: Invalid token., [18:35:56] [INF] [18] Jellyfin.Api.Auth.CustomAuthenticationHandler: CustomAuthentication was not authenticated. Failure message: Invalid token., [18:35:56] [INF] [27] Jellyfin.Api.Auth.CustomAuthenticationHandler: CustomAuthentication was not authenticated. Failure message: Invalid token., [18:35:56] [INF] [21] Jellyfin.Api.Auth.CustomAuthenticationHandler: CustomAuthentication was not authenticated. Failure message: Invalid token., [18:35:56] [INF] [18] Jellyfin.Api.Auth.CustomAuthenticationHandler: CustomAuthentication was not authenticated. Failure message: Invalid token., [18:35:56] [INF] [25] Jellyfin.Api.Auth.CustomAuthenticationHandler: CustomAuthentication was not authenticated. Failure message: Invalid token., [18:35:56] [INF] [22] Jellyfin.Api.Auth.CustomAuthenticationHandler: CustomAuthentication was not authenticated. Failure message: Invalid token., [18:35:56] [INF] [21] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: CustomAuthentication was challenged., [18:35:56] [INF] [18] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: CustomAuthentication was challenged., [18:35:56] [INF] [25] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: CustomAuthentication was challenged., [18:35:56] [ERR] [27] Jellyfin.Server.Middleware.ExceptionMiddleware: Error processing request. URL GET /Users/a087c22b35fd4e19b0859739215abdc5/Views., System.ArgumentException: User Id specified in the query does not exist. (Parameter 'query'), at Emby.Server.Implementations.Library.UserViewManager.GetUserViews(UserViewQuery query), at Jellyfin.Api.Controllers.UserViewsController.GetUserViews(Guid userId, Nullable`1 includeExternalContent, String[] presetViews, Boolean includeHidden), at lambda_method52(Closure , Object , Object[] ), at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.SyncObjectResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments), at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeActionMethodAsync(), at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted), at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeNextActionFilterAsync(), --- End of stack trace from previous location ---, at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context), at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted), at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeInnerFilterAsync(), --- End of stack trace from previous location ---, at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextResourceFilter>g__Awaited|24_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted), at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResourceExecutedContextSealed context), at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted), at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.InvokeFilterPipelineAsync(), --- End of stack trace from previous location ---, at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope), at Microsoft.AspNetCore.Routing.EndpointMiddleware.<Invoke>g__AwaitRequestTask|6_0(Endpoint endpoint, Task requestTask, ILogger logger), at Jellyfin.Server.Middleware.ServerStartupMessageMiddleware.Invoke(HttpContext httpContext, IServerApplicationHost serverApplicationHost, ILocalizationManager localizationManager), at Jellyfin.Server.Middleware.WebSocketHandlerMiddleware.Invoke(HttpContext httpContext, IWebSocketManager webSocketManager), at Jellyfin.Server.Middleware.IpBasedAccessValidationMiddleware.Invoke(HttpContext httpContext, INetworkManager networkManager, IServerConfigurationManager serverConfigurationManager), at Jellyfin.Server.Middleware.LanFilteringMiddleware.Invoke(HttpContext httpContext, INetworkManager networkManager, IServerConfigurationManager serverConfigurationManager), at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context), at Swashbuckle.AspNetCore.ReDoc.ReDocMiddleware.Invoke(HttpContext httpContext), at Swashbuckle.AspNetCore.SwaggerUI.SwaggerUIMiddleware.Invoke(HttpContext httpContext), at Swashbuckle.AspNetCore.Swagger.SwaggerMiddleware.Invoke(HttpContext httpContext, ISwaggerProvider swaggerProvider), at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context), at Jellyfin.Server.Middleware.RobotsRedirectionMiddleware.Invoke(HttpContext httpContext), at Jellyfin.Server.Middleware.LegacyEmbyRouteRewriteMiddleware.Invoke(HttpContext httpContext), at Microsoft.AspNetCore.ResponseCompression.ResponseCompressionMiddleware.Invoke(HttpContext context), at Jellyfin.Server.Middleware.ResponseTimeMiddleware.Invoke(HttpContext context), at Jellyfin.Server.Middleware.ExceptionMiddleware.Invoke(HttpContext context), [18:35:56] [ERR] [22] Jellyfin.Server.Middleware.ExceptionMiddleware: Error processing request. URL GET /Users/a087c22b35fd4e19b0859739215abdc5/Views., System.ArgumentException: User Id specified in the query does not exist. (Parameter 'query'), at Emby.Server.Implementations.Library.UserViewManager.GetUserViews(UserViewQuery query), at Jellyfin.Api.Controllers.UserViewsController.GetUserViews(Guid userId, Nullable`1 includeExternalContent, String[] presetViews, Boolean includeHidden), at lambda_method52(Closure , Object , Object[] ), at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.SyncObjectResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments), at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeActionMethodAsync(), at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted), at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeNextActionFilterAsync(), --- End of stack trace from previous location ---, at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context), at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted), at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeInnerFilterAsync(), --- End of stack trace from previous location ---, at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextResourceFilter>g__Awaited|24_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted), at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResourceExecutedContextSealed context), at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted), at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.InvokeFilterPipelineAsync(), --- End of stack trace from previous location ---, at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope), at Microsoft.AspNetCore.Routing.EndpointMiddleware.<Invoke>g__AwaitRequestTask|6_0(Endpoint endpoint, Task requestTask, ILogger logger), at Jellyfin.Server.Middleware.ServerStartupMessageMiddleware.Invoke(HttpContext httpContext, IServerApplicationHost serverApplicationHost, ILocalizationManager localizationManager), at Jellyfin.Server.Middleware.WebSocketHandlerMiddleware.Invoke(HttpContext httpContext, IWebSocketManager webSocketManager), at Jellyfin.Server.Middleware.IpBasedAccessValidationMiddleware.Invoke(HttpContext httpContext, INetworkManager networkManager, IServerConfigurationManager serverConfigurationManager), at Jellyfin.Server.Middleware.LanFilteringMiddleware.Invoke(HttpContext httpContext, INetworkManager networkManager, IServerConfigurationManager serverConfigurationManager), at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context), at Swashbuckle.AspNetCore.ReDoc.ReDocMiddleware.Invoke(HttpContext httpContext), at Swashbuckle.AspNetCore.SwaggerUI.SwaggerUIMiddleware.Invoke(HttpContext httpContext), at Swashbuckle.AspNetCore.Swagger.SwaggerMiddleware.Invoke(HttpContext httpContext, ISwaggerProvider swaggerProvider), at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context), at Jellyfin.Server.Middleware.RobotsRedirectionMiddleware.Invoke(HttpContext httpContext), at Jellyfin.Server.Middleware.LegacyEmbyRouteRewriteMiddleware.Invoke(HttpContext httpContext), at Microsoft.AspNetCore.ResponseCompression.ResponseCompressionMiddleware.Invoke(HttpContext context), at Jellyfin.Server.Middleware.ResponseTimeMiddleware.Invoke(HttpContext context), at Jellyfin.Server.Middleware.ExceptionMiddleware.Invoke(HttpContext context), [18:35:58] [INF] [25] Jellyfin.Api.Auth.CustomAuthenticationHandler: CustomAuthentication was not authenticated. Failure message: Invalid token., [18:35:58] [INF] [25] Emby.Server.Implementations.HttpServer.WebSocketManager: WS 192.168.1.82 request, [18:35:58] [WRN] [25] Emby.Server.Implementations.Session.SessionWebSocketListener: Unable to determine session based on query string: ["[api_key, b136daa77c0c45438ad60bc85557b1dd]", "[deviceId, TW96aWxsYS81LjAgKFgxMTsgTGludXggeDg2XzY0OyBydjo3OC4wKSBHZWNrby8yMDEwMDEwMSBGaXJlZm94Lzc4LjB8MTYwNTU2NzA1NjEwMA11]"],

Screenshots

Snímka obrazovky z 2021-03-25 18-36-08

System (please complete the following information):

Additional Context

config.json: { "includeCorsCredentials": false, "multiserver": false, "themes": [ { "name": "Apple TV", "id": "appletv" }, { "name": "Blue Radiance", "id": "blueradiance" }, { "name": "Dark", "id": "dark", "default": true }, { "name": "Light", "id": "light" }, { "name": "Purple Haze", "id": "purplehaze" }, { "name": "WMC", "id": "wmc" } ], "servers": [], "plugins": [ "playAccessValidation/plugin", "experimentalWarnings/plugin", "htmlAudioPlayer/plugin", "htmlVideoPlayer/plugin", "photoPlayer/plugin", "comicsPlayer/plugin", "bookPlayer/plugin", "youtubePlayer/plugin", "backdropScreensaver/plugin", "pdfPlayer/plugin", "logoScreensaver/plugin", "sessionPlayer/plugin", "chromecastPlayer/plugin" ] }

dmitrylyzo commented 3 years ago

Look for errors on Network and Console tabs (Developer Tools). It might be an issue with stored credentials.

pto199 commented 3 years ago

This has been a problem with 10.7.x . Try to log out and log back on. That usually clears the issue. Nobody is working on this issue unfortunately it seems because its seen as an upgrade issue, but it is in fact an occasional problem on fresh installs too.

sang-ook commented 3 years ago

Deleting cache and cookies solved the problem.

wkearney99 commented 2 years ago

Cache and cookies didn't solve it here. Used an entirely different browser that'd never been logged into the server and still getting periodic messages: [2022-06-13 17:06:00.104 -04:00] [INF] "CustomAuthentication" was not authenticated. Failure message: "Invalid token."

I'm getting it with a fresh login, playing some mp3 tracks, and going to the next track burps this specific set of errors:

[2022-06-13 17:08:27.051 -04:00] [INF] User policy for "wkearney". EnableAudioPlaybackTranscoding: True
[2022-06-13 17:08:27.051 -04:00] [INF] "CustomAuthentication" was not authenticated. Failure message: "Invalid token."
[2022-06-13 17:08:27.051 -04:00] [INF] "CustomAuthentication" was not authenticated. Failure message: "Invalid token."
[2022-06-13 17:08:27.051 -04:00] [INF] AuthenticationScheme: "CustomAuthentication" was challenged.
[2022-06-13 17:08:27.102 -04:00] [INF] "CustomAuthentication" was not authenticated. Failure message: "Invalid token."
[2022-06-13 17:08:27.102 -04:00] [INF] "CustomAuthentication" was not authenticated. Failure message: "Invalid token."
[2022-06-13 17:08:27.102 -04:00] [INF] "CustomAuthentication" was not authenticated. Failure message: "Invalid token."
[2022-06-13 17:08:27.102 -04:00] [INF] AuthenticationScheme: "CustomAuthentication" was challenged.
[2022-06-13 17:08:27.102 -04:00] [INF] "CustomAuthentication" was not authenticated. Failure message: "Invalid token."
[2022-06-13 17:08:27.102 -04:00] [INF] AuthenticationScheme: "CustomAuthentication" was challenged.
[2022-06-13 17:08:27.102 -04:00] [INF] "CustomAuthentication" was not authenticated. Failure message: "Invalid token."
[2022-06-13 17:08:27.102 -04:00] [INF] "CustomAuthentication" was not authenticated. Failure message: "Invalid token."
[2022-06-13 17:08:27.102 -04:00] [INF] AuthenticationScheme: "CustomAuthentication" was challenged.
[2022-06-13 17:08:27.104 -04:00] [INF] "CustomAuthentication" was not authenticated. Failure message: "Invalid token."
[2022-06-13 17:08:27.104 -04:00] [INF] "CustomAuthentication" was not authenticated. Failure message: "Invalid token."
[2022-06-13 17:08:27.104 -04:00] [INF] AuthenticationScheme: "CustomAuthentication" was challenged.
jr551 commented 1 year ago

For anyone else searching this in future:

If you are using a reverse proxy, then disable caching to fix (fixed it for me)

DavidMikeSimon commented 1 year ago

I was also experiencing this issue when reverse proxying through nginx. Disabling caching on nginx (both client-side caching and proxy caching) didn't help. The only workaround was to hard reload the client, on every site visit.

Upgrading to the latest version of Jellyfin also appeared not to help. However, after also deleting all local storage for the site on my browser (e.g. in Chrome devtools, Application->Storage->"Clear site data"), everything then started working correctly!