Jellyfin crashes when scanning Library - TheColin21 - 2024-12-13
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?
RE: Jellyfin crashes when scanning Library - TheDreadPirate - 2024-12-13
Can you share your full jellyfin log via pastebin?
RE: Jellyfin crashes when scanning Library - TheColin21 - 2024-12-13
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.
RE: Jellyfin crashes when scanning Library - TheDreadPirate - 2024-12-13
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.
RE: Jellyfin crashes when scanning Library - TheColin21 - 2024-12-14
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.
|