JonnieBlaze 0 Posted February 27, 2022 Share Posted February 27, 2022 Hi all, I just recently purchased the Emby Premier subscription to see how the "Conversion" functionality works. Upon getting everything setup, it seems the converted file gets created, but errors when attempting to copy that file to the destination folder. I assume it is permissions related but have done everything I know of and still can't figure it out. Hoping someone here can help. TrueNAS CORE version TrueNAS-12.0-U8 Emby version 4.6.7.0 installed using these instructions: https://emby.media/truenas-server.html Dataset named "Media" within "Tank" pool with permissions setup using these instructions: https://emby.media/community/index.php?/topic/85123-setting-permissions-in-freenas-113-and-truenas-120/ Mount point in the jail setup as follows: Source "/mnt/Tank/Media" Destination "/mnt/Tank/iocage/jails/emby-server/root/media" Attempting to convert with these settings: \Media\Documentaries\Dolby Surround Sound Tests\Dolby Atmos\Dolby Atmos.mkv Convert To "Original media folder, next to original files" Profile "Mobile" Quality "1.5 Mbps" MP4 file (3.53MB) gets created here: \IOCage\jails\emby-server\root\var\db\emby-server\sync\5\5 68d5a293-3243-48f3-a3d4-5148d2655a0b.mp4 Two files (both 0KB) get created here: \Media\Documentaries\Dolby Surround Sound Tests\Dolby Atmos Dolby Atmos - mobile.mp4 Dolby Atmos - mobile (1).mp4 Some logs are attached. Emby seems to be able to create other files, namely .nfo files, in this directory, as well as the 0KB .mp4 files, so its unclear to me why it's not able copy/move the entire 3.53MB file to this location. Any ideas on what else I need to do to get this working? embyserver.txt ffmpeg-transcode-68d5a293-3243-48f3-a3d4-5148d2655a0b_1.txt Link to comment Share on other sites More sharing options...
Happy2Play 8273 Posted February 27, 2022 Share Posted February 27, 2022 @Q-Droiddo you have any ideas? Link to comment Share on other sites More sharing options...
Q-Droid 639 Posted February 27, 2022 Share Posted February 27, 2022 The errors in the logs and 0 size files are a sign of a permissions problem or a combination of permissions and ownership of the directory "Dolby Atmos". I don't know enough about TrueNAS or the quirks of Emby+mono to give specific advice. Though from the linked thread it looks like ACLs are an option from the Admin UI which could take care permissions problems stemming from media library files and directories with mixed ownership. Link to comment Share on other sites More sharing options...
JonnieBlaze 0 Posted February 28, 2022 Author Share Posted February 28, 2022 (edited) It seems to be something related to the ACLs. Test 1 If I setup the ACLs on the "Media" dataset as recommended in the forum post I listed above in my original post, the conversion fails. It is unable to copy the new file to the destination. It can create that 0KB file, but not copy the actual converted media over. That part really throws me off, why can it create the 0KB but not the actual file? Test 2 989 is the id for both the default user and default group in the emby jail. If I set the ACLs on my "Media" dataset so that user and group 989 are both the owners of the dataset, the conversion fails in the same way. Test 3 If I go into the TrueNAS web gui and "Strip ACLs", the conversion works. So, must be ACL related? I would think so, since the only difference between Test 2 and Test 3 are the little plus(+) signs next to the list of permissions meaning ACLs were found. So, going back to Test 2 and looking at the ACL's I see this: fanart.jpg (a file created by Emby): Dolby Atmos - mobile.mp4 (a file created by Emby): Are there any permission (ACL) differences between that fanart.jpg file that was successfully created and the Dolby Atmos - mobile.mp4 file that was created but couldn't be replaced with the converted file? I don't see any in the two screenshots above, so it's still unclear to me why one would work and one wouldn't. I saw in the error message that the "System.IO.FileSystem.CopyFile" function was being used for moving the converted file? Is that the same function used when choosing "Refresh Metadata > Replace existing images"? I was just curious if maybe a different function was used and that's why its working in one place but not the other. Sorry about these two screenshots, I can't get them to go away lol Edited February 28, 2022 by JonnieBlaze formatting Link to comment Share on other sites More sharing options...
JonnieBlaze 0 Posted March 1, 2022 Author Share Posted March 1, 2022 (edited) I did some more testing. I created a new dataset in TrueNAS with identical permissions to the dataset I'm having issues with. Once setup, I copied my test file over to the new dataset and mounted the dataset to the jail so Emby could see it. I started the "Convert" process for both files in both datasets. The "Convert" process worked for the new dataset, but not the original. I doubled checked permissions one more time. The permissions looked the same on the directories, but the new files (the 0KB and the one that worked) were different. The one that worked had additional ACLs set directly on the file. Trying to figure out why one new file had additional ACLs and the other didn't, I looked at the properties of the datasets in TrueNAS. After clicking the "Advanced Options" button, near the bottom of the screen I found an "ACL Mode" option. It was set for "Restricted" on my original dataset and "Passthrough" on the new dataset. I changed the original dataset to "Passthrough", retried the "Convert" process, and it worked. I don't completely understand how they explain this "ACL Mode" field, but their explanation is below. I might try posting in their forum to get more information, because this says something about "Restricted" being preferred for SMB sharing, and this dataset is shared. So I just need to make sure I understand it and select the correct option. Edited March 1, 2022 by JonnieBlaze 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