• Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below
  • Forum
  • Website
  • GitHub
  • Status
  • Translation
  • Features
  • Team
  • Rules
  • Help
  • Feeds
User Links
  • Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below

    Useful Links Forum Website GitHub Status Translation Features Team Rules Help Feeds
    Jellyfin Forum Support Troubleshooting SOLVED: Jellyfin crashes when scanning Library

     
    • 0 Vote(s) - 0 Average

    SOLVED: Jellyfin crashes when scanning Library

    Jellyfin crashes and restarts when trying to scan movie library.
    TheColin21
    Offline

    Junior Member

    Posts: 12
    Threads: 4
    Joined: 2024 Nov
    Reputation: 0
    Country:Germany
    #1
    2024-12-13, 12:40 PM
    My Jellyfin recently started crashing when I try to scan my movies library.
    I recently removed .ignore files from my extras folders as I wanted to integrate them with Jellyfin.

    Before the crash the following gets logged:
    Code:
    [13:26:12] [INF] [38] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: Starting /usr/lib/jellyfin-ffmpeg/ffprobe with args -analyzeduration 200M -probesize 1G -i file:"/mount/media/Filme/Ant-Man (2015) [imdbid-tt0478970]/extras/MARVEL'S ANT-MAN - BLU-RAY_t01.mkv" -threads 0 -v warning -print_format json -show_streams -show_chapters -show_format
    [13:26:12] [INF] [38] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: Starting /usr/lib/jellyfin-ffmpeg/ffprobe with args -analyzeduration 200M -probesize 1G -i file:"/mount/media/Filme/Ant-Man (2015) [imdbid-tt0478970]/extras/MARVEL'S ANT-MAN - BLU-RAY_t08.mkv" -threads 0 -v warning -print_format json -show_streams -show_chapters -show_format
    [13:26:12] [INF] [38] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: Starting /usr/lib/jellyfin-ffmpeg/ffprobe with args -analyzeduration 200M -probesize 1G -i file:"/mount/media/Filme/Ant-Man (2015) [imdbid-tt0478970]/extras/MARVEL'S ANT-MAN - BLU-RAY_t10.mkv" -threads 0 -v warning -print_format json -show_streams -show_chapters -show_format
    [matroska,webm @ 0x555b78192500] Could not find codec parameters for stream 16 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
    Consider increasing the value for the 'analyzeduration' (200000000) and 'probesize' (1000000000) options
    [matroska,webm @ 0x555b78192500] Could not find codec parameters for stream 18 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
    Consider increasing the value for the 'analyzeduration' (200000000) and 'probesize' (1000000000) options
    [matroska,webm @ 0x555b78192500] Could not find codec parameters for stream 20 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
    Consider increasing the value for the 'analyzeduration' (200000000) and 'probesize' (1000000000) options
    [matroska,webm @ 0x555b78192500] Could not find codec parameters for stream 26 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
    Consider increasing the value for the 'analyzeduration' (200000000) and 'probesize' (1000000000) options
    [matroska,webm @ 0x555b78192500] Could not find codec parameters for stream 43 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
    Consider increasing the value for the 'analyzeduration' (200000000) and 'probesize' (1000000000) options
    [matroska,webm @ 0x555b78192500] Could not find codec parameters for stream 44 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
    Consider increasing the value for the 'analyzeduration' (200000000) and 'probesize' (1000000000) options
    [matroska,webm @ 0x55d516412500] Could not find codec parameters for stream 16 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
    Consider increasing the value for the 'analyzeduration' (200000000) and 'probesize' (1000000000) options
    I included just 3 lines of ffprobe starting, there are quite a few more.
    New files do get found, there was a missing movie before I scanned for example, but no metadata is found. Metadata only gets searched when I manually select update metadata for a single movie.
    The extra files do not appear in Jellyfin.

    File permissions are correct, I triple-checked that.

    Any ideas what might be causing this?
    Go to solution
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,375
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #2
    2024-12-13, 01:44 PM
    Can you share your full jellyfin log via pastebin?
    Jellyfin 10.10.7 (Docker)
    Ubuntu 24.04.2 LTS w/HWE
    Intel i3 12100
    Intel Arc A380
    OS drive - SK Hynix P41 1TB
    Storage
        4x WD Red Pro 6TB CMR in RAIDZ1
    [Image: GitHub%20Sponsors-grey?logo=github]
    TheColin21
    Offline

    Junior Member

    Posts: 12
    Threads: 4
    Joined: 2024 Nov
    Reputation: 0
    Country:Germany
    #3
    2024-12-13, 02:32 PM
    I had to cut it quite a bit short but here it is:
    https://pastebin.com/t5h5Mtsa

    I pseudonymized my domain and a few IP addresses.
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,375
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #4
    2024-12-13, 02:38 PM
    It keeps failing on Ant-man and/or Independence Day. Specifically Ant-man "t10" and Independence Day "t06". Remove both of them from your library/extras folder then scan and see what happens.
    Jellyfin 10.10.7 (Docker)
    Ubuntu 24.04.2 LTS w/HWE
    Intel i3 12100
    Intel Arc A380
    OS drive - SK Hynix P41 1TB
    Storage
        4x WD Red Pro 6TB CMR in RAIDZ1
    [Image: GitHub%20Sponsors-grey?logo=github]
    TheColin21
    Offline

    Junior Member

    Posts: 12
    Threads: 4
    Joined: 2024 Nov
    Reputation: 0
    Country:Germany
    #5
    2024-12-14, 10:53 AM (This post was last modified: 2024-12-14, 10:53 AM by TheColin21.)
    Thanks, I was able to get it working.
    I suppose you just singled them out because they were the last files listed before the crash?
    I continued like this and singled out six files overall that were causing problems. Each an extra from a different BluRay
    Some others still threw errors, for example:
    Code:
    [11:48:41] [INF] [30] MediaBrowser.Providers.MediaInfo.VideoImageProvider: Skipping image extraction due to missing DefaultVideoStreamIndex for /mount/media/Filme/The Grand Budapest Hotel (2014) [imdbid-tt2278388]/extras/The Grand Budapest Hotel_t27.mkv.
    [11:48:42] [ERR] [32] MediaBrowser.Providers.Videos.VideoMetadataService: Error in Probe Provider
    System.Text.Json.JsonException: The input does not contain any JSON tokens. Expected the input to start with a valid JSON token, when isFinalBlock is true. Path: $ | LineNumber: 0 | BytePositionInLine: 0.
    ---> System.Text.Json.JsonReaderException: The input does not contain any JSON tokens. Expected the input to start with a valid JSON token, when isFinalBlock is true. LineNumber: 0 | BytePositionInLine: 0.
      at System.Text.Json.ThrowHelper.ThrowJsonReaderException(Utf8JsonReader& json, ExceptionResource resource, Byte nextByte, ReadOnlySpan`1 bytes)
      at System.Text.Json.Serialization.JsonConverter`1.ReadCore(Utf8JsonReader& reader, JsonSerializerOptions options, ReadStack& state)
      --- End of inner exception stack trace ---
      at System.Text.Json.ThrowHelper.ReThrowWithPath(ReadStack& state, JsonReaderException ex)
      at System.Text.Json.Serialization.JsonConverter`1.ReadCore(Utf8JsonReader& reader, JsonSerializerOptions options, ReadStack& state)
      at System.Text.Json.Serialization.Metadata.JsonTypeInfo`1.ContinueDeserialize(ReadBufferState& bufferState, JsonReaderState& jsonReaderState, ReadStack& readStack)
      at System.Text.Json.Serialization.Metadata.JsonTypeInfo`1.DeserializeAsync(Stream utf8Json, CancellationToken cancellationToken)
      at MediaBrowser.MediaEncoding.Encoder.MediaEncoder.GetMediaInfoInternal(String inputPath, String primaryPath, MediaProtocol protocol, Boolean extractChapters, String probeSizeArgument, Boolean isAudio, Nullable`1 videoType, CancellationToken cancellationToken)
      at MediaBrowser.MediaEncoding.Encoder.MediaEncoder.GetMediaInfoInternal(String inputPath, String primaryPath, MediaProtocol protocol, Boolean extractChapters, String probeSizeArgument, Boolean isAudio, Nullable`1 videoType, CancellationToken cancellationToken)
      at MediaBrowser.Providers.MediaInfo.FFProbeVideoInfo.ProbeVideo[T](T item, MetadataRefreshOptions options, CancellationToken cancellationToken)
      at MediaBrowser.Providers.Manager.MetadataService`2.RunCustomProvider(ICustomMetadataProvider`1 provider, TItemType item, String logName, MetadataRefreshOptions options, RefreshResult refreshResult, CancellationToken cancellationToken)
    I saw this one quite a lot for different files although I don't know why Jellyfin queries any metadata provider at all for extras.

    This does not really bother me though as it at least doesn't crash the whole Jellyfin server.
    I think there should be some kind of better error handling than restarting the whole server when a scan finds a file that it cannot handle for some reason - especially without obviously alerting the user.
    « Next Oldest | Next Newest »

    Users browsing this thread: 1 Guest(s)


    • View a Printable Version
    • Subscribe to this thread
    Forum Jump:

    Home · Team · Help · Contact
    © Designed by D&D - Powered by MyBB
    L


    Jellyfin

    The Free Software Media System

    Linear Mode
    Threaded Mode