jellyfin / jellyfin-plugin-opensubtitles

Home Page:https://jellyfin.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

502 bad gateway error

pieterhouwen opened this issue · comments

I use Docker-Desktop on WSL and have OS v12.0.0. When I try to download subs I get:

[20:05:20] [INF] [1] Main: Jellyfin version: 10.7.7
[20:05:20] [INF] [1] Main: Environment Variables: ["[JELLYFIN_FFMPEG, /usr/lib/jellyfin-ffmpeg/ffmpeg]", "[JELLYFIN_MEDIA_DIR, /media]", "[DOTNET_SYSTEM_GLOBALIZATION_INVARIANT, 1]", "[JELLYFIN_CACHE_DIR, /cache]", "[JELLYFIN_CONFIG_DIR, /config/config]", "[JELLYFIN_DATA_DIR, /config]", "[JELLYFIN_WEB_DIR, /jellyfin/jellyfin-web]", "[JELLYFIN_LOG_DIR, /config/log]"]
[20:05:20] [INF] [1] Main: Arguments: ["/jellyfin/jellyfin.dll"]
[20:05:20] [INF] [1] Main: Operating system: Linux
[20:05:20] [INF] [1] Main: Architecture: X64
[20:05:20] [INF] [1] Main: 64-Bit Process: True
[20:05:20] [INF] [1] Main: User Interactive: True
[20:05:20] [INF] [1] Main: Processor count: 8
[20:05:20] [INF] [1] Main: Program data path: /config
[20:05:20] [INF] [1] Main: Web resources path: /jellyfin/jellyfin-web
[20:05:20] [INF] [1] Main: Application directory: /jellyfin/
[20:05:20] [INF] [1] Emby.Server.Implementations.AppBase.BaseConfigurationManager: Setting cache path: /cache
[20:05:20] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Defined LAN addresses : [127.0.0.1/8,10.0.0.0/8,172.16.0.0/12,192.168.0.0/16]
[20:05:20] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Defined LAN exclusions : []
[20:05:20] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Using LAN addresses: [127.0.0.1/8,10.0.0.0/8,172.16.0.0/12,192.168.0.0/16]
[20:05:20] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Using bind addresses: []
[20:05:20] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Using bind exclusions: []
[20:05:20] [INF] [1] Emby.Server.Implementations.ApplicationHost: Loading assemblies
[20:05:20] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded assembly Jellyfin.Plugin.OpenSubtitles, Version=12.0.0.0, Culture=neutral, PublicKeyToken=null from /config/plugins/Open Subtitles_12.0.0.0/Jellyfin.Plugin.OpenSubtitles.dll
[20:05:20] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded assembly OpenSubtitlesHandler, Version=12.0.0.0, Culture=neutral, PublicKeyToken=null from /config/plugins/Open Subtitles_12.0.0.0/OpenSubtitlesHandler.dll
[20:05:31] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded plugin: Open Subtitles 12.0.0.0
[20:05:31] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded plugin: OMDb 10.7.7.0
[20:05:31] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded plugin: MusicBrainz 10.7.7.0
[20:05:31] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded plugin: AudioDB 10.7.7.0
[20:05:31] [INF] [1] Main: Kestrel listening on Any IP4 Address
[20:05:32] [WRN] [1] Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager: No XML encryptor configured. Key {9edd3bea-0864-4206-b5d7-f32fb66960ea} may be persisted to storage in unencrypted form.
[20:05:32] [INF] [1] Emby.Server.Implementations.ApplicationHost: Running startup tasks
[20:05:32] [INF] [1] Emby.Server.Implementations.ScheduledTasks.TaskManager: Daily trigger for Extract Chapter Images set to fire at 01/21/2022 02:00, which is 5:54:27.7575522 from now.
[20:05:32] [INF] [1] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: Found ffmpeg version 4.3.2
[20:05:32] [INF] [1] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: Available decoders: ["h264", "h264_qsv", "h264_cuvid", "hevc", "hevc_qsv", "hevc_cuvid", "mpeg2video", "mpeg2_qsv", "mpeg2_cuvid", "mpeg4", "mpeg4_cuvid", "msmpeg4", "vc1_qsv", "vc1_cuvid", "vp8_cuvid", "vp8_qsv", "vp9_cuvid", "vp9_qsv", "aac", "ac3", "flac", "mp3"]
[20:05:32] [INF] [1] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: Available encoders: ["libx264", "h264_amf", "h264_nvenc", "h264_qsv", "h264_v4l2m2m", "h264_vaapi", "libx265", "hevc_amf", "hevc_nvenc", "hevc_qsv", "hevc_vaapi", "mpeg4", "msmpeg4", "libvpx", "libvpx-vp9", "aac", "ac3", "flac", "libmp3lame", "libopus", "libvorbis", "srt"]
[20:05:32] [INF] [1] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: Available hwaccel types: ["vdpau", "cuda", "vaapi", "qsv", "drm", "opencl"]
[20:05:32] [INF] [1] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: FFmpeg: Custom: /usr/lib/jellyfin-ffmpeg/ffmpeg
[20:05:32] [INF] [1] Emby.Server.Implementations.ApplicationHost: ServerId: 87583decc73a449c851e3cba5ac4812b
[20:05:32] [INF] [1] Emby.Dlna.Main.DlnaEntryPoint: Registering publisher for urn:schemas-upnp-org:device:MediaServer:1 on 172.19.0.2/16
[20:05:32] [INF] [1] Emby.Server.Implementations.ApplicationHost: Executed all pre-startup entry points in 0:00:00.3971254
[20:05:32] [INF] [1] Emby.Server.Implementations.ApplicationHost: Core startup complete
[20:05:33] [INF] [1] Emby.Server.Implementations.ApplicationHost: Executed all post-startup entry points in 0:00:00.2241486
[20:05:33] [INF] [1] Main: Startup complete 0:00:13.0670898
[20:05:33] [INF] [17] Emby.Server.Implementations.IO.LibraryMonitor: Watching directory /educational
[20:05:33] [INF] [19] Emby.Server.Implementations.IO.LibraryMonitor: Watching directory /films
[20:05:34] [INF] [7] Emby.Server.Implementations.IO.LibraryMonitor: Watching directory /series
[20:05:35] [INF] [19] Emby.Server.Implementations.ScheduledTasks.TaskManager: StartupTrigger fired for task: Update Plugins
[20:05:35] [INF] [19] Emby.Server.Implementations.ScheduledTasks.TaskManager: Queuing task PluginUpdateTask
[20:05:35] [INF] [7] Emby.Server.Implementations.ScheduledTasks.TaskManager: Executing Update Plugins
[20:05:36] [INF] [7] Emby.Server.Implementations.ScheduledTasks.TaskManager: Update Plugins Completed after 0 minute(s) and 0 seconds
[20:05:36] [INF] [7] Emby.Server.Implementations.ScheduledTasks.TaskManager: ExecuteQueuedTasks
[20:07:08] [INF] [12] Emby.Server.Implementations.HttpServer.WebSocketManager: WS 172.19.0.1 request
[20:07:57] [INF] [11] Emby.Server.Implementations.Session.SessionWebSocketListener: Sending ForceKeepAlive message to 1 inactive WebSockets.
[20:08:09] [INF] [37] Emby.Server.Implementations.Session.SessionWebSocketListener: Lost 1 WebSockets.
[20:08:23] [WRN] [36] Jellyfin.Server.Middleware.ResponseTimeMiddleware: Slow HTTP Response from http://mediaserver.pieterhouwen.info/Jellyfin.Plugin.OpenSubtitles/ValidateLoginInfo to 172.19.0.1 in 0:00:03.7765845 with Status Code 200
[20:08:45] [WRN] [28] Jellyfin.Server.Middleware.ResponseTimeMiddleware: Slow HTTP Response from http://mediaserver.pieterhouwen.info/Items/4115842c803f969ab22328ad6cbc8921/Images/Backdrop?fillHeight=203&fillWidth=360&quality=96&tag=7732126cd8e3c3eb584d99c2c454667a to 172.19.0.1 in 0:00:00.5851355 with Status Code 200
[20:08:45] [WRN] [16] Jellyfin.Server.Middleware.ResponseTimeMiddleware: Slow HTTP Response from http://mediaserver.pieterhouwen.info/Items/b98cc1e0ae259b6588aa4de372badca9/Images/Primary?fillHeight=311&fillWidth=207&quality=96&tag=606ec5c34818604470b9774d18091573 to 172.19.0.1 in 0:00:00.5390307 with Status Code 200
[20:08:45] [WRN] [48] Jellyfin.Server.Middleware.ResponseTimeMiddleware: Slow HTTP Response from http://mediaserver.pieterhouwen.info/Items/c74b6ca4659de0c3dc68e9cc2f3f075b/Images/Backdrop?fillHeight=203&fillWidth=360&quality=96&tag=1cd7fa1568011a5bb4cae968d5700c07 to 172.19.0.1 in 0:00:00.5750953 with Status Code 200
[20:08:45] [WRN] [44] Jellyfin.Server.Middleware.ResponseTimeMiddleware: Slow HTTP Response from http://mediaserver.pieterhouwen.info/Items/23faf0e1800c622d9ab4e6bebdd272b7/Images/Backdrop?fillHeight=203&fillWidth=360&quality=96&tag=f33efed019e3ada242a6a6c97d529f5e to 172.19.0.1 in 0:00:00.7221421 with Status Code 200
[20:08:45] [WRN] [28] Jellyfin.Server.Middleware.ResponseTimeMiddleware: Slow HTTP Response from http://mediaserver.pieterhouwen.info/Items/e59fb7eaf39c5cf73e4bcb8f1d925982/Images/Primary?fillHeight=311&fillWidth=207&quality=96&tag=70221faddacd22e275710a53e3733d5a to 172.19.0.1 in 0:00:00.614173 with Status Code 200
[20:08:45] [WRN] [39] Jellyfin.Server.Middleware.ResponseTimeMiddleware: Slow HTTP Response from http://mediaserver.pieterhouwen.info/Items/a6c442310e3c773ed8ceb9da55cfa247/Images/Primary?fillHeight=311&fillWidth=207&quality=96&tag=f29f2b33fea09d1b084842af7b8d8d7c to 172.19.0.1 in 0:00:00.7247949 with Status Code 200
[20:08:46] [WRN] [32] Jellyfin.Server.Middleware.ResponseTimeMiddleware: Slow HTTP Response from http://mediaserver.pieterhouwen.info/Items/e52629f5fe79161f86d4561f9d0f3855/Images/Primary?fillHeight=311&fillWidth=207&quality=96&tag=8d975f1c52763beeb3c82928ed4b0e8c to 172.19.0.1 in 0:00:00.7794231 with Status Code 200
[20:08:46] [WRN] [32] Jellyfin.Server.Middleware.ResponseTimeMiddleware: Slow HTTP Response from http://mediaserver.pieterhouwen.info/Items/ffb1ef360ce63e2eb60811c3b771f5e7/Images/Primary?fillHeight=311&fillWidth=207&quality=96&tag=94b5f964c4738e777403a38dc69bb03e to 172.19.0.1 in 0:00:00.782857 with Status Code 200
[20:08:46] [WRN] [41] Jellyfin.Server.Middleware.ResponseTimeMiddleware: Slow HTTP Response from http://mediaserver.pieterhouwen.info/Items/02c6742e952d8b98731f5c37aca2ccca/Images/Primary?fillHeight=311&fillWidth=207&quality=96&tag=8e4ff10f1f3ceec14a3a61dcc1dd8f2b to 172.19.0.1 in 0:00:00.8298095 with Status Code 200
[20:08:46] [WRN] [32] Jellyfin.Server.Middleware.ResponseTimeMiddleware: Slow HTTP Response from http://mediaserver.pieterhouwen.info/Items/a65850e3281b74ec6cf80343441bf79d/Images/Backdrop?fillHeight=203&fillWidth=360&quality=96&tag=bbdc5d537dd0f37802afdeffa04fd909 to 172.19.0.1 in 0:00:00.8981114 with Status Code 200
[20:08:46] [WRN] [41] Jellyfin.Server.Middleware.ResponseTimeMiddleware: Slow HTTP Response from http://mediaserver.pieterhouwen.info/Items/2bee301bef7f0405ad787b016e93246c/Images/Primary?fillHeight=311&fillWidth=207&quality=96&tag=160d1462170f68fbfd491cda7d409ee3 to 172.19.0.1 in 0:00:00.8423752 with Status Code 200
[20:08:46] [WRN] [33] Jellyfin.Server.Middleware.ResponseTimeMiddleware: Slow HTTP Response from http://mediaserver.pieterhouwen.info/Items/527cf6897442e06cb607ddbd2c8473e6/Images/Backdrop?fillHeight=203&fillWidth=360&quality=96&tag=c0dacb30619e02463d86f883695c93b5 to 172.19.0.1 in 0:00:00.8114312 with Status Code 200
[20:08:46] [WRN] [41] Jellyfin.Server.Middleware.ResponseTimeMiddleware: Slow HTTP Response from http://mediaserver.pieterhouwen.info/Items/b91c701c95fae0e1f7f46a14fbe6e00e/Images/Primary?fillHeight=311&fillWidth=207&quality=96&tag=19dcf19c79a35f1cce86efe683b23426 to 172.19.0.1 in 0:00:01.0072169 with Status Code 200
[20:08:47] [WRN] [33] Jellyfin.Server.Middleware.ResponseTimeMiddleware: Slow HTTP Response from http://mediaserver.pieterhouwen.info/Items/6c713d068d57928c2b612445b05fda4e/Images/Primary?fillHeight=270&fillWidth=180&quality=96&tag=6716bf14a38cae6e2608ad65ced995dc to 172.19.0.1 in 0:00:00.5724319 with Status Code 200
[20:08:48] [WRN] [49] Jellyfin.Server.Middleware.ResponseTimeMiddleware: Slow HTTP Response from http://mediaserver.pieterhouwen.info/DisplayPreferences/usersettings?userId=194c93afb0ba405bb36cb4947671218b&client=emby to 172.19.0.1 in 0:00:00.8471697 with Status Code 204
[20:09:17] [ERR] [34] Jellyfin.Plugin.OpenSubtitles.OpenSubtitleDownloader: Invalid response: BadGateway - <!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js ie6 oldie" lang="en-US"> <![endif]-->
<!--[if IE 7]>    <html class="no-js ie7 oldie" lang="en-US"> <![endif]-->
<!--[if IE 8]>    <html class="no-js ie8 oldie" lang="en-US"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en-US"> <!--<![endif]-->
<head>


<title>api.opensubtitles.com | 502: Bad gateway</title>
<meta charset="UTF-8" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1" />
<meta name="robots" content="noindex, nofollow" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
<link rel="stylesheet" id="cf_styles-css" href="https://github.com/cdn-cgi/styles/main.css" target="_blank" rel="nofollow" type="text/css" media="screen,projection" />


</head>
<body>
<div id="cf-wrapper">

    

    <div id="cf-error-details" class="p-0">
        <header class="mx-auto pt-10 lg:pt-6 lg:px-8 w-240 lg:w-full mb-8">
            <h1 class="inline-block sm:block sm:mb-2 font-light text-60 lg:text-4xl text-black-dark leading-tight mr-2">
              
              <span class="cf-error-type">Error</span>
              <span class="cf-error-code">502</span>
            </h1>
            <span class="inline-block sm:block font-mono text-15 lg:text-sm lg:leading-relaxed">Ray ID: 6d0af082eeb8421e &bull;</span>
            <span class="inline-block sm:block font-mono text-15 lg:text-sm lg:leading-relaxed">2022-01-20 20:09:16 UTC</span>
            <h2 class="text-gray-600 leading-1.3 text-3xl font-light">Bad gateway</h2>
        </header>
        
        <div class="my-8 bg-gradient-gray">
            <div class="w-240 lg:w-full mx-auto">
                <div class="clearfix md:px-8">
                  
<div id="cf-browser-status" class=" relative w-1/3 md:w-full py-15 md:p-0 md:py-8 md:text-left md:border-solid md:border-0 md:border-b md:border-gray-400 overflow-hidden float-left md:float-none text-center">
  <div class="relative mb-10 md:m-0">
    <span class="cf-icon-browser block md:hidden h-20 bg-center bg-no-repeat"></span>
    <span class="cf-icon-ok w-12 h-12 absolute left-1/2 md:left-auto md:right-0 md:top-0 -ml-6 -bottom-4"></span>
  </div>
  <span class="md:block w-full truncate">You</span>
  <h3 class="md:inline-block mt-3 md:mt-0 text-2xl text-gray-600 font-light leading-1.3">Browser</h3>
  <span class="leading-1.3 text-2xl text-green-success">Working</span>
</div>

<div id="cf-cloudflare-status" class=" relative w-1/3 md:w-full py-15 md:p-0 md:py-8 md:text-left md:border-solid md:border-0 md:border-b md:border-gray-400 overflow-hidden float-left md:float-none text-center">
  <div class="relative mb-10 md:m-0">
    <span class="cf-icon-cloud block md:hidden h-20 bg-center bg-no-repeat"></span>
    <span class="cf-icon-ok w-12 h-12 absolute left-1/2 md:left-auto md:right-0 md:top-0 -ml-6 -bottom-4"></span>
  </div>
  <span class="md:block w-full truncate">Amsterdam</span>
  <h3 class="md:inline-block mt-3 md:mt-0 text-2xl text-gray-600 font-light leading-1.3">Cloudflare</h3>
  <span class="leading-1.3 text-2xl text-green-success">Working</span>
</div>

<div id="cf-host-status" class="cf-error-source relative w-1/3 md:w-full py-15 md:p-0 md:py-8 md:text-left md:border-solid md:border-0 md:border-b md:border-gray-400 overflow-hidden float-left md:float-none text-center">
  <div class="relative mb-10 md:m-0">
    <span class="cf-icon-server block md:hidden h-20 bg-center bg-no-repeat"></span>
    <span class="cf-icon-error w-12 h-12 absolute left-1/2 md:left-auto md:right-0 md:top-0 -ml-6 -bottom-4"></span>
  </div>
  <span class="md:block w-full truncate">api.opensubtitles.com</span>
  <h3 class="md:inline-block mt-3 md:mt-0 text-2xl text-gray-600 font-light leading-1.3">Host</h3>
  <span class="leading-1.3 text-2xl text-red-error">Error</span>
</div>

                </div>
              
            </div>
        </div>

        <div class="w-240 lg:w-full mx-auto mb-8 lg:px-8">
            <div class="clearfix">
                <div class="w-1/2 md:w-full float-left pr-6 md:pb-10 md:pr-0 leading-relaxed">
                    <h2 class="text-3xl font-normal leading-1.3 mb-4">What happened?</h2>
                    <p>The web server reported a bad gateway error.</p>
                </div>
              
                <div class="w-1/2 md:w-full float-left leading-relaxed">
                    <h2 class="text-3xl font-normal leading-1.3 mb-4">What can I do?</h2>
                    <p class="mb-6">Please try again in a few minutes.</p>
                </div>
            </div>
              
        </div>

        <div class="cf-error-footer cf-wrapper w-240 lg:w-full py-10 sm:py-4 sm:px-8 mx-auto text-center sm:text-left border-solid border-0 border-t border-gray-300">
  <p class="text-13">
    <span class="cf-footer-item sm:block sm:mb-1">Cloudflare Ray ID: <strong class="font-semibold">6d0af082eeb8421e</strong></span>
    <span class="cf-footer-separator sm:hidden">&bull;</span>
    <span class="cf-footer-item sm:block sm:mb-1"><span>Your IP</span>: 83.86.188.222</span>
    <span class="cf-footer-separator sm:hidden">&bull;</span>
    <span class="cf-footer-item sm:block sm:mb-1"><span>Performance &amp; security by</span> <a rel="noopener noreferrer" href="https://www.cloudflare.com/5xx-error-landing" id="brand_link" target="_blank">Cloudflare</a></span>
    
  </p>
</div><!-- /.error-footer -->


    </div>
</div>
</body>
</html>

The "Check opensubtitles API status" shows everything works. I can also log into my account on Jellyfin and it recognises my download limit.

Do I need to roll back a version?

502 errors are expected according to opensubtitles, the version you have (v12) doesn't have proper handling for it, v16 (or v17?) does but it is not compatible with jellyfin 10.7. 10.8 should automagically download the latest version of the plugin which should log the 502 very rarely.

Any ideas on how I can update my jellyfin then? Docker-compose won't let me update:
image

docker-compose.yml:

version: "3.0"
services:
  jellyfin:
    image: jellyfin/jellyfin
    container_name: jellyfin
#    network_mode: "host"
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=Europe/London
    volumes:
      - /mnt/e/Jellyfin-config:/config
      - /mnt/g/Films:/films
      - /mnt/g/Series:/series
      - /mnt/e/Educational:/educational
    ports:
      - 18096:8096
    restart: unless-stopped

Sorry, I forgot to mention that 10.8 is not released yet (still in alpha I believe) so until its released the plugin will essentially be "stuck" on v12

Pardon my confusion but if I understand correctly there have been 4-5 versions released of the Jellyfin OS plugin for an underlying system that hasn't even reached the beta stage?

13, 14, 16 weren't actually released due to ci issues.

But yes, there have been 2 plugin releases that support 10.8

Alright, in that case I shall wait patiently.

Do people get a message when a new jellyfin version comes out or do I just need to do a docker-compose pull once in a while to see what happens?

There are multiple announcements areas: Reddit, Blog, Matrix (and discord & irc), GitHub releases