amc no such file exception error

Running FileBot from the console, Groovy / FileBot scripting, shell scripts, etc
Post Reply
robfbot
Posts: 9
Joined: 03 Oct 2018, 12:00

amc no such file exception error

Post by robfbot » 03 Oct 2018, 12:34

Hi,

All of a sudden my script that calls filebot is not working.

Multiple files have the following error
Failed to read xattr: NoSuchFileException:

I think its because filebot as its extracting is creating multiple subfolders and its just getting too long but am not sure.

Also not sure why its happening now?

Filebot version:

Code: Select all

FileBot 4.8.2 (r5789) / Java(TM) SE Runtime Environment 1.8.0_111 (headless)
running on raspbian.

Code: Select all

filebot -script fn:amc --output "/media/storage/" --log-file amc.log --action move -non-strict "/media/storage/xi/TVShows" --def music=n --def ut_label=tv --def xbmc=192.168.3.12 --def clean=y --def extractFolder="/media/storage/extracted/" --def excludeList=amc.txt
Some examples of error:

Code: Select all

Failed to read xattr: NoSuchFileException: /media/storage/extracted/bull.2016.s03e02.hdtv.x264-killers/Bull.2016.S03E02.HDTV.x264-KILLERS
Failed to read xattr: NoSuchFileException: /media/storage/extracted/bull.2016.s03e02.hdtv.x264-killers/Bull.2016.S03E02.HDTV.x264-KILLERS
Failed to read xattr: NoSuchFileException: /media/storage/extracted/family.guy.0815.pdtv.xvid-notv.part01/Family.Guy.S08E15.PDTV.XviD-NoTV
Failed to read xattr: NoSuchFileException: /media/storage/extracted/family.guy.0815.pdtv.xvid-notv.part01/Family.Guy.S08E15.PDTV.XviD-NoTV
Failed to read xattr: NoSuchFileException: /media/storage/extracted/family.guy.0815.pdtv.xvid-notv.part01/Family.Guy.S08E15.PDTV.XviD-NoTV
Failed to read xattr: NoSuchFileException: /media/storage/extracted/family.guy.0815.pdtv.xvid-notv.part01/Family.Guy.S08E15.PDTV.XviD-NoTV
Some examples of super long folder names

Code: Select all

Read archive [the.resident.s01e11.web.x264-tbs.rar] and extract to [/media/storage/xi/TVShows/The.Resident.S01E11.WEB.x264-TBS/the.resident.s01e11.web.x264-tbs/The.Resident.S01E11.WEB.x264-TBS]
Ignore extra: /media/storage/xi/TVShows/The.Resident.S01E12.WEB.x264-TBS/Sample
Read archive [the.resident.s01e12.web.x264-tbs.rar] and extract to [/media/storage/xi/TVShows/The.Resident.S01E12.WEB.x264-TBS/the.resident.s01e12.web.x264-tbs/The.Resident.S01E12.WEB.x264-TBS]
Ignore extra: /media/storage/xi/TVShows/The.Resident.S01E13.WEB.x264-TBS/Sample
Read archive [the.resident.s01e13.web.x264-tbs.rar] and extract to [/media/storage/xi/TVShows/The.Resident.S01E13.WEB.x264-TBS/the.resident.s01e13.web.x264-tbs/The.Resident.S01E13.WEB.x264-TBS]

User avatar
rednoah
The Source
Posts: 16094
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: amc no such file exception error

Post by rednoah » 03 Oct 2018, 12:48

1.
Please run filebot -script fn:sysinfo and post the output.


2.
You may ignore these xattr warnings. Presumably, you just happen to be running a platform that doesn't support xattr, or using a filesystem that doesn't support xattr. You can disable xattr (and thus get rid of these warnings) by using the -no-xattr option.
:idea: Please read the FAQ and How to Request Help.

robfbot
Posts: 9
Joined: 03 Oct 2018, 12:00

Re: amc no such file exception error

Post by robfbot » 03 Oct 2018, 13:21

Please see below

Code: Select all


Filebot 4.8.2 (r5789)
JNA Native: 5.2.2
MediaInfo: 0.7.73
Apache Commons VFS: [zip, rar]
FFprobe: java.io.IOException: Cannot run program "ffprobe": error=2, No such file or directory
Chromaprint: java.io.IOException: Cannot run program "fpcalc": error=2, No such file or directory
Extended Attributes: OK
Unicode Filesystem: OK
Script Bundle: 2018-09-28 (r535)
Groovy: 2.5.1
JRE: Java(TM) SE Runtime Environment 1.8.0_111
JVM: 32-bit Java HotSpot(TM) Client VM
CPU/MEM: 4 Core / 212 MB Max Memory / 15 MB Used Memory
OS: Linux (arm)
HW: Linux mercury 4.14.52-v7+ #1123 SMP Wed Jun 27 17:35:49 BST 2018 armv7l GNU/Linux
DATA: /home/pi/software/data/pi
Package: TAR
License: FileBot License P5698239 (Valid-Until: 2019-09-23)
Done ヾ(@⌒ー⌒@)ノ

User avatar
rednoah
The Source
Posts: 16094
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: amc no such file exception error

Post by rednoah » 03 Oct 2018, 19:08

I see. You're on a Raspberry Pi, likely processing files on a remote network share. There's a good chance xattr doesn't work in this case, so you can either ignore the warnings or disable xattr.
:idea: Please read the FAQ and How to Request Help.

robfbot
Posts: 9
Joined: 03 Oct 2018, 12:00

Re: amc no such file exception error

Post by robfbot » 03 Oct 2018, 21:37

thanks or quick response mate.

It is a raspberry pi, but the hdd is plugged directly into it, so not mounted or anything.

However, the real issue for me is that its just not extracting a bulk of the files and for the ones where there is an xattr error its because there is no file.

See sample below of a single file;

Code: Select all

Parameter: music = n
Parameter: ut_label = tv
Parameter: xbmc = 192.168.1.7
Parameter: plex = *****
Argument[0]: /media/storage/xi/TVShows/tr
Read archive [the.resident.s01e14.web.x264-tbs.rar] and extract to [/media/storage/xi/TVShows/tr/the.resident.s01e14.web.x264-tbs/tr]
Input: /media/storage/xi/TVShows/tr/the.resident.s01e14.web.x264-tbs/tr
Failed to read xattr: NoSuchFileException: /media/storage/xi/TVShows/tr/the.resident.s01e14.web.x264-tbs/tr
Failed to read xattr: NoSuchFileException: /media/storage/xi/TVShows/tr/the.resident.s01e14.web.x264-tbs/tr
Failed to read xattr: NoSuchFileException: /media/storage/xi/TVShows/tr/the.resident.s01e14.web.x264-tbs/tr
Failed to read xattr: NoSuchFileException: /media/storage/xi/TVShows/tr/the.resident.s01e14.web.x264-tbs/tr
Group: [tvs:the resident] => [tr]
Rename episodes using [TheTVDB]
CmdlineException: No media files: [/media/storage/xi/TVShows/tr/the.resident.s01e14.web.x264-tbs/tr]
Finished without processing any files
Failure (°_°)

User avatar
rednoah
The Source
Posts: 16094
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: amc no such file exception error

Post by rednoah » 04 Oct 2018, 04:49

1.
Looks like the RAR archive is bad, or uses an incorrect RAR format. FileBot can only unpack "uncompressed" RAR files (as used by scene releases) but cannot uncompress RAR5 archives, so the archive will just appear empty to FileBot.

This limitation is specific to Apache Commons VFS extractor engine used on Linux / ARM machines where 7zip native bindings aren't available:

Code: Select all

Apache Commons VFS: [zip, rar]

2.
You could try using a different extractor, such as the 7z executable:
viewtopic.php?f=8&t=6195#p35715
:idea: Please read the FAQ and How to Request Help.

robfbot
Posts: 9
Joined: 03 Oct 2018, 12:00

Re: amc no such file exception error

Post by robfbot » 04 Oct 2018, 23:34

rednoah

Option 2 worked.

Cheers!!

Post Reply