Raspberry PI - JAVA issues

Support for Synology NAS, QNAP NAS and other Embedded Linux systems
Post Reply
wizzd
Posts: 20
Joined: 28 Dec 2019, 21:15

Raspberry PI - JAVA issues

Post by wizzd »

Hi
Having issues with getting filebot to work - JAVA issues is my guess, but frankly unsure. Could also be something with symlinks...
Linux noob - everything is googled - not all is understood...
Have tried with openjdk - no luck, so have installed oracles jdk.
This is a completely fresh Buster installation - only working to get filebot up and running.
I have tried the method with running CURL as below - but ran into issues with opensubtitles and read that running the portable version could be the solution - so this is where I am now

Code: Select all

bash -xu <<< "$(curl -fsSL https://raw.githubusercontent.com/filebot/plugins/master/installer/deb.sh)"

On to my issues...
Getting the below error message

Code: Select all

pi@raspberrypi:~/filebot_portable $ /home/pi/filebot_portable/filebot.sh -version
Unrecognized option: --illegal-access=permit
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

and 

pi@raspberrypi:~/filebot_portable $ sudo /home/pi/filebot_portable/filebot.sh -script fn:sysinfo
Unrecognized option: --illegal-access=permit
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
Running Raspberry Pi 4 with Buster. Fully upgraded.
Installed FileBot_4.9.0-portable.tar.xz

JAVA:
Installed JDK jdk-8u231-linux-arm32-vfp-hflt.tar.gz

Code: Select all

pi@raspberrypi:~/filebot_portable $ javac -version
javac 1.8.0_231

pi@raspberrypi:~/filebot_portable $ java -version
java version "1.8.0_231"
Java(TM) SE Runtime Environment (build 1.8.0_231-b11)
Java HotSpot(TM) Client VM (build 25.231-b11, mixed mode)
Symlinks set like this:

Code: Select all

sudo update-alternatives --install /usr/bin/java java /usr/java/jdk1.8.0_231/bin/java 1000
sudo update-alternatives --install /usr/bin/javac javac /usr/java/jdk1.8.0_231/bin/javac 1000
Any help would be appreciated :)
User avatar
rednoah
The Source
Posts: 22991
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Raspberry PI - JAVA issues

Post by rednoah »

The unrecognized option error us caused by running a Java 11 build of FileBot with Java 8.

I recommend uninstalling all FileBot and Java package. And the only installing FileBot via the deb .sh install script. Post the deb.sh console output if it doesn't work right away.
:idea: Please read the FAQ and How to Request Help.
wizzd
Posts: 20
Joined: 28 Dec 2019, 21:15

Re: Raspberry PI - JAVA issues

Post by wizzd »

Thanks for the reply.
Script completes with what looks like no errors.

Removed java - checked with java -version ... nothing seems to be there.
Removed filebot dir.


Full console output from install script...

Code: Select all

pi@raspberrypi:~ $ bash -xu <<< "$(curl -fsSL https://raw.githubusercontent.com/filebot/plugins/master/installer/deb.sh)"
+ uname -a
Linux raspberrypi 4.19.75-v7l+ #1270 SMP Tue Sep 24 18:51:41 BST 2019 armv7l GNU/Linux
+ apt-cache show openjfx --no-all-versions
+ grep 'Version: 8'
+ REPO='deb [arch=all] https://get.filebot.net/deb/ universal main'
+ echo 'Use Repository: deb [arch=all] https://get.filebot.net/deb/ universal main'
Use Repository: deb [arch=all] https://get.filebot.net/deb/ universal main
+ sudo apt-get install --install-recommends -y dirmngr gnupg-curl
Reading package lists... Done
Building dependency tree       
Reading state information... Done
dirmngr is already the newest version (2.2.12-1+rpi1+deb10u1).
The following NEW packages will be installed:
  gnupg-curl
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 62.9 kB of archives.
After this operation, 106 kB of additional disk space will be used.
Get:1 http://mirrors.dotsrc.org/raspbian/raspbian buster/main armhf gnupg-curl armhf 1.4.20-6 [62.9 kB]
Fetched 62.9 kB in 1s (91.6 kB/s)
Selecting previously unselected package gnupg-curl.
(Reading database ... 95543 files and directories currently installed.)
Preparing to unpack .../gnupg-curl_1.4.20-6_armhf.deb ...
Adding 'diversion of /usr/lib/gnupg/gpgkeys_curl to /usr/lib/gnupg/gpgkeys_curl.non_curl by gnupg-curl'
Adding 'diversion of /usr/lib/gnupg/gpgkeys_hkp to /usr/lib/gnupg/gpgkeys_hkp.non_curl by gnupg-curl'
Unpacking gnupg-curl (1.4.20-6) ...
Setting up gnupg-curl (1.4.20-6) ...
+ sudo apt-key adv --fetch-keys https://raw.githubusercontent.com/filebot/plugins/master/gpg/maintainer.pub
Executing: /tmp/apt-key-gpghome.Oh59E4p25P/gpg.1.sh --fetch-keys https://raw.githubusercontent.com/filebot/plugins/master/gpg/maintainer.pub
gpg: requesting key from 'https://raw.githubusercontent.com/filebot/plugins/master/gpg/maintainer.pub'
gpg: key 4E402EBF7C3C6A71: public key "Reinhard Pointner <[email protected]>" imported
gpg: Total number processed: 1
gpg:               imported: 1
+ echo 'deb [arch=all] https://get.filebot.net/deb/ universal main'
+ sudo tee /etc/apt/sources.list.d/filebot.list
deb [arch=all] https://get.filebot.net/deb/ universal main
+ sudo apt-get update
Hit:1 http://archive.raspberrypi.org/debian buster InRelease
Get:2 http://raspbian.raspberrypi.org/raspbian buster InRelease [15.0 kB]
Ign:3 https://get.filebot.net/deb universal InRelease
Get:4 https://get.filebot.net/deb universal Release [1,160 B]
Get:5 https://get.filebot.net/deb universal Release.gpg [862 B]
Get:6 http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages [13.0 MB]
Get:7 https://get.filebot.net/deb universal/main all Packages [544 B]
Fetched 13.0 MB in 11s (1,141 kB/s)                                                                             
Reading package lists... Done
+ sudo apt-get install --install-recommends -y filebot
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  ca-certificates-java fonts-dejavu-extra java-common libatk-wrapper-java libatk-wrapper-java-jni
  libchromaprint-tools libjna-java libjna-jni libmediainfo0v5 libopenjfx-java libopenjfx-jni libtinyxml2-6a
  libzen0v5 mediainfo openjdk-11-jre openjdk-11-jre-headless openjfx openjfx-source p7zip p7zip-full
Suggested packages:
  default-jre libjna-java-doc mediainfo-gui fonts-ipafont-gothic fonts-ipafont-mincho fonts-wqy-microhei
  | fonts-wqy-zenhei fonts-indic p7zip-rar
Recommended packages:
  unrar
The following NEW packages will be installed:
  ca-certificates-java filebot fonts-dejavu-extra java-common libatk-wrapper-java libatk-wrapper-java-jni
  libchromaprint-tools libjna-java libjna-jni libmediainfo0v5 libopenjfx-java libopenjfx-jni libtinyxml2-6a
  libzen0v5 mediainfo openjdk-11-jre openjdk-11-jre-headless openjfx openjfx-source p7zip p7zip-full
0 upgraded, 21 newly installed, 0 to remove and 0 not upgraded.
Need to get 94.3 MB of archives.
After this operation, 367 MB of additional disk space will be used.
Get:1 http://mirrors.dotsrc.org/raspbian/raspbian buster/main armhf java-common all 0.71 [14.4 kB]
Get:2 http://mirrors.dotsrc.org/raspbian/raspbian buster/main armhf openjdk-11-jre-headless armhf 11.0.5+10-1~deb10u1 [33.0 MB]
Get:5 https://get.filebot.net/deb universal/main all filebot all 4.8.5 [25.4 MB]             
Get:3 http://mirrors.dotsrc.org/raspbian/raspbian buster/main armhf ca-certificates-java all 20190405 [15.7 kB] 
Get:4 http://mirrors.dotsrc.org/raspbian/raspbian buster/main armhf fonts-dejavu-extra all 2.37-1 [1,982 kB]    
Get:6 http://mirrors.dotsrc.org/raspbian/raspbian buster/main armhf libatk-wrapper-java all 0.33.3-22 [45.3 kB] 
Get:7 http://mirrors.dotsrc.org/raspbian/raspbian buster/main armhf libatk-wrapper-java-jni armhf 0.33.3-22 [33.7 kB]
Get:8 http://mirrors.dotsrc.org/raspbian/raspbian buster/main armhf libchromaprint-tools armhf 1.4.3-3 [18.0 kB]
Get:9 http://mirrors.dotsrc.org/raspbian/raspbian buster/main armhf libjna-jni armhf 4.5.2-1 [50.5 kB]          
Get:10 http://mirrors.dotsrc.org/raspbian/raspbian buster/main armhf libjna-java all 4.5.2-1 [195 kB]           
Get:11 http://mirrors.dotsrc.org/raspbian/raspbian buster/main armhf libtinyxml2-6a armhf 7.0.0+dfsg-1 [24.0 kB]
Get:12 http://mirrors.dotsrc.org/raspbian/raspbian buster/main armhf libzen0v5 armhf 0.4.37-1 [84.6 kB]         
Get:13 http://mirrors.dotsrc.org/raspbian/raspbian buster/main armhf libmediainfo0v5 armhf 18.12-2 [1,723 kB]   
Get:14 http://mirrors.dotsrc.org/raspbian/raspbian buster/main armhf libopenjfx-jni armhf 11.0.2+1-1 [15.4 MB]  
Get:15 http://mirrors.dotsrc.org/raspbian/raspbian buster/main armhf libopenjfx-java all 11.0.2+1-1 [8,814 kB]  
Get:16 http://mirrors.dotsrc.org/raspbian/raspbian buster/main armhf mediainfo armhf 18.12-2 [71.7 kB]          
Get:17 http://mirrors.dotsrc.org/raspbian/raspbian buster/main armhf openjdk-11-jre armhf 11.0.5+10-1~deb10u1 [30.6 kB]
Get:18 http://mirrors.dotsrc.org/raspbian/raspbian buster/main armhf openjfx armhf 11.0.2+1-1 [8,912 B]         
Get:19 http://mirrors.dotsrc.org/raspbian/raspbian buster/main armhf openjfx-source all 11.0.2+1-1 [6,064 kB]   
Get:20 http://mirrors.dotsrc.org/raspbian/raspbian buster/main armhf p7zip armhf 16.02+dfsg-6 [297 kB]          
Get:21 http://mirrors.dotsrc.org/raspbian/raspbian buster/main armhf p7zip-full armhf 16.02+dfsg-6 [993 kB]     
Fetched 94.3 MB in 22s (4,301 kB/s)                                                                             
Selecting previously unselected package java-common.
(Reading database ... 95551 files and directories currently installed.)
Preparing to unpack .../00-java-common_0.71_all.deb ...
Unpacking java-common (0.71) ...
Selecting previously unselected package openjdk-11-jre-headless:armhf.
Preparing to unpack .../01-openjdk-11-jre-headless_11.0.5+10-1~deb10u1_armhf.deb ...
Unpacking openjdk-11-jre-headless:armhf (11.0.5+10-1~deb10u1) ...
Selecting previously unselected package ca-certificates-java.
Preparing to unpack .../02-ca-certificates-java_20190405_all.deb ...
Unpacking ca-certificates-java (20190405) ...
Selecting previously unselected package fonts-dejavu-extra.
Preparing to unpack .../03-fonts-dejavu-extra_2.37-1_all.deb ...
Unpacking fonts-dejavu-extra (2.37-1) ...
Selecting previously unselected package libatk-wrapper-java.
Preparing to unpack .../04-libatk-wrapper-java_0.33.3-22_all.deb ...
Unpacking libatk-wrapper-java (0.33.3-22) ...
Selecting previously unselected package libatk-wrapper-java-jni:armhf.
Preparing to unpack .../05-libatk-wrapper-java-jni_0.33.3-22_armhf.deb ...
Unpacking libatk-wrapper-java-jni:armhf (0.33.3-22) ...
Selecting previously unselected package libchromaprint-tools.
Preparing to unpack .../06-libchromaprint-tools_1.4.3-3_armhf.deb ...
Unpacking libchromaprint-tools (1.4.3-3) ...
Selecting previously unselected package libjna-jni.
Preparing to unpack .../07-libjna-jni_4.5.2-1_armhf.deb ...
Unpacking libjna-jni (4.5.2-1) ...
Selecting previously unselected package libjna-java.
Preparing to unpack .../08-libjna-java_4.5.2-1_all.deb ...
Unpacking libjna-java (4.5.2-1) ...
Selecting previously unselected package libtinyxml2-6a:armhf.
Preparing to unpack .../09-libtinyxml2-6a_7.0.0+dfsg-1_armhf.deb ...
Unpacking libtinyxml2-6a:armhf (7.0.0+dfsg-1) ...
Selecting previously unselected package libzen0v5:armhf.
Preparing to unpack .../10-libzen0v5_0.4.37-1_armhf.deb ...
Unpacking libzen0v5:armhf (0.4.37-1) ...
Selecting previously unselected package libmediainfo0v5:armhf.
Preparing to unpack .../11-libmediainfo0v5_18.12-2_armhf.deb ...
Unpacking libmediainfo0v5:armhf (18.12-2) ...
Selecting previously unselected package libopenjfx-jni.
Preparing to unpack .../12-libopenjfx-jni_11.0.2+1-1_armhf.deb ...
Unpacking libopenjfx-jni (11.0.2+1-1) ...
Selecting previously unselected package libopenjfx-java.
Preparing to unpack .../13-libopenjfx-java_11.0.2+1-1_all.deb ...
Unpacking libopenjfx-java (11.0.2+1-1) ...
Selecting previously unselected package mediainfo.
Preparing to unpack .../14-mediainfo_18.12-2_armhf.deb ...
Unpacking mediainfo (18.12-2) ...
Selecting previously unselected package openjdk-11-jre:armhf.
Preparing to unpack .../15-openjdk-11-jre_11.0.5+10-1~deb10u1_armhf.deb ...
Unpacking openjdk-11-jre:armhf (11.0.5+10-1~deb10u1) ...
Selecting previously unselected package openjfx.
Preparing to unpack .../16-openjfx_11.0.2+1-1_armhf.deb ...
Unpacking openjfx (11.0.2+1-1) ...
Selecting previously unselected package openjfx-source.
Preparing to unpack .../17-openjfx-source_11.0.2+1-1_all.deb ...
Unpacking openjfx-source (11.0.2+1-1) ...
Selecting previously unselected package p7zip.
Preparing to unpack .../18-p7zip_16.02+dfsg-6_armhf.deb ...
Unpacking p7zip (16.02+dfsg-6) ...
Selecting previously unselected package p7zip-full.
Preparing to unpack .../19-p7zip-full_16.02+dfsg-6_armhf.deb ...
Unpacking p7zip-full (16.02+dfsg-6) ...
Selecting previously unselected package filebot.
Preparing to unpack .../20-filebot_4.8.5_all.deb ...
Unpacking filebot (4.8.5) ...
Setting up java-common (0.71) ...
Setting up libtinyxml2-6a:armhf (7.0.0+dfsg-1) ...
Setting up libchromaprint-tools (1.4.3-3) ...
Setting up libzen0v5:armhf (0.4.37-1) ...
Setting up libjna-jni (4.5.2-1) ...
Setting up fonts-dejavu-extra (2.37-1) ...
Setting up libjna-java (4.5.2-1) ...
Setting up libopenjfx-jni (11.0.2+1-1) ...
Setting up libatk-wrapper-java (0.33.3-22) ...
Setting up libmediainfo0v5:armhf (18.12-2) ...
Setting up openjfx-source (11.0.2+1-1) ...
Setting up mediainfo (18.12-2) ...
Setting up p7zip (16.02+dfsg-6) ...
Setting up p7zip-full (16.02+dfsg-6) ...
Setting up libatk-wrapper-java-jni:armhf (0.33.3-22) ...
Setting up libopenjfx-java (11.0.2+1-1) ...
Setting up openjfx (11.0.2+1-1) ...
Setting up openjdk-11-jre-headless:armhf (11.0.5+10-1~deb10u1) ...
update-alternatives: using /usr/lib/jvm/java-11-openjdk-armhf/bin/rmid to provide /usr/bin/rmid (rmid) in auto mode
update-alternatives: using /usr/lib/jvm/java-11-openjdk-armhf/bin/java to provide /usr/bin/java (java) in auto mode
update-alternatives: using /usr/lib/jvm/java-11-openjdk-armhf/bin/keytool to provide /usr/bin/keytool (keytool) in auto mode
update-alternatives: using /usr/lib/jvm/java-11-openjdk-armhf/bin/jjs to provide /usr/bin/jjs (jjs) in auto mode
update-alternatives: using /usr/lib/jvm/java-11-openjdk-armhf/bin/pack200 to provide /usr/bin/pack200 (pack200) in auto mode
update-alternatives: using /usr/lib/jvm/java-11-openjdk-armhf/bin/rmiregistry to provide /usr/bin/rmiregistry (rmiregistry) in auto mode
update-alternatives: using /usr/lib/jvm/java-11-openjdk-armhf/bin/unpack200 to provide /usr/bin/unpack200 (unpack200) in auto mode
update-alternatives: using /usr/lib/jvm/java-11-openjdk-armhf/lib/jexec to provide /usr/bin/jexec (jexec) in auto mode
Setting up openjdk-11-jre:armhf (11.0.5+10-1~deb10u1) ...
Setting up ca-certificates-java (20190405) ...
Setting up filebot (4.8.5) ...
Processing triggers for gnome-menus (3.31.4-3) ...
Processing triggers for libc-bin (2.28-10+rpi1) ...
Processing triggers for man-db (2.8.5-2) ...
Processing triggers for ca-certificates (20190110) ...
Updating certificates in /etc/ssl/certs...
0 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d...

done.
done.
Processing triggers for shared-mime-info (1.10-1) ...
Processing triggers for fontconfig (2.13.1-2) ...
Processing triggers for desktop-file-utils (0.23-4) ...
Processing triggers for mime-support (3.62) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...






Getting some Java issues

Code: Select all

pi@raspberrypi:~ $ java -version
openjdk version "11.0.5" 2019-10-15
OpenJDK Runtime Environment (build 11.0.5+10-post-Raspbian-1deb10u1)
OpenJDK Server VM (build 11.0.5+10-post-Raspbian-1deb10u1, mixed mode)

Code: Select all

pi@raspberrypi:~ $ filebot -version
FileBot 4.8.5 (r6224) / OpenJDK Runtime Environment 11.0.5 / Linux 4.19.75-v7l+ (arm)

Code: Select all

pi@raspberrypi:~ $ filebot -script fn:sysinfo
FileBot 4.8.5 (r6224)
JNA Native: jdk.internal.util.jar.InvalidJarIndexError: Invalid index
MediaInfo: net.filebot.mediainfo.MediaInfoException: Unable to load arm (32-bit) native library libmediainfo.so: Could not initialize class com.sun.jna.Native
p7zip: p7zip Version 16.02 (locale=en_GB.UTF-8,Utf16=on,HugeFiles=on,32 bits,4 CPUs LE)
unrar: java.io.IOException: Cannot run program "unrar": error=2, No such file or directory
Chromaprint: fpcalc version 1.4.3
Extended Attributes: OK
Unicode Filesystem: OK
GVFS: PlatformGVFS [/run/user/1000/gvfs]
Script Bundle: 2019-05-15 (r565)
Groovy: 2.5.6
JRE: OpenJDK Runtime Environment 11.0.5
JVM: 32-bit OpenJDK Server VM
CPU/MEM: 4 Core / 486 MB Max Memory / 20 MB Used Memory
OS: Linux (arm)
HW: Linux raspberrypi 4.19.75-v7l+ #1270 SMP Tue Sep 24 18:51:41 BST 2019 armv7l GNU/Linux
DATA: /home/pi/.filebot
Package: DEB
License: FileBot License P****** (Valid-Until: 2021-01-01)
Done ヾ(@⌒ー⌒@)ノ
Trying to configure opensubtitles

Code: Select all

pi@raspberrypi:~ $ filebot -script fn:configure
Enter OpenSubtitles username: ******@gmail.com
Enter OpenSubtitles password: ***********
Testing OpenSubtitles... [Fatal Error] :1:7: The processing instruction target matching "[xX][mM][lL]" is not allowed.
The response could not be parsed.
redstone.xmlrpc.XmlRpcException: The response could not be parsed.
	at redstone.xmlrpc.XmlRpcClient.handleResponse(Unknown Source)
	at redstone.xmlrpc.XmlRpcClient.endCall(Unknown Source)
	at redstone.xmlrpc.XmlRpcClient.invoke(Unknown Source)
	at net.filebot.web.OpenSubtitlesXmlRpc.invoke(OpenSubtitlesXmlRpc.java:344)
	at net.filebot.web.OpenSubtitlesClient$OpenSubtitlesXmlRpcWithRetryAndFloodLimit.invoke(OpenSubtitlesClient.java:534)
	at net.filebot.web.OpenSubtitlesXmlRpc.login(OpenSubtitlesXmlRpc.java:64)
	at net.filebot.web.OpenSubtitlesClient.login(OpenSubtitlesClient.java:385)
	at net.filebot.web.OpenSubtitlesClient$login.call(Unknown Source)
	at Script1.run(Script1.groovy:12)
	at net.filebot.cli.ScriptShell.evaluate(ScriptShell.java:64)
	at net.filebot.cli.ScriptShell.runScript(ScriptShell.java:74)
	at net.filebot.cli.ArgumentProcessor.runScript(ArgumentProcessor.java:163)
	at net.filebot.cli.ArgumentProcessor.run(ArgumentProcessor.java:37)
	at net.filebot.Main.main(Main.java:132)
Caused by: redstone.xmlrpc.XmlRpcException: A problem occured during parsing
	at redstone.xmlrpc.XmlRpcParser.parse(Unknown Source)
	at net.filebot.web.OpenSubtitlesXmlRpc$1.parse(OpenSubtitlesXmlRpc.java:336)
	... 14 more
Caused by: org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 7; The processing instruction target matching "[xX][mM][lL]" is not allowed.
	at java.xml/com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1243)
	... 16 more

Error (o_O)
Same issues as the last time i tried the deb.sh.

Let me know if you need more info.
Thanks for the support!
User avatar
rednoah
The Source
Posts: 22991
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Raspberry PI - JAVA issues

Post by rednoah »

1.
FileBot is fundamentally working. JNA / MediaInfo is not working, but that's optional, and only required for featured related to reading MediaInfo from video files:
viewtopic.php?t=4285


2.
The OpenSubtitles login errors just says the OpenSubtitles login doesn't work. Probably due to temporary server-side issues. FileBot is working. OpenSubtitles is not. OpenSubtitles is not known to be stable. It sometimes doesn't work. Maybe try again after the holidays.
:idea: Please read the FAQ and How to Request Help.
wizzd
Posts: 20
Joined: 28 Dec 2019, 21:15

Re: Raspberry PI - JAVA issues

Post by wizzd »

Thanks for the replies and the support.
I have just - which one could argue that I should have done before, tried to go to opensubtitles.org... and it is blocked in Denmark...
So lots of work caused by myself for not checking the site... to my excuse, the forums aren't blocked though...

edit: created a new topic since the original issue is fixed --- maybe there's a way to get around this blocking in filebot...
User avatar
rednoah
The Source
Posts: 22991
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Raspberry PI - JAVA issues

Post by rednoah »

wizzd wrote: 30 Dec 2019, 06:32 edit: created a new topic since the original issue is fixed --- maybe there's a way to get around this blocking in filebot...
Well, if you access the internet from outside of Denmark via VPN, then that'll work for sure. If they're just using DNS hijacking to block sites, then using Google DNS or CloudFlare DNS (ideally via HTTPS) will do the trick as well.
:idea: Please read the FAQ and How to Request Help.
wizzd
Posts: 20
Joined: 28 Dec 2019, 21:15

Re: Raspberry PI - JAVA issues

Post by wizzd »

Unfortunately I still have some issues...

I get the below error when executing filebot amc upon torrent completion.

Code: Select all

Locking some/Dir/amc.log
Run script [fn:amc] at [Mon Dec 30 16:30:57 GMT 2019]
Parameter: clean = y
Parameter: plex = *****
Parameter: subtitles = en,da
Parameter: movieFormat = some_dir/Movies/{ny} - {label}
Parameter: seriesFormat = some_dir/Serier/{n}/Season {s.pad(2)}/{n} - {s00e00} - {t}
Parameter: gmail = *****
Parameter: ut_dir = some_dir/some_Torrent
Parameter: ut_kind = multi
Parameter: ut_title = some_Torrent
Parameter: ut_label = 
Invalid index
jdk.internal.util.jar.InvalidJarIndexError: Invalid index
	at java.base/jdk.internal.loader.URLClassPath$JarLoader.getResource(URLClassPath.java:1025)
	at java.base/jdk.internal.loader.URLClassPath$JarLoader.getResource(URLClassPath.java:937)
	at java.base/jdk.internal.loader.URLClassPath$JarLoader.findResource(URLClassPath.java:912)
	at java.base/jdk.internal.loader.URLClassPath.findResource(URLClassPath.java:291)
	at java.base/jdk.internal.loader.BuiltinClassLoader.lambda$findResourceOnClassPath$0(BuiltinClassLoader.java:480)
	at java.base/jdk.internal.loader.BuiltinClassLoader.findResourceOnClassPath(BuiltinClassLoader.java:481)
	at java.base/jdk.internal.loader.BuiltinClassLoader.findResource(BuiltinClassLoader.java:302)
	at com.sun.jna.Native.extractFromResourcePath(Native.java:1043)
	at com.sun.jna.Native.loadNativeDispatchLibraryFromClasspath(Native.java:964)
	at com.sun.jna.Native.loadNativeDispatchLibrary(Native.java:949)
	at com.sun.jna.Native.<clinit>(Native.java:190)
	at net.filebot.mediainfo.MediaInfoLibrary.<clinit>(MediaInfoLibrary.java:19)
	at net.filebot.mediainfo.MediaInfo.<init>(MediaInfo.java:37)
	at net.filebot.media.MediaCharacteristicsParser$1.open(MediaCharacteristicsParser.java:14)
	at net.filebot.cli.ScriptShellMethods.getMediaCharacteristics(ScriptShellMethods.java:447)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at Script1$_acceptFile_closure83.doCall(Script1.groovy:247)
	at Script1$_acceptFile_closure83.doCall(Script1.groovy)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at net.filebot.format.ExpressionFormatFunctions.call(ExpressionFormatFunctions.java:38)
	at net.filebot.format.ExpressionFormatFunctions.any(ExpressionFormatFunctions.java:66)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at Script1.acceptFile(Script1.groovy:247)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at Script1$_resolveInput_closure87.doCall(Script1.groovy:270)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at com.sun.proxy.$Proxy17.accept(Unknown Source)
	at net.filebot.util.FileUtilities.getChildren(FileUtilities.java:522)
	at net.filebot.cli.ScriptShellMethods.listFiles(ScriptShellMethods.java:95)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at Script1.resolveInput(Script1.groovy:270)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at Script1$_run_closure52.doCall(Script1.groovy:286)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at Script1.run(Script1.groovy:286)
	at net.filebot.cli.ScriptShell.evaluate(ScriptShell.java:64)
	at net.filebot.cli.ScriptShell.runScript(ScriptShell.java:74)
	at net.filebot.cli.ArgumentProcessor.runScript(ArgumentProcessor.java:163)
	at net.filebot.cli.ArgumentProcessor.run(ArgumentProcessor.java:37)
	at net.filebot.Main.main(Main.java:132)

Error (o_O)

I'm calling with below string ... this has been working fine since forever with the portable version (the last version which could be run without license - don't remember the numer - sorry)

Code: Select all

filebot -script fn:amc --output "some_Dir/!new" --action copy --def clean=y --conflict skip -non-strict --log-file "some_Dir/amc.log"  --def plex=192.168.1.***:************* --def subtitles=en,da --def movieFormat="some_Dir/Movies/{ny} - {label}" seriesFormat="some_Dir/Serier/{n}/Season {s.pad(2)}/{n} - {s00e00} - {t}" --def gmail=******@gmail.com:******* ut_dir="%F" ut_kind="multi" ut_title="%N" ut_label="%L"
User avatar
rednoah
The Source
Posts: 22991
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Raspberry PI - JAVA issues

Post by rednoah »

Please try the latest 4.9.0 beta. I think this one has been fixed already. Not sure though.
:idea: Please read the FAQ and How to Request Help.
wizzd
Posts: 20
Joined: 28 Dec 2019, 21:15

Re: Raspberry PI - JAVA issues

Post by wizzd »

Any easy way to do this? I used the script to install...
Running Raspbian Buster.
User avatar
rednoah
The Source
Posts: 22991
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Raspberry PI - JAVA issues

Post by rednoah »

You'd have to download the *.deb package (either the Java 11 or the Java 8 build, depending on your current software configuration) and then use dpkg -i to install it. The portable package is also an option.
:idea: Please read the FAQ and How to Request Help.
wizzd
Posts: 20
Joined: 28 Dec 2019, 21:15

Re: Raspberry PI - JAVA issues

Post by wizzd »

So, it works now... awesome! Thanks! (installed the deb one - for java11 -- FileBot_4.9.0_universal.deb)

But getting an error on rar'ed torrents...
Tried installing unrar-free

Code: Select all

sudo apt-get install unrar-free
which is the only one available in buster... but this one apparently doesn't support multi part files... sigh...
google is not helpful in terms of a solution for the nonfree version... any pointers here?
User avatar
rednoah
The Source
Posts: 22991
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Raspberry PI - JAVA issues

Post by rednoah »

FileBot will try to use the unrar command. Probably easiest to install the official non-free close-source unrar binaries:
https://www.rarlab.com/rar_add.htm

I assume somebody is maintaining a PPA for these binaries as well. Google will help.
:idea: Please read the FAQ and How to Request Help.
wizzd
Posts: 20
Joined: 28 Dec 2019, 21:15

Re: Raspberry PI - JAVA issues

Post by wizzd »

I made it work...
Found this and followed it... https://gist.github.com/VadimBrodsky/1f ... d57095a806

Posting the guide here in case it disappears...

Code: Select all

# As per this guide -- http://raspberrypi.stackexchange.com/questions/3617/how-to-install-unrar-nonfree#3618

# Uninstall unrar-free.
sudo apt-get remove unrar-free

# Make sure you have a source repository by editing /etc/apt/sources.list.
cat /etc/apt/sources.list

# Sync the apt database.
sudo apt-get update

# Create a working directory and move into it. The unrar-nonfree command will be built in this directory.
mkdir ~/unrar-nonfree && cd ~/unrar-nonfree

# Install the dependencies required by unrar-nonfree.

sudo apt-get build-dep unrar-nonfree

# Download the unrar-nonfree sources and build the .deb package.
sudo apt-get source -b unrar-nonfree

# Install the generated .deb package. Its name varies depending on the version of unrar-nonfree.
sudo dpkg -i unrar*.deb

# You can remove the working directory you created in 4..
cd && rm -r ~/unrar-nonfree

# Once installed, you can use either unrar or unrar-nonfree (unrar is a simlink to unrar-nonfree).

# with unrar-free
# unrar -x my_archive.part01.rar

# with unrar-nonfree
# unrar e my_archive.part01.rar

# Please man unrar-nonfree for more details.
My sources.list

Code: Select all

deb http://raspbian.raspberrypi.org/raspbian/ buster main contrib non-free rpi
# Uncomment line below then 'apt-get update' to enable 'apt-get source'
deb-src http://raspbian.raspberrypi.org/raspbian/ buster main contrib non-free rpi
Everything seems to be working now. Thanks for the support.
Post Reply