V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
请不要把任何和邀请码有关的内容发到 NAS 节点。

邀请码相关的内容请使用 /go/in 节点。

如果没有发送到 /go/in,那么会被移动到 /go/pointless 同时账号会被降权。如果持续触发这样的移动,会导致账号被禁用。
standin000
V2EX  ›  NAS

jellyfin docker 突然无法启动

  •  
  •   standin000 · 11 天前 · 1011 次点击

    一直很愉快的使用 jellyfin/jellyfin 玩耍,突然就不能启动了,求各位大侠帮手

    docker run -d --name=jellyfin -v /mnt/jellyfin/:/config -v /mnt/media/:/media -v /mnt/jellyfincache/:/cache --restart=unless-stopped jellyfin/jellyfin

    log 如下

    [2024-11-19 14:12:50.005 +00:00] [INF] [1] Main: Jellyfin version: "10.10.2" [2024-11-19 14:12:50.025 +00:00] [INF] [1] Main: Environment Variables: ["[JELLYFIN_DATA_DIR, /config]", "[JELLYFIN_FFMPEG, /usr/lib/jellyfin-ffmpeg/ffmpeg]", "[JELLYFIN_WEB_DIR, /jellyfin/jellyfin-web]", "[JELLYFIN_CACHE_DIR, /cache]", "[JELLYFIN_LOG_DIR, /config/log]" , "[JELLYFIN_CONFIG_DIR, /config/config]"] [2024-11-19 14:12:50.027 +00:00] [INF] [1] Main: Arguments: ["/jellyfin/jellyfin.dll"] [2024-11-19 14:12:50.028 +00:00] [INF] [1] Main: Operating system: "Debian GNU/Linux 12 (bookworm)" [2024-11-19 14:12:50.028 +00:00] [INF] [1] Main: Architecture: X64 [2024-11-19 14:12:50.028 +00:00] [INF] [1] Main: 64-Bit Process: True [2024-11-19 14:12:50.028 +00:00] [INF] [1] Main: User Interactive: True [2024-11-19 14:12:50.028 +00:00] [INF] [1] Main: Processor count: 4 [2024-11-19 14:12:50.028 +00:00] [INF] [1] Main: Program data path: "/config" [2024-11-19 14:12:50.028 +00:00] [INF] [1] Main: Log directory path: "/config/log" [2024-11-19 14:12:50.028 +00:00] [INF] [1] Main: Config directory path: "/config/config" [2024-11-19 14:12:50.029 +00:00] [INF] [1] Main: Cache path: "/cache" [2024-11-19 14:12:50.029 +00:00] [INF] [1] Main: Temp directory path: "/tmp/jellyfin" [2024-11-19 14:12:50.029 +00:00] [INF] [1] Main: Web resources path: "/jellyfin/jellyfin-web" [2024-11-19 14:12:50.029 +00:00] [INF] [1] Main: Application directory: "/jellyfin/" [2024-11-19 14:12:50.138 +00:00] [INF] [1] Jellyfin.Server.Migrations.MigrationRunner: Marking following migrations as applied because this is a fresh install: ["CreateNetworkConfiguration", "MigrateMusicBrainzTimeout", "MigrateNetworkConfiguration", "MigrateEncodingOpt ions"] [2024-11-19 14:12:50.165 +00:00] [INF] [1] Emby.Server.Implementations.AppBase.BaseConfigurationManager: Setting cache path: "/cache" [2024-11-19 14:12:50.206 +00:00] [INF] [1] Emby.Server.Implementations.ApplicationHost: Loading assemblies [2024-11-19 14:12:50.263 +00:00] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Defined LAN subnets: ["127.0.0.1/8", "10.0.0.0/8", "172.16.0.0/12", "192.168.0.0/16"] [2024-11-19 14:12:50.263 +00:00] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Defined LAN exclusions: [] [2024-11-19 14:12:50.263 +00:00] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Used LAN subnets: ["127.0.0.1/8", "10.0.0.0/8", "172.16.0.0/12", "192.168.0.0/16"] [2024-11-19 14:12:50.264 +00:00] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Filtered interface addresses: ["127.0.0.1", "172.17.0.2"] [2024-11-19 14:12:50.265 +00:00] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Bind Addresses ["0.0.0.0"] [2024-11-19 14:12:50.265 +00:00] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Remote IP filter is "Allowlist" [2024-11-19 14:12:50.265 +00:00] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Filtered subnets: [] [2024-11-19 14:12:51.538 +00:00] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded plugin: "TMDb" "10.10.2.0" [2024-11-19 14:12:51.538 +00:00] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded plugin: "Studio Images" "10.10.2.0" [2024-11-19 14:12:51.539 +00:00] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded plugin: "OMDb" "10.10.2.0" [2024-11-19 14:12:51.556 +00:00] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded plugin: "MusicBrainz" "10.10.2.0" [2024-11-19 14:12:51.557 +00:00] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded plugin: "AudioDB" "10.10.2.0" [2024-11-19 14:12:51.598 +00:00] [INF] [1] Jellyfin.Server.Migrations.MigrationRunner: Marking following migrations as applied because this is a fresh install: ["DisableTranscodingThrottling", "CreateLoggingConfigHeirarchy", "MigrateActivityLogDatabase", "RemoveDuplicat eExtras", "MigrateUserDatabase", "MigrateDisplayPreferencesDatabase", "RemoveDownloadImagesInAdvance", "MigrateAuthenticationDatabase", "FixPlaylistOwner", "MigrateRatingLevels", "FixAudioData", "RemoveDuplicatePlaylistChildren"] [2024-11-19 14:12:51.627 +00:00] [INF] [1] Main: Kestrel is listening on "0.0.0.0" [2024-11-19 14:12:51.644 +00:00] [WRN] [1] Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager: No XML encryptor configured. Key {5c974447-a2be-4295-b789-b83f99d78d07} may be persisted to storage in unencrypted form. [2024-11-19 14:12:52.164 +00:00] [WRN] [1] Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware: The WebRootPath was not found: "/wwwroot". Static files may be unavailable. [2024-11-19 14:12:52.203 +00:00] [INF] [1] Emby.Server.Implementations.ApplicationHost: Running startup tasks [2024-11-19 14:12:52.225 +00:00] [INF] [1] Emby.Server.Implementations.ScheduledTasks.TaskManager: Daily trigger for "Generate Trickplay Images" set to fire at 2024-11-20 03:00:00.000 +00:00, which is 12:47:07.7741910 from now. [2024-11-19 14:12:52.229 +00:00] [INF] [1] Emby.Server.Implementations.ScheduledTasks.TaskManager: Daily trigger for "Extract Chapter Images" set to fire at 2024-11-20 02:00:00.000 +00:00, which is 11:47:07.7709313 from now. [2024-11-19 14:12:52.318 +00:00] [INF] [1] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: Found ffmpeg version "7.0.2" [2024-11-19 14:12:52.386 +00:00] [INF] [1] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: Available "decoders": ["libdav1d", "av1", "av1_cuvid", "av1_qsv", "h264", "h264_qsv", "h264_cuvid", "hevc", "hevc_qsv", "hevc_cuvid", "mpeg2video", "mpeg2_qsv", "mpeg2_cuvid", "m peg4", "mpeg4_cuvid", "msmpeg4", "vc1_qsv", "vc1_cuvid", "vp8", "libvpx", "vp8_cuvid", "vp8_qsv", "vp9", "libvpx-vp9", "vp9_cuvid", "vp9_qsv", "aac", "ac3", "ac4", "dca", "flac", "mp3", "truehd"] [2024-11-19 14:12:52.402 +00:00] [INF] [1] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: Available "encoders": ["libsvtav1", "av1_nvenc", "av1_qsv", "av1_amf", "av1_vaapi", "libx264", "h264_amf", "h264_nvenc", "h264_qsv", "h264_v4l2m2m", "h264_vaapi", "libx265", "hev c_amf", "hevc_nvenc", "hevc_qsv", "hevc_vaapi", "mjpeg_qsv", "mjpeg_vaapi", "aac", "libfdk_aac", "ac3", "alac", "dca", "flac", "libmp3lame", "libopus", "truehd", "libvorbis", "srt"] [2024-11-19 14:12:52.421 +00:00] [INF] [1] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: Available filters: ["bwdif_cuda", "deinterlace_qsv", "deinterlace_vaapi", "flip_vulkan", "hwupload_cuda", "hwupload_vaapi", "libplacebo", "overlay_opencl", "overlay_qsv", "overla y_vaapi", "overlay_vulkan", "overlay_cuda", "procamp_vaapi", "scale_cuda", "scale_opencl", "scale_qsv", "scale_vaapi", "scale_vulkan", "tonemapx", "tonemap_cuda", "tonemap_opencl", "tonemap_vaapi", "transpose_cuda", "transpose_opencl", "transpose_vaapi", "transpose_vulk an", "vpp_qsv", "yadif_cuda", "zscale", "alphasrc"] [2024-11-19 14:12:52.535 +00:00] [INF] [1] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: Available hwaccel types: ["cuda", "vaapi", "qsv", "drm", "opencl", "vulkan"] [2024-11-19 14:12:55.258 +00:00] [INF] [16] Emby.Server.Implementations.ScheduledTasks.TaskManager: "Clean Transcode Directory" Completed after 0 minute(s) and 0 seconds [2024-11-19 14:12:55.260 +00:00] [INF] [8] Emby.Server.Implementations.ScheduledTasks.TaskManager: "Clean up collections and playlists" Completed after 0 minute(s) and 0 seconds [2024-11-19 14:12:55.312 +00:00] [INF] [1] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: FFmpeg: "/usr/lib/jellyfin-ffmpeg/ffmpeg" [2024-11-19 14:12:55.312 +00:00] [INF] [1] Emby.Server.Implementations.ApplicationHost: ServerId: "4d0548eaecb14f908e518d7975ecd528" [2024-11-19 14:12:55.313 +00:00] [INF] [1] Emby.Server.Implementations.ApplicationHost: Core startup complete [2024-11-19 14:12:55.313 +00:00] [INF] [1] Main: Startup complete 0:00:05.4628224 [2024-11-19 14:13:05.319 +00:00] [ERR] [10] Emby.Server.Implementations.Updates.InstallationManager: An error occurred while accessing the plugin manifest: "https://repo.jellyfin.org/files/plugin/manifest.json" [2024-11-19 14:13:05.319 +00:00] [ERR] [10] Emby.Server.Implementations.Updates.InstallationManager: An error occurred while accessing the plugin manifest: "https://repo.jellyfin.org/files/plugin/manifest.json" System.Net.Http.HttpRequestException: Resource temporarily unavailable (repo.jellyfin.org:443) ---> System.Net.Sockets.SocketException (11): Resource temporarily unavailable at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken) at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource.GetResult(Int16 token) at System.Net.Sockets.Socket.<ConnectAsync>g__WaitForConnectWithCancellation|285_0(AwaitableSocketAsyncEventArgs saea, ValueTask connectTask, CancellationToken cancellationToken) at Jellyfin.Networking.HappyEyeballs.HttpClientExtension.AttemptConnection(AddressFamily addressFamily, SocketsHttpConnectionContext context, CancellationToken cancellationToken) at Jellyfin.Networking.HappyEyeballs.HttpClientExtension.OnConnect(SocketsHttpConnectionContext context, CancellationToken cancellationToken) at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken) --- End of inner exception stack trace --- at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken) at System.Net.Http.HttpConnectionPool.ConnectAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken) at System.Net.Http.HttpConnectionPool.CreateHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken) at System.Net.Http.HttpConnectionPool.AddHttp11ConnectionAsync(QueueItem queueItem) at System.Threading.Tasks.TaskCompletionSourceWithCancellation1.WaitWithCancellationAsync(CancellationToken cancellationToken) at System.Net.Http.HttpConnectionPool.SendWithVersionDetectionAndRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken) at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken) at System.Net.Http.DecompressionHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken) at Microsoft.Extensions.Http.Logging.LoggingHttpMessageHandler.<SendCoreAsync>g__Core|5_0(HttpRequestMessage request, Boolean useAsync, CancellationToken cancellationToken) at Microsoft.Extensions.Http.Logging.LoggingScopeHttpMessageHandler.<SendCoreAsync>g__Core|5_0(HttpRequestMessage request, Boolean useAsync, CancellationToken cancellationToken) at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken) at System.Net.Http.Json.HttpClientJsonExtensions.<FromJsonAsyncCore>g__Core|12_0[TValue,TJsonOptions](HttpClient client, Task1 responseTask, Boolean usingResponseHeadersRead, CancellationTokenSource linkedCTS, Func4 deserializeMethod, TJsonOptions jsonOptions, Canc ellationToken cancellationToken) at Emby.Server.Implementations.Updates.InstallationManager.GetPackages(String manifestName, String manifest, Boolean filterIncompatible, CancellationToken cancellationToken) [2024-11-19 14:13:05.330 +00:00] [INF] [10] Emby.Server.Implementations.ScheduledTasks.TaskManager: "Update Plugins" Completed after 0 minute(s) and 10 seconds

    6 条回复    2024-11-30 22:23:38 +08:00
    lyfllrr
        1
    lyfllrr  
       11 天前
    看 log 是插件出问题了。
    简单搜了一下就有人出现了类似的问题,里面有解决方案楼主可以试试。
    https://forum.jellyfin.org/t-solved-plugin-manifest-error
    wnpllrzodiac
        2
    wnpllrzodiac  
       11 天前
    System.Net.Sockets.SocketException (11): Resource temporarily unavailable at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken) at System.Net.Sockets.Socket.AwaitableSocketAsyncEvent

    端口别占用了?
    重启机器试试。
    shixuedela
        3
    shixuedela  
       11 天前
    :13:05.319 +00:00]
    [ERR] [10] Emby.Server.Implementations.Updates.InstallationManager: An error occurred while accessing the plugin manifest: "https://repo.jellyfin.org/files/plugin/manifest.json"
    [2024-11-19 14:13:05.319 +00:00]
    [ERR] [10] Emby.Server.Implementations.Updates.InstallationManager: An error occurred while accessing the plugin manifest: "https://repo.jellyfin.org/files/plugin/manifest.json" System.Net.Http.HttpRequestException: Resource temporarily unavailable (repo.jellyfin.org:443) ---> System.Net.Sockets.SocketException (11): Resource temporarily unavailable at

    问题应该是之前用的老版本。突然启动的时候因为镜像没有指定 tag 导致 docker 拉取了最新的 latest 镜像。
    检查查询一下本地已存在的老版本镜像 docker images |grep "jellyfin" 查询他的 tag 属于那个版本。然后启动加上 tag
    docker run -d --name=jellyfin -v /mnt/jellyfin/:/config -v /mnt/media/:/media -v /mnt/jellyfincache/:/cache --restart=unless-stopped jellyfin/jellyfin:[tag]
    xsircn
        4
    xsircn  
       10 天前
    好长的一串乱码
    standin000
        5
    standin000  
    OP
       9 天前
    @lyfllrr  之前查到过,但是 docker image prune/docker system prune 后还是不行
    @wnpllrzodiac 应该是域名解析出问题了
    @shixuedela 检查了版本,不是版本问题
    standin000
        6
    standin000  
    OP
       13 小时 14 分钟前
    解决了,是/proc/sys/net/ipv4/ip_forward 的问题,导致 docker 只能用 host 模式不能用 NAT 模式
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   2579 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 22ms · UTC 03:38 · PVG 11:38 · LAX 19:38 · JFK 22:38
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.