midnigh 0 Posted September 28, 2020 Share Posted September 28, 2020 I have a movie that I cannot play. Investigation of the logs reveals that emby cannot probe the file and/or save the metadata. I am using the image `emby/embyserver`. The error in the log that I think is relevant is; Quote *** Error Report *** Version: 4.5.0.50 Command line: /system/EmbyServer.dll -programdata /config -ffdetect /bin/ffdetect -ffmpeg /bin/ffmpeg -ffprobe /bin/ffprobe -restartexitcode 3 Operating system: Linux version 4.2.8 (root@U16BuildServer123) (gcc version 4.9.2 (toolchain config: [gcc-4.9.2 binutils-2.25 glibc-2.21]) ) #1 SMP Mon Sep 7 05:02:27 C Framework: .NET Core 3.1.7 OS/Process: x64/x64 Runtime: system/System.Private.CoreLib.dll Processor count: 4 Data path: /config Application path: /system System.Exception: System.Exception: ffprobe failed for file:"*.mkv" - streams and format are both null: { } ffprobe version 4.3.0-emby_2020_05_23 Copyright (c) 2007-2019 the FFmpeg developers and softworkz for Emby LLC built with gcc 8.3.0 (crosstool-NG 1.24.0) file:/mnt/movies/*.mkv: Permission denied at Emby.Server.MediaEncoding.Probing.MediaProbeManager.GetMediaInfoInternal(String inputPath, String primaryPath, MediaProtocol protocol, String userAgent, Boolean extractChapters, String probeSizeArgument, Boolean isAudio, Boolean forceEnableLogging, CancellationToken cancellationToken) at MediaBrowser.Providers.MediaInfo.FFProbeVideoInfo.ProbeVideo[T](MetadataResult`1 metadataResult, MetadataRefreshOptions options, LibraryOptions libraryOptions, CancellationToken cancellationToken) at MediaBrowser.Providers.Manager.MetadataService`2.RunCustomProvider(ICustomMetadataProvider`1 provider, MetadataResult`1 itemResult, String logName, MetadataRefreshOptions options, RefreshResult refreshResult, CancellationToken cancellationToken) Source: Emby.Server.MediaEncoding TargetSite: Void MoveNext() When I attach to the shell in the container and run `ffprobe` on the file this is the results; Quote ffprobe version 4.3.0-emby_2020_05_23 Copyright (c) 2007-2019 the FFmpeg developers and softworkz for Emby LLC built with gcc 8.3.0 (crosstool-NG 1.24.0) Input #0, matroska,webm, from '*.mkv': Metadata: encoder : libebml v1.3.6 + libmatroska v1.4.9 creation_time : 2020-08-28T04:01:43.000000Z Duration: 01:31:54.05, start: 0.000000, bitrate: 5348 kb/s Stream #0:0: Video: h264 (High), yuv420p(tv, bt709, progressive), 1920x1080 [SAR 1:1 DAR 16:9], Level 40, 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default) Metadata: BPS-eng : 4962463 DURATION-eng : 01:31:53.967000000 NUMBER_OF_FRAMES-eng: 132203 NUMBER_OF_BYTES-eng: 3420357443 Stream #0:1(eng): Audio: ac3, 48000 Hz, 5.1(side), fltp, 384 kb/s (default) Metadata: BPS-eng : 384000 DURATION-eng : 01:31:54.048000000 NUMBER_OF_FRAMES-eng: 172314 NUMBER_OF_BYTES-eng: 264674304 Link to comment Share on other sites More sharing options...
Luke 37053 Posted September 28, 2020 Share Posted September 28, 2020 Hi, I think you can see the answer right here: file:/mnt/movies/*.mkv: Permission denied The server is being denied permission to read the contents of your video file. Have you made sure the emby system user has permissions for your files? I would suggest taking a look at our file permissions guide: Thanks. Link to comment Share on other sites More sharing options...
midnigh 0 Posted September 28, 2020 Author Share Posted September 28, 2020 Quote ls -al total 3601400 drwxr-xr-x 3 root root 4096 Sep 28 00:29 . drwxrwxrwx 60 root root 4096 Sep 28 00:23 .. drwxrwxrwx 2 root root 4096 Sep 28 18:00 .@__thumb -rw-r----- 1 root root 3686264546 Sep 28 00:29 VIDEO.mkv -rw-r--r-- 1 root root 1553 Sep 28 00:32 VIDEO.nfo -rw-r--r-- 1 root root 356543 Sep 20 15:07 fanart.jpg -rw-r--r-- 1 root root 1187417 Sep 20 15:07 poster.jpg This is after running `chown` within the container. When I attach to the shell, I can run `cat/touch` on any file and it appears that I have access to the files appropriately. I have set the GID and UID environment variables appropriately. strangely other movies with the same permissions work appropriately. It appears that I cannot `refresh the metadata` or play the video. I can play the video directly in VLC. Do I need to impersonate another user when I connect to the containers shell to validate the permissions? Quote cat /etc/passwd root:x:0:0:root:/root:/bin/sh daemon:x:1:1:daemon:/usr/sbin:/bin/false bin:x:2:2:bin:/bin:/bin/false sys:x:3:3:sys:/dev:/bin/false sync:x:4:100:sync:/bin:/bin/sync mail:x:8:8:mail:/var/spool/mail:/bin/false www-data:x:33:33:www-data:/var/www:/bin/false operator:x:37:37:Operator:/var:/bin/false nobody:x:65534:65534:nobody:/home:/bin/false Steve Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now