• 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 Jellyfin only reading some random files

     
    • 0 Vote(s) - 0 Average

    Jellyfin only reading some random files

    m0r4a
    Offline

    Junior Member

    Posts: 4
    Threads: 1
    Joined: 2024 Jun
    Reputation: 0
    Country:Mexico
    #1
    2024-06-28, 01:20 AM
    Hi!, I usually don't ask for help but I feel very stuck at this moment.

    --- Context ---

    I used to (two days ago) run my Jellyfin server with this docker-project structure:
    - docker-compose-yaml
    - media
    - - Shows
    - - - What do we do in the shadows (2014)
    - - - - Season 01
    - - Movies
    - - - Movie 1, 2,....

    Shows and Movies were symlinks to /nvme/media/Shows and movies respectively.

    I tried to integrate Sonarr, Radarr and Transmission, Added the libraries to the apps and worked, but Radarr needed the movies to be inside folders so I changed it to be in folders like this:

    - - Movies
    - - - Movie 1 (Year)
    - - - - Movie 1.mkv

    And everything started to break, the movies weren't read properly anymore even though I moved them back to be just the files.

    As I kept forward I ended up with a structure like this:

    - shared
    - - media (symlink to /nvme/jellyfin/media)
    - - torrents (same for /torrents)

    And now nothing worked, even going back to all default settings didn't work

    --- Problem ---

    Now even if I create a differente docker instance, deleting cache and history data of firefox inside shows Jellyfin only reads one or two episodes randomly, don't load the images but the single episode is playable.

    -- Information --

    * the nvme drive is mounted in the fstab like this:
    UUID=655DE1BC56F708F5 /nvme ntfs defaults 0 0

    * Pastebin for jellyfin logs: https://pastebin.com/zmt8vtkt

    * Pastebin for how Jellyfin looks in docker-compose.yaml: https://pastebin.com/ADT0s3rK

    * Media have 777 permissions

    * When executing a shell inside jellyfin image I can see all .mkv files

    -- What i've tried --

    * Going back to the same old folders and docker-compose setup
    * Copying one season with the proper file structure inside the docker project
    * changing my mounting in fstab (used to have different options, I tried same thing with both mounting ways)
    * starting a new project with new cache and config folders
    * adding new content to the media folders

    I think is something simmilar to https://forum.jellyfin.org/t-solved-libr...able-media but in my case im running everything in a docker container


    Attached Files Thumbnail(s)
           
    m0r4a
    Offline

    Junior Member

    Posts: 4
    Threads: 1
    Joined: 2024 Jun
    Reputation: 0
    Country:Mexico
    #2
    2024-06-28, 01:27 AM
    I would like to add that Movies library is indeed empty
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,375
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #3
    2024-06-28, 02:45 AM
    What is the output of

    Code:
    sudo ls -ld /media /media/Movies /media/Shows/ /media/Shows/"What we do in the shadows (2014)"
    sudo ls -l /media/Shows/"What we do in the shadows (2014)"

    You said that /media has 777 permissions, but we're going to check the full path.
    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]
    m0r4a
    Offline

    Junior Member

    Posts: 4
    Threads: 1
    Joined: 2024 Jun
    Reputation: 0
    Country:Mexico
    #4
    2024-06-28, 02:56 AM (This post was last modified: 2024-06-28, 02:59 AM by m0r4a. Edited 3 times in total.)
    With this structure:
    - docker_compose.yaml
    - shared
    - - media

    And running the command inside shared, this is the output:

    -- First command --

    > sudo ls -ld ./media ./media/Movies ./media/Shows/ ./media/Shows/What\ do\ we\ do\ in\ the\ shadows\ \(2014\)
    lrwxrwxrwx 1 m0r4a docker 20 Jun 27 17:48 ./media -> /nvme/jellyfin/media
    drwxrwxrwx 1 root root 0 Jun 27 17:47 ./media/Movies
    drwxrwxrwx 1 root root 0 Jun 27 18:04 ./media/Shows/
    drwxrwxrwx 1 root root 0 Jun 27 18:04 './media/Shows/What do we do in the shadows (2014)'

    I can't change the user:group value, I think due the mount options in fstab

    -- Second command --

    > sudo ls -l ./media/Shows/What\ do\ we\ do\ in\ the\ shadows\ \(2014\)/
    total 4
    drwxrwxrwx 1 root root 4096 Jun 27 18:04 'Season 01'
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,375
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #5
    2024-06-28, 03:16 AM
    Wait. Hold up. /media is a symlink? What are the permissions on the symlinked directory? The symlink being 777 does not get around the destination's permissions.

    Code:
    sudo ls -ld /nvme /nvme/jellyfin /nvme/jellyfin/media
    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]
    m0r4a
    Offline

    Junior Member

    Posts: 4
    Threads: 1
    Joined: 2024 Jun
    Reputation: 0
    Country:Mexico
    #6
    2024-06-28, 03:23 AM (This post was last modified: 2024-06-28, 03:37 AM by m0r4a. Edited 3 times in total.)
    I changed the target directory in docker_compose.yaml from /shows to /media, literally just a rename and now it's working, I'm legally downloading two movies to check if I rename the /Movies to /media2 does the trick and I can get that up and running, if so I will let you know.

    I will edit this post in a few minutes to add the output for the permissions that you asked for

    Edit 1:

    -- Output for the command ---

    drwxrwxrwx 1 root root 4096 Jun 27 18:03 /nvme
    drwxrwxrwx 1 root root 0 Jun 27 17:47 /nvme/jellyfin
    drwxrwxrwx 1 root root 0 Jun 27 17:47 /nvme/jellyfin/media

    -- News --

    Apparently renaming the target to /media and /media2 did the trick but I don't understand why

    (In docker_compose.yaml)

    - type: bind
    source: ./shared/media/Shows
    target: /media

    - type: bind
    source: ./shared/media/Movies
    target: /media2

    Edit 2:

    I added a third media source with target name /media3 and still works, added "read_only: true" option and still works, so apparently the naming is the problem?
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,375
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #7
    2024-06-28, 03:41 PM
    I just remembered something. If you use symlinks in a container and the linked destination path doesn't exist for the container, it will never find them.

    Since you didn't mount /nvme in the container, your symlink pointing to it doesn't exist from the container's perspective.
    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]
    « 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