• 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: File or directory not found - user permission

     
    • 0 Vote(s) - 0 Average

    SOLVED: File or directory not found - user permission

    Michael Tot Korsgaard
    Offline

    Junior Member

    Posts: 7
    Threads: 3
    Joined: 2024 Nov
    Reputation: 0
    #1
    2024-12-23, 09:04 PM
    Earlier today I moved my movies to a new folder, and now I can't see to play my movies. They still show in the menu, but upon start it informs me that there is an error.

    I suspect that this is caused by a missing / wrong user permissions but I'm not sure how to go about this?

    This is my folder setup:
    Code:
    lrwxrwxrwx  1 root root    41 Dec 23 17:43 jellyfin_bin -> /media/storage_box/jellyfin/jellyfin_lib//
    drwxr-xr-x  3 root root  4096 Dec 23 15:34 media/
          drwxr-xr-x  2 ftptot root    0 Dec 23 17:24 storage_box/
                drwxr-xr-x 2 ftptot root    0 Dec 23 17:25 jellyfin/
                       drwxr-xr-x 2 ftptot root 0 Dec 23 17:21 jellyfin_lib/

    As a reference, here's my ffmpeg log:
    Code:
    {"Protocol":0,"Id":"229f3fe9c79c280261159297e858eb14","Path":"/jellyfin_lib/movies/\u00D8rkenens S\u00F8nner (1994)/\u00D8rkenens S\u00F8nner (1994).mp4","EncoderPath":null,"EncoderProtocol":null,"Type":0,"Container":"mov,mp4,m4a,3gp,3g2,mj2","Size":2419989089,"Name":"\u00D8rkenens S\u00F8nner (1994)","IsRemote":false,"ETag":"b9b3d68dcae6332bc7015814179245cd","RunTimeTicks":62669850000,"ReadAtNativeFramerate":false,"IgnoreDts":false,"IgnoreIndex":false,"GenPtsInput":false,"SupportsTranscoding":true,"SupportsDirectStream":true,"SupportsDirectPlay":true,"IsInfiniteStream":false,"UseMostCompatibleTranscodingProfile":false,"RequiresOpening":false,"OpenToken":null,"RequiresClosing":false,"LiveStreamId":null,"BufferMs":null,"RequiresLooping":false,"SupportsProbing":true,"VideoType":0,"IsoType":null,"Video3DFormat":null,"MediaStreams":[{"Codec":"h264","CodecTag":"avc1","Language":"eng","ColorRange":null,"ColorSpace":null,"ColorTransfer":null,"ColorPrimaries":null,"DvVersionMajor":null,"DvVersionMinor":null,"DvProfile":null,"DvLevel":null,"RpuPresentFlag":null,"ElPresentFlag":null,"BlPresentFlag":null,"DvBlSignalCompatibilityId":null,"Rotation":null,"Comment":null,"TimeBase":"1/30000","CodecTimeBase":null,"Title":null,"VideoRange":1,"VideoRangeType":1,"VideoDoViTitle":null,"AudioSpatialFormat":0,"LocalizedUndefined":null,"LocalizedDefault":null,"LocalizedForced":null,"LocalizedExternal":null,"LocalizedHearingImpaired":null,"DisplayTitle":"576p H264 SDR","NalLengthSize":"4","IsInterlaced":false,"IsAVC":true,"ChannelLayout":null,"BitRate":2987734,"BitDepth":8,"RefFrames":1,"PacketLength":null,"Channels":null,"SampleRate":null,"IsDefault":true,"IsForced":false,"IsHearingImpaired":false,"Height":576,"Width":720,"AverageFrameRate":29.97003,"RealFrameRate":29.97003,"ReferenceFrameRate":29.97003,"Profile":"High","Type":1,"AspectRatio":"4:3","Index":0,"Score":null,"IsExternal":false,"DeliveryMethod":null,"DeliveryUrl":null,"IsExternalUrl":null,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Path":null,"PixelFormat":"yuv420p","Level":31,"IsAnamorphic":false},{"Codec":"aac","CodecTag":"mp4a","Language":"eng","ColorRange":null,"ColorSpace":null,"ColorTransfer":null,"ColorPrimaries":null,"DvVersionMajor":null,"DvVersionMinor":null,"DvProfile":null,"DvLevel":null,"RpuPresentFlag":null,"ElPresentFlag":null,"BlPresentFlag":null,"DvBlSignalCompatibilityId":null,"Rotation":null,"Comment":null,"TimeBase":"1/48000","CodecTimeBase":null,"Title":null,"VideoRange":0,"VideoRangeType":0,"VideoDoViTitle":null,"AudioSpatialFormat":0,"LocalizedUndefined":null,"LocalizedDefault":"Default","LocalizedForced":null,"LocalizedExternal":"External","LocalizedHearingImpaired":null,"DisplayTitle":"English - AAC - 5.1 - Default","NalLengthSize":null,"IsInterlaced":false,"IsAVC":false,"ChannelLayout":"5.1","BitRate":96000,"BitDepth":null,"RefFrames":null,"PacketLength":null,"Channels":6,"SampleRate":48000,"IsDefault":true,"IsForced":false,"IsHearingImpaired":false,"Height":null,"Width":null,"AverageFrameRate":null,"RealFrameRate":null,"ReferenceFrameRate":null,"Profile":"LC","Type":0,"AspectRatio":null,"Index":1,"Score":null,"IsExternal":false,"DeliveryMethod":null,"DeliveryUrl":null,"IsExternalUrl":null,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Path":null,"PixelFormat":null,"Level":0,"IsAnamorphic":null}],"MediaAttachments":[],"Formats":[],"Bitrate":3089190,"FallbackMaxStreamingBitrate":null,"Timestamp":null,"RequiredHttpHeaders":{},"TranscodingUrl":null,"TranscodingSubProtocol":0,"TranscodingContainer":null,"AnalyzeDurationMs":null,"DefaultAudioStreamIndex":null,"DefaultSubtitleStreamIndex":null,"HasSegments":false}

    /usr/lib/jellyfin-ffmpeg/ffmpeg -analyzeduration 200M -probesize 1G  -i file:"/jellyfin_lib/movies/Ørkenens Sønner (1994)/Ørkenens Sønner (1994).mp4" -map_metadata -1 -map_chapters -1 -threads 0 -map 0:0 -map 0:1 -map -0:s -codec:v:0 libx264 -preset veryfast -crf 23 -maxrate 5975468 -bufsize 11950936 -profile:v:0 high -level 31 -x264opts:0 subme=0:me_range=16:rc_lookahead=10:me=hex:open_gop=0 -force_key_frames:0 "expr:gte(t,n_forced*3)" -sc_threshold:v:0 0 -vf "setparams=color_primaries=bt709:color_trc=bt709:colorspace=bt709,scale=trunc(min(max(iw\,ih*a)\,min(720\,576*a))/2)*2:trunc(min(max(iw/a\,ih)\,min(720/a\,576))/2)*2,format=yuv420p" -codec:a:0 libfdk_aac -ac 2 -ab 96000 -af "volume=2" -copyts -avoid_negative_ts disabled -max_muxing_queue_size 2048 -f hls -max_delay 5000000 -hls_time 3 -hls_segment_type fmp4 -hls_fmp4_init_filename "5b3a097fc8b8859e0f22725bd82fbb49-1.mp4" -start_number 0 -hls_segment_filename "/var/cache/jellyfin/transcodes/5b3a097fc8b8859e0f22725bd82fbb49%d.mp4" -hls_playlist_type vod -hls_list_size 0 -y "/var/cache/jellyfin/transcodes/5b3a097fc8b8859e0f22725bd82fbb49.m3u8"


    ffmpeg version 7.0.2-Jellyfin Copyright (c) 2000-2024 the FFmpeg developers
      built with gcc 13 (Ubuntu 13.2.0-23ubuntu4)
      configuration: --prefix=/usr/lib/jellyfin-ffmpeg --target-os=linux --extra-version=Jellyfin --disable-doc --disable-ffplay --disable-ptx-compression --disable-static --disable-libxcb --disable-sdl2 --disable-xlib --enable-lto=auto --enable-gpl --enable-version3 --enable-shared --enable-gmp --enable-gnutls --enable-chromaprint --enable-opencl --enable-libdrm --enable-libxml2 --enable-libass --enable-libfreetype --enable-libfribidi --enable-libfontconfig --enable-libharfbuzz --enable-libbluray --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libopenmpt --enable-libdav1d --enable-libsvtav1 --enable-libwebp --enable-libvpx --enable-libx264 --enable-libx265 --enable-libzvbi --enable-libzimg --enable-libfdk-aac --arch=amd64 --enable-libshaderc --enable-libplacebo --enable-vulkan --enable-vaapi --enable-amf --enable-libvpl --enable-ffnvcodec --enable-cuda --enable-cuda-llvm --enable-cuvid --enable-nvdec --enable-nvenc
      libavutil      59.  8.100 / 59.  8.100
      libavcodec    61.  3.100 / 61.  3.100
      libavformat    61.  1.100 / 61.  1.100
      libavdevice    61.  1.100 / 61.  1.100
      libavfilter    10.  1.100 / 10.  1.100
      libswscale      8.  1.100 /  8.  1.100
      libswresample  5.  1.100 /  5.  1.100
      libpostproc    58.  1.100 / 58.  1.100
    [in#0 @ 0x60c797cffe00] Error opening input: No such file or directory
    Error opening input file file:/jellyfin_lib/movies/Ørkenens Sønner (1994)/Ørkenens Sønner (1994).mp4.
    Error opening input files: No such file or directory
    Go to solution
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,375
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #2
    2024-12-23, 09:46 PM
    Is this remote storage? If so, what kind?
    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]
    Michael Tot Korsgaard
    Offline

    Junior Member

    Posts: 7
    Threads: 3
    Joined: 2024 Nov
    Reputation: 0
    #3
    2024-12-23, 09:53 PM (This post was last modified: 2024-12-23, 10:36 PM by Michael Tot Korsgaard. Edited 1 time in total.)
    It's a Hetzner Storage Box which I've mounted to my Hetzner Ubuntu server. Not sure if that answers your question?

    My server is running Ubuntu 20.04.1 LTS
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,375
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #4
    2024-12-24, 08:25 PM (This post was last modified: 2024-12-24, 11:10 PM by TheDreadPirate. Edited 1 time in total.)
    I just noticed in your first post that you included a symlink. Is Jellyfin going through the symlink to access its library? You should the permissions for part of the path, but not all the way to the end.

    Code:
    ls -ld /jellyfin_lib /jellyfin_lib/movies /jellyfin_lib/movies/"Ørkenens Sønner (1994)"
    ls -l /jellyfin_lib/movies/Ørkenens Sønner (1994)/Ørkenens Sønner (1994).mp4

    I also noticed that the library is pointing at "jellyfin_lib" but your symlink is "jellyfin_bin".
    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]
    Michael Tot Korsgaard
    Offline

    Junior Member

    Posts: 7
    Threads: 3
    Joined: 2024 Nov
    Reputation: 0
    #5
    2024-12-24, 10:42 PM
    I do feel like a nub right now. It was indeed because the symlink was misnamed and I just never noticed. Thank you so much for pointing it out.
    Jellyfin 10.10.3
    Ubuntu 24.04.1 LTS - 8 vcpu, 16GB RAM, 240GB local disk
    Storage Box - 5TB disk
    Hosted on Hetzner
    « 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