Running filebot with qBittorent fails to fetch resources

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
2stacks
Posts: 8
Joined: 26 Mar 2023, 19:52

Running filebot with qBittorent fails to fetch resources

Post by 2stacks »

I followed the setup instructions for running the fn:amc script from qBittorent. The script fails when attempting to fetch resources from TheMovieDB. I can manualy execute the fn:amc script from CLI with the exact same inputs and everything works as expected.

The relevant error seems to be
Failed to fetch resource: https://api.themoviedb.org/3/search/movie: Undefined Variable: NullPointerException
Undefined Variable: NullPointerException
Processing 1 unsorted files
I have several examples as this is happening for all Movie and TV Series.

filebot -script fn:sysinfo

Code: Select all

# Application Bundle
FileBot 5.0.1 (r9665) / Groovy 4.0.9 / OpenJDK Runtime Environment 11.0.18 / Linux 5.15.0-1029-kvm (amd64)
# Local Time
Sun Mar 26 19:54:40 UTC 2023
# Process Tree
└─ /usr/bin/bash
└─ /usr/bin/dash
└─ /usr/lib/jvm/java-11-openjdk-amd64/bin/java
# Environment Variables
DISPLAY = localhost:10.0
HOME = /home/qbtuser
LANG = C.UTF-8
LESSCLOSE = /usr/bin/lesspipe %s %s
LESSOPEN = | /usr/bin/lesspipe %s
LOGNAME = qbtuser
LS_COLORS = rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.webp=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:
MAIL = /var/mail/qbtuser
OLDPWD = /home/stacks
PATH = /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
PWD = /home/qbtuser
SHELL = /bin/bash
SHLVL = 1
SUDO_COMMAND = /usr/bin/su qbtuser
SUDO_GID = 1000
SUDO_UID = 1000
SUDO_USER = ubuntu
TERM = xterm-color
USER = qbtuser
_ = /usr/bin/filebot
# Java System Properties
application.cache = /home/qbtuser/.filebot/cache
application.deployment = deb
application.dir = /home/qbtuser/.filebot
awt.toolkit = sun.awt.X11.XToolkit
awt.useSystemAAFontSettings = on
file.encoding = UTF-8
file.separator = /
grape.root = /home/qbtuser/.filebot/grape
http.agent = FileBot/5.0.1
java.awt.graphicsenv = sun.awt.X11GraphicsEnvironment
java.awt.printerjob = sun.print.PSPrinterJob
java.class.path = /usr/share/filebot/jar/filebot.jar
java.class.version = 55.0
java.home = /usr/lib/jvm/java-11-openjdk-amd64
java.io.tmpdir = /home/qbtuser/.filebot/tmp
java.library.path = /usr/lib/x86_64-linux-gnu/jni
java.net.useSystemProxies = true
java.runtime.name = OpenJDK Runtime Environment
java.runtime.version = 11.0.18+10-post-Ubuntu-0ubuntu122.04
java.specification.name = Java Platform API Specification
java.specification.vendor = Oracle Corporation
java.specification.version = 11
java.vendor = Ubuntu
java.vendor.url = https://ubuntu.com/
java.vendor.url.bug = https://bugs.launchpad.net/ubuntu/+source/openjdk-lts
java.version = 11.0.18
java.version.date = 2023-01-17
java.vm.compressedOopsMode = 32-bit
java.vm.info = mixed mode, sharing
java.vm.name = OpenJDK 64-Bit Server VM
java.vm.specification.name = Java Virtual Machine Specification
java.vm.specification.vendor = Oracle Corporation
java.vm.specification.version = 11
java.vm.vendor = Ubuntu
java.vm.version = 11.0.18+10-post-Ubuntu-0ubuntu122.04
jdk.debug = release
jdk.logger.packages = net.filebot.Log
jdk.module.path = /usr/share/openjfx/lib
jna.boot.library.name = jnidispatch.system
jna.boot.library.path = /usr/lib/x86_64-linux-gnu/jni
jna.library.path = /usr/lib/x86_64-linux-gnu/jni
jna.noclasspath = true
jna.nosys = false
jna.nounpack = true
line.separator = ↲
net.filebot.archive.extractor = ShellExecutables
net.filebot.gio.GVFS = /gvfs
net.filebot.logging.debug = INFO
net.filebot.theme = Darcula
org.apache.commons.logging.Log = org.apache.commons.logging.impl.NoOpLog
os.arch = amd64
os.name = Linux
os.version = 5.15.0-1029-kvm
path.separator = :
prism.order = sw
sun.arch.data.model = 64
sun.boot.library.path = /usr/lib/jvm/java-11-openjdk-amd64/lib
sun.cpu.endian = little
sun.cpu.isalist = 
sun.io.unicode.encoding = UnicodeLittle
sun.java.command = /usr/share/filebot/jar/filebot.jar -script fn:sysinfo
sun.java.launcher = SUN_STANDARD
sun.jnu.encoding = UTF-8
sun.management.compiler = HotSpot 64-Bit Tiered Compilers
sun.net.client.defaultConnectTimeout = 10000
sun.net.client.defaultReadTimeout = 60000
sun.os.patch.level = unknown
swing.crossplatformlaf = javax.swing.plaf.nimbus.NimbusLookAndFeel
unixfs = false
useCreationDate = false
useExtendedFileAttributes = true
useGVFS = true
user.dir = /home/qbtuser
user.home = /home/qbtuser
user.language = en
user.name = qbtuser
user.timezone = Etc/UTC
# Arguments
└─ -script
└─ fn:sysinfo
Script Bundle: 2023-03-24 (r894)
FileBot 5.0.1 (r9665)
JNA Native: 6.1.1
MediaInfo: 21.09
Tools: fpcalc/1.5.1 7z/16.02 unrar/6.11
Extended Attributes: OK
Unicode Filesystem: OK
GVFS: PlatformGVFS [/gvfs]
Script Bundle: 2023-03-24 (r894)
Groovy: 4.0.9
JRE: OpenJDK Runtime Environment 11.0.18
JVM: OpenJDK 64-Bit Server VM
CPU/MEM: 4 Core / 2.1 GB Max Memory / 24 MB Used Memory
OS: Linux (amd64)
HW: Linux qbt-01 5.15.0-1029-kvm #34-Ubuntu SMP Wed Feb 8 18:31:06 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
CPU/MEM: QEMU Virtual CPU version 2.5+ [MemTotal: 8 GB | MemFree: 5 GB | MemAvailable: 7 GB]
STORAGE: ext4 [/] @ 86 GB
UID/GID: uid=1001(qbtuser) gid=1001(qbtuser) groups=1001(qbtuser)
DATA: /home/qbtuser/.filebot
Package: DEB
License: FileBot License P48298627 (Valid-Until: 2024-04-02)
Done ヾ(@⌒ー⌒@)ノ
Log output from run of qBittorent

Code: Select all

filebot -script fn:amc --output "/tmp" --action duplicate --conflict skip -non-strict --log-file amc.log --def excludeList=amc.excludes unsorted=y music=y artwork=y "ut_label=%L" "ut_title=%N" "ut_kind=multi" "ut_dir=%F"

Code: Select all

# Application Bundle
FileBot 5.0.1 (r9665) / Groovy 4.0.9 / OpenJDK Runtime Environment 11.0.18 / Linux 5.15.0-1029-kvm (amd64)
# Local Time
Sun Mar 26 18:44:51 UTC 2023
# Process Tree
└─ /usr/bin/dash
└─ /usr/lib/jvm/java-11-openjdk-amd64/bin/java
# Environment Variables
HOME = /home/qbtuser
INVOCATION_ID = 41d906ce73264716abbcac7d7ef5ce81
JOURNAL_STREAM = 8:5985
LANG = C.UTF-8
LOGNAME = qbtuser
PATH = /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin
PWD = /
SHELL = /bin/bash
SYSTEMD_EXEC_PID = 412
USER = qbtuser
http_proxy = 
https_proxy = 
sock_proxy = 
# Java System Properties
application.cache = /home/qbtuser/.filebot/cache
application.deployment = deb
application.dir = /home/qbtuser/.filebot
awt.toolkit = sun.awt.X11.XToolkit
awt.useSystemAAFontSettings = on
file.encoding = UTF-8
file.separator = /
grape.root = /home/qbtuser/.filebot/grape
http.agent = FileBot/5.0.1
java.awt.graphicsenv = sun.awt.X11GraphicsEnvironment
java.awt.printerjob = sun.print.PSPrinterJob
java.class.path = /usr/share/filebot/jar/filebot.jar
java.class.version = 55.0
java.home = /usr/lib/jvm/java-11-openjdk-amd64
java.io.tmpdir = /home/qbtuser/.filebot/tmp
java.library.path = /usr/lib/x86_64-linux-gnu/jni
java.net.useSystemProxies = true
java.runtime.name = OpenJDK Runtime Environment
java.runtime.version = 11.0.18+10-post-Ubuntu-0ubuntu122.04
java.specification.name = Java Platform API Specification
java.specification.vendor = Oracle Corporation
java.specification.version = 11
java.vendor = Ubuntu
java.vendor.url = https://ubuntu.com/
java.vendor.url.bug = https://bugs.launchpad.net/ubuntu/+source/openjdk-lts
java.version = 11.0.18
java.version.date = 2023-01-17
java.vm.compressedOopsMode = 32-bit
java.vm.info = mixed mode, sharing
java.vm.name = OpenJDK 64-Bit Server VM
java.vm.specification.name = Java Virtual Machine Specification
java.vm.specification.vendor = Oracle Corporation
java.vm.specification.version = 11
java.vm.vendor = Ubuntu
java.vm.version = 11.0.18+10-post-Ubuntu-0ubuntu122.04
jdk.debug = release
jdk.logger.packages = net.filebot.Log
jdk.module.path = /usr/share/openjfx/lib
jna.boot.library.name = jnidispatch.system
jna.boot.library.path = /usr/lib/x86_64-linux-gnu/jni
jna.library.path = /usr/lib/x86_64-linux-gnu/jni
jna.noclasspath = true
jna.nosys = false
jna.nounpack = true
line.separator = ↲
net.filebot.archive.extractor = ShellExecutables
net.filebot.gio.GVFS = /gvfs
net.filebot.logging.debug = INFO
net.filebot.theme = Darcula
org.apache.commons.logging.Log = org.apache.commons.logging.impl.NoOpLog
os.arch = amd64
os.name = Linux
os.version = 5.15.0-1029-kvm
path.separator = :
prism.order = sw
sun.arch.data.model = 64
sun.boot.library.path = /usr/lib/jvm/java-11-openjdk-amd64/lib
sun.cpu.endian = little
sun.cpu.isalist = 
sun.io.unicode.encoding = UnicodeLittle
sun.java.command = /usr/share/filebot/jar/filebot.jar -script fn:amc --output /tmp --action duplicate --conflict skip -non-strict --log-file amc.log --def excludeList=amc.excludes unsorted=y music=y artwork=y ut_label=Movies ut_title=Louis.CK.Back.to.the.Garden.2023.1080p.WEB-DL.AAC2.0.H264-Phr0stY.mkv ut_kind=multi ut_dir=/home/qbtuser/Downloads/Movies/Louis.CK.Back.to.the.Garden.2023.1080p.WEB-DL.AAC2.0.H264-Phr0stY.mkv
sun.java.launcher = SUN_STANDARD
sun.jnu.encoding = UTF-8
sun.management.compiler = HotSpot 64-Bit Tiered Compilers
sun.net.client.defaultConnectTimeout = 10000
sun.net.client.defaultReadTimeout = 60000
sun.os.patch.level = unknown
swing.crossplatformlaf = javax.swing.plaf.nimbus.NimbusLookAndFeel
unixfs = false
useCreationDate = false
useExtendedFileAttributes = true
useGVFS = true
user.dir = /
user.home = /home/qbtuser
user.language = en
user.name = qbtuser
user.timezone = Etc/UTC
# Arguments
└─ -script
└─ fn:amc
└─ --output
└─ /tmp
└─ --action
└─ duplicate
└─ --conflict
└─ skip
└─ -non-strict
└─ --log-file
└─ amc.log
└─ --def
└─ excludeList=amc.excludes
└─ unsorted=y
└─ music=y
└─ artwork=y
└─ ut_label=Movies
└─ ut_title=Louis.CK.Back.to.the.Garden.2023.1080p.WEB-DL.AAC2.0.H264-Phr0stY.mkv
└─ ut_kind=multi
└─ ut_dir=/home/qbtuser/Downloads/Movies/Louis.CK.Back.to.the.Garden.2023.1080p.WEB-DL.AAC2.0.H264-Phr0stY.mkv
Script Bundle: 2023-03-24 (r894)
Run script [fn:amc] at [Sun Mar 26 18:44:55 UTC 2023]

[PSA] Important Discussion of Proposed Changes:
https://www.filebot.net/forums/viewtopic.php?t=13406

Parameter: excludeList = amc.excludes
Parameter: unsorted = y
Parameter: music = y
Parameter: artwork = y
Parameter: ut_label = Movies
Parameter: ut_title = Louis.CK.Back.to.the.Garden.2023.1080p.WEB-DL.AAC2.0.H264-Phr0stY.mkv
Parameter: ut_kind = multi
Parameter: ut_dir = /home/qbtuser/Downloads/Movies/Louis.CK.Back.to.the.Garden.2023.1080p.WEB-DL.AAC2.0.H264-Phr0stY.mkv
Use excludes: /tmp/amc.excludes
Input: /home/qbtuser/Downloads/Movies/Louis.CK.Back.to.the.Garden.2023.1080p.WEB-DL.AAC2.0.H264-Phr0stY.mkv
Process as Movie [Movies]
Group: {Movie=true} => [Louis.CK.Back.to.the.Garden.2023.1080p.WEB-DL.AAC2.0.H264-Phr0stY.mkv]
Rename movies using [TheMovieDB]
Auto-detect movie from context [/home/qbtuser/Downloads/Movies/Louis.CK.Back.to.the.Garden.2023.1080p.WEB-DL.AAC2.0.H264-Phr0stY.mkv]
Failed to fetch resource: https://api.themoviedb.org/3/search/movie: Undefined Variable: NullPointerException
Undefined Variable: NullPointerException
Processing 1 unsorted files
[DUPLICATE] from [/home/qbtuser/Downloads/Movies/Louis.CK.Back.to.the.Garden.2023.1080p.WEB-DL.AAC2.0.H264-Phr0stY.mkv] to [/tmp/Unsorted/Louis.CK.Back.to.the.Garden.2023.1080p.WEB-DL.AAC2.0.H264-Phr0stY.mkv]
Processed 1 file
Done ヾ(@⌒ー⌒@)ノ
Same command executed from CLI

Code: Select all

filebot -script fn:amc --output "/tmp" --action duplicate --conflict skip -non-strict --log-file amc.log --def unsorted=y music=y artwork=y "ut_label=Movies" "ut_title=Louis.CK.Back.to.the.Garden.2023.1080p.WEB-DL.AAC2.0.H264-Phr0stY.mkv" "ut_kind=multi" "ut_dir=/home/qbtuser/Downloads/Movies/Louis.CK.Back.to.the.Garden.2023.1080p.WEB-DL.AAC2.0.H264-Phr0stY.mkv"

Code: Select all

# Application Bundle
FileBot 5.0.1 (r9665) / Groovy 4.0.9 / OpenJDK Runtime Environment 11.0.18 / Linux 5.15.0-1029-kvm (amd64)
# Local Time
Sun Mar 26 19:44:37 UTC 2023
# Process Tree
└─ /usr/bin/bash
└─ /usr/bin/dash
└─ /usr/lib/jvm/java-11-openjdk-amd64/bin/java
# Environment Variables
DISPLAY = localhost:10.0
HOME = /home/qbtuser
LANG = C.UTF-8
LESSCLOSE = /usr/bin/lesspipe %s %s
LESSOPEN = | /usr/bin/lesspipe %s
LOGNAME = qbtuser
LS_COLORS = rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.webp=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:
MAIL = /var/mail/qbtuser
OLDPWD = /home/stacks
PATH = /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
PWD = /home/qbtuser
SHELL = /bin/bash
SHLVL = 1
SUDO_COMMAND = /usr/bin/su qbtuser
SUDO_GID = 1000
SUDO_UID = 1000
SUDO_USER = ubuntu
TERM = xterm-color
USER = qbtuser
_ = /usr/bin/filebot
# Java System Properties
application.cache = /home/qbtuser/.filebot/cache
application.deployment = deb
application.dir = /home/qbtuser/.filebot
awt.toolkit = sun.awt.X11.XToolkit
awt.useSystemAAFontSettings = on
file.encoding = UTF-8
file.separator = /
grape.root = /home/qbtuser/.filebot/grape
http.agent = FileBot/5.0.1
java.awt.graphicsenv = sun.awt.X11GraphicsEnvironment
java.awt.printerjob = sun.print.PSPrinterJob
java.class.path = /usr/share/filebot/jar/filebot.jar
java.class.version = 55.0
java.home = /usr/lib/jvm/java-11-openjdk-amd64
java.io.tmpdir = /home/qbtuser/.filebot/tmp
java.library.path = /usr/lib/x86_64-linux-gnu/jni
java.net.useSystemProxies = true
java.runtime.name = OpenJDK Runtime Environment
java.runtime.version = 11.0.18+10-post-Ubuntu-0ubuntu122.04
java.specification.name = Java Platform API Specification
java.specification.vendor = Oracle Corporation
java.specification.version = 11
java.vendor = Ubuntu
java.vendor.url = https://ubuntu.com/
java.vendor.url.bug = https://bugs.launchpad.net/ubuntu/+source/openjdk-lts
java.version = 11.0.18
java.version.date = 2023-01-17
java.vm.compressedOopsMode = 32-bit
java.vm.info = mixed mode, sharing
java.vm.name = OpenJDK 64-Bit Server VM
java.vm.specification.name = Java Virtual Machine Specification
java.vm.specification.vendor = Oracle Corporation
java.vm.specification.version = 11
java.vm.vendor = Ubuntu
java.vm.version = 11.0.18+10-post-Ubuntu-0ubuntu122.04
jdk.debug = release
jdk.logger.packages = net.filebot.Log
jdk.module.path = /usr/share/openjfx/lib
jna.boot.library.name = jnidispatch.system
jna.boot.library.path = /usr/lib/x86_64-linux-gnu/jni
jna.library.path = /usr/lib/x86_64-linux-gnu/jni
jna.noclasspath = true
jna.nosys = false
jna.nounpack = true
line.separator = ↲
net.filebot.archive.extractor = ShellExecutables
net.filebot.gio.GVFS = /gvfs
net.filebot.logging.debug = INFO
net.filebot.theme = Darcula
org.apache.commons.logging.Log = org.apache.commons.logging.impl.NoOpLog
os.arch = amd64
os.name = Linux
os.version = 5.15.0-1029-kvm
path.separator = :
prism.order = sw
sun.arch.data.model = 64
sun.boot.library.path = /usr/lib/jvm/java-11-openjdk-amd64/lib
sun.cpu.endian = little
sun.cpu.isalist = 
sun.io.unicode.encoding = UnicodeLittle
sun.java.command = /usr/share/filebot/jar/filebot.jar -script fn:amc --output /tmp --action duplicate --conflict skip -non-strict --log-file amc.log --def unsorted=y music=y artwork=y ut_label=Movies ut_title=Louis.CK.Back.to.the.Garden.2023.1080p.WEB-DL.AAC2.0.H264-Phr0stY.mkv ut_kind=multi ut_dir=/home/qbtuser/Downloads/Movies/Louis.CK.Back.to.the.Garden.2023.1080p.WEB-DL.AAC2.0.H264-Phr0stY.mkv
sun.java.launcher = SUN_STANDARD
sun.jnu.encoding = UTF-8
sun.management.compiler = HotSpot 64-Bit Tiered Compilers
sun.net.client.defaultConnectTimeout = 10000
sun.net.client.defaultReadTimeout = 60000
sun.os.patch.level = unknown
swing.crossplatformlaf = javax.swing.plaf.nimbus.NimbusLookAndFeel
unixfs = false
useCreationDate = false
useExtendedFileAttributes = true
useGVFS = true
user.dir = /home/qbtuser
user.home = /home/qbtuser
user.language = en
user.name = qbtuser
user.timezone = Etc/UTC
# Arguments
└─ -script
└─ fn:amc
└─ --output
└─ /tmp
└─ --action
└─ duplicate
└─ --conflict
└─ skip
└─ -non-strict
└─ --log-file
└─ amc.log
└─ --def
└─ unsorted=y
└─ music=y
└─ artwork=y
└─ ut_label=Movies
└─ ut_title=Louis.CK.Back.to.the.Garden.2023.1080p.WEB-DL.AAC2.0.H264-Phr0stY.mkv
└─ ut_kind=multi
└─ ut_dir=/home/qbtuser/Downloads/Movies/Louis.CK.Back.to.the.Garden.2023.1080p.WEB-DL.AAC2.0.H264-Phr0stY.mkv
Script Bundle: 2023-03-24 (r894)
Run script [fn:amc] at [Sun Mar 26 19:44:40 UTC 2023]

[PSA] Important Discussion of Proposed Changes:
https://www.filebot.net/forums/viewtopic.php?t=13406

Parameter: unsorted = y
Parameter: music = y
Parameter: artwork = y
Parameter: ut_label = Movies
Parameter: ut_title = Louis.CK.Back.to.the.Garden.2023.1080p.WEB-DL.AAC2.0.H264-Phr0stY.mkv
Parameter: ut_kind = multi
Parameter: ut_dir = /home/qbtuser/Downloads/Movies/Louis.CK.Back.to.the.Garden.2023.1080p.WEB-DL.AAC2.0.H264-Phr0stY.mkv
Input: /home/qbtuser/Downloads/Movies/Louis.CK.Back.to.the.Garden.2023.1080p.WEB-DL.AAC2.0.H264-Phr0stY.mkv
Process as Movie [Movies]
Group: {Movie=true} => [Louis.CK.Back.to.the.Garden.2023.1080p.WEB-DL.AAC2.0.H264-Phr0stY.mkv]
Rename movies using [TheMovieDB]
Auto-detect movie from context [/home/qbtuser/Downloads/Movies/Louis.CK.Back.to.the.Garden.2023.1080p.WEB-DL.AAC2.0.H264-Phr0stY.mkv]
[DUPLICATE] from [/home/qbtuser/Downloads/Movies/Louis.CK.Back.to.the.Garden.2023.1080p.WEB-DL.AAC2.0.H264-Phr0stY.mkv] to [/tmp/Movies/Louis C.K. - Back to the Garden (2023)/Louis C.K. - Back to the Garden (2023).mkv]
Processed 1 file
Fetching movie artwork for [Louis C.K.: Back to the Garden (2023)] to [/tmp/Movies/Louis C.K. - Back to the Garden (2023)]
Generate Movie NFO: Louis C.K.: Back to the Garden [1092462]
Fetching /tmp/Movies/Louis C.K. - Back to the Garden (2023)/poster.jpg => [posters/667x1000, 5312.0, https://image.tmdb.org/t/p/original/e6mm7FH37Q3vzP60OpOz6lMjw1C.jpg]
Artwork not found: /tmp/Movies/Louis C.K. - Back to the Garden (2023)/fanart.jpg
Resource not found: https://webservice.fanart.tv/v3/movies/1092462 [404 Not Found]
Fanart not found: /tmp/Movies/Louis C.K. - Back to the Garden (2023)/clearart.png / hdmovieclearart
Fanart not found: /tmp/Movies/Louis C.K. - Back to the Garden (2023)/clearart.png / movieart
Fanart not found: /tmp/Movies/Louis C.K. - Back to the Garden (2023)/logo.png / hdmovielogo
Fanart not found: /tmp/Movies/Louis C.K. - Back to the Garden (2023)/logo.png / movielogo
Fanart not found: /tmp/Movies/Louis C.K. - Back to the Garden (2023)/disc.png / moviedisc
Fanart not found: /tmp/Movies/Louis C.K. - Back to the Garden (2023)/disc.png / moviedisc
Fanart not found: /tmp/Movies/Louis C.K. - Back to the Garden (2023)/disc.png / moviedisc
Done ヾ(@⌒ー⌒@)ノ
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Running filebot with qBittorent fails to fetch resources

Post by rednoah »

Sorry, I have no idea. I see that you've already enabled debug logging but no extra clues there. Getting different results is very mysterious, and shouldn't really be possible since it's the same code... Maybe TMDB is sending back invalid data sometimes?

I'll see if I can add more debug logging.




EDIT:

Let's try the following debug settings and see if that gives us any additional clues:

Code: Select all

filebot -script fn:properties --def net.filebot.logging.debug=ALL net.filebot.web.WebRequest.log.response=true net.filebot.web.WebRequest.v1=true


EDIT 2:

FileBot r9693 now dumps all stack traces to console output when net.filebot.logging.debug=ALL is set:
https://get.filebot.net/filebot/BETA/
:idea: Please read the FAQ and How to Request Help.
2stacks
Posts: 8
Joined: 26 Mar 2023, 19:52

Re: Running filebot with qBittorent fails to fetch resources

Post by 2stacks »

Thanks for the quick reply. I'll try this ASAP and post what I find. I thought I saw mention of some changes in qBittorrent that may limit access to files in /home/qbtuser. I'm not sure if it's relevant but it's my current leading clue.
2stacks
Posts: 8
Joined: 26 Mar 2023, 19:52

Re: Running filebot with qBittorent fails to fetch resources

Post by 2stacks »

I'm not sure what to make of it but with those three settings things work as expected. I validated with a few different downloads. Below is from the same file that failed in the logs above. If I remove those settings things continue to fail.

Code: Select all

# Application Bundle
FileBot 5.0.1 (r9665) / Groovy 4.0.9 / OpenJDK Runtime Environment 11.0.18 / Linux 5.15.0-1029-kvm (amd64)
# Local Time
Tue Mar 28 00:56:30 UTC 2023
# Process Tree
└─ /usr/bin/dash
└─ /usr/lib/jvm/java-11-openjdk-amd64/bin/java
# Environment Variables
HOME = /home/qbtuser
INVOCATION_ID = 41d906ce73264716abbcac7d7ef5ce81
JOURNAL_STREAM = 8:5985
LANG = C.UTF-8
LOGNAME = qbtuser
PATH = /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin
PWD = /
SHELL = /bin/bash
SYSTEMD_EXEC_PID = 412
USER = qbtuser
http_proxy = 
https_proxy = 
sock_proxy = 
# Java System Properties
application.cache = /home/qbtuser/.filebot/cache
application.deployment = deb
application.dir = /home/qbtuser/.filebot
awt.toolkit = sun.awt.X11.XToolkit
awt.useSystemAAFontSettings = on
file.encoding = UTF-8
file.separator = /
grape.root = /home/qbtuser/.filebot/grape
http.agent = FileBot/5.0.1
java.awt.graphicsenv = sun.awt.X11GraphicsEnvironment
java.awt.printerjob = sun.print.PSPrinterJob
java.class.path = /usr/share/filebot/jar/filebot.jar
java.class.version = 55.0
java.home = /usr/lib/jvm/java-11-openjdk-amd64
java.io.tmpdir = /home/qbtuser/.filebot/tmp
java.library.path = /usr/lib/x86_64-linux-gnu/jni
java.net.useSystemProxies = true
java.runtime.name = OpenJDK Runtime Environment
java.runtime.version = 11.0.18+10-post-Ubuntu-0ubuntu122.04
java.specification.name = Java Platform API Specification
java.specification.vendor = Oracle Corporation
java.specification.version = 11
java.vendor = Ubuntu
java.vendor.url = https://ubuntu.com/
java.vendor.url.bug = https://bugs.launchpad.net/ubuntu/+source/openjdk-lts
java.version = 11.0.18
java.version.date = 2023-01-17
java.vm.compressedOopsMode = 32-bit
java.vm.info = mixed mode, sharing
java.vm.name = OpenJDK 64-Bit Server VM
java.vm.specification.name = Java Virtual Machine Specification
java.vm.specification.vendor = Oracle Corporation
java.vm.specification.version = 11
java.vm.vendor = Ubuntu
java.vm.version = 11.0.18+10-post-Ubuntu-0ubuntu122.04
jdk.debug = release
jdk.logger.packages = net.filebot.Log
jdk.module.path = /usr/share/openjfx/lib
jna.boot.library.name = jnidispatch.system
jna.boot.library.path = /usr/lib/x86_64-linux-gnu/jni
jna.library.path = /usr/lib/x86_64-linux-gnu/jni
jna.noclasspath = true
jna.nosys = false
jna.nounpack = true
line.separator = ↲
net.filebot.archive.extractor = ShellExecutables
net.filebot.gio.GVFS = /gvfs
net.filebot.logging.debug = ALL
net.filebot.theme = Darcula
net.filebot.web.WebRequest.log.response = true
net.filebot.web.WebRequest.v1 = true
org.apache.commons.logging.Log = org.apache.commons.logging.impl.NoOpLog
os.arch = amd64
os.name = Linux
os.version = 5.15.0-1029-kvm
path.separator = :
prism.order = sw
sun.arch.data.model = 64
sun.boot.library.path = /usr/lib/jvm/java-11-openjdk-amd64/lib
sun.cpu.endian = little
sun.cpu.isalist = 
sun.io.unicode.encoding = UnicodeLittle
sun.java.command = /usr/share/filebot/jar/filebot.jar -script fn:amc --output /tmp --action duplicate --conflict skip -non-strict --log-file amc.log --def excludeList=amc.excludes unsorted=y music=y artwork=y ut_label=Movies ut_title=Louis.CK.Back.to.the.Garden.2023.1080p.WEB-DL.AAC2.0.H264-Phr0stY.mkv ut_kind=multi ut_dir=/home/qbtuser/Downloads/Movies/Louis.CK.Back.to.the.Garden.2023.1080p.WEB-DL.AAC2.0.H264-Phr0stY.mkv
sun.java.launcher = SUN_STANDARD
sun.jnu.encoding = UTF-8
sun.management.compiler = HotSpot 64-Bit Tiered Compilers
sun.net.client.defaultConnectTimeout = 10000
sun.net.client.defaultReadTimeout = 60000
sun.os.patch.level = unknown
swing.crossplatformlaf = javax.swing.plaf.nimbus.NimbusLookAndFeel
unixfs = false
useCreationDate = false
useExtendedFileAttributes = true
useGVFS = true
user.dir = /
user.home = /home/qbtuser
user.language = en
user.name = qbtuser
user.timezone = Etc/UTC
# Arguments
└─ -script
└─ fn:amc
└─ --output
└─ /tmp
└─ --action
└─ duplicate
└─ --conflict
└─ skip
└─ -non-strict
└─ --log-file
└─ amc.log
└─ --def
└─ excludeList=amc.excludes
└─ unsorted=y
└─ music=y
└─ artwork=y
└─ ut_label=Movies
└─ ut_title=Louis.CK.Back.to.the.Garden.2023.1080p.WEB-DL.AAC2.0.H264-Phr0stY.mkv
└─ ut_kind=multi
└─ ut_dir=/home/qbtuser/Downloads/Movies/Louis.CK.Back.to.the.Garden.2023.1080p.WEB-DL.AAC2.0.H264-Phr0stY.mkv
Using persistent disk cache: /home/qbtuser/.filebot/cache/0
Script Bundle: 2023-03-24 (r894)
Run script [fn:amc] at [Tue Mar 28 00:56:32 UTC 2023]

[PSA] Important Discussion of Proposed Changes:
https://www.filebot.net/forums/viewtopic.php?t=13406

Parameter: excludeList = amc.excludes
Parameter: unsorted = y
Parameter: music = y
Parameter: artwork = y
Parameter: ut_label = Movies
Parameter: ut_title = Louis.CK.Back.to.the.Garden.2023.1080p.WEB-DL.AAC2.0.H264-Phr0stY.mkv
Parameter: ut_kind = multi
Parameter: ut_dir = /home/qbtuser/Downloads/Movies/Louis.CK.Back.to.the.Garden.2023.1080p.WEB-DL.AAC2.0.H264-Phr0stY.mkv
Use excludes: /tmp/amc.excludes
Input: /home/qbtuser/Downloads/Movies/Louis.CK.Back.to.the.Garden.2023.1080p.WEB-DL.AAC2.0.H264-Phr0stY.mkv
Process as Movie [Movies]
Group: {Movie=true} => [Louis.CK.Back.to.the.Garden.2023.1080p.WEB-DL.AAC2.0.H264-Phr0stY.mkv]
Rename movies using [TheMovieDB]
Auto-detect movie from context [/home/qbtuser/Downloads/Movies/Louis.CK.Back.to.the.Garden.2023.1080p.WEB-DL.AAC2.0.H264-Phr0stY.mkv]
Query Movie => [Louis CK Back to the Garden 2023]
Rank [Louis CK Back to the Garden 2023] => [Louis C.K.: Back to the Garden (2023)]
Rank [Louis CK Back to the Garden 2023] => [Louis C.K.: Back to the Garden (2023), Louis C.K.: 2017 (2017)]
[DUPLICATE] from [/home/qbtuser/Downloads/Movies/Louis.CK.Back.to.the.Garden.2023.1080p.WEB-DL.AAC2.0.H264-Phr0stY.mkv] to [/tmp/Movies/Louis C.K. - Back to the Garden (2023)/Louis C.K. - Back to the Garden (2023).mkv]
CLONE: Inappropriate ioctl for device / Invalid cross-device link
Write [xattr:net.filebot.metadata] {"@type":"Movie","year":2023,"imdbId":26598133,"tmdbId":1092462,"language":"en-US","id":1092462,"name":"Louis C.K.: Back to the Garden","aliasNames":[]}
Write [xattr:net.filebot.filename] Louis.CK.Back.to.the.Garden.2023.1080p.WEB-DL.AAC2.0.H264-Phr0stY.mkv
Processed 1 file
Fetching movie artwork for [Louis C.K.: Back to the Garden (2023)] to [/tmp/Movies/Louis C.K. - Back to the Garden (2023)]
Generate Movie NFO: Louis C.K.: Back to the Garden [1092462]
Fetching /tmp/Movies/Louis C.K. - Back to the Garden (2023)/poster.jpg => [posters/667x1000, 5312.0, https://image.tmdb.org/t/p/original/e6mm7FH37Q3vzP60OpOz6lMjw1C.jpg]
[GET https://image.tmdb.org/t/p/original/e6mm7FH37Q3vzP60OpOz6lMjw1C.jpg] => [200 OK]
HTTP/1.1 200 OK
X-Cache: Hit from cloudfront
Alt-Svc: h3=":443"; ma=86400
Server: openresty
X-Amz-Cf-Pop: IAD12-P1
Connection: keep-alive
Last-Modified: Tue, 28 Feb 2023 00:16:49 GMT
Imagery: degrade=75, sample=2x2, difference=1.1
Date: Tue, 28 Feb 2023 05:05:21 GMT
Via: 1.1 a1a074529ccb9ea97acd7d95c506f336.cloudfront.net (CloudFront)
Cache-Tag: e6mm7FH37Q3vzP60OpOz6lMjw1C
Cache-Control: public, max-age=31536000
ETag: "21b4833a6c153e8348afebcd99d27ff1"
X-Amz-Cf-Id: bW802q9mP0eTExEZtGHkm_bJ9bGUMNKVxXTXqQMmPwEl63EgCfYtKg==
Vary: Origin
Content-Length: 35931
Age: 2404304
Content-Type: image/jpeg
Artwork not found: /tmp/Movies/Louis C.K. - Back to the Garden (2023)/fanart.jpg
Fanart not found: /tmp/Movies/Louis C.K. - Back to the Garden (2023)/clearart.png / hdmovieclearart
Fanart not found: /tmp/Movies/Louis C.K. - Back to the Garden (2023)/clearart.png / movieart
Fanart not found: /tmp/Movies/Louis C.K. - Back to the Garden (2023)/logo.png / hdmovielogo
Fanart not found: /tmp/Movies/Louis C.K. - Back to the Garden (2023)/logo.png / movielogo
Fanart not found: /tmp/Movies/Louis C.K. - Back to the Garden (2023)/disc.png / moviedisc
Fanart not found: /tmp/Movies/Louis C.K. - Back to the Garden (2023)/disc.png / moviedisc
Fanart not found: /tmp/Movies/Louis C.K. - Back to the Garden (2023)/disc.png / moviedisc
Done ヾ(@⌒ー⌒@)ノ
I tried different variations of enabling/disabling those settings with inconsistent results. Mostly fails but some half succeeds (Movie renamed but poster failed to download). It almost seems like filebot isn't waiting long enough for a response but enabling all of the extra logging slows down the processing and allows it to succeed. That assessment comes with zero clue as to how filebot works or is coded so take it for what its worth.

Code: Select all

[DUPLICATE] from [/home/qbtuser/Downloads/Movies/Louis.CK.Back.to.the.Garden.2023.1080p.WEB-DL.AAC2.0.H264-Phr0stY.mkv] to [/tmp/Movies/Louis C.K. - Back to the Garden (2023)/Louis C.K. - Back to the Garden (2023).mkv]
Processed 1 file
Fetching movie artwork for [Louis C.K.: Back to the Garden (2023)] to [/tmp/Movies/Louis C.K. - Back to the Garden (2023)]
Generate Movie NFO: Louis C.K.: Back to the Garden [1092462]
Fetching /tmp/Movies/Louis C.K. - Back to the Garden (2023)/poster.jpg => [posters/667x1000, 5312.0, https://image.tmdb.org/t/p/original/e6mm7FH37Q3vzP60OpOz6lMjw1C.jpg]
Undefined Variable: NullPointerException
Last edited by 2stacks on 28 Mar 2023, 01:23, edited 1 time in total.
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Running filebot with qBittorent fails to fetch resources

Post by rednoah »

Can you try again with these settings?

Code: Select all

filebot -script fn:properties --def net.filebot.logging.debug=ALL net.filebot.web.WebRequest.log.response=true net.filebot.web.WebRequest.v1=false

:idea: There are known HTTP/2 issues on JDK11 and net.filebot.web.WebRequest.v1 forces HTTP/1 so this may be one possible explanation. Though the HTTP/2 issues reported in the past showed different error messages.



EDIT:

FileBot r9693 forces net.filebot.web.WebRequest.v1 so it can't be disabled. I'll need to make some changes so that we can properly test the previous issue.
:idea: Please read the FAQ and How to Request Help.
2stacks
Posts: 8
Joined: 26 Mar 2023, 19:52

Re: Running filebot with qBittorent fails to fetch resources

Post by 2stacks »

It looks like that captured the partial failure, file is renamed properly but the poster download triggered the NullPointerException.

Code: Select all

# Application Bundle
FileBot 5.0.1 (r9665) / Groovy 4.0.9 / OpenJDK Runtime Environment 11.0.18 / Linux 5.15.0-1029-kvm (amd64)
# Local Time
Tue Mar 28 01:26:34 UTC 2023
# Process Tree
└─ /usr/bin/dash
└─ /usr/lib/jvm/java-11-openjdk-amd64/bin/java
# Environment Variables
HOME = /home/qbtuser
INVOCATION_ID = 41d906ce73264716abbcac7d7ef5ce81
JOURNAL_STREAM = 8:5985
LANG = C.UTF-8
LOGNAME = qbtuser
PATH = /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin
PWD = /
SHELL = /bin/bash
SYSTEMD_EXEC_PID = 412
USER = qbtuser
http_proxy = 
https_proxy = 
sock_proxy = 
# Java System Properties
application.cache = /home/qbtuser/.filebot/cache
application.deployment = deb
application.dir = /home/qbtuser/.filebot
awt.toolkit = sun.awt.X11.XToolkit
awt.useSystemAAFontSettings = on
file.encoding = UTF-8
file.separator = /
grape.root = /home/qbtuser/.filebot/grape
http.agent = FileBot/5.0.1
java.awt.graphicsenv = sun.awt.X11GraphicsEnvironment
java.awt.printerjob = sun.print.PSPrinterJob
java.class.path = /usr/share/filebot/jar/filebot.jar
java.class.version = 55.0
java.home = /usr/lib/jvm/java-11-openjdk-amd64
java.io.tmpdir = /home/qbtuser/.filebot/tmp
java.library.path = /usr/lib/x86_64-linux-gnu/jni
java.net.useSystemProxies = true
java.runtime.name = OpenJDK Runtime Environment
java.runtime.version = 11.0.18+10-post-Ubuntu-0ubuntu122.04
java.specification.name = Java Platform API Specification
java.specification.vendor = Oracle Corporation
java.specification.version = 11
java.vendor = Ubuntu
java.vendor.url = https://ubuntu.com/
java.vendor.url.bug = https://bugs.launchpad.net/ubuntu/+source/openjdk-lts
java.version = 11.0.18
java.version.date = 2023-01-17
java.vm.compressedOopsMode = 32-bit
java.vm.info = mixed mode, sharing
java.vm.name = OpenJDK 64-Bit Server VM
java.vm.specification.name = Java Virtual Machine Specification
java.vm.specification.vendor = Oracle Corporation
java.vm.specification.version = 11
java.vm.vendor = Ubuntu
java.vm.version = 11.0.18+10-post-Ubuntu-0ubuntu122.04
jdk.debug = release
jdk.logger.packages = net.filebot.Log
jdk.module.path = /usr/share/openjfx/lib
jna.boot.library.name = jnidispatch.system
jna.boot.library.path = /usr/lib/x86_64-linux-gnu/jni
jna.library.path = /usr/lib/x86_64-linux-gnu/jni
jna.noclasspath = true
jna.nosys = false
jna.nounpack = true
line.separator = ↲
net.filebot.archive.extractor = ShellExecutables
net.filebot.gio.GVFS = /gvfs
net.filebot.logging.debug = ALL
net.filebot.theme = Darcula
net.filebot.web.WebRequest.log.response = true
net.filebot.web.WebRequest.v1 = false
org.apache.commons.logging.Log = org.apache.commons.logging.impl.NoOpLog
os.arch = amd64
os.name = Linux
os.version = 5.15.0-1029-kvm
path.separator = :
prism.order = sw
sun.arch.data.model = 64
sun.boot.library.path = /usr/lib/jvm/java-11-openjdk-amd64/lib
sun.cpu.endian = little
sun.cpu.isalist = 
sun.io.unicode.encoding = UnicodeLittle
sun.java.command = /usr/share/filebot/jar/filebot.jar -script fn:amc --output /tmp --action duplicate --conflict skip -non-strict --log-file amc.log --def excludeList=amc.excludes unsorted=y music=y artwork=y ut_label=Movies ut_title=Louis.CK.Back.to.the.Garden.2023.1080p.WEB-DL.AAC2.0.H264-Phr0stY.mkv ut_kind=multi ut_dir=/home/qbtuser/Downloads/Movies/Louis.CK.Back.to.the.Garden.2023.1080p.WEB-DL.AAC2.0.H264-Phr0stY.mkv
sun.java.launcher = SUN_STANDARD
sun.jnu.encoding = UTF-8
sun.management.compiler = HotSpot 64-Bit Tiered Compilers
sun.net.client.defaultConnectTimeout = 10000
sun.net.client.defaultReadTimeout = 60000
sun.os.patch.level = unknown
swing.crossplatformlaf = javax.swing.plaf.nimbus.NimbusLookAndFeel
unixfs = false
useCreationDate = false
useExtendedFileAttributes = true
useGVFS = true
user.dir = /
user.home = /home/qbtuser
user.language = en
user.name = qbtuser
user.timezone = Etc/UTC
# Arguments
└─ -script
└─ fn:amc
└─ --output
└─ /tmp
└─ --action
└─ duplicate
└─ --conflict
└─ skip
└─ -non-strict
└─ --log-file
└─ amc.log
└─ --def
└─ excludeList=amc.excludes
└─ unsorted=y
└─ music=y
└─ artwork=y
└─ ut_label=Movies
└─ ut_title=Louis.CK.Back.to.the.Garden.2023.1080p.WEB-DL.AAC2.0.H264-Phr0stY.mkv
└─ ut_kind=multi
└─ ut_dir=/home/qbtuser/Downloads/Movies/Louis.CK.Back.to.the.Garden.2023.1080p.WEB-DL.AAC2.0.H264-Phr0stY.mkv
Using persistent disk cache: /home/qbtuser/.filebot/cache/0
Script Bundle: 2023-03-24 (r894)
Run script [fn:amc] at [Tue Mar 28 01:26:36 UTC 2023]

[PSA] Important Discussion of Proposed Changes:
https://www.filebot.net/forums/viewtopic.php?t=13406

Parameter: excludeList = amc.excludes
Parameter: unsorted = y
Parameter: music = y
Parameter: artwork = y
Parameter: ut_label = Movies
Parameter: ut_title = Louis.CK.Back.to.the.Garden.2023.1080p.WEB-DL.AAC2.0.H264-Phr0stY.mkv
Parameter: ut_kind = multi
Parameter: ut_dir = /home/qbtuser/Downloads/Movies/Louis.CK.Back.to.the.Garden.2023.1080p.WEB-DL.AAC2.0.H264-Phr0stY.mkv
Use excludes: /tmp/amc.excludes
Input: /home/qbtuser/Downloads/Movies/Louis.CK.Back.to.the.Garden.2023.1080p.WEB-DL.AAC2.0.H264-Phr0stY.mkv
Process as Movie [Movies]
Group: {Movie=true} => [Louis.CK.Back.to.the.Garden.2023.1080p.WEB-DL.AAC2.0.H264-Phr0stY.mkv]
Rename movies using [TheMovieDB]
Auto-detect movie from context [/home/qbtuser/Downloads/Movies/Louis.CK.Back.to.the.Garden.2023.1080p.WEB-DL.AAC2.0.H264-Phr0stY.mkv]
Query Movie => [Louis CK Back to the Garden 2023]
Rank [Louis CK Back to the Garden 2023] => [Louis C.K.: Back to the Garden (2023)]
Rank [Louis CK Back to the Garden 2023] => [Louis C.K.: Back to the Garden (2023), Louis C.K.: 2017 (2017)]
[DUPLICATE] from [/home/qbtuser/Downloads/Movies/Louis.CK.Back.to.the.Garden.2023.1080p.WEB-DL.AAC2.0.H264-Phr0stY.mkv] to [/tmp/Movies/Louis C.K. - Back to the Garden (2023)/Louis C.K. - Back to the Garden (2023).mkv]
CLONE: Inappropriate ioctl for device / Invalid cross-device link
Write [xattr:net.filebot.metadata] {"@type":"Movie","year":2023,"imdbId":26598133,"tmdbId":1092462,"language":"en-US","id":1092462,"name":"Louis C.K.: Back to the Garden","aliasNames":[]}
Write [xattr:net.filebot.filename] Louis.CK.Back.to.the.Garden.2023.1080p.WEB-DL.AAC2.0.H264-Phr0stY.mkv
Processed 1 file
Fetching movie artwork for [Louis C.K.: Back to the Garden (2023)] to [/tmp/Movies/Louis C.K. - Back to the Garden (2023)]
Generate Movie NFO: Louis C.K.: Back to the Garden [1092462]
Fetching /tmp/Movies/Louis C.K. - Back to the Garden (2023)/poster.jpg => [posters/667x1000, 5312.0, https://image.tmdb.org/t/p/original/e6mm7FH37Q3vzP60OpOz6lMjw1C.jpg]
Undefined Variable: NullPointerException
Undefined Variable: NullPointerException
java.lang.NullPointerException
        at net.filebot.web.WebRequest.httpRequestV2(Unknown Source)
        at net.filebot.web.WebRequest.fetch(Unknown Source)
        at net.filebot.web.WebRequest.fetch(Unknown Source)
        at net.filebot.cli.ScriptShellMethods.saveAs(Unknown Source)
        at __script_ef95e1fbbfab83d44df3f90567ac0e7d_2ecb.fetchMovieArtwork(__script_ef95e1fbbfab83d44df3f90567ac0e7d_2ecb:271)
        at __script_ef95e1fbbfab83d44df3f90567ac0e7d_2ecb$_fetchMovieArtworkAndNfo_closure17.doCall(__script_ef95e1fbbfab83d44df3f90567ac0e7d_2ecb:377)
        at __script_ef95e1fbbfab83d44df3f90567ac0e7d_2ecb$_fetchMovieArtworkAndNfo_closure17.doCall(__script_ef95e1fbbfab83d44df3f90567ac0e7d_2ecb)
        at net.filebot.cli.ScriptShellBaseClass.tryLogCatch(Unknown Source)
        at __script_ef95e1fbbfab83d44df3f90567ac0e7d_2ecb.fetchMovieArtworkAndNfo(__script_ef95e1fbbfab83d44df3f90567ac0e7d_2ecb:370)
        at __script_697ee6a71d660ab623ccc028afe32717_5f72$_run_closure68$_closure112$_closure121.doCall(__script_697ee6a71d660ab623ccc028afe32717_5f72:455)
        at __script_697ee6a71d660ab623ccc028afe32717_5f72$_run_closure68$_closure112$_closure121.doCall(__script_697ee6a71d660ab623ccc028afe32717_5f72)
        at net.filebot.cli.ScriptShellBaseClass.tryLogCatch(Unknown Source)
        at __script_697ee6a71d660ab623ccc028afe32717_5f72$_run_closure68$_closure112.doCall(__script_697ee6a71d660ab623ccc028afe32717_5f72:451)
        at __script_697ee6a71d660ab623ccc028afe32717_5f72$_run_closure68.doCall(__script_697ee6a71d660ab623ccc028afe32717_5f72:449)
        at __script_697ee6a71d660ab623ccc028afe32717_5f72.run(__script_697ee6a71d660ab623ccc028afe32717_5f72:406)
        at net.filebot.GroovyEngine.eval(Unknown Source)
        at net.filebot.cli.ScriptShell.evaluate(Unknown Source)
        at net.filebot.cli.ScriptShell.runScript(Unknown Source)
        at net.filebot.cli.ArgumentProcessor.runScript(Unknown Source)
        at net.filebot.cli.ArgumentProcessor.run(Unknown Source)
        at net.filebot.Main.main(Unknown Source)

Done ヾ(@⌒ー⌒@)ノ
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Running filebot with qBittorent fails to fetch resources

Post by rednoah »

This message does indeed narrow it down an HTTP/2 issue somewhere:

Code: Select all

java.lang.NullPointerException
        at net.filebot.web.WebRequest.httpRequestV2(Unknown Source)
I will look into that method.
:idea: Please read the FAQ and How to Request Help.
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Running filebot with qBittorent fails to fetch resources

Post by rednoah »

FileBot r9699 has been uploaded. The newly added debug logging might be helpful and explain the issue. Can you run tests with the latest revision please?
https://get.filebot.net/filebot/BETA/


:idea: Make sure the use the *_universal.deb package. The *_amd64.deb package includes an embedded JDK 17 runtime, so if it's a JDK 11 issue, then we'll want to use your system JDK to get to the bottom of this.


:idea: Make sure to use net.filebot.web.WebRequest.v1=false so that we can test HTTP/2 requests.
:idea: Please read the FAQ and How to Request Help.
2stacks
Posts: 8
Joined: 26 Mar 2023, 19:52

Re: Running filebot with qBittorent fails to fetch resources

Post by 2stacks »

Just got a chance to install the beta and test. Below are the results for the same file I've been testing.

Code: Select all

# Application Bundle
FileBot 5.0.1 (r9706) / Groovy 4.0.9 / OpenJDK Runtime Environment 11.0.18 / Linux 5.15.0-1029-kvm (amd64)
# Local Time
Wed Mar 29 18:09:13 UTC 2023
# Process Tree
└─ /usr/bin/dash
└─ /usr/lib/jvm/java-11-openjdk-amd64/bin/java
# Environment Variables
HOME = /home/qbtuser
INVOCATION_ID = 41d906ce73264716abbcac7d7ef5ce81
JOURNAL_STREAM = 8:5985
LANG = C.UTF-8
LOGNAME = qbtuser
PATH = /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin
PWD = /
SHELL = /bin/bash
SYSTEMD_EXEC_PID = 412
USER = qbtuser
http_proxy = 
https_proxy = 
sock_proxy = 
# Java System Properties
application.cache = /home/qbtuser/.filebot/cache
application.deployment = deb
application.dir = /home/qbtuser/.filebot
awt.toolkit = sun.awt.X11.XToolkit
awt.useSystemAAFontSettings = on
file.encoding = UTF-8
file.separator = /
grape.root = /home/qbtuser/.filebot/grape
http.agent = FileBot/5.0.1
java.awt.graphicsenv = sun.awt.X11GraphicsEnvironment
java.awt.printerjob = sun.print.PSPrinterJob
java.class.path = /usr/share/filebot/jar/filebot.jar
java.class.version = 55.0
java.home = /usr/lib/jvm/java-11-openjdk-amd64
java.io.tmpdir = /home/qbtuser/.filebot/tmp
java.library.path = /usr/lib/x86_64-linux-gnu/jni
java.net.useSystemProxies = true
java.runtime.name = OpenJDK Runtime Environment
java.runtime.version = 11.0.18+10-post-Ubuntu-0ubuntu122.04
java.specification.name = Java Platform API Specification
java.specification.vendor = Oracle Corporation
java.specification.version = 11
java.vendor = Ubuntu
java.vendor.url = https://ubuntu.com/
java.vendor.url.bug = https://bugs.launchpad.net/ubuntu/+source/openjdk-lts
java.version = 11.0.18
java.version.date = 2023-01-17
java.vm.compressedOopsMode = 32-bit
java.vm.info = mixed mode, sharing
java.vm.name = OpenJDK 64-Bit Server VM
java.vm.specification.name = Java Virtual Machine Specification
java.vm.specification.vendor = Oracle Corporation
java.vm.specification.version = 11
java.vm.vendor = Ubuntu
java.vm.version = 11.0.18+10-post-Ubuntu-0ubuntu122.04
jdk.debug = release
jdk.logger.packages = net.filebot.Log
jdk.module.path = /usr/share/openjfx/lib
jna.boot.library.name = jnidispatch.system
jna.boot.library.path = /usr/lib/x86_64-linux-gnu/jni
jna.library.path = /usr/lib/x86_64-linux-gnu/jni
jna.noclasspath = true
jna.nosys = false
jna.nounpack = true
line.separator = ↲
net.filebot.archive.extractor = ShellExecutables
net.filebot.gio.GVFS = /gvfs
net.filebot.logging.debug = ALL
net.filebot.theme = Darcula
net.filebot.web.WebRequest.log.response = true
net.filebot.web.WebRequest.v1 = false
org.apache.commons.logging.Log = org.apache.commons.logging.impl.NoOpLog
os.arch = amd64
os.name = Linux
os.version = 5.15.0-1029-kvm
path.separator = :
prism.order = sw
sun.arch.data.model = 64
sun.boot.library.path = /usr/lib/jvm/java-11-openjdk-amd64/lib
sun.cpu.endian = little
sun.cpu.isalist = 
sun.io.unicode.encoding = UnicodeLittle
sun.java.command = /usr/share/filebot/jar/filebot.jar -script fn:amc --output /tmp --action duplicate --conflict skip -non-strict --log-file amc.log --def excludeList=amc.excludes unsorted=y music=y artwork=y ut_label=Movies ut_title=Louis.CK.Back.to.the.Garden.2023.1080p.WEB-DL.AAC2.0.H264-Phr0stY.mkv ut_kind=multi ut_dir=/home/qbtuser/Downloads/Movies/Louis.CK.Back.to.the.Garden.2023.1080p.WEB-DL.AAC2.0.H264-Phr0stY.mkv
sun.java.launcher = SUN_STANDARD
sun.jnu.encoding = UTF-8
sun.management.compiler = HotSpot 64-Bit Tiered Compilers
sun.net.client.defaultConnectTimeout = 10000
sun.net.client.defaultReadTimeout = 60000
sun.os.patch.level = unknown
swing.crossplatformlaf = javax.swing.plaf.nimbus.NimbusLookAndFeel
unixfs = false
useCreationDate = false
useExtendedFileAttributes = true
useGVFS = true
user.dir = /
user.home = /home/qbtuser
user.language = en
user.name = qbtuser
user.timezone = Etc/UTC
# Arguments
└─ -script
└─ fn:amc
└─ --output
└─ /tmp
└─ --action
└─ duplicate
└─ --conflict
└─ skip
└─ -non-strict
└─ --log-file
└─ amc.log
└─ --def
└─ excludeList=amc.excludes
└─ unsorted=y
└─ music=y
└─ artwork=y
└─ ut_label=Movies
└─ ut_title=Louis.CK.Back.to.the.Garden.2023.1080p.WEB-DL.AAC2.0.H264-Phr0stY.mkv
└─ ut_kind=multi
└─ ut_dir=/home/qbtuser/Downloads/Movies/Louis.CK.Back.to.the.Garden.2023.1080p.WEB-DL.AAC2.0.H264-Phr0stY.mkv
...
Undefined Variable: java.lang.NullPointerException at jdk.internal.net.http.HttpRequestImpl::retrieveProxy in jdk.internal.net.http.HttpRequestImpl::<init> in jdk.internal.net.http.HttpClientImpl::sendAsync
Undefined Variable: java.lang.NullPointerException at jdk.internal.net.http.HttpRequestImpl::retrieveProxy in jdk.internal.net.http.HttpRequestImpl::<init> in jdk.internal.net.http.HttpClientImpl::sendAsync
java.lang.NullPointerException
        at net.filebot.web.WebRequest.httpRequestV2(Unknown Source)
        at net.filebot.web.WebRequest.fetch(Unknown Source)
        at net.filebot.CachedResource.lambda$fetchIfNoneMatch$19(Unknown Source)
        at net.filebot.CachedResource.lambda$get$1(Unknown Source)
        at net.filebot.CachedResource.retry(Unknown Source)
        at net.filebot.CachedResource.lambda$get$2(Unknown Source)
        at net.filebot.Cache.computeIf(Unknown Source)
        at net.filebot.Cache$ConcurrentCache.lambda$computeIf$1(Unknown Source)
        at net.filebot.Cache$ConcurrentCache.withLock(Unknown Source)
        at net.filebot.Cache$ConcurrentCache.computeIf(Unknown Source)
        at net.filebot.CachedResource.get(Unknown Source)
        at net.filebot.web.TMDbCore.request(Unknown Source)
        at net.filebot.web.TMDbMovieClient.fetchSearchResult(Unknown Source)
        at net.filebot.WebServices$TMDbMovieClient.fetchSearchResult(Unknown Source)
        at net.filebot.web.TMDbMovieClient.lambda$searchMovie$0(Unknown Source)
        at net.filebot.Cache.computeIf(Unknown Source)
        at net.filebot.Cache$TypedCache.computeIf(Unknown Source)
        at net.filebot.Cache.computeIfAbsent(Unknown Source)
        at net.filebot.Cache$TypedCache.computeIfAbsent(Unknown Source)
        at net.filebot.web.TMDbMovieClient.searchMovie(Unknown Source)
        at net.filebot.media.MediaDetection.queryMovieByFileName(Unknown Source)
        at net.filebot.media.MediaDetection.detectMovie(Unknown Source)
        at net.filebot.media.MediaDetection.detectMovieWithYear(Unknown Source)
        at net.filebot.cli.CmdlineOperations.renameMovie(Unknown Source)
        at net.filebot.cli.CmdlineOperations.rename(Unknown Source)
        at net.filebot.cli.ScriptShellBaseClass.rename(Unknown Source)
        at __script_697ee6a71d660ab623ccc028afe32717_5f72$_run_closure68.doCall(__script_697ee6a71d660ab623ccc028afe32717_5f72:443)
        at __script_697ee6a71d660ab623ccc028afe32717_5f72.run(__script_697ee6a71d660ab623ccc028afe32717_5f72:406)
        at net.filebot.GroovyEngine.eval(Unknown Source)
        at net.filebot.cli.ScriptShell.evaluate(Unknown Source)
        at net.filebot.cli.ScriptShell.runScript(Unknown Source)
        at net.filebot.cli.ArgumentProcessor.runScript(Unknown Source)
        at net.filebot.cli.ArgumentProcessor.run(Unknown Source)
        at net.filebot.Main.main(Unknown Source)
...
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Running filebot with qBittorent fails to fetch resources

Post by rednoah »

That's interesting. Looks like the internal HTTP/2 API in JDK11 in indeed broken, possibly due to proxy system settings, but that this kind of things intermittently works / not works would be most unusual, my guess it that network requests consistently never work, but if there's cached information already, and so things may appear to work where no network requests are necessary:

Code: Select all

Undefined Variable: java.lang.NullPointerException at jdk.internal.net.http.HttpRequestImpl::retrieveProxy in jdk.internal.net.http.HttpRequestImpl::<init> in jdk.internal.net.http.HttpClientImpl::sendAsync
:!: This might be related:

Code: Select all

http_proxy = 
https_proxy = 
sock_proxy = 
:idea: A different environment, your shell environment vars being different from your qBT environment vars, might explain why it works in one context but not the other.



:?: What happens if you upgrade to JDK 17? Can you reproduce the issue?
:idea: Please read the FAQ and How to Request Help.
2stacks
Posts: 8
Joined: 26 Mar 2023, 19:52

Re: Running filebot with qBittorent fails to fetch resources

Post by 2stacks »

You mentioned *_amd64.deb includes an embedded JDK 17 runtime. Should I run that or upgrade the Ubuntu system JDK? Might take me a little longer to do the latter. I'll also check if there's other environment differences as you suggested.
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Running filebot with qBittorent fails to fetch resources

Post by rednoah »

2stacks wrote: 31 Mar 2023, 02:02 You mentioned *_amd64.deb includes an embedded JDK 17 runtime. Should I run that or upgrade the Ubuntu system JDK? Might take me a little longer to do the latter. I'll also check if there's other environment differences as you suggested.
Yep, good idea! That's probably easier and definitely worth testing!
:idea: Please read the FAQ and How to Request Help.
gustavI0
Posts: 1
Joined: 03 Apr 2023, 09:46

Re: Running filebot with qBittorent fails to fetch resources

Post by gustavI0 »

Hi guys,
I have the same issue on my setup. Tried to install the latest *_amd64.deb beta and it's still not working, but the error changed from NullPointerException to the one below when the script automatically runs from qBittorrent :

Code: Select all

Failed to fetch resource: https://api.filebot.net/9709/data/moviedb.txt.xz: Undefined Variable: Cannot invoke "java.net.Proxy.type()" because "<local4>" is null
Failed to load data file: Undefined Variable: Cannot invoke "java.net.Proxy.type()" because "<local4>" is null
Failed to fetch resource: https://api.themoviedb.org/3/search/movie: Undefined Variable: Cannot invoke "java.net.Proxy.type()" because "<local4>" is null
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Running filebot with qBittorent fails to fetch resources

Post by rednoah »

gustavI0 wrote: 03 Apr 2023, 09:50 Hi guys,
I have the same issue on my setup. Tried to install the latest *_amd64.deb beta and it's still not working, but the error changed from NullPointerException to the one below when the script automatically runs from qBittorrent
:arrow: You can set net.filebot.logging.debug=ALL like the OP has done to have any future filebot call print lots of debug information, including sysinfo output on startup so we can check environment variables:

Code: Select all

filebot -script fn:properties --def net.filebot.logging.debug=ALL
:idea: Please read the FAQ and How to Request Help.
2stacks
Posts: 8
Joined: 26 Mar 2023, 19:52

Re: Running filebot with qBittorent fails to fetch resources

Post by 2stacks »

I've been gearing up for vacation so I haven't had much time to test. I can confirm the results gustavI0 posted.

Code: Select all

# Application Bundle
FileBot 5.0.1 (r9709) / Groovy 4.0.9 / OpenJDK Runtime Environment 17.0.6 / Linux 5.15.0-1029-kvm (amd64)
# Local Time
Tue Apr 04 15:08:35 UTC 2023
# Process Tree
└─ /usr/bin/dash
└─ /usr/share/filebot/jre/bin/java
# Environment Variables
HOME = /home/qbtuser
INVOCATION_ID = 41d906ce73264716abbcac7d7ef5ce81
JOURNAL_STREAM = 8:5985
LANG = C.UTF-8
LOGNAME = qbtuser
PATH = /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin
PWD = /
SHELL = /bin/bash
SYSTEMD_EXEC_PID = 412
USER = qbtuser
http_proxy = 
https_proxy = 
sock_proxy = 
# Java System Properties
application.cache = /home/qbtuser/.filebot/cache
application.deployment = deb
application.dir = /home/qbtuser/.filebot
awt.useSystemAAFontSettings = on
file.encoding = UTF-8
file.separator = /
grape.root = /home/qbtuser/.filebot/grape
http.agent = FileBot/5.0.1
java.class.path = /usr/share/filebot/jar/filebot.jar
java.class.version = 61.0
java.home = /usr/share/filebot/jre
java.io.tmpdir = /home/qbtuser/.filebot/tmp
java.library.path = /usr/share/filebot/lib
java.net.useSystemProxies = true
java.runtime.name = OpenJDK Runtime Environment
java.runtime.version = 17.0.6+10
java.specification.name = Java Platform API Specification
java.specification.vendor = Oracle Corporation
java.specification.version = 17
java.vendor = Eclipse Adoptium
java.vendor.url = https://adoptium.net/
java.vendor.url.bug = https://github.com/adoptium/adoptium-support/issues
java.vendor.version = Temurin-17.0.6+10
java.version = 17.0.6
java.version.date = 2023-01-17
java.vm.compressedOopsMode = 32-bit
java.vm.info = mixed mode, sharing
java.vm.name = OpenJDK 64-Bit Server VM
java.vm.specification.name = Java Virtual Machine Specification
java.vm.specification.vendor = Oracle Corporation
java.vm.specification.version = 17
java.vm.vendor = Eclipse Adoptium
java.vm.version = 17.0.6+10
jdk.debug = release
jdk.logger.packages = net.filebot.Log
jna.boot.library.path = /usr/share/filebot/lib
jna.library.path = /usr/share/filebot/lib
jna.noclasspath = true
jna.nosys = false
jna.nounpack = true
line.separator = ↲
native.encoding = UTF-8
net.filebot.AcoustID.fpcalc = /usr/share/filebot/lib/fpcalc
net.filebot.gio.GVFS = /gvfs
net.filebot.logging.debug = ALL
net.filebot.theme = Darcula
net.filebot.web.WebRequest.log.response = true
net.filebot.web.WebRequest.v1 = false
org.apache.commons.logging.Log = org.apache.commons.logging.impl.NoOpLog
os.arch = amd64
os.name = Linux
os.version = 5.15.0-1029-kvm
path.separator = :
prism.order = sw
sun.arch.data.model = 64
sun.boot.library.path = /usr/share/filebot/jre/lib
sun.cpu.endian = little
sun.io.unicode.encoding = UnicodeLittle
sun.java.command = /usr/share/filebot/jar/filebot.jar -script fn:amc --output /tmp --action duplicate --conflict skip -non-strict --log-file amc.log --def excludeList=amc.excludes unsorted=y music=y artwork=y ut_label=Movies ut_title=Louis.CK.Back.to.the.Garden.2023.1080p.WEB-DL.AAC2.0.H264-Phr0stY.mkv ut_kind=multi ut_dir=/home/qbtuser/Downloads/Movies/Louis.CK.Back.to.the.Garden.2023.1080p.WEB-DL.AAC2.0.H264-Phr0stY.mkv
sun.java.launcher = SUN_STANDARD
sun.jnu.encoding = UTF-8
sun.management.compiler = HotSpot 64-Bit Tiered Compilers
sun.net.client.defaultConnectTimeout = 10000
sun.net.client.defaultReadTimeout = 60000
swing.crossplatformlaf = javax.swing.plaf.nimbus.NimbusLookAndFeel
unixfs = false
useCreationDate = false
useExtendedFileAttributes = true
useGVFS = true
user.dir = /
user.home = /home/qbtuser
user.language = en
user.name = qbtuser
user.timezone = Etc/UTC
# Arguments
└─ -script
└─ fn:amc
└─ --output
└─ /tmp
└─ --action
└─ duplicate
└─ --conflict
└─ skip
└─ -non-strict
└─ --log-file
└─ amc.log
└─ --def
└─ excludeList=amc.excludes
└─ unsorted=y
└─ music=y
└─ artwork=y
└─ ut_label=Movies
└─ ut_title=Louis.CK.Back.to.the.Garden.2023.1080p.WEB-DL.AAC2.0.H264-Phr0stY.mkv
└─ ut_kind=multi
└─ ut_dir=/home/qbtuser/Downloads/Movies/Louis.CK.Back.to.the.Garden.2023.1080p.WEB-DL.AAC2.0.H264-Phr0stY.mkv
Using persistent disk cache: /home/qbtuser/.filebot/cache/0
Initialize new disk cache: /home/qbtuser/.filebot/cache/0
Fetch resource: https://api.filebot.net/9709/script/fn.jar.xz []
Failed to fetch resource: https://api.filebot.net/9709/script/fn.jar.xz: Undefined Variable: Cannot invoke "java.net.Proxy.type()" because "<local4>" is null
Script Bundle: Undefined Variable: Cannot invoke "java.net.Proxy.type()" because "<local4>" is null
Fetch resource: https://api.filebot.net/9709/script/fn.jar.xz []
Failed to fetch resource: https://api.filebot.net/9709/script/fn.jar.xz: Undefined Variable: Cannot invoke "java.net.Proxy.type()" because "<local4>" is null
Undefined Variable: Cannot invoke "java.net.Proxy.type()" because "<local4>" is null
java.lang.NullPointerException: Cannot invoke "java.net.Proxy.type()" because "<local4>" is null
        at net.filebot.web.WebRequest.httpRequestV2(Unknown Source)
        at net.filebot.web.WebRequest.fetch(Unknown Source)
        at net.filebot.CachedResource.lambda$fetchIfModified$14(Unknown Source)
        at net.filebot.CachedResource.lambda$get$1(Unknown Source)
        at net.filebot.CachedResource.retry(Unknown Source)
        at net.filebot.CachedResource.lambda$get$2(Unknown Source)
        at net.filebot.Cache.computeIf(Unknown Source)
        at net.filebot.CachedResource.get(Unknown Source)
        at net.filebot.Resource$Memoized.get(Unknown Source)
        at net.filebot.cli.ScriptBundle.open(Unknown Source)
        at net.filebot.cli.ScriptBundle.getScript(Unknown Source)
        at net.filebot.cli.ScriptShell.runScript(Unknown Source)
        at net.filebot.cli.ArgumentProcessor.runScript(Unknown Source)
        at net.filebot.cli.ArgumentProcessor.run(Unknown Source)
        at net.filebot.Main.main(Unknown Source)

Error (o_O)
I messed around with qBittorent to see if I could remove the null proxy configurations. Even if I manually remove them from the config file they get re-added when the service is restarted. I could set up a proxy as an additional test but it'll be a week before I have time.

Code: Select all

cat .config/qBittorrent/qBittorrent.conf

Code: Select all

[Network]
Cookies=@Invalid()
Proxy\IP=
Proxy\OnlyForTorrents=false
Proxy\Password=
Proxy\Port=@Variant(\0\0\0\x85\0\0)
Proxy\Type=None
Proxy\Username=
https://imgur.com/a/YkAJhYO
Image
Last edited by 2stacks on 04 Apr 2023, 15:44, edited 1 time in total.
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Running filebot with qBittorent fails to fetch resources

Post by rednoah »

OK, so definitely an issue with both JDK11 and JDK17.


:arrow: Another test to help narrow down the issue is to disable java.net.useSystemProxies to see what happens:

Code: Select all

filebot -script fn:properties --def java.net.useSystemProxies=false

:idea: In the meanwhile, I've submitted a bug report ot the JDK:
https://bugs.java.com/bugdatabase/view_ ... id=8305529
:idea: Please read the FAQ and How to Request Help.
2stacks
Posts: 8
Joined: 26 Mar 2023, 19:52

Re: Running filebot with qBittorent fails to fetch resources

Post by 2stacks »

Looks like disabling systemProxies worked.

Code: Select all

# Application Bundle
FileBot 5.0.1 (r9709) / Groovy 4.0.9 / OpenJDK Runtime Environment 17.0.6 / Linux 5.15.0-1029-kvm (amd64)
# Local Time
Tue Apr 04 15:46:15 UTC 2023
# Process Tree
└─ /usr/bin/dash
└─ /usr/share/filebot/jre/bin/java
# Environment Variables
HOME = /home/qbtuser
INVOCATION_ID = 0354b2700afe48cfad3f236cf84bc3b6
JOURNAL_STREAM = 8:6694993
LANG = C.UTF-8
LOGNAME = qbtuser
PATH = /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin
PWD = /
SHELL = /bin/bash
SYSTEMD_EXEC_PID = 25216
USER = qbtuser
http_proxy = 
https_proxy = 
sock_proxy = 
# Java System Properties
application.cache = /home/qbtuser/.filebot/cache
application.deployment = deb
application.dir = /home/qbtuser/.filebot
awt.useSystemAAFontSettings = on
file.encoding = UTF-8
file.separator = /
grape.root = /home/qbtuser/.filebot/grape
http.agent = FileBot/5.0.1
java.class.path = /usr/share/filebot/jar/filebot.jar
java.class.version = 61.0
java.home = /usr/share/filebot/jre
java.io.tmpdir = /home/qbtuser/.filebot/tmp
java.library.path = /usr/share/filebot/lib
java.net.useSystemProxies = false
java.runtime.name = OpenJDK Runtime Environment
java.runtime.version = 17.0.6+10
java.specification.name = Java Platform API Specification
java.specification.vendor = Oracle Corporation
java.specification.version = 17
java.vendor = Eclipse Adoptium
java.vendor.url = https://adoptium.net/
java.vendor.url.bug = https://github.com/adoptium/adoptium-support/issues
java.vendor.version = Temurin-17.0.6+10
java.version = 17.0.6
java.version.date = 2023-01-17
java.vm.compressedOopsMode = 32-bit
java.vm.info = mixed mode, sharing
java.vm.name = OpenJDK 64-Bit Server VM
java.vm.specification.name = Java Virtual Machine Specification
java.vm.specification.vendor = Oracle Corporation
java.vm.specification.version = 17
java.vm.vendor = Eclipse Adoptium
java.vm.version = 17.0.6+10
jdk.debug = release
jdk.logger.packages = net.filebot.Log
jna.boot.library.path = /usr/share/filebot/lib
jna.library.path = /usr/share/filebot/lib
jna.noclasspath = true
jna.nosys = false
jna.nounpack = true
line.separator = ↲
native.encoding = UTF-8
net.filebot.AcoustID.fpcalc = /usr/share/filebot/lib/fpcalc
net.filebot.gio.GVFS = /gvfs
net.filebot.logging.debug = ALL
net.filebot.theme = Darcula
net.filebot.web.WebRequest.log.response = true
net.filebot.web.WebRequest.v1 = false
org.apache.commons.logging.Log = org.apache.commons.logging.impl.NoOpLog
os.arch = amd64
os.name = Linux
os.version = 5.15.0-1029-kvm
path.separator = :
prism.order = sw
sun.arch.data.model = 64
sun.boot.library.path = /usr/share/filebot/jre/lib
sun.cpu.endian = little
sun.io.unicode.encoding = UnicodeLittle
sun.java.command = /usr/share/filebot/jar/filebot.jar -script fn:amc --output /tmp --action duplicate --conflict skip -non-strict --log-file amc.log --def excludeList=amc.excludes unsorted=y music=y artwork=y ut_label=Movies ut_title=Louis.CK.Back.to.the.Garden.2023.1080p.WEB-DL.AAC2.0.H264-Phr0stY.mkv ut_kind=multi ut_dir=/home/qbtuser/Downloads/Movies/Louis.CK.Back.to.the.Garden.2023.1080p.WEB-DL.AAC2.0.H264-Phr0stY.mkv
sun.java.launcher = SUN_STANDARD
sun.jnu.encoding = UTF-8
sun.management.compiler = HotSpot 64-Bit Tiered Compilers
sun.net.client.defaultConnectTimeout = 10000
sun.net.client.defaultReadTimeout = 60000
swing.crossplatformlaf = javax.swing.plaf.nimbus.NimbusLookAndFeel
unixfs = false
useCreationDate = false
useExtendedFileAttributes = true
useGVFS = true
user.dir = /
user.home = /home/qbtuser
user.language = en
user.name = qbtuser
user.timezone = Etc/UTC
# Arguments
└─ -script
└─ fn:amc
└─ --output
└─ /tmp
└─ --action
└─ duplicate
└─ --conflict
└─ skip
└─ -non-strict
└─ --log-file
└─ amc.log
└─ --def
└─ excludeList=amc.excludes
└─ unsorted=y
└─ music=y
└─ artwork=y
└─ ut_label=Movies
└─ ut_title=Louis.CK.Back.to.the.Garden.2023.1080p.WEB-DL.AAC2.0.H264-Phr0stY.mkv
└─ ut_kind=multi
└─ ut_dir=/home/qbtuser/Downloads/Movies/Louis.CK.Back.to.the.Garden.2023.1080p.WEB-DL.AAC2.0.H264-Phr0stY.mkv
Using persistent disk cache: /home/qbtuser/.filebot/cache/0
Script Bundle: 2023-03-28 (r895)
Run script [fn:amc] at [Tue Apr 04 15:46:20 UTC 2023]

[PSA] Important Discussion of Proposed Changes:
https://www.filebot.net/forums/viewtopic.php?t=13406

Parameter: excludeList = amc.excludes
Parameter: unsorted = y
Parameter: music = y
Parameter: artwork = y
Parameter: ut_label = Movies
Parameter: ut_title = Louis.CK.Back.to.the.Garden.2023.1080p.WEB-DL.AAC2.0.H264-Phr0stY.mkv
Parameter: ut_kind = multi
Parameter: ut_dir = /home/qbtuser/Downloads/Movies/Louis.CK.Back.to.the.Garden.2023.1080p.WEB-DL.AAC2.0.H264-Phr0stY.mkv
Use excludes: /tmp/amc.excludes
Input: /home/qbtuser/Downloads/Movies/Louis.CK.Back.to.the.Garden.2023.1080p.WEB-DL.AAC2.0.H264-Phr0stY.mkv
Process as Movie [Movies]
Group: {Movie=true} => [Louis.CK.Back.to.the.Garden.2023.1080p.WEB-DL.AAC2.0.H264-Phr0stY.mkv]
Rename movies using [TheMovieDB]
Auto-detect movie from context [/home/qbtuser/Downloads/Movies/Louis.CK.Back.to.the.Garden.2023.1080p.WEB-DL.AAC2.0.H264-Phr0stY.mkv]
Fetch resource: https://api.filebot.net/9709/data/query-excludes.txt.xz []
[GET https://api.filebot.net/9709/data/query-excludes.txt.xz] => [200 OK]
:status: 200
accept-ranges: bytes
alt-svc: h3=":443"; ma=86400, h3-29=":443"; ma=86400
cache-control: max-age=2678400
cf-cache-status: HIT
cf-ray: 7b2ab02d2c217ffd-IAD
content-length: 4056
content-type: application/x-xz
date: Tue, 04 Apr 2023 15:47:09 GMT
etag: "fd8-5f840862ce8f8"
expires: Mon, 03 Apr 2023 14:22:55 GMT
last-modified: Sat, 01 Apr 2023 06:34:56 GMT
nel: {"success_fraction":0,"report_to":"cf-nel","max_age":604800}
report-to: {"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v3?s=NWxW8RNXeu09PazbdgODrjd7Uh0STmYC%2FjboFhpqA4pvqSzO6zOY1GzCfVTTOyOd9QAfBjEITp1qu%2BkwUac7JsrTtgeQc%2B5ULA%2F%2FFFxlnm1RpPg%2FyA%2FYU4CfhtT0WOjpYWo%3D"}],"group":"cf-nel","max_age":604800}
server: cloudflare
vary: User-Agent, Accept-Encoding
Received 4 KB
[bc8fac9158202be20524732645e7f300]

Fetch resource: https://api.filebot.net/9709/data/moviedb.txt.xz []
[GET https://api.filebot.net/9709/data/moviedb.txt.xz] => [200 OK]
:status: 200
accept-ranges: bytes
alt-svc: h3=":443"; ma=86400, h3-29=":443"; ma=86400
cache-control: max-age=2678400
cf-cache-status: HIT
cf-ray: 7b2ab02e2cfa7ffd-IAD
content-length: 1572632
content-type: application/x-xz
date: Tue, 04 Apr 2023 15:47:09 GMT
etag: "17ff18-5f840862cd958"
expires: Mon, 03 Apr 2023 14:23:02 GMT
last-modified: Sat, 01 Apr 2023 06:34:56 GMT
nel: {"success_fraction":0,"report_to":"cf-nel","max_age":604800}
report-to: {"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v3?s=xQDHzxrrBYsxI3a5YGZRoWKjiaIl85KgmeWiENZY3xQhAqn3UlTSn08UQxmnE5x3F4trgqXwhaiwOCEMfRS%2BZkV11LipCVmcZeJosntRSXLYBUZ6M%2BOy1pTuGw7R1cWYVGA%3D"}],"group":"cf-nel","max_age":604800}
server: cloudflare
vary: User-Agent, Accept-Encoding
Received 1.6 MB
[b458ff8be4fadd2c363d1c52dce61275]

Fetch resource: https://api.filebot.net/9709/data/release-groups.txt.xz []
[GET https://api.filebot.net/9709/data/release-groups.txt.xz] => [200 OK]
:status: 200
accept-ranges: bytes
alt-svc: h3=":443"; ma=86400, h3-29=":443"; ma=86400
cache-control: max-age=2678400
cf-cache-status: HIT
cf-ray: 7b2ab0649c5d7ffd-IAD
content-length: 19156
content-type: application/x-xz
date: Tue, 04 Apr 2023 15:47:17 GMT
etag: "4ad4-5f81a2ef2425d"
expires: Mon, 03 Apr 2023 14:52:06 GMT
last-modified: Thu, 30 Mar 2023 08:50:24 GMT
nel: {"success_fraction":0,"report_to":"cf-nel","max_age":604800}
report-to: {"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v3?s=5El72De%2ByjAzSu65XSoMbnvNesjHPrXEtfQ9Mrqq1QwiTsQvkToZ7JNbU6BwjEd24YXAxCpx%2FzC14Qhw6YgEzMe3xsdSbGgYHtdp7VmoA8qCUk70uGnWmANZg2f6sCltEJo%3D"}],"group":"cf-nel","max_age":604800}
server: cloudflare
vary: User-Agent, Accept-Encoding
Received 19 KB
[84447e9686d6cf533251ccb5122597ba]

Fetch resource: https://api.filebot.net/9709/data/media-sources.txt.xz []
[GET https://api.filebot.net/9709/data/media-sources.txt.xz] => [200 OK]
:status: 200
accept-ranges: bytes
alt-svc: h3=":443"; ma=86400, h3-29=":443"; ma=86400
cache-control: max-age=2678400
cf-cache-status: HIT
cf-ray: 7b2ab065ed957ffd-IAD
content-length: 604
content-type: application/x-xz
date: Tue, 04 Apr 2023 15:47:18 GMT
etag: "25c-5f03df9ef8e22"
expires: Mon, 03 Apr 2023 14:52:06 GMT
last-modified: Tue, 20 Dec 2022 08:11:00 GMT
nel: {"success_fraction":0,"report_to":"cf-nel","max_age":604800}
report-to: {"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v3?s=T%2BmXw6XDxAd4MSjhijhYlsRd9FK01t6lgP%2Bi53kYtQimvMe2Oi273AQHzeYGf1UseLdoIL7hdsKrvhDC5NtPaN%2FGkpTyBLAit8K2i726zU16tROMAj3PyylG%2FaQmnY2Iyd8%3D"}],"group":"cf-nel","max_age":604800}
server: cloudflare
vary: User-Agent, Accept-Encoding
Received 604 bytes
data:application/octet-stream;base64,_Td6WFoAAATm1rRGAgAhARYAAAB0L-Wj4ANtAhtdACEbCqUq910sq7d5jTgqJub3M7TGRzR8Q2EvAoLMEZhrCZtsSGB6RpoHOoZZdC4ny9L1Ce8rqYz7oxtsf-cQd0LeQMha10cRYqIbLbYcA0WBy-O6ZTKGIQ3IH_FQMJ0aqkAANQmUOtV03ZvZDiv4y67XEE8ulJGwSBTnqwPr21CdkpSDcoaZImz4lBze5NL2M7DTRY6x_blizmr8blUyyZemkADNr5agyEXQcp4_0ABrkGZ5wvgm4ew8l6GGPbTlisZZauSTMCeOypeIplZKJ--KDUTJlW5Ggjs9r1gleqZ35y_uWPPOG4ld6GasI0r6byNzGxQj0KXs74nhi_D6a4nzwQb4Z5sdsGO8kdNMWU73og8MZEal-UnC2L7TG6ztAbJUtPq1zrMosrAMJGTFVRypL8LlHm_Apc1tP_eMi0TKQsGq8ENuYd-tpag-zwf48riYX4BJUwtUaQsV0V1tDFXDs9FcP5boIECKclpC5UIljNvzs-RIhDW6qe17tkbC19H9qz5QM06k5wF2yaC7HCgUnwVmPQ-e4eKS9PLSx0hqpqxfqeDD3OWnDSXJt0l6zDxycLxKy7UCq8D8w7o4Sx6OphqtIXRBpPYjAoeIlUZM5g00mO2DNoGY3k6RAuBcg8YhLgDkr_7STYxFkk9qrW2pCfYdN_rr_NuDQ-HXcKNy35AS7hAiN3ABmtZGnQ22UbzABgB1hhVev1McAABeqyq--a2nHwABtwTuBgAAaRs3A7HEZ_sCAAAAAARZWg==

Query Movie => [Louis CK Back to the Garden 2023]
Fetch resource: https://api.themoviedb.org/3/search/movie?query=Louis+CK+Back+to+the+Garden&year=2023&language=en-US&api_key=1bb965af6888496c30d52a27e831f9c9 []
[GET https://api.themoviedb.org/3/search/movie?query=Louis+CK+Back+to+the+Garden&year=2023&language=en-US&api_key=1bb965af6888496c30d52a27e831f9c9] => [200 OK]
:status: 200
alt-svc: h3=":443"; ma=86400
cache-control: public, max-age=28756
content-encoding: gzip
content-type: application/json;charset=utf-8
date: Tue, 04 Apr 2023 15:47:18 GMT
etag: W/"039d7cef86e182d90be2a3f8809f2c2e"
server: openresty
vary: Accept-Encoding
vary: Origin
via: 1.1 dd8234c537f24852341189e294a7180a.cloudfront.net (CloudFront)
x-amz-cf-id: i1EUYv3OTkydrFsOBl5Os_BJBhf9ahmdAeiJcVbVt7H74L66Z7dWqA==
x-amz-cf-pop: IAD55-P1
x-cache: Miss from cloudfront
x-memc: HIT
x-memc-age: 12072
x-memc-expires: 13519
x-memc-key: 025b2e21d1747e731522c10f3dd81dd8
Store ETag: W/"039d7cef86e182d90be2a3f8809f2c2e"
Received 484 bytes
{"page":1,"results":[{"adult":false,"backdrop_path":null,"genre_ids":[35],"id":1092462,"original_language":"en","original_title":"Louis C.K.: Back to the Garden","overview":"Louis C.K. recorded live on January 28, 2023 at Madison Square Garden in New York City.","popularity":3.685,"poster_path":"/e6mm7FH37Q3vzP60OpOz6lMjw1C.jpg","release_date":"2023-01-28","title":"Louis C.K.: Back to the Garden","video":false,"vote_average":0.0,"vote_count":0}],"total_pages":1,"total_results":1}

Rank [Louis CK Back to the Garden 2023] => [Louis C.K.: Back to the Garden (2023)]
Rank [Louis CK Back to the Garden 2023] => [Louis C.K.: Back to the Garden (2023), Louis C.K.: 2017 (2017)]
Fetch resource: https://api.themoviedb.org/3/movie/1092462?language=en-US&api_key=1bb965af6888496c30d52a27e831f9c9 []
[GET https://api.themoviedb.org/3/movie/1092462?language=en-US&api_key=1bb965af6888496c30d52a27e831f9c9] => [200 OK]
:status: 200
alt-svc: h3=":443"; ma=86400
cache-control: public, max-age=24608
content-encoding: gzip
content-type: application/json;charset=utf-8
date: Tue, 04 Apr 2023 15:47:19 GMT
etag: W/"608c8704761b7102f71cc02cd90effce"
server: openresty
vary: Accept-Encoding
vary: Origin
via: 1.1 dd8234c537f24852341189e294a7180a.cloudfront.net (CloudFront)
x-amz-cf-id: my9J9w_vxjcMk6jLGYfZKXcPKm6VqdR3cj8fF4mSR8RD6NWBZQTNIA==
x-amz-cf-pop: IAD55-P1
x-cache: Miss from cloudfront
x-memc: HIT
x-memc-age: 19842
x-memc-expires: 2943
x-memc-key: 572cc774db52a9928f5dea85a3cc5e53
Store ETag: W/"608c8704761b7102f71cc02cd90effce"
Received 655 bytes
{"adult":false,"backdrop_path":null,"belongs_to_collection":null,"budget":0,"genres":[{"id":35,"name":"Comedy"}],"homepage":"","id":1092462,"imdb_id":"tt26598133","original_language":"en","original_title":"Louis C.K.: Back to the Garden","overview":"Louis C.K. recorded live on January 28, 2023 at Madison Square Garden in New York City.","popularity":3.685,"poster_path":"/e6mm7FH37Q3vzP60OpOz6lMjw1C.jpg","production_companies":[],"production_countries":[],"release_date":"2023-01-28","revenue":0,"runtime":0,"spoken_languages":[],"status":"Released","tagline":"","title":"Louis C.K.: Back to the Garden","video":false,"vote_average":0.0,"vote_count":0}

Fetch resource: https://license.filebot.net/verify/P48298627 []
Activate License [P48298627] on [Tue Apr 04 15:46:39 UTC 2023]
[POST https://license.filebot.net/verify/P48298627] => [200 OK]
:status: 200
alt-svc: h3=":443"; ma=86400, h3-29=":443"; ma=86400
cache-control: max-age=172800
cf-cache-status: DYNAMIC
cf-railgun: direct (waiting for pending WAN connection)
cf-ray: 7b2ab0720dfd81b2-IAD
content-length: 33
content-type: application/json
date: Tue, 04 Apr 2023 15:47:20 GMT
expires: Thu, 06 Apr 2023 15:47:20 GMT
nel: {"success_fraction":0,"report_to":"cf-nel","max_age":604800}
report-to: {"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v3?s=VdgmS%2FPECULRM9NFB2%2F3l8CAa5%2FNgiZZ7PoUysUmb5AtFhV82KPkTZwNZLvMGo%2BepwF7Rf2icb7mdgFxDOuEaSdnmi%2FHhhtXgEywqy1lG0ARdcuZ8wxEwAo7%2Fq%2FRD3rlGqxuHjx5"}],"group":"cf-nel","max_age":604800}
server: cloudflare
vary: User-Agent
Received 33 bytes
{"status": 200, "message": "OK"}


[DUPLICATE] from [/home/qbtuser/Downloads/Movies/Louis.CK.Back.to.the.Garden.2023.1080p.WEB-DL.AAC2.0.H264-Phr0stY.mkv] to [/tmp/Movies/Louis C.K. - Back to the Garden (2023)/Louis C.K. - Back to the Garden (2023).mkv]
CLONE: Inappropriate ioctl for device / Invalid cross-device link
Write [xattr:net.filebot.metadata] {"@type":"Movie","year":2023,"imdbId":26598133,"tmdbId":1092462,"language":"en-US","id":1092462,"name":"Louis C.K.: Back to the Garden","aliasNames":[]}
Write [xattr:net.filebot.filename] Louis.CK.Back.to.the.Garden.2023.1080p.WEB-DL.AAC2.0.H264-Phr0stY.mkv
Processed 1 file
Fetching movie artwork for [Louis C.K.: Back to the Garden (2023)] to [/tmp/Movies/Louis C.K. - Back to the Garden (2023)]
Fetch resource: https://api.themoviedb.org/3/movie/1092462?append_to_response=translations%2Calternative_titles%2Crelease_dates%2Ckeywords%2Ccredits&language=en-US&api_key=1bb965af6888496c30d52a27e831f9c9 []
[GET https://api.themoviedb.org/3/movie/1092462?append_to_response=translations%2Calternative_titles%2Crelease_dates%2Ckeywords%2Ccredits&language=en-US&api_key=1bb965af6888496c30d52a27e831f9c9] => [200 OK]
:status: 200
alt-svc: h3=":443"; ma=86400
cache-control: public, max-age=23490
content-encoding: gzip
content-type: application/json;charset=utf-8
date: Tue, 04 Apr 2023 15:47:20 GMT
etag: W/"b7f194d764be1cd8df51806c224db852"
server: openresty
vary: Accept-Encoding
vary: Origin
via: 1.1 dd8234c537f24852341189e294a7180a.cloudfront.net (CloudFront)
x-amz-cf-id: YcdgyAIh3wLdcju6UgAFtRHHXOv5ejYoyukON5z8Zcnf2suWeyQ34g==
x-amz-cf-pop: IAD55-P1
x-cache: Miss from cloudfront
Store ETag: W/"b7f194d764be1cd8df51806c224db852"
Received 1 KB
{"adult":false,"backdrop_path":null,"belongs_to_collection":null,"budget":0,"genres":[{"id":35,"name":"Comedy"}],"homepage":"","id":1092462,"imdb_id":"tt26598133","original_language":"en","original_title":"Louis C.K.: Back to the Garden","overview":"Louis C.K. recorded live on January 28, 2023 at Madison Square Garden in New York City.","popularity":3.685,"poster_path":"/e6mm7FH37Q3vzP60OpOz6lMjw1C.jpg","production_companies":[],"production_countries":[],"release_date":"2023-01-28","revenue":0,"runtime":0,"spoken_languages":[],"status":"Released","tagline":"","title":"Louis C.K.: Back to the Garden","video":false,"vote_average":0.0,"vote_count":0,"translations":{"translations":[{"iso_3166_1":"US","iso_639_1":"en","name":"English","english_name":"English","data":{"homepage":"","overview":"Louis C.K. recorded live on January 28, 2023 at Madison Square Garden in New York City.","runtime":0,"tagline":"","title":""}},{"iso_3166_1":"FR","iso_639_1":"fr","name":"Français","english_name":"French","data":{"homepage":"","overview":"Louis C.K. enregistré en direct le 28 janvier 2023 au Madison Square Garden à New York.","runtime":0,"tagline":"","title":""}}]},"alternative_titles":{"titles":[]},"release_dates":{"results":[{"iso_3166_1":"US","release_dates":[{"certification":"","descriptors":[],"iso_639_1":"en","note":"","release_date":"2023-01-28T00:00:00.000Z","type":4}]}]},"keywords":{"keywords":[{"id":9716,"name":"stand-up comedy"}]},"credits":{"cast":[{"adult":false,"gender":2,"id":52849,"known_for_department":"Acting","name":"Louis C.K.","original_name":"Louis C.K.","popularity":10.905,"profile_path":"/faKr66V0EzJVMXwr0kIlSr9vfp7.jpg","cast_id":1,"character":"","credit_id":"63fd47017a4ee700a23d7baa","order":0}],"crew":[]}}

Fetch resource: https://api.themoviedb.org/3/configuration?api_key=1bb965af6888496c30d52a27e831f9c9 []
[GET https://api.themoviedb.org/3/configuration?api_key=1bb965af6888496c30d52a27e831f9c9] => [200 OK]
:status: 200
age: 16125
alt-svc: h3=":443"; ma=86400
cache-control: public, max-age=43200
content-encoding: gzip
content-type: application/json;charset=utf-8
date: Tue, 04 Apr 2023 15:00:26 GMT
etag: W/"8ee6fd095d2be6e301251d766501a916"
server: openresty
vary: Accept-Encoding
vary: Origin
via: 1.1 dd8234c537f24852341189e294a7180a.cloudfront.net (CloudFront)
x-amz-cf-id: jGgqIZ8dwYogmn0UMGxNwEiw6P-eEOl35DctgZHTia0FmhAMEmxt0A==
x-amz-cf-pop: IAD55-P1
x-cache: Hit from cloudfront
Store ETag: W/"8ee6fd095d2be6e301251d766501a916"
Received 1 KB
{"images":{"base_url":"http://image.tmdb.org/t/p/","secure_base_url":"https://image.tmdb.org/t/p/","backdrop_sizes":["w300","w780","w1280","original"],"logo_sizes":["w45","w92","w154","w185","w300","w500","original"],"poster_sizes":["w92","w154","w185","w342","w500","w780","original"],"profile_sizes":["w45","w185","h632","original"],"still_sizes":["w92","w185","w300","original"]},"change_keys":["adult","air_date","also_known_as","alternative_titles","biography","birthday","budget","cast","certifications","character_names","created_by","crew","deathday","episode","episode_number","episode_run_time","freebase_id","freebase_mid","general","genres","guest_stars","homepage","images","imdb_id","languages","name","network","origin_country","original_name","original_title","overview","parts","place_of_birth","plot_keywords","production_code","production_companies","production_countries","releases","revenue","runtime","season","season_number","season_regular","spoken_languages","status","tagline","title","translations","tvdb_id","tvrage_id","type","video","videos"]}

Generate Movie NFO: Louis C.K.: Back to the Garden [1092462]
Fetch resource: https://api.themoviedb.org/3/movie/1092462/images?api_key=1bb965af6888496c30d52a27e831f9c9 []
[GET https://api.themoviedb.org/3/movie/1092462/images?api_key=1bb965af6888496c30d52a27e831f9c9] => [200 OK]
:status: 200
alt-svc: h3=":443"; ma=86400
cache-control: public, max-age=25668
content-encoding: gzip
content-type: application/json;charset=utf-8
date: Tue, 04 Apr 2023 15:47:21 GMT
etag: W/"e5695a70bf1e81ad950c333bb6e59106"
server: openresty
vary: Accept-Encoding
vary: Origin
via: 1.1 dd8234c537f24852341189e294a7180a.cloudfront.net (CloudFront)
x-amz-cf-id: tHAASdtLe9mgWHpVGAXKaHYgm1QvoZDHms_hgf65Td3NfbTRdqbEQA==
x-amz-cf-pop: IAD55-P1
x-cache: Miss from cloudfront
x-memc: HIT
x-memc-age: 14562
x-memc-expires: 12029
x-memc-key: cc6b1192d34d8e4dccb506456b602e4b
Store ETag: W/"e5695a70bf1e81ad950c333bb6e59106"
Received 348 bytes
{"backdrops":[],"id":1092462,"logos":[],"posters":[{"aspect_ratio":0.667,"height":1000,"iso_639_1":null,"file_path":"/e6mm7FH37Q3vzP60OpOz6lMjw1C.jpg","vote_average":5.312,"vote_count":1,"width":667},{"aspect_ratio":0.667,"height":1000,"iso_639_1":null,"file_path":"/93Uri4m2inX6p65axQfsFPHuHST.jpg","vote_average":0.0,"vote_count":0,"width":667}]}

Fetching /tmp/Movies/Louis C.K. - Back to the Garden (2023)/poster.jpg => [posters/667x1000, 5312.0, https://image.tmdb.org/t/p/original/e6mm7FH37Q3vzP60OpOz6lMjw1C.jpg]
[GET https://image.tmdb.org/t/p/original/e6mm7FH37Q3vzP60OpOz6lMjw1C.jpg] => [200 OK]
:status: 200
accept-ranges: bytes
cache-control: public, max-age=31919000
cdn-cache: HIT
cdn-cachedat: 02/28/2023 10:35:10
cdn-edgestorageid: 940
cdn-fileserver: 427
cdn-proxyver: 1.03
cdn-pullzone: 775336
cdn-requestcountrycode: US
cdn-requestid: 0f36227bdd3616b3211e191af2476cea
cdn-requestpullcode: 200
cdn-requestpullsuccess: True
cdn-status: 200
cdn-storageserver: NY-267
cdn-uid: 29af4e0e-bcbd-4fcb-8635-74ddc38a1ebf
content-length: 35931
content-type: image/jpeg
date: Tue, 04 Apr 2023 15:47:21 GMT
etag: "63fd60a3-8c5b"
last-modified: Tue, 28 Feb 2023 02:02:11 GMT
perma-cache: HIT
server: BunnyCDN-IL1-894
Artwork not found: /tmp/Movies/Louis C.K. - Back to the Garden (2023)/fanart.jpg
Fetch resource: https://webservice.fanart.tv/v3/movies/1092462?api_key=780b986b22c35e6f7a134a2f392c2deb []
[GET https://webservice.fanart.tv/v3/movies/1092462?api_key=780b986b22c35e6f7a134a2f392c2deb] => [404 Not Found]
:status: 404
access-control-allow-origin: *
content-encoding: gzip
content-type: application/json; charset=utf-8
date: Tue, 04 Apr 2023 15:47:21 GMT
server: nginx
vary: Accept-Encoding
Resource not found: https://webservice.fanart.tv/v3/movies/1092462?api_key=780b986b22c35e6f7a134a2f392c2deb [404 Not Found]
Received 0 bytes


Fanart not found: /tmp/Movies/Louis C.K. - Back to the Garden (2023)/clearart.png / hdmovieclearart
Fanart not found: /tmp/Movies/Louis C.K. - Back to the Garden (2023)/clearart.png / movieart
Fanart not found: /tmp/Movies/Louis C.K. - Back to the Garden (2023)/logo.png / hdmovielogo
Fanart not found: /tmp/Movies/Louis C.K. - Back to the Garden (2023)/logo.png / movielogo
Fanart not found: /tmp/Movies/Louis C.K. - Back to the Garden (2023)/disc.png / moviedisc
Fanart not found: /tmp/Movies/Louis C.K. - Back to the Garden (2023)/disc.png / moviedisc
Fanart not found: /tmp/Movies/Louis C.K. - Back to the Garden (2023)/disc.png / moviedisc
Done ヾ(@⌒ー⌒@)ノ
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Running filebot with qBittorent fails to fetch resources

Post by rednoah »

Thanks, that narrows down the issue significantly. That should give the JDK team enough information to find and fix the underlying issue.


In the meanwhile, there's the following workarounds:


(A) Configure the JDK to not use the system proxy settings:

Code: Select all

filebot -script fn:properties --def java.net.useSystemProxies=false

(B) Use valid proxy settings, by either setting valid environment variables, or not setting the environment variables at all:

Code: Select all

unset http_proxy
unset https_proxy
unset sock_proxy



:idea: If qBT is setting empty http_proxy / https_proxy / sock_proxy environment variables, then this may be a qBT bug as well.
:idea: Please read the FAQ and How to Request Help.
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Running filebot with qBittorent fails to fetch resources

Post by rednoah »

FileBot r9717 and higher now use java.net.useSystemProxies=false by default on Linux.
:idea: Please read the FAQ and How to Request Help.
pothos
Posts: 2
Joined: 08 Apr 2023, 15:05

Re: Running filebot with qBittorent fails to fetch resources

Post by pothos »

I'm getting a similar error. Running manually from command line works as expected, but qbittorrent is receiving the following error when running the same script as an external program.

Code: Select all

Failed to fetch resource: https://api.filebot.net/9665/script/fn.jar.xz: Undefined Variable: Cannot invoke "java.net.Proxy.type()" because "p" is null
Undefined Variable: Cannot invoke "java.net.Proxy.type()" because "p" is null
java.lang.NullPointerException: Cannot invoke "java.net.Proxy.type()" because "p" is null
	at net.filebot.web.WebRequest.httpRequestV2(Unknown Source)
	at net.filebot.web.WebRequest.fetch(Unknown Source)
	at net.filebot.CachedResource.lambda$fetchIfModified$14(Unknown Source)
	at net.filebot.CachedResource.lambda$get$1(Unknown Source)
	at net.filebot.CachedResource.retry(Unknown Source)
	at net.filebot.CachedResource.lambda$get$2(Unknown Source)
	at net.filebot.Cache.computeIf(Unknown Source)
	at net.filebot.CachedResource.get(Unknown Source)
	at net.filebot.Resource$Memoized.get(Unknown Source)
	at net.filebot.cli.ScriptBundle.open(Unknown Source)
	at net.filebot.cli.ScriptBundle.getScript(Unknown Source)
	at net.filebot.cli.ScriptShell.runScript(Unknown Source)
	at net.filebot.cli.ArgumentProcessor.runScript(Unknown Source)
	at net.filebot.cli.ArgumentProcessor.run(Unknown Source)
	at net.filebot.Main.main(Unknown Source)

Error (o_O)
Setting java.net.useSystemProxies=false did not work. I also ran the unset http_proxy commands.

EDIT: removed log data since it wasn't relevant to the issue.
Last edited by pothos on 08 Apr 2023, 19:27, edited 1 time in total.
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Running filebot with qBittorent fails to fetch resources

Post by rednoah »

:?: Did you run filebot -script fn:properties --def java.net.useSystemProxies=false as the user that qBT is running as? Because different users have different configuration files, so creating a configuration file for your user has no effect if qBT is running filebot as a different user.
:idea: Please read the FAQ and How to Request Help.
pothos
Posts: 2
Joined: 08 Apr 2023, 15:05

Re: Running filebot with qBittorent fails to fetch resources

Post by pothos »

rednoah wrote: 08 Apr 2023, 16:44 :?: Did you run filebot -script fn:properties --def java.net.useSystemProxies=false as the user that qBT is running as? Because different users have different configuration files, so creating a configuration file for your user has no effect if qBT is running filebot as a different user.
duh. This worked. Thank you!
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Running filebot with qBittorent fails to fetch resources

Post by rednoah »

No worries. It's a common Linux complication. :lol:
:idea: Please read the FAQ and How to Request Help.
Post Reply