Error on script - Java and TVDB

Support for Ubuntu and other Desktop Linux distributions
Post Reply
nikeb
Posts: 28
Joined: 13 Jun 2014, 07:26

Error on script - Java and TVDB

Post by nikeb »

Hi,
After being a patron i purchased and upgraded my filebot installation via apt on my ubuntu 16.04

All i know is when i launch my fn:amc script i got some errors.
and the same errors occured when i type a simple:

Code: Select all


filebot -list --db TheTVDB --q firefly
Fetch failed: https://api.thetvdb.com/search/series?name=firefly
java.lang.IllegalStateException: Failed to retrieve authorization token: Read timed out
	at net.filebot.web.TheTVDBClient.getAuthorizationToken(TheTVDBClient.java:131)
	at net.filebot.web.TheTVDBClient.getRequestHeader(TheTVDBClient.java:96)
	at net.filebot.web.TheTVDBClient.lambda$requestJson$0(TheTVDBClient.java:81)
	at net.filebot.CachedResource.lambda$fetchIfModified$9(CachedResource.java:215)
	at net.filebot.CachedResource.lambda$get$0(CachedResource.java:87)
	at net.filebot.CachedResource.retry(CachedResource.java:121)
	at net.filebot.CachedResource.lambda$get$1(CachedResource.java:87)
	at net.filebot.Cache.computeIf(Cache.java:90)
	at net.filebot.CachedResource.get(CachedResource.java:82)
	at net.filebot.web.TheTVDBClient.requestJson(TheTVDBClient.java:81)
	at net.filebot.web.TheTVDBClient.search(TheTVDBClient.java:139)
	at net.filebot.web.TheTVDBClient.fetchSearchResult(TheTVDBClient.java:158)
	at net.filebot.WebServices$TheTVDBClientWithLocalSearch.access$101(WebServices.java:193)
	at net.filebot.WebServices$TheTVDBClientWithLocalSearch.lambda$fetchSearchResult$4(WebServices.java:213)
Caused by: java.net.SocketTimeoutException: Read timed out
	at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
	at net.filebot.web.WebRequest.post(WebRequest.java:206)
	at net.filebot.web.TheTVDBClient.postJson(TheTVDBClient.java:75)
	at net.filebot.web.TheTVDBClient.getAuthorizationToken(TheTVDBClient.java:127)
	... 13 more
Caused by: java.net.SocketTimeoutException: Read timed out
	at net.filebot.web.WebRequest.post(WebRequest.java:203)
	... 15 more

java.lang.IllegalStateException: Failed to retrieve authorization token: Read timed out
java.util.concurrent.ExecutionException: java.lang.IllegalStateException: Failed to retrieve authorization token: Read timed out
	at net.filebot.WebServices$TheTVDBClientWithLocalSearch.fetchSearchResult(WebServices.java:217)
	at net.filebot.web.AbstractEpisodeListProvider.lambda$search$0(AbstractEpisodeListProvider.java:22)
	at net.filebot.Cache.computeIf(Cache.java:90)
	at net.filebot.Cache$TypedCache.computeIf(Cache.java:183)
	at net.filebot.Cache.computeIfAbsent(Cache.java:96)
	at net.filebot.Cache$TypedCache.computeIfAbsent(Cache.java:188)
	at net.filebot.web.AbstractEpisodeListProvider.search(AbstractEpisodeListProvider.java:21)
	at net.filebot.cli.CmdlineOperations.fetchEpisodeList(CmdlineOperations.java:1047)
	at net.filebot.cli.CmdlineOperations.fetchEpisodeList(CmdlineOperations.java:1071)
	at net.filebot.cli.ArgumentProcessor.runCommand(ArgumentProcessor.java:91)
	at net.filebot.cli.ArgumentProcessor.run(ArgumentProcessor.java:33)
	at net.filebot.Main.main(Main.java:132)
Caused by: java.lang.IllegalStateException: Failed to retrieve authorization token: Read timed out
	at net.filebot.web.TheTVDBClient.getAuthorizationToken(TheTVDBClient.java:131)
	at net.filebot.web.TheTVDBClient.getRequestHeader(TheTVDBClient.java:96)
	at net.filebot.web.TheTVDBClient.lambda$requestJson$0(TheTVDBClient.java:81)
	at net.filebot.CachedResource.lambda$fetchIfModified$9(CachedResource.java:215)
	at net.filebot.CachedResource.lambda$get$0(CachedResource.java:87)
	at net.filebot.CachedResource.retry(CachedResource.java:121)
	at net.filebot.CachedResource.lambda$get$1(CachedResource.java:87)
	at net.filebot.Cache.computeIf(Cache.java:90)
	at net.filebot.CachedResource.get(CachedResource.java:82)
	at net.filebot.web.TheTVDBClient.requestJson(TheTVDBClient.java:81)
	at net.filebot.web.TheTVDBClient.search(TheTVDBClient.java:139)
	at net.filebot.web.TheTVDBClient.fetchSearchResult(TheTVDBClient.java:158)
	at net.filebot.WebServices$TheTVDBClientWithLocalSearch.access$101(WebServices.java:193)
	at net.filebot.WebServices$TheTVDBClientWithLocalSearch.lambda$fetchSearchResult$4(WebServices.java:213)
Caused by: java.net.SocketTimeoutException: Read timed out
	at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
	at net.filebot.web.WebRequest.post(WebRequest.java:206)
	at net.filebot.web.TheTVDBClient.postJson(TheTVDBClient.java:75)
	at net.filebot.web.TheTVDBClient.getAuthorizationToken(TheTVDBClient.java:127)
	... 13 more
Caused by: java.net.SocketTimeoutException: Read timed out
	at net.filebot.web.WebRequest.post(WebRequest.java:203)
	... 15 more

Error (o_O)
I also have another script for movies who works fine and clear.
Am i missing something?
I got the JavaFX error when opening the GUI

Code: Select all

filebot
Failed to initialize JavaFX
java.lang.NoClassDefFoundError: javafx/embed/swing/JFXPanel
	at net.filebot.util.ui.SwingUI.initJavaFX(SwingUI.java:584)
	at net.filebot.Main.onStart(Main.java:196)
	at net.filebot.Main.lambda$main$0(Main.java:162)
	at net.filebot.util.ui.SwingUI$SwingRunnable.doInBackground(SwingUI.java:474)
	at net.filebot.util.ui.SwingUI$SwingRunnable.doInBackground(SwingUI.java:464)
Caused by: java.lang.ClassNotFoundException: javafx.embed.swing.JFXPanel
	at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581)
	at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
	... 5 more

my fn:sysinfo:

Code: Select all

 filebot -script fn:sysinfo
FileBot 4.8.5 (r6224)
JNA Native: 4.0.1
MediaInfo: 0.7.95
p7zip: p7zip Version 9.20 (locale=it_IT.UTF-8,Utf16=on,HugeFiles=on,4 CPUs)
unrar: UNRAR 5.30 beta 2 freeware
Chromaprint: fpcalc version 1.2.0
Extended Attributes: OK
Unicode Filesystem: OK
GVFS: PlatformGVFS [/run/user/1000/gvfs]
Script Bundle: 2019-05-15 (r565)
Groovy: 2.5.6
JRE: Java(TM) SE Runtime Environment 11.0.5
JVM: 64-bit Java HotSpot(TM) 64-Bit Server VM
CPU/MEM: 4 Core / 498 MB Max Memory / 17 MB Used Memory
OS: Linux (amd64)
HW: Linux SERVER 4.4.0-170-generic #199-Ubuntu SMP Thu Nov 14 01:45:04 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
DATA: /home/matteo/.filebot
Package: DEB
License: FileBot License P11147100 (Valid-Until: 2021-01-17)
Done ヾ(@⌒ー⌒@)ノ



How can i get it work?
Thank you
User avatar
rednoah
The Source
Posts: 22974
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Error on script - Java and TVDB

Post by rednoah »

1.
TheTVDB is having technical difficulties:
viewtopic.php?f=8&t=11419


2.
Did you install the JavaFX package? If yes, which version of the JavaFX package is available on your platform? There are FileBot builds for Java 11 and Java 8, which require OpenJDK+OpenJFX 11 and OpenJDK+OpenJFX 8 respectively.


Did you use this install script? If yes, what did the console output say?
https://www.filebot.net/linux/apt.html


:idea: On Ubuntu 16.04 you will likely only have access to OpenJFX 8 via the package repository, and so you will need to use OpenJDK 8 for it to work, and so you will need the FileBot/Java 8 build to work with that.
:idea: Please read the FAQ and How to Request Help.
nikeb
Posts: 28
Joined: 13 Jun 2014, 07:26

Re: Error on script - Java and TVDB

Post by nikeb »

i try to make an

apt-get install openjfx

but it tells me i got already the latest : (8u60-b27-4)
i update my filebot using a simple apt-get install filebot

so i should return to the java 8 and his filebot, but how can i install the java 8 filebot ?
would i be able to use thetvdb api (if they re working) ?
User avatar
rednoah
The Source
Posts: 22974
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Error on script - Java and TVDB

Post by rednoah »

Yes, since you can't upgrade to OpenJFX 11, you must stick to the Java 8 compatibility setup, i.e. FileBot 4.8.5 (Java 8 build) + OpenJDK 8 + OpenJFX 8.


OpenJDK 8 should be default on Ubuntu 16.04 and the deb.sh installer script will then automatically set you up the FileBot 4.8.5 for Java 8 repository.


i.e. Install openjdk-8-jdk but not openjdk-11-jdk and then let the installer script do the rest:
rednoah wrote: 13 Jul 2018, 12:00 The installer/deb.sh will add the repository and install FileBot for you:

Code: Select all

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

:idea: TheTVDB has server-side issues, and doesn't seem to work today. Just use other data sources in the meanwhile. In any case, the FileBot build installed on your machine has no effect on TheTVDB server-side issues. ;)
:idea: Please read the FAQ and How to Request Help.
nikeb
Posts: 28
Joined: 13 Jun 2014, 07:26

Re: Error on script - Java and TVDB

Post by nikeb »

i actually still have the openjdk-8-jdk on my machine.

if i do
sudo update-alternatives --config java

Code: Select all

------------------------------------------------------------
  0            /usr/lib/jvm/java-11-oracle/bin/java      1091      modalità automatica
* 1            /usr/lib/jvm/java-11-oracle/bin/java      1091      modalità manuale
  2            /usr/lib/jvm/java-8-oracle/jre/bin/java   1081      modalità manuale

Press <enter> to keep the current choice[*], or type selection number: 
So i just select it and launch the deb.sh command.

i tried to launch again my script but of course i have the same thetvdb error
if i put the --db TheMovieDB::TV as parameter it still use TheTVDB as scraper.

Now the GUI works fine.

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

Re: Error on script - Java and TVDB

Post by rednoah »

nikeb wrote: 10 Jan 2020, 21:54 if i put the --db TheMovieDB::TV as parameter it still use TheTVDB as scraper.
Are you using filebot -rename or amc script commands? The --db option is ignored by the latter because it's doing it's own auto-detection and database selection for different content types.
:idea: Please read the FAQ and How to Request Help.
nikeb
Posts: 28
Joined: 13 Jun 2014, 07:26

Re: Error on script - Java and TVDB

Post by nikeb »

i m using the fn:amc script.

Can i use the -rename command with the other attributes like --def gmail or --def pushbullet ?
User avatar
rednoah
The Source
Posts: 22974
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Error on script - Java and TVDB

Post by rednoah »

nikeb wrote: 10 Jan 2020, 22:54 Can i use the -rename command with the other attributes like --def gmail or --def pushbullet ?
Nope, these --def parameters would be specific to the amc script.
:idea: Please read the FAQ and How to Request Help.
Post Reply