Page 1 of 1
AMC script not working after installing FileBot from App Sto
Posted: 04 Feb 2015, 00:20
by WeAreSolipsists
Hi,
I updated the FileBot application to v4.5.6 from the App Store (I was given a popup to update when using the FileBot GUI), and since that update my amc script (called on torrent completion via transmission-postprocess) has stopped working. I had previously installed FileBot using homebrew-cask.
The error message says I am passing both file arguments and ut_dir/ut_file arguments. However, I can't see that I am doing that, and the script has worked up until yesterday when I updated. The error message using --action test is as follows:
Code: Select all
Parameter: artwork = n
Parameter: music = n
Parameter: clean = y
Parameter: subtitles = n
Parameter: seriesFormat = /Volumes/Media\ Raid/TV\ Shows/{n}/Season {s}/{n} - {s00e00.lower()} - {t} - {vf} {vc} {af} {ac}
Parameter: movieFormat = /Volumes/Media\ Raid/Movies/{n} ({y}) - {vf} {vc} {af} {ac}
Parameter: ut_dir = /
Parameter: ut_kind = multi
Parameter: ut_title =
Argument: /opt/homebrew-cask/Caskroom/filebot/4.5/FileBot.app/Contents/Java/FileBot_4.5.jar
Invalid arguments: pass in either file arguments or ut_dir/ut_file parameters but not both
Failure (°_°)
My transmission-postprocess script is as follows:
Code: Select all
/Applications/Filebot.app/Contents/MacOS/filebot.sh -script fn:amc --output "$TR_TORRENT_DIR" --log-file /Users/hackintosh/Desktop/amc.log --action copy --conflict override -non-strict --def artwork=n --def music=n --def clean=y --def subtitles=n --def "seriesFormat=/Volumes/Media\ Raid/TV\ Shows/{n}/Season {s}/{n} - {s00e00.lower()} - {t} - {vf} {vc} {af} {ac}" --def "movieFormat=/Volumes/Media\ Raid/Movies/{n} ({y}) - {vf} {vc} {af} {ac}" --def "ut_dir=$TR_TORRENT_DIR/$TR_TORRENT_NAME" --def "ut_kind=multi" --def "ut_title=$TR_TORRENT_NAME"
My filebot -script fn:sysinfo is as follows:
Code: Select all
FileBot 4.5.6 (r2818)
JNA Native: 4.0.0
MediaInfo: MediaInfoLib - v0.7.69
7-Zip-JBinding: OK
chromaprint-tools: fpcalc version 1.1.0 (/opt/homebrew-cask/Caskroom/filebot/4.5/FileBot.app/Contents/MacOS/fpcalc)
Extended Attributes: OK
Groovy Engine: 2.3.9
JRE: Java(TM) SE Runtime Environment 1.8.0_31
JVM: 64-bit Java HotSpot(TM) 64-Bit Server VM
CPU/MEM: 8 Core / 7 GB Max Memory / 368 MB Used Memory
OS: Mac OS X (x86_64)
uname: Darwin Hackintosh.local 12.2.0 Darwin Kernel Version 12.2.0: Sat Aug 25 00:48:52 PDT 2012; root:xnu-2050.18.24~1/RELEASE_X86_64 x86_64
Done ヾ(@⌒ー⌒@)ノ
As I said, this was all working fine. Originally (years ago) I had only the FileBot GUI working with the transmission-postprocess, then a few months ago I changed over to using a homebrew-cask install, and everything has worked nicely over that time. Have I borked it all by installing from the App Store, and if so, is there an easy way to fix it?
I have tried reinstalling and updating FileBot, Java, and homebrew cask via the following:
Code: Select all
brew cask install filebot --force
brew cask install java --force
brew update && brew upgrade brew-cask && brew cleanup && brew cask cleanup
Any help would be appreciated.
Re: AMC script not working after installing FileBot from App
Posted: 04 Feb 2015, 00:45
by WeAreSolipsists
Ok, something has gone wrong. On trying to update FileBot via homebrew-cask I am getting the following error. Can anyone make any sense of it?
Code: Select all
Hackintosh:~ hackintosh$ brew cask install filebot
==> Caveats
FileBot requires Java 8. Run "java -version" to verify.
==> Downloading http://downloads.sourceforge.net/project/filebot/filebot/FileBot
######################################################################## 100.0%
==> Symlinking App 'FileBot.app' to '/Users/hackintosh/Applications/FileBot.app'
==> Symlinking Binary 'filebot.sh' to '/usr/local/bin/filebot'
Error: Command failed to execute!
==> Failed command:
["/usr/bin/xattr", "-w", "com.apple.metadata:kMDItemAlternateNames", "(\\\"filebot\\\")", "#<Pathname:/usr/local/bin/filebot>"]
==> Output of failed command:
==> Exit status of failed command:
#<Process::Status: pid 776 exit 1>
Re: AMC script not working after installing FileBot from App
Posted: 04 Feb 2015, 06:37
by WeAreSolipsists
This is really frustrating. I'm guessing there is a simple answer I am missing; there usually is. I've uninstalled and tried reinstalling homebrew-cask, Java, Python (for xattr) and get stuck on installing FileBot. I installed the latest Xcode CLI tools and fixed everything I could from "brew doctor". I can't get past this error:
Code: Select all
Hackintosh:~ hackintosh$ brew cask install filebot
==> Caveats
FileBot requires Java 8. Run "java -version" to verify.
==> Downloading http://downloads.sourceforge.net/project/filebot/filebot/FileBot
######################################################################## 100.0%
==> Symlinking App 'FileBot.app' to '/Users/hackintosh/Applications/FileBot.app'
==> Symlinking Binary 'filebot.sh' to '/usr/local/bin/filebot'
Error: Command failed to execute!
==> Failed command:
["/usr/bin/xattr", "-w", "com.apple.metadata:kMDItemAlternateNames", "(\\\"filebot\\\")", "#<Pathname:/usr/local/bin/filebot>"]
==> Output of failed command:
==> Exit status of failed command:
#<Process::Status: pid 776 exit 1>
I don't know enough about what brew cask is doing to figure out why the xattr command isn't working. When I run xattr I get a message from Python that 2.7.9 can't use xattr and I should try an earlier version ( /bin/usr/xattr-2.6 seems to work for the above failed command, but I'm not sure how to change brew cask to use that instead). Or maybe that is just a symptom of a bigger issue?
Is there a way to uninstall/reinstall the necessary tools?
Re: AMC script not working after installing FileBot from App
Posted: 04 Feb 2015, 12:18
by rednoah
How is this an install issue? filebot and the amc script work perfectly fine.
Except you're telling FileBot process your entire filesystem, which is clearly wrong:
Clearly something has gone wrong somewhere, but filebot can't do much if it's called incorrectly:
Code: Select all
"ut_dir=$TR_TORRENT_DIR/$TR_TORRENT_NAME"
For some reason the TR_* environment variables were not set when the script was called. This is either because you called it manually, or something is wrong with Transmission, or how Transmission calls your glue logic script.
EDIT:
Basically you're just testing thing wrong. So this error has nothing to do with it not working from transmission.
Re: AMC script not working after installing FileBot from App
Posted: 04 Feb 2015, 12:25
by rednoah
At this point it's probably easiest to just get the *.app package from the download section, and then use an absolute path to filebot.sh in your transmission-postprocess script.
Re: AMC script not working after installing FileBot from App
Posted: 04 Feb 2015, 20:36
by WeAreSolipsists
Thanks for the response rednoah.
rednoah wrote:
Basically you're just testing thing wrong. So this error has nothing to do with it not working from transmission.
You are right that I tested it wrong - however the same error shows up in my amc.log starting Feb 2 when I first noticed the problem. I didn't include that originally because it revealed my poor taste in movies. Here's an example of the error from my log.
Code: Select all
Parameter: artwork = n
Parameter: music = n
Parameter: clean = y
Parameter: subtitles = n
Parameter: seriesFormat = /Volumes/Media\ Raid/TV\ Shows/{n}/Season {s}/{n} - {s00e00.lower()} - {t} - {vf} {vc} {af} {ac}
Parameter: movieFormat = /Volumes/Media\ Raid/Movies/{n} ({y}) - {vf} {vc} {af} {ac}
Parameter: ut_dir = /Volumes/Media Raid/Downloads/Two.Hands.1999.720p.BR.750MB.MkvCage.com.mkv
Parameter: ut_kind = multi
Parameter: ut_title = Two.Hands.1999.720p.BR.750MB.MkvCage.com.mkv
Argument: /opt/homebrew-cask/Caskroom/filebot/4.5/FileBot.app/Contents/Java/FileBot_4.5.jar
Invalid arguments: pass in either file arguments or ut_dir/ut_file parameters but not both
Failure (°_°)
rednoah wrote:How is this an install issue? filebot and the amc script work perfectly fine.
There are two issues/symptoms (AMC/FileBot started returning an error & can't reinstall FileBot via brew cask) and I assumed they stem from the same problem. Maybe they are separate and it's a coincidence. My FileBot/AMC script returning an error is what I noticed first. I just can't figure out what changed to make AMC think I am passing both types of arguments. Maybe you are right that there is a problem with Transmission. Do you have any idea how I could test this? I guess that's not your area and I should email them. The only thing that made me think it was a FileBot issue is that the script problem seemed to start after I upgraded FileBot from the App Store. Again maybe it's a coincidence.
rednoah wrote:At this point it's probably easiest to just get the *.app package from the download section, and then use an absolute path to filebot.sh in your transmission-postprocess script.
Thanks. I'll try that. Hopefully that gives me a usable FileBot/AMC again.
Rednoah, apart from a Transmission problem, is there another fault that can cause the error in my AMC.log?
Re: AMC script not working after installing FileBot from App
Posted: 20 Feb 2015, 00:55
by rednoah
You're passing ut_dir as input:
Code: Select all
Parameter: ut_dir = /Volumes/Media Raid/Downloads/Two.Hands.1999.720p.BR.750MB.MkvCage.com.mkv
You're passing an argument as input:
Code: Select all
Argument: /opt/homebrew-cask/Caskroom/filebot/4.5/FileBot.app/Contents/Java/FileBot_4.5.jar
The latter obviously doesn't make sense. I have no idea why you're passing the jar along for processing.

Re: AMC script not working after installing FileBot from App
Posted: 20 Jan 2016, 04:29
by WeAreSolipsists
rednoah wrote:At this point it's probably easiest to just get the *.app package from the download section, and then use an absolute path to filebot.sh in your transmission-postprocess script.
Hi rednoah - this fixed it for me back in Feb 2015.
Is there anywhere I can get the 4.6.1 *.app package with filebot.sh? I can't see it on the downloads page. I have purchased filebot in the App Store but need the command line tools and they aren't installing properly as directed.
Same issue as above (there is an issue with my system evidently):
Code: Select all
$ brew cask install filebot --force
==> Caveats
filebot requires Java 8. You can install the latest version with
brew cask install java
==> Downloading http://downloads.sourceforge.net/project/filebot/filebot/FileBot
Already downloaded: /Library/Caches/Homebrew/filebot-4.6.1.tar.bz2
==> Verifying checksum for Cask filebot
==> Symlinking App 'FileBot.app' to '/Users/hackintosh/Applications/FileBot.app'
==> Symlinking Binary 'filebot.sh' to '/usr/local/bin/filebot'
Error: Command failed to execute!
==> Failed command:
["/usr/bin/xattr", "-w", "com.apple.metadata:kMDItemAlternateNames", "(\\\"filebot\\\")", "#<Pathname:/usr/local/bin/filebot>"]
==> Output of failed command:
==> Exit status of failed command:
#<Process::Status: pid 655 exit 1>
Regards.
Re: AMC script not working after installing FileBot from App
Posted: 20 Jan 2016, 06:16
by rednoah
Please create and issue here:
https://github.com/caskroom/homebrew-cask/issues
The brew cask people are usually quick to offer help and fix bugs. Best to talk to them about this issue.
Alternatively, you can also create that symlink manually. (Very) Basic Unix skills required.

Re: AMC script not working after installing FileBot from App
Posted: 20 Jan 2016, 07:06
by WeAreSolipsists
rednoah wrote:Please create and issue here:
https://github.com/caskroom/homebrew-cask/issues
The brew cask people are usually quick to offer help and fix bugs. Best to talk to them about this issue.
Alternatively, you can also create that symlink manually. (Very) Basic Unix skills required.

Thanks - I've crawled through similar issues over there but I'll create my own post.
In the meantime - is downloading the .app to /Applications/ and creating the symlink
/usr/local/bin/filebot to
/Applications/FileBot.app/Contents/MacOS/filebot.sh all that homebrew cask is doing? I am happy to make that symlink, just thought there might be more going on.
So is there somewhere I can get the .app with filebot.sh in the MacOS folder? Sourceforge?
Thanks for your time on this.
Re: AMC script not working after installing FileBot from App
Posted: 20 Jan 2016, 07:16
by rednoah
1.
This what it looks like for me:
Code: Select all
rwxr-xr-x 1 reinhard admin 79 Nov 17 15:55 /usr/local/bin/filebot -> /opt/homebrew-cask/Caskroom/filebot/4.6.1/FileBot.app/Contents/MacOS/filebot.sh
brew cask may or may not already have extracted the package to
/opt/homebrew-cask/Caskroom. I'd check that first.
2.
Also, your logs say that brew has already downloaded the package, so you don't need to download it manually:
Code: Select all
/Library/Caches/Homebrew/filebot-4.6.1.tar.bz2
3.
Reported the issue on GitHub for you:
https://github.com/caskroom/homebrew-cask/issues/17366
(please do it yourself next time)
Re: AMC script not working after installing FileBot from App
Posted: 20 Jan 2016, 07:29
by WeAreSolipsists
rednoah wrote:brew cask may or may not already have extracted the package to /opt/homebrew-cask/Caskroom. I'd check that first.
It hadn't extracted it. Good to know for debugging.
rednoah wrote:Also, your logs say that brew has already downloaded the package, so you don't need to download it manually:
Thanks. I'll put the app in the cask room and make the symlink. Hopefully that is all there is to it?
You really are a fantastic help. Thanks for your time.