FreeNAS, xattr & replacing qualities.

Any questions? Need some help?
Post Reply
xyrgh
Posts: 10
Joined: 15 Feb 2016, 09:00

FreeNAS, xattr & replacing qualities.

Post by xyrgh »

Hello,

I'm having issues with reading/setting xattr in a FreeNAS jail. It appears FreeBSD is not supported, outputs of various troubleshooting below. Now I have zero idea how to enable xattr, but I'm happy to live without it for now, except I need to clean up my library and remove some duplicates as well as delete some lower quality files where higher quality exists.

One example I've been trying to work on is The.MovieName.1080p.2000.ext and The.MovieName.720p.(2000).ext. I've tried various things to try and 'remove' the lower quality files to test, such as moving the 1080p version out of the folder and 'rescanning' with AMC, but it does not replace the lower quality file. I also moved the 720p file out, had Filebot rename it and sort it, then tried it again with the 1080p file, still not replaced. The 1080p version is 13GB, the 720p is 4GB, all in all, the 13GB version is higher quality with respect to bitrate and size.

Is there anything I can do, or am I out of luck since xattr isn't supported?

My AMC expressions (that previously were used on a Windows PC and adapted for my FreeNAS server):

Code: Select all

./filebot.sh -script fn:amc "/media/Unsorted/" --output "/media/" --log-file /usr/local/filebot/logs/amc.log --action copy --conflict auto -non-strict --def clean=n  --def excludeList="/usr/local/filebot/exclude/amc.exclude" --def "seriesFormat={genres =~ /Kids|Children|Family/ ? 'TV/Kids' : 'TV/Adult'}/{n}/Season{s.pad(2)}/{'S'+s.pad(2)}E{e.pad(2)}.{t.space('.')}.{vf}" "movieFormat={genres =~/Kids|Children|Family/ ? 'Movies/Kids' : 'Movies/Adult'}/{n.upperInitial().space('.')}.({y})/{n.upperInitial().space('.')}.{y}.{vf}"
Error:

Code: Select all

Failed to read xattr: UserDefinedFileAttributeView is not supported
java -version output:

Code: Select all

openjdk version "1.8.0_112"
OpenJDK Runtime Environment (build 1.8.0_112-b16)
OpenJDK 64-Bit Server VM (build 25.112-b16, mixed mode)
sysinfo script output:

Code: Select all

FileBot 4.7.5 (r4600)
JNA Native: 4.0.0
MediaInfo: 0.7.91
Apache Commons VFS: [zip, rar]
Chromaprint: java.io.IOException: Cannot run program "fpcalc": error=2, No such file or directory
Extended Attributes: java.io.IOException: UserDefinedFileAttributeView is not supported
GVFS: OK
Script Bundle: 2017-01-05 (r470)
Groovy: 2.4.7
JRE: OpenJDK Runtime Environment 1.8.0_112
JVM: 64-bit OpenJDK 64-Bit Server VM
CPU/MEM: 8 Core / 7 GB Max Memory / 14 MB Used Memory
OS: FreeBSD (amd64)
Package: PORTABLE
Data: /usr/local/filebot/data/root
uname: FreeBSD mediamanage 10.3-STABLE FreeBSD 10.3-STABLE #0 r295946+07c41cd(9.10-STABLE): Wed Nov  9 00:19:25 UTC 2016     root@gauntlet:/freenas-9.10-releng/_BE/objs/freenas-9.10-releng/_BE/os/sys/FreeNAS.amd64  amd64
Trying to enable xattr on that dataset gives me:

Code: Select all

property 'xattr' not supported on FreeBSD: permission denied
Thanks.
User avatar
rednoah
The Source
Posts: 23953
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: FreeNAS, xattr & replacing qualities.

Post by rednoah »

You can set -no-xattr to disable xattr support.

However, the duplicates script requires xattr tagged files to work. If you were to enable xattr now, it still wouldn't work because files processed in the past won't have been tagged.

Not sure what happens if you process multiple versions of the same movie in one go. If you process them one after another in multiple batches then --conflict auto should allow you to keep the better file. If you do them all at once it probably won't work and abort with some error message.
:idea: Please read the FAQ and How to Request Help.
xyrgh
Posts: 10
Joined: 15 Feb 2016, 09:00

Re: FreeNAS, xattr & replacing qualities.

Post by xyrgh »

Thanks rednoah. I thought maybe the xattr applied to all the scripts, good to know. I'll try the way you recommended, thankyou.
Post Reply