linuxserver / docker-jellyfin

GNU General Public License v3.0
647 stars 97 forks source link

Metadata scanning broken #28

Closed pagdot closed 2 years ago

pagdot commented 4 years ago

When scanning a library it starts to freeze completeky at the first item after following output:

[2020-04-06 15:10:58.759 +02:00] [INF] [16] TaskManager: Executing "Scan Media Library"
[2020-04-06 15:10:58.775 +02:00] [INF] [16] LibraryMonitor: Stopping directory watching for path "/data/testlib"
[2020-04-06 15:10:58.779 +02:00] [INF] [16] LibraryManager: Validating media library
[2020-04-06 15:10:58.862 +02:00] [DBG] [16] App: Running "FolderImageProvider" for "/config/data/root"
[2020-04-06 15:10:58.962 +02:00] [DBG] [16] App: Running "FolderImageProvider" for "/config/data/root/default"
[2020-04-06 15:10:59.025 +02:00] [DBG] [16] App: Running "CollectionFolderImageProvider" for "/config/data/root/default/Movies"
[2020-04-06 15:10:59.045 +02:00] [DBG] [16] App: Running "CollectionFolderImageProvider" for "/config/data/root/default/Movies"
[2020-04-06 15:10:59.117 +02:00] [DBG] [16] Emby.Server.Implementations.Data.SqliteItemRepository: "GetItemList" query time (slow): 36.0661ms. 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"
[2020-04-06 15:10:59.224 +02:00] [DBG] [16] App: Running "FFProbeProvider" for "/data/testlib/MadMax/MadMax.mp4"
[2020-04-06 15:10:59.236 +02:00] [DBG] [16] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: "/usr/lib/jellyfin-ffmpeg/ffprobe" "-i file:\"/data/testlib/MadMax/MadMax.mp4\" -threads 0 -v warning -print_format json -show_streams -show_chapters -show_format"
[2020-04-06 15:10:59.237 +02:00] [DBG] [16] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: Starting ffprobe with args "-i file:\"/data/testlib/MadMax/MadMax.mp4\" -threads 0 -v warning -print_format json -show_streams -show_chapters -show_format"

There is no more output until a restart and the Web UI is unresponsive too. There is no issue with the jellyfin/jellyfin docker image. The issue exist only with 10.5.x. There is no issue with 10.4.3! I've tried disabling using TheMovieDB, but it didn't work without it either.


Expected Behavior

Library scanning works without issues or freezing

Current Behavior

Jellyfin hangs completely (no more logs, Web UI times out)

Steps to Reproduce

  1. Create a fresh instance (optional, doesn't work with existing ones either)
  2. Add a library with content (optional, existing libraries cause issues too; tested with Movies and TV Series)
  3. Trigger scan of library or all libraries
  4. Try to reload the page/watch logs, nothing works anymore

Environment

OS: Ubuntu 18.04 CPU architecture: x86_64
How docker service was installed: According to the official instructions

Command used to create docker container (run/create/compose/screenshot)

# docker-compose.yml
---
version: "2"
services:
  jellyfin2:
    image: linuxserver/jellyfin:v10.5.3-ls43
    container_name: jellyfin2
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=Europe/Berlin
      - UMASK_SET=022 #optional
    volumes:
      - /opt/appdata/jellyfin/library2:/config
      - /opt/appdata/jellyfin/testlib:/data/testlib
    restart: unless-stopped
    ports:
     - "8096:8096"

Docker logs

[2020-04-06 15:10:58.759 +02:00] [INF] [16] TaskManager: Executing "Scan Media Library"
[2020-04-06 15:10:58.775 +02:00] [INF] [16] LibraryMonitor: Stopping directory watching for path "/data/testlib"
[2020-04-06 15:10:58.779 +02:00] [INF] [16] LibraryManager: Validating media library
[2020-04-06 15:10:58.862 +02:00] [DBG] [16] App: Running "FolderImageProvider" for "/config/data/root"
[2020-04-06 15:10:58.962 +02:00] [DBG] [16] App: Running "FolderImageProvider" for "/config/data/root/default"
[2020-04-06 15:10:59.025 +02:00] [DBG] [16] App: Running "CollectionFolderImageProvider" for "/config/data/root/default/Movies"
[2020-04-06 15:10:59.045 +02:00] [DBG] [16] App: Running "CollectionFolderImageProvider" for "/config/data/root/default/Movies"
[2020-04-06 15:10:59.117 +02:00] [DBG] [16] Emby.Server.Implementations.Data.SqliteItemRepository: "GetItemList" query time (slow): 36.0661ms. 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"
[2020-04-06 15:10:59.224 +02:00] [DBG] [16] App: Running "FFProbeProvider" for "/data/testlib/MadMax/MadMax.mp4"
[2020-04-06 15:10:59.236 +02:00] [DBG] [16] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: "/usr/lib/jellyfin-ffmpeg/ffprobe" "-i file:\"/data/testlib/MadMax/MadMax.mp4\" -threads 0 -v warning -print_format json -show_streams -show_chapters -show_format"
[2020-04-06 15:10:59.237 +02:00] [DBG] [16] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: Starting ffprobe with args "-i file:\"/data/testlib/MadMax/MadMax.mp4\" -threads 0 -v warning -print_format json -show_streams -show_chapters -show_format"
thelamer commented 4 years ago

I cannot replicate this, also this image is pretty widely distributed at this point. Can you just have like one or two media files in that folder and see what happens, just thinking out loud that it might be a specific video file/folder naming that is messing it up.

pagdot commented 4 years ago

I've already tested it with a single file, but had the same issue. I've tried a different file but also had the issue. I've tried running the ffprobe command manually, but its output looked good. I will try it on another system because I don't know what to test else

aussetg commented 4 years ago

I have the exact same issue with Jellyfin 10.5.5-1 on Debian inside an LXC so it's definitely Jellyfin related, not docker.

immanuelfodor commented 4 years ago

Exact same issue with Jellyfin 10.5.5 and then the latest 10.6 with LXC Ubuntu. Files already in the library work fine, scanning for new files freeze Jellyfin to death with the same ffprobe log as last line. Tried replacing jellyfin-ffmpeg and probe with the original ffmpeg package, it has the same effect.

joulester commented 4 years ago

Exact same issue with Jellyfin 10.5.5 and then the latest 10.6 with LXC Ubuntu. Files already in the library work fine, scanning for new files freeze Jellyfin to death with the same ffprobe log as last line. Tried replacing jellyfin-ffmpeg and probe with the original ffmpeg package, it has the same effect.

I have the same setup but with 10.6.2 still the same issue

tobbenb commented 4 years ago

This is most likely a jellyfin issue. Have you tried talking to them?

github-actions[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

immanuelfodor commented 4 years ago

I'm still using KVM because of this

github-actions[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

j0nnymoe commented 2 years ago

Closing this as it over 18 months old and no other reports.

Please open a new ticket if needed.