Page 1 of 1

amc.txt (Access is Denied)

Posted: 12 Jan 2015, 06:35
by sir
Hey there, recently my automated media center with uTorrent started failing.

The log says:
Parameter: excludeList = amc.txt
Parameter: xbmc = localhost
Parameter: clean = y
Parameter: seriesFormat = x:/tv/{n}/{n.replaceTrailingBrackets()} - {s}{e.pad(2)} - {t}
Parameter: movieFormat = x:/Movies/{n} [{y}{" $certification"}]{'.' + fn.matchAll(/extended|uncensored|remastered|unrated|uncut|directors.cut|special.edition|unrated.edition/)*.upper().sort().join(', ').replaceAll(/[._]/, " ")}{".$vf"}{".$af"}{".$source"}{".$vc"}{".CD$pi"}{".$lang"}
Parameter: ut_label = tv
Parameter: ut_state = 11
Parameter: ut_title = MythBusters.S15E01.The.Simpsons.Special.REPACK.HDTV.x264-W4F.mp4
Parameter: ut_kind = %K
Parameter: ut_file = MythBusters.S15E01.The.Simpsons.Special.REPACK.HDTV.x264-W4F.mp4
Parameter: ut_dir = C:\Users\Media PC\Downloads\tv
Parameter: ut_state_allow = 11
FileNotFoundException: C:\ProgramData\Microsoft\Windows\Start Menu\amc.txt (Access is denied)
java.io.FileNotFoundException: C:\ProgramData\Microsoft\Windows\Start Menu\amc.txt (Access is denied)
at Script1.run(Script1.groovy:208)
at net.filebot.cli.ScriptShell.evaluate(ScriptShell.java:61)
at net.filebot.cli.ScriptShell.runScript(ScriptShell.java:82)
at net.filebot.cli.ArgumentProcessor.process(ArgumentProcessor.java:112)
at net.filebot.Main.main(Main.java:170)
Failure (°_°)
Why is it looking for amc.txt in the start menu? As far as I can tell nothing obvious changed, it just stopped working. I have played around with various PATH settings (pointing to the actual .exe, etc) to no avail.

Thanks for your help.

Re: amc.txt (Access is Denied)

Posted: 12 Jan 2015, 09:55
by rednoah
What's the call? Something is screwed up in your environment or working dir.

You can specify an absolute path for excludeList if you want.

Are you using the latest version of FileBot?

PS: also you didn't post any sysinfo

Re: amc.txt (Access is Denied)

Posted: 12 Jan 2015, 10:01
by rednoah
Also, you probably just didn't specify --output ... which is important apparently ;)

Also, if solve your problem despite you not giving me minimum information like the cmdline call I expect a donation. :P

Re: amc.txt (Access is Denied)

Posted: 13 Jan 2015, 02:11
by sir
Hmm. I don't have --output specified but I don't think I ever have since movies and tv go to different folders.

Code: Select all

filebot.launcher.exe -script fn:amc --log-file amc.log --action move -non-strict --conflict auto --def excludeList=amc.txt xbmc=localhost clean=y "seriesFormat=x:/tv/{n}/{n.replaceTrailingBrackets()} - {s}{e.pad(2)} - {t}" "movieFormat=x:/Movies/{n} [{y}{\" $certification\"}]{'.' + fn.matchAll(/extended|uncensored|remastered|unrated|uncut|directors.cut|special.edition|unrated.edition/)*.upper().sort().join(', ').replaceAll(/[._]/, \" \")}{\".$vf\"}{\".$af\"}{\".$source\"}{\".$vc\"}{\".CD$pi\"}{\".$lang\"}" "ut_label=%L" "ut_state=%S" "ut_title=%N" "ut_kind=%K" "ut_file=%F" "ut_dir=%D" ut_state_allow=11

Code: Select all

C:\Program Files\FileBot>filebot -script fn:sysinfo
FileBot 4.5.3 (r2729)
JNA Native: 4.0.0
MediaInfo: MediaInfoLib - v0.7.69
7-Zip-JBinding: OK
chromaprint-tools: fpcalc version 1.1.0 (C:\Program Files\FileBot\fpcalc.exe)
Extended Attributes: OK
Groovy Engine: 2.3.7
JRE: Java(TM) SE Runtime Environment 1.8.0_25
JVM: 64-bit Java HotSpot(TM) 64-Bit Server VM
CPU/MEM: 8 Core / 2 GB Max Memory / 19 MB Used Memory
OS: Windows 7 (amd64)
Done ?(?????)?

Hardcoding excludeList to a full path fixed it though, thanks. Still not sure what changed in the first place.

Re: amc.txt (Access is Denied)

Posted: 13 Jan 2015, 05:06
by rednoah
If you specify a relative path as --def excludeList it'll get resolved against the --output folder, which defaults to the working directory. Riddle solved. ;)