jellyfin / jellyfin-web

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

Difficulty in browsing [Access token is invalid or expired] #401

Closed grafixeyehero closed 5 years ago

grafixeyehero commented 5 years ago

Describe the bug i have incured difficulty in browsing similtiniously in two different pc,

To Reproduce

  1. browse jellyfin into two different pc simultinously
  2. login pc 1 with admin privilage
  3. login pc 2 with user privilage
  4. pc 1 can not be accessed it show spining
  5. while pc 2 works
  6. refresh pc 1 it ask again to login

log file

[2019-08-03 16:16:16.005 +03:00] [INF] Jellyfin version: "10.3.7.0"
[2019-08-03 16:16:16.029 +03:00] [INF] Arguments: ["C:\Users\admin\Documents\GitHub\Jellyfin\Jellyfin.Server\bin\Debug\netcoreapp2.1\jellyfin.dll"]
[2019-08-03 16:16:16.051 +03:00] [INF] Operating system: "Windows"
[2019-08-03 16:16:16.051 +03:00] [INF] Architecture: X64
[2019-08-03 16:16:16.054 +03:00] [INF] 64-Bit Process: True
[2019-08-03 16:16:16.054 +03:00] [INF] User Interactive: True
[2019-08-03 16:16:16.054 +03:00] [INF] Processor count: 4
[2019-08-03 16:16:16.054 +03:00] [INF] Program data path: "C:\Users\admin\AppData\Local\jellyfin"
[2019-08-03 16:16:16.055 +03:00] [INF] Web resources path: "C:\Users\admin\Documents\GitHub\Jellyfin\Jellyfin.Server\bin\Debug\netcoreapp2.1\jellyfin-web\src"
[2019-08-03 16:16:16.055 +03:00] [INF] Application directory: "C:\Users\admin\Documents\GitHub\Jellyfin\Jellyfin.Server\bin\Debug\netcoreapp2.1\"
[2019-08-03 16:16:16.575 +03:00] [INF] Setting cache path to C:\Users\admin\AppData\Local\jellyfin\cache
[2019-08-03 16:16:16.684 +03:00] [INF] Loading assemblies
[2019-08-03 16:16:16.793 +03:00] [INF] Loaded assembly "Jellyfin.Plugin.Fanart, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" from "C:\Users\admin\AppData\Local\jellyfin\plugins\Fanart\Jellyfin.Plugin.Fanart.dll"
[2019-08-03 16:16:16.805 +03:00] [INF] Loaded assembly "MediaBrowser.Channels.IPTV, Version=4.0.0.0, Culture=neutral, PublicKeyToken=null" from "C:\Users\admin\AppData\Local\jellyfin\plugins\IPTV\MediaBrowser.Channels.IPTV.dll"
[2019-08-03 16:16:16.815 +03:00] [INF] Loaded assembly "Jellyfin.Plugin.PlaybackReporting, Version=3.0.0.0, Culture=neutral, PublicKeyToken=null" from "C:\Users\admin\AppData\Local\jellyfin\plugins\Playback Reporting\Jellyfin.Plugin.PlaybackReporting.dll"
[2019-08-03 16:16:16.825 +03:00] [INF] Loaded assembly "Jellyfin.Plugin.Reports, Version=4.0.0.0, Culture=neutral, PublicKeyToken=null" from "C:\Users\admin\AppData\Local\jellyfin\plugins\Reports\Jellyfin.Plugin.Reports.dll"
[2019-08-03 16:16:18.306 +03:00] [INF] UserActivityAPI Loaded
[2019-08-03 16:16:19.169 +03:00] [INF] Running startup tasks
[2019-08-03 16:16:19.170 +03:00] [INF] TaskCleanDb Loaded
[2019-08-03 16:16:19.170 +03:00] [INF] TaskCleanDb Loaded
[2019-08-03 16:16:19.186 +03:00] [INF] Daily trigger for "Playback Reporting Trim Db" set to fire at 08/04/2019 00:00, which is 7:43:40.8138476 from now.
[2019-08-03 16:16:19.193 +03:00] [INF] Daily trigger for "Chapter image extraction" set to fire at 08/04/2019 02:00, which is 9:43:40.8068132 from now.
[2019-08-03 16:16:19.257 +03:00] [INF] FFmpeg validation: Found ffmpeg version "4.1"
[2019-08-03 16:16:19.258 +03:00] [WRN] FFmpeg validation: The maximum recommended ffmpeg version is "4.0"
[2019-08-03 16:16:19.258 +03:00] [WRN] FFmpeg: "Custom": Failed version check: "C:\Users\admin\Videos\ffmpeg-4.1-win64-static\bin\ffmpeg.exe"
[2019-08-03 16:16:19.268 +03:00] [INF] Validating media encoder at "C:\Users\admin\Videos\ffmpeg-4.1-win64-static\bin\ffmpeg.exe"
[2019-08-03 16:16:19.326 +03:00] [INF] Available "decoders": ["h264", "h264_qsv", "h264_cuvid", "hevc", "hevc_qsv", "hevc_cuvid", "mpeg2video", "mpeg2_qsv", "vc1_qsv", "aac", "ac3", "mp3"]
[2019-08-03 16:16:19.382 +03:00] [INF] Available "encoders": ["libx264", "h264_nvenc", "h264_qsv", "libx265", "hevc_nvenc", "hevc_qsv", "mpeg4", "msmpeg4", "libvpx", "libvpx-vp9", "aac", "ac3", "libmp3lame", "libopus", "libvorbis", "srt"]
[2019-08-03 16:16:19.382 +03:00] [INF] Encoder validation complete
[2019-08-03 16:16:19.384 +03:00] [INF] FFmpeg: "Custom": "C:\Users\admin\Videos\ffmpeg-4.1-win64-static\bin\ffmpeg.exe"
[2019-08-03 16:16:19.386 +03:00] [INF] ServerId: "64bc45a90ceb4422947c73a67dd7e5fd"
[2019-08-03 16:16:19.914 +03:00] [INF] Executed all pre-startup entry points in 0:00:00.5130006
[2019-08-03 16:16:19.914 +03:00] [INF] Core startup complete
[2019-08-03 16:16:19.915 +03:00] [INF] EventMonitorEntryPoint Running
[2019-08-03 16:16:19.925 +03:00] [INF] Sqlite version: 3.28.0
[2019-08-03 16:16:19.927 +03:00] [INF] Sqlite compiler options: COMPILER=msvc-1700,DEFAULT_FOREIGN_KEYS,ENABLE_COLUMN_METADATA,ENABLE_FTS3_PARENTHESIS,ENABLE_FTS4,ENABLE_FTS5,ENABLE_JSON1,ENABLE_RTREE,THREADSAFE=1
[2019-08-03 16:16:19.932 +03:00] [INF] Default journal_mode for "C:\Users\admin\AppData\Local\jellyfin\data\playback_reporting.db" is "delete"
[2019-08-03 16:16:19.933 +03:00] [INF] Initialize PlaybackActivity Repository
[2019-08-03 16:16:19.933 +03:00] [INF] PlaybackActivity table schema OK
[2019-08-03 16:16:19.933 +03:00] [INF] Expected : "datecreated:datetime|userid:text|itemid:text|itemtype:text|itemname:text|playbackmethod:text|clientname:text|devicename:text|playduration:int"
[2019-08-03 16:16:19.933 +03:00] [INF] Received : "datecreated:datetime|userid:text|itemid:text|itemtype:text|itemname:text|playbackmethod:text|clientname:text|devicename:text|playduration:int"
[2019-08-03 16:16:20.220 +03:00] [WRN] "GetItemList" query time (slow): 101.3947ms. Query: "select type,data,StartDate,EndDate,ChannelId,IsMovie,IsSeries,EpisodeTitle,IsRepeat,CommunityRating,CustomRating,IndexNumber,IsLocked,PreferredMetadataLanguage,PreferredMetadataCountryCode,Width,Height,DateLastRefreshed,Name,Path,PremiereDate,Overview,ParentIndexNumber,ProductionYear,OfficialRating,ForcedSortName,RunTimeTicks,Size,DateCreated,DateModified,guid,Genres,ParentId,Audio,ExternalServiceId,IsInMixedFolder,DateLastSaved,LockedFields,Studios,Tags,TrailerTypes,OriginalTitle,PrimaryVersionId,DateLastMediaAdded,Album,CriticRating,IsVirtualItem,SeriesName,SeasonName,SeasonId,SeriesId,PresentationUniqueKey,InheritedParentalRatingValue,ExternalSeriesId,Tagline,ProviderIds,Images,ProductionLocations,ExtraIds,TotalBitrate,ExtraType,Artists,AlbumArtists,ExternalId,SeriesPresentationUniqueKey,ShowId,OwnerId from TypedBaseItems A where ParentId=@ParentId"
[2019-08-03 16:16:20.427 +03:00] [INF] Watching directory C:\Users\admin\Videos\audio
[2019-08-03 16:16:20.427 +03:00] [INF] Watching directory C:\Users\admin\Videos\movie
[2019-08-03 16:16:20.427 +03:00] [INF] Watching directory C:\Users\admin\Videos\movies
[2019-08-03 16:16:20.427 +03:00] [INF] Watching directory C:\Users\admin\Videos\series
[2019-08-03 16:16:20.535 +03:00] [INF] Registering publisher for "urn:schemas-upnp-org:device:MediaServer:1" on "192.168.20.103"
[2019-08-03 16:16:20.569 +03:00] [INF] Executed all post-startup entry points in 0:00:00.6554413
[2019-08-03 16:16:22.210 +03:00] [INF] "StartupTrigger" fired for task: "Check for plugin updates"
[2019-08-03 16:16:22.221 +03:00] [INF] Queueing task "PluginUpdateTask"
[2019-08-03 16:16:22.238 +03:00] [INF] Executing "Check for plugin updates"
[2019-08-03 16:16:23.441 +03:00] [WRN] HTTP Response 200 to "::1". Time (slow): 0:00:00.9039646. "http://localhost:8096/emby/system/info/public"
[2019-08-03 16:16:24.225 +03:00] [WRN] HTTP Response 200 to "::1". Time (slow): 0:00:00.7523533. "http://localhost:8096/emby/System/Info"
[2019-08-03 16:16:24.259 +03:00] [INF] WS "http://localhost:8096/embywebsocket?api_key=f4dc3f9a38544375837a1b5ed8dc3e29&deviceId=[object%20Promise]". UserAgent: "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.87 Safari/537.36"
[2019-08-03 16:16:28.997 +03:00] [INF] "Check for plugin updates" Completed after 0 minute(s) and 6 seconds
[2019-08-03 16:16:29.021 +03:00] [INF] ExecuteQueuedTasks
[2019-08-03 16:16:37.762 +03:00] [INF] Authentication request for "Test" "has succeeded".
[2019-08-03 16:16:37.769 +03:00] [INF] Logging out access token "f4dc3f9a38544375837a1b5ed8dc3e29"
[2019-08-03 16:16:37.823 +03:00] [INF] Creating new access token for user cb995770-bcec-4a98-9524-2d4bbf9e57f2
[2019-08-03 16:16:38.120 +03:00] [WRN] HTTP Response 200 to "192.168.20.100". Time (slow): 0:00:00.5147391. "http://192.168.20.103:8096/emby/Users/authenticatebyname"
[2019-08-03 16:16:38.142 +03:00] [INF] WS "http://192.168.20.103:8096/embywebsocket?api_key=16eee364c8c64e6db125ffeaab00c7c4&deviceId=[object%20Promise]". UserAgent: "Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:68.0) Gecko/20100101 Firefox/68.0"
[2019-08-03 16:16:45.800 +03:00] [ERR] Access token is invalid or expired.
[2019-08-03 16:16:45.800 +03:00] [ERR] Access token is invalid or expired.
[2019-08-03 16:16:58.001 +03:00] [WRN] HTTP Response 200 to "::1". Time (slow): 0:00:00.5592263. "http://localhost:8096/emby/system/info/public"
[2019-08-03 16:16:58.057 +03:00] [ERR] Access token is invalid or expired.
[2019-08-03 16:17:02.117 +03:00] [INF] Authentication request for "Admin" "has succeeded".
[2019-08-03 16:17:02.117 +03:00] [INF] Logging out access token "16eee364c8c64e6db125ffeaab00c7c4"
[2019-08-03 16:17:02.217 +03:00] [INF] Creating new access token for user 8fe52643-a015-4ac5-83cb-9ee9c74022d1
[2019-08-03 16:17:02.641 +03:00] [WRN] HTTP Response 200 to "::1". Time (slow): 0:00:00.680823. "http://localhost:8096/emby/Users/authenticatebyname"
[2019-08-03 16:17:02.675 +03:00] [INF] WS "http://localhost:8096/embywebsocket?api_key=eb19dbc7b4b842ed91cbf203dff6151c&deviceId=[object%20Promise]". UserAgent: "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.87 Safari/537.36"
[2019-08-03 16:17:14.656 +03:00] [ERR] Access token is invalid or expired.
[2019-08-03 16:17:16.716 +03:00] [INF] Authentication request for "Test" "has succeeded".
[2019-08-03 16:17:16.717 +03:00] [INF] Logging out access token "eb19dbc7b4b842ed91cbf203dff6151c"
[2019-08-03 16:17:16.750 +03:00] [INF] Creating new access token for user cb995770-bcec-4a98-9524-2d4bbf9e57f2
[2019-08-03 16:17:17.001 +03:00] [ERR] Access token is invalid or expired.
[2019-08-03 16:17:17.001 +03:00] [INF] WS "http://192.168.20.103:8096/embywebsocket?api_key=317bcdda886f4fe6ab5fc5483cc909b2&deviceId=[object%20Promise]". UserAgent: "Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:68.0) Gecko/20100101 Firefox/68.0"
[2019-08-03 16:17:17.014 +03:00] [ERR] Access token is invalid or expired.
[2019-08-03 16:17:17.043 +03:00] [ERR] Access token is invalid or expired.
[2019-08-03 16:17:17.043 +03:00] [ERR] Access token is invalid or expired.
[2019-08-03 16:17:17.148 +03:00] [ERR] Access token is invalid or expired.
[2019-08-03 16:17:17.143 +03:00] [ERR] Access token is invalid or expired.
[2019-08-03 16:17:17.190 +03:00] [ERR] Access token is invalid or expired.
[2019-08-03 16:17:17.220 +03:00] [ERR] Access token is invalid or expired.
[2019-08-03 16:17:17.247 +03:00] [ERR] Access token is invalid or expired.
[2019-08-03 16:17:17.299 +03:00] [ERR] Access token is invalid or expired.
[2019-08-03 16:17:17.307 +03:00] [ERR] Access token is invalid or expired.
[2019-08-03 16:17:17.319 +03:00] [ERR] Access token is invalid or expired.
[2019-08-03 16:17:20.738 +03:00] [ERR] Access token is invalid or expired.
[2019-08-03 16:17:26.257 +03:00] [ERR] Access token is invalid or expired.
[2019-08-03 16:17:29.337 +03:00] [INF] Authentication request for "Admin" "has succeeded".
[2019-08-03 16:17:29.337 +03:00] [INF] Logging out access token "317bcdda886f4fe6ab5fc5483cc909b2"
[2019-08-03 16:17:29.439 +03:00] [INF] Creating new access token for user 8fe52643-a015-4ac5-83cb-9ee9c74022d1
[2019-08-03 16:17:29.569 +03:00] [INF] WS "http://localhost:8096/embywebsocket?api_key=a3e22ce3b646440e9941e04cefa63522&deviceId=[object%20Promise]". UserAgent: "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.87 Safari/537.36`
grafixeyehero commented 5 years ago

fixed on https://github.com/jellyfin/jellyfin/pull/1676

ThatNerdyPikachu commented 5 years ago

This issue can now be closed, I believe.