jellyfin / jellyfin

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

[Issue]: WebUI does not load #11598

Open tarumes opened 1 month ago

tarumes commented 1 month ago

Please describe your bug

as i updated from 10.8.13 to 10.9.0 the WebUI does nothing

since i dont get browser log i dont know if its related to https://github.com/jellyfin/jellyfin/issues/11597

Reproduction Steps

as i updated from 10.8.13 to 10.9.1

Jellyfin Version

10.9.0

Environment

- OS:
Distributor ID: Debian
Description:    Debian GNU/Linux 12 (bookworm)
Release:    12
Codename:   bookworm

Jellyfin logs

[2024-05-13 12:39:10.146 +02:00] [INF] Jellyfin version: "10.9.0"
[2024-05-13 12:39:10.184 +02:00] [INF] Environment Variables: ["[JELLYFIN_ADDITIONAL_OPTS, ]", "[JELLYFIN_CONFIG_DIR, /etc/jellyfin]", "[JELLYFIN_USER, jellyfin]", "[JELLYFIN_DATA_DIR, /var/lib/jellyfin]", "[JELLYFIN_ARGS, $JELLYFIN_WEB_OPT $JELLYFIN_FFMPEG_OPT $JELLYFIN_SERVICE_OPT $JELLYFIN_NOWEBAPP_OPT $JELLFIN_ADDITIONAL_OPTS --datadir $JELLYFIN_DATA_DIR --configdir $JELLYFIN_CONFIG_DIR --logdir $JELLYFIN_LOG_DIR --cachedir $JELLYFIN_CACHE_DIR]", "[JELLYFIN_WEB_OPT, --webdir=/usr/share/jellyfin/web]", "[JELLYFIN_CACHE_DIR, /var/cache/jellyfin]", "[JELLYFIN_FFMPEG_OPT, --ffmpeg=/usr/lib/jellyfin-ffmpeg/ffmpeg]", "[JELLYFIN_LOG_DIR, /var/log/jellyfin]"]
[2024-05-13 12:39:10.185 +02:00] [INF] Arguments: ["/usr/lib/jellyfin/bin/jellyfin.dll", "--webdir=/usr/share/jellyfin/web", "--ffmpeg=/usr/lib/jellyfin-ffmpeg/ffmpeg"]
[2024-05-13 12:39:10.185 +02:00] [INF] Operating system: "Debian GNU/Linux 12 (bookworm)"
[2024-05-13 12:39:10.185 +02:00] [INF] Architecture: X64
[2024-05-13 12:39:10.186 +02:00] [INF] 64-Bit Process: True
[2024-05-13 12:39:10.186 +02:00] [INF] User Interactive: True
[2024-05-13 12:39:10.186 +02:00] [INF] Processor count: 8
[2024-05-13 12:39:10.186 +02:00] [INF] Program data path: "/var/lib/jellyfin"
[2024-05-13 12:39:10.186 +02:00] [INF] Log directory path: "/var/log/jellyfin"
[2024-05-13 12:39:10.186 +02:00] [INF] Config directory path: "/etc/jellyfin"
[2024-05-13 12:39:10.186 +02:00] [INF] Cache path: "/var/cache/jellyfin"
[2024-05-13 12:39:10.186 +02:00] [INF] Web resources path: "/usr/share/jellyfin/web"
[2024-05-13 12:39:10.187 +02:00] [INF] Application directory: "/usr/lib/jellyfin/bin/"
[2024-05-13 12:39:10.285 +02:00] [INF] Setting cache path: "/var/cache/jellyfin"
[2024-05-13 12:39:10.339 +02:00] [INF] Loading assemblies
[2024-05-13 12:39:10.359 +02:00] [INF] Loaded assembly "Jellyfin.Plugin.PlaybackReporting, Version=14.0.0.0, Culture=neutral, PublicKeyToken=null" from "/var/lib/jellyfin/plugins/Playback Reporting_14.0.0.0/Jellyfin.Plugin.PlaybackReporting.dll"
[2024-05-13 12:39:10.360 +02:00] [INF] Loaded assembly "SQLitePCL.pretty, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" from "/var/lib/jellyfin/plugins/Playback Reporting_14.0.0.0/SQLitePCL.pretty.dll"
[2024-05-13 12:39:10.367 +02:00] [INF] Loaded assembly "Jellyfin.Plugin.Reports, Version=17.0.0.0, Culture=neutral, PublicKeyToken=null" from "/var/lib/jellyfin/plugins/Reports_17.0.0.0/Jellyfin.Plugin.Reports.dll"
[2024-05-13 12:39:10.368 +02:00] [INF] Loaded assembly "System.IO.Packaging, Version=4.0.5.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" from "/var/lib/jellyfin/plugins/Reports_17.0.0.0/System.IO.Packaging.dll"
[2024-05-13 12:39:10.384 +02:00] [INF] Loaded assembly "ClosedXML, Version=0.97.0.0, Culture=neutral, PublicKeyToken=fd1eb21b62ae805b" from "/var/lib/jellyfin/plugins/Reports_17.0.0.0/ClosedXML.dll"
[2024-05-13 12:39:10.384 +02:00] [INF] Loaded assembly "ExcelNumberFormat, Version=1.1.0.0, Culture=neutral, PublicKeyToken=23c6f5d73be07eca" from "/var/lib/jellyfin/plugins/Reports_17.0.0.0/ExcelNumberFormat.dll"
[2024-05-13 12:39:10.389 +02:00] [INF] Loaded assembly "SixLabors.Fonts, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d998eea7b14cab13" from "/var/lib/jellyfin/plugins/Reports_17.0.0.0/SixLabors.Fonts.dll"
[2024-05-13 12:39:10.472 +02:00] [INF] Loaded assembly "DocumentFormat.OpenXml, Version=2.16.0.0, Culture=neutral, PublicKeyToken=8fb06cb64d019a17" from "/var/lib/jellyfin/plugins/Reports_17.0.0.0/DocumentFormat.OpenXml.dll"
[2024-05-13 12:39:10.474 +02:00] [INF] Loaded assembly "Jellyfin.Plugin.SessionCleaner, Version=3.0.0.0, Culture=neutral, PublicKeyToken=null" from "/var/lib/jellyfin/plugins/Session Cleaner_3.0.0.0/Jellyfin.Plugin.SessionCleaner.dll"
[2024-05-13 12:39:10.532 +02:00] [INF] Defined LAN addresses: ["127.0.0.1/8", "10.0.0.0/8", "172.16.0.0/12", "192.168.0.0/16"]
[2024-05-13 12:39:10.533 +02:00] [INF] Defined LAN exclusions: []
[2024-05-13 12:39:10.533 +02:00] [INF] Using LAN addresses: ["127.0.0.1/8", "10.0.0.0/8", "172.16.0.0/12", "192.168.0.0/16"]
[2024-05-13 12:39:10.534 +02:00] [INF] Using bind addresses: ["127.0.0.1"]
[2024-05-13 12:39:10.534 +02:00] [INF] Remote IP filter is "Allowlist"
[2024-05-13 12:39:10.534 +02:00] [INF] Filter list: []
[2024-05-13 12:39:12.975 +02:00] [INF] Loaded plugin: "Playback Reporting" "14.0.0.0"
[2024-05-13 12:39:12.976 +02:00] [INF] Loaded plugin: "Reports" "17.0.0.0"
[2024-05-13 12:39:12.977 +02:00] [INF] Loaded plugin: "Session Cleaner" "3.0.0.0"
[2024-05-13 12:39:12.978 +02:00] [INF] Loaded plugin: "TMDb" "10.9.0.0"
[2024-05-13 12:39:12.978 +02:00] [INF] Loaded plugin: "Studio Images" "10.9.0.0"
[2024-05-13 12:39:12.978 +02:00] [INF] Loaded plugin: "OMDb" "10.9.0.0"
[2024-05-13 12:39:12.994 +02:00] [INF] Loaded plugin: "MusicBrainz" "10.9.0.0"
[2024-05-13 12:39:12.995 +02:00] [INF] Loaded plugin: "AudioDB" "10.9.0.0"
[2024-05-13 12:39:13.049 +02:00] [INF] Kestrel is listening on "127.0.0.1"
[2024-05-13 12:39:13.061 +02:00] [INF] EventMonitorEntryPoint Running
[2024-05-13 12:39:13.068 +02:00] [INF] Sqlite version: 3.41.2
[2024-05-13 12:39:13.069 +02:00] [INF] Sqlite compiler options: ATOMIC_INTRINSICS=1,COMPILER=gcc-9.4.0,DEFAULT_AUTOVACUUM,DEFAULT_CACHE_SIZE=-2000,DEFAULT_FILE_FORMAT=4,DEFAULT_FOREIGN_KEYS,DEFAULT_JOURNAL_SIZE_LIMIT=-1,DEFAULT_MMAP_SIZE=0,DEFAULT_PAGE_SIZE=4096,DEFAULT_PCACHE_INITSZ=20,DEFAULT_RECURSIVE_TRIGGERS,DEFAULT_SECTOR_SIZE=4096,DEFAULT_SYNCHRONOUS=2,DEFAULT_WAL_AUTOCHECKPOINT=1000,DEFAULT_WAL_SYNCHRONOUS=2,DEFAULT_WORKER_THREADS=0,ENABLE_COLUMN_METADATA,ENABLE_FTS3,ENABLE_FTS3_PARENTHESIS,ENABLE_FTS4,ENABLE_FTS5,ENABLE_MATH_FUNCTIONS,ENABLE_RTREE,ENABLE_SNAPSHOT,MALLOC_SOFT_LIMIT=1024,MAX_ATTACHED=10,MAX_COLUMN=2000,MAX_COMPOUND_SELECT=500,MAX_DEFAULT_PAGE_SIZE=8192,MAX_EXPR_DEPTH=1000,MAX_FUNCTION_ARG=127,MAX_LENGTH=1000000000,MAX_LIKE_PATTERN_LENGTH=50000,MAX_MMAP_SIZE=0x7fff0000,MAX_PAGE_COUNT=1073741823,MAX_PAGE_SIZE=65536,MAX_SQL_LENGTH=1000000000,MAX_TRIGGER_DEPTH=1000,MAX_VARIABLE_NUMBER=32766,MAX_VDBE_OP=250000000,MAX_WORKER_THREADS=8,MUTEX_PTHREADS,SYSTEM_MALLOC,TEMP_STORE=1,THREADSAFE=1
[2024-05-13 12:39:13.079 +02:00] [INF] Default journal_mode for "/var/lib/jellyfin/data/playback_reporting.db" is "delete"
[2024-05-13 12:39:13.079 +02:00] [INF] Initialize PlaybackActivity Repository
[2024-05-13 12:39:13.082 +02:00] [INF] PlaybackActivity table schema OK
[2024-05-13 12:39:13.082 +02:00] [INF] Expected : "datecreated:datetime|userid:text|itemid:text|itemtype:text|itemname:text|playbackmethod:text|clientname:text|devicename:text|playduration:int"
[2024-05-13 12:39:13.082 +02:00] [INF] Received : "datecreated:datetime|userid:text|itemid:text|itemtype:text|itemname:text|playbackmethod:text|clientname:text|devicename:text|playduration:int"
[2024-05-13 12:39:13.623 +02:00] [WRN] The WebRootPath was not found: "/var/lib/jellyfin/wwwroot". Static files may be unavailable.
[2024-05-13 12:39:13.653 +02:00] [INF] Running startup tasks
[2024-05-13 12:39:13.654 +02:00] [INF] Watching directory "/srv/dev-disk-by-uuid-ede863bd-3f69-4f6f-b891-56154d233867/Media/Pictures"
[2024-05-13 12:39:13.655 +02:00] [INF] Watching directory "/srv/dev-disk-by-uuid-ede863bd-3f69-4f6f-b891-56154d233867/Media/Movies"
[2024-05-13 12:39:13.655 +02:00] [INF] TaskCleanDb Loaded
[2024-05-13 12:39:13.656 +02:00] [INF] TaskRunBackup Loaded
[2024-05-13 12:39:13.668 +02:00] [INF] Watching directory "/srv/dev-disk-by-uuid-ede863bd-3f69-4f6f-b891-56154d233867/Media/Music"
[2024-05-13 12:39:13.669 +02:00] [INF] Daily trigger for "Playback Reporting Trim Db" set to fire at 2024-05-14 00:00:00.000 +02:00, which is 11:20:46.3307796 from now.
[2024-05-13 12:39:13.675 +02:00] [INF] Daily trigger for "Trickplay-Bilder generieren" set to fire at 2024-05-14 03:00:00.000 +02:00, which is 14:20:46.3241373 from now.
[2024-05-13 12:39:13.678 +02:00] [INF] Daily trigger for "Extrahiere Kapitel-Bilder" set to fire at 2024-05-14 02:00:00.000 +02:00, which is 13:20:46.3217852 from now.
[2024-05-13 12:39:13.684 +02:00] [INF] Watching directory "/srv/dev-disk-by-uuid-ede863bd-3f69-4f6f-b891-56154d233867/Media/Series/Anime/Series_SD"
[2024-05-13 12:39:13.685 +02:00] [INF] Daily trigger for "Datenbank optimieren" set to fire at 2024-05-14 04:00:00.000 +02:00, which is 15:20:46.3143726 from now.
[2024-05-13 12:39:13.707 +02:00] [INF] Found ffmpeg version "6.0.1"
[2024-05-13 12:39:13.755 +02:00] [INF] Available "decoders": ["libdav1d", "av1", "av1_cuvid", "av1_qsv", "h264", "h264_qsv", "h264_cuvid", "hevc", "hevc_qsv", "hevc_cuvid", "mpeg2video", "mpeg2_qsv", "mpeg2_cuvid", "mpeg4", "mpeg4_cuvid", "msmpeg4", "vc1_qsv", "vc1_cuvid", "vp8", "libvpx", "vp8_cuvid", "vp8_qsv", "vp9", "libvpx-vp9", "vp9_cuvid", "vp9_qsv", "aac", "ac3", "dca", "flac", "mp3", "truehd"]
[2024-05-13 12:39:13.772 +02:00] [INF] Available "encoders": ["libsvtav1", "av1_nvenc", "av1_qsv", "av1_amf", "av1_vaapi", "libx264", "h264_amf", "h264_nvenc", "h264_qsv", "h264_v4l2m2m", "h264_vaapi", "libx265", "hevc_amf", "hevc_nvenc", "hevc_qsv", "hevc_vaapi", "mjpeg_qsv", "mjpeg_vaapi", "mpeg4", "msmpeg4", "libvpx", "libvpx-vp9", "aac", "libfdk_aac", "ac3", "alac", "dca", "flac", "libmp3lame", "libopus", "truehd", "libvorbis", "srt"]
[2024-05-13 12:39:13.790 +02:00] [INF] Available filters: ["deinterlace_qsv", "deinterlace_vaapi", "hwupload_cuda", "hwupload_vaapi", "libplacebo", "overlay_opencl", "overlay_qsv", "overlay_vaapi", "overlay_vulkan", "overlay_cuda", "procamp_vaapi", "scale_cuda", "scale_opencl", "scale_qsv", "scale_vaapi", "scale_vulkan", "tonemap_cuda", "tonemap_opencl", "tonemap_vaapi", "vpp_qsv", "yadif_cuda", "zscale", "alphasrc"]
[2024-05-13 12:39:13.889 +02:00] [INF] Available hwaccel types: ["cuda", "vaapi", "qsv", "drm", "opencl", "vulkan"]
[2024-05-13 12:39:14.039 +02:00] [INF] FFmpeg: "/usr/lib/jellyfin-ffmpeg/ffmpeg"
[2024-05-13 12:39:14.039 +02:00] [INF] ServerId: "f2fa869ae6be4a56826024bde984256d"
[2024-05-13 12:39:14.039 +02:00] [INF] Core startup complete
[2024-05-13 12:39:14.039 +02:00] [INF] Startup complete 0:00:03.9998285
[2024-05-13 12:39:16.693 +02:00] [INF] "Sammlungen und Playlisten aufräumen" Completed after 0 minute(s) and 0 seconds
[2024-05-13 12:39:17.858 +02:00] [INF] "Aktualisiere Plugins" Completed after 0 minute(s) and 1 seconds

FFmpeg logs

-

Please attach any browser or client logs here

no logs in browser

Please attach any screenshots here

Screenshot_20240513_124534

Code of Conduct

jellyfin-bot commented 1 month ago

Hi, it seems like your issue report has the following item(s) that need to be addressed:

This is an automated message, currently under testing. Please file an issue here if you encounter any problems.

tarumes commented 1 month ago

duplicate https://github.com/jellyfin/jellyfin/issues/11597 after some tests something is aggressively saved in the browser cache

edit 2:

mirolm commented 1 month ago

Same happens to me. Ocurrs in both jellyfin-web and jellyfin-media-payer.

Also happens in both scenarions - with or without reverse proxy.

To reproduce:

  1. Go to "Sign Out" from the jellyfin web.
  2. When you are in the login screen you can refresh or go back to the original address like https://jellyfin.yourdomain.com.
  3. Jellyfin login screen never shows.

When this happens i see in jellyfin log:

[2024-05-13 16:32:36.374 +00:00] [INF] "CustomAuthentication" was not authenticated. Failure message: "Invalid token."
[2024-05-13 16:32:36.384 +00:00] [INF] "CustomAuthentication" was not authenticated. Failure message: "Invalid token."
[2024-05-13 16:32:36.414 +00:00] [INF] "CustomAuthentication" was not authenticated. Failure message: "Invalid token."
[2024-05-13 16:32:36.415 +00:00] [INF] "CustomAuthentication" was not authenticated. Failure message: "Invalid token."
[2024-05-13 16:32:36.417 +00:00] [INF] "CustomAuthentication" was not authenticated. Failure message: "Invalid token."
[2024-05-13 16:32:36.419 +00:00] [INF] AuthenticationScheme: "CustomAuthentication" was challenged.
[2024-05-13 16:32:36.422 +00:00] [ERR] Error processing request: "Invalid token". URL "GET" "/socket".
[2024-05-13 16:32:36.425 +00:00] [INF] "CustomAuthentication" was not authenticated. Failure message: "Invalid token."
[2024-05-13 16:32:36.426 +00:00] [INF] "CustomAuthentication" was not authenticated. Failure message: "Invalid token."
[2024-05-13 16:32:36.427 +00:00] [INF] AuthenticationScheme: "CustomAuthentication" was challenged.
[2024-05-13 16:32:36.509 +00:00] [INF] "CustomAuthentication" was not authenticated. Failure message: "Invalid token."
[2024-05-13 16:32:36.510 +00:00] [INF] "CustomAuthentication" was not authenticated. Failure message: "Invalid token."
[2024-05-13 16:32:36.534 +00:00] [INF] "CustomAuthentication" was not authenticated. Failure message: "Invalid token."
[2024-05-13 16:32:36.534 +00:00] [INF] "CustomAuthentication" was not authenticated. Failure message: "Invalid token."
[2024-05-13 16:32:36.537 +00:00] [INF] "CustomAuthentication" was not authenticated. Failure message: "Invalid token."
[2024-05-13 16:32:36.538 +00:00] [INF] "CustomAuthentication" was not authenticated. Failure message: "Invalid token."
[2024-05-13 16:32:36.538 +00:00] [INF] AuthenticationScheme: "CustomAuthentication" was challenged.
[2024-05-13 16:32:36.538 +00:00] [INF] AuthenticationScheme: "CustomAuthentication" was challenged.
[2024-05-13 16:32:36.574 +00:00] [INF] "CustomAuthentication" was not authenticated. Failure message: "Invalid token."
[2024-05-13 16:32:36.576 +00:00] [ERR] Error processing request: "Invalid token". URL "GET" "/socket".
[2024-05-13 16:32:37.925 +00:00] [INF] "Clean up collections and playlists" Completed after 0 minute(s) and 0 seconds
[2024-05-13 16:32:39.252 +00:00] [INF] "Update Plugins" Completed after 0 minute(s) and 1 seconds
[2024-05-13 16:32:43.120 +00:00] [INF] "CustomAuthentication" was not authenticated. Failure message: "Invalid token."
[2024-05-13 16:32:43.120 +00:00] [INF] "CustomAuthentication" was not authenticated. Failure message: "Invalid token."
[2024-05-13 16:32:43.120 +00:00] [INF] AuthenticationScheme: "CustomAuthentication" was challenged.
[2024-05-13 16:32:43.126 +00:00] [INF] "CustomAuthentication" was not authenticated. Failure message: "Invalid token."
[2024-05-13 16:32:43.128 +00:00] [INF] "CustomAuthentication" was not authenticated. Failure message: "Invalid token."
[2024-05-13 16:32:43.128 +00:00] [INF] AuthenticationScheme: "CustomAuthentication" was challenged.

In the chromium log we have:

image

Easiest workaround is to delete site data in the browser. To get out of this in jellyfin media player you need to stop jellyfin as a service in order to get to add/delete server screen.

Ozwel commented 1 month ago

Having that issue too.

Accessing the web interface from localhost or using the server's IP works every time. Seems to fail only when using the domain name.

Private/Incognito browsing session doesn't help.

I've had no issue with 10.8.13 for months.

will-molloy commented 1 month ago

Clearing cache doesn't help.

Ozwel commented 1 month ago

Clearing cache doesn't help.

Isn’t it resolved with 10.9.2?

tarumes commented 1 month ago

Clearing cache doesn't help.

might be good to have some more data @will-molloy

clientside:

XeClutch commented 1 month ago

Ran into this myself, here's a workaround:

  1. Launch jellyfin at <ip>:<port>/web/index.html
  2. Open browser devtools, go to Network tab
  3. Disable cache
  4. Clear all cookies and site data
  5. Go to <ip>:<port> image image

At that point you should be prompted to log back in. Something is going on with the authentication, not sure what. Note: Some of those steps may be unnecessary but that's what I did to get back into my library.

hughwilliams94 commented 2 weeks ago

Even using the above workaround doesn't work for me. I've noticed that the issue only occurs if I'm disconnected from the internet. I'm running jellyfin locally on my laptop using the jellyfin and jellyfin-web packages from Alpine Linux. It shouldn't be making requests to the internet presumably but it seems to hang as if it is waiting for a connection. Checking the browser network logs when it is connected to the internet doesn't show any reqeusts to addresses other than localhost