filebot / filebot-docker

Docker build files for FileBot
https://hub.docker.com/r/rednoah/filebot/
Apache License 2.0
61 stars 19 forks source link

javax.net.ssl.SSLException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty #11

Closed adrienbuffet closed 3 years ago

adrienbuffet commented 3 years ago

Hi ! I'm currently trying to integrate filebot in my plex setup.

My other containers has access to internet, doesn't seems to be the problem.

I'm using this docker-compose.yml file :

cat docker-compose.yml
# docker-compose.yml
version: '3.3'
services:
  filebot-node:
    container_name: filebot-node
    image: rednoah/filebot:node
    restart: unless-stopped
    volumes:
      - /etc/ssl:/etc/ssl:ro
      - ${HOME}/filebot:/data
      - /home/filebot/licencekey:/licence:ro
      - /storagepool/:/files
    ports:
      - 5452:5452
      - 5453:5453
    environment:
      - FILEBOT_NODE_AUTH=BASIC
      - FILEBOT_NODE_AUTH_USER=adrien****
      - FILEBOT_NODE_AUTH_PASS=********

On the interface, when I try to execute the script I get this error :

filebot -script 'fn:amc' /downloads-movies --output /movies --action move -non-strict --order Airdate --conflict auto --lang en --def 'ut_label=Movie' 'music=y' 'unsorted=y' 'artwork=y' 'skipExtract=y' 'excludeList=.excludes' --apply refresh --log all --log-file '/data/.filebot-node/filebot.log'

------------------------------------------

Fetch failed: Try again in 2 seconds (2 more) => javax.net.ssl.SSLException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
Fetch failed: Try again in 8 seconds (1 more) => javax.net.ssl.SSLException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
Failed to fetch resource: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
javax.net.ssl.SSLException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
    at net.filebot.web.WebRequest.notModified(Unknown Source)
    at net.filebot.web.WebRequest.checkErrorCode(Unknown Source)
    at net.filebot.web.WebRequest.fetch(Unknown Source)
    at net.filebot.CachedResource.lambda$fetchIfModified$10(Unknown Source)
    at net.filebot.CachedResource.lambda$get$1(Unknown Source)
    at net.filebot.CachedResource.retry(Unknown Source)
    at net.filebot.CachedResource.retry(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)
Caused by: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
    ... 18 more
Caused by: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
    ... 18 more

Error (o_O)

Any ideas ?

Thansk for the help :)

adrienbuffet commented 3 years ago

Also, I tried to pull the xpra version.

root@pandaria:/storagepool/docker/filebot# docker-compose up
Pulling filebot-node (rednoah/filebot:xpra)...
xpra: Pulling from rednoah/filebot
16ec32c2132b: Already exists
ef2c07374e0e: Already exists
8155a7b3607c: Already exists
7cb6f8b890a2: Already exists
0e9b3fca26da: Pull complete
24ccbd3e09df: Pull complete
Digest: sha256:4dc3c3169fb8ecc1388ef16d3dcf8dccb4af463fa192ced5080078ae05518f03
Status: Downloaded newer image for rednoah/filebot:xpra
Recreating filebot-xrpa ... done
Attaching to filebot-xrpa
filebot-xrpa    | + xpra start --start-child=filebot --exit-with-children --bind-tcp=0.0.0.0:5454,auth=none --daemon=no
filebot-xrpa    |
filebot-xrpa    | Warning: running as root
filebot-xrpa    | 2021-10-07 11:08:44,999 created tcp socket '0.0.0.0:5454'
filebot-xrpa    | failure on /tmp/.X11-unix/X7: [Errno 2] No such file or directory: '/tmp/.X11-unix/X7'
filebot-xrpa    | 2021-10-07 11:08:45,000 cannot access python uinput module:
filebot-xrpa    | 2021-10-07 11:08:45,000  No module named 'uinput'
filebot-xrpa    | 2021-10-07 11:08:46,152 pointer device emulation using XTest
filebot-xrpa    | 2021-10-07 11:08:46,189 serving html content from '/usr/share/xpra/www'
filebot-xrpa    | 2021-10-07 11:08:46,198 created unix domain socket '/run/user/0/xpra/49cd844d8d71-0'
filebot-xrpa    | 2021-10-07 11:08:46,198 created unix domain socket '/run/xpra/49cd844d8d71-0'
filebot-xrpa    | 2021-10-07 11:08:46,198 created unix domain socket '/root/.xpra/49cd844d8d71-0'
filebot-xrpa    |
filebot-xrpa    | (Xpra:7): Gtk-CRITICAL **: 11:08:46.233: gtk_widget_realize: assertion 'widget->priv->anchored || GTK_IS_INVISIBLE (widge                                                                                       t)' failed
filebot-xrpa    | 2021-10-07 11:08:46,309 xpra is ready.
filebot-xrpa    | 2021-10-07 11:08:46,309 xpra X11 seamless version 4.2.2-r0 64-bit
filebot-xrpa    | 2021-10-07 11:08:46,334 watching for applications menu changes in:
filebot-xrpa    | 2021-10-07 11:08:46,334  '/usr/share/applications'
filebot-xrpa    | 2021-10-07 11:08:46,338 started command 'filebot' with pid 82
filebot-xrpa    | 2021-10-07 11:08:46,368  uid=0 (root), gid=0 (root)
filebot-xrpa    | 2021-10-07 11:08:46,368  running with pid 7 on Linux Ubuntu 20.04 focal
filebot-xrpa    | 2021-10-07 11:08:46,370  connected to X11 display :0 with 24 bit colors
filebot-xrpa    | 2021-10-07 11:08:46,574 15.5GB of system memory
filebot-xrpa    | 2021-10-07 11:08:47,019 loaded 34 start menu entries from 5 sub-menus in 0.7 seconds
filebot-xrpa    | Failed to fetch resource: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter                                                                                        must be non-empty
filebot-xrpa    | Failed to check for updates: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors paramet                                                                                       er must be non-empty
filebot-xrpa    | javax.net.ssl.SSLException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors paramete                                                                                       r must be non-empty
filebot-xrpa    |       at net.filebot.web.WebRequest.notModified(Unknown Source)
filebot-xrpa    |       at net.filebot.web.WebRequest.checkErrorCode(Unknown Source)
filebot-xrpa    |       at net.filebot.web.WebRequest.fetch(Unknown Source)
filebot-xrpa    |       at net.filebot.CachedResource.lambda$fetchIfModified$10(Unknown Source)
filebot-xrpa    |       at net.filebot.CachedResource.lambda$get$1(Unknown Source)
filebot-xrpa    |       at net.filebot.CachedResource.retry(Unknown Source)
filebot-xrpa    |       at net.filebot.CachedResource.lambda$get$2(Unknown Source)
filebot-xrpa    |       at net.filebot.Cache.computeIf(Unknown Source)
filebot-xrpa    |       at net.filebot.CachedResource.get(Unknown Source)
filebot-xrpa    |       at net.filebot.Main.checkUpdate(Unknown Source)
filebot-xrpa    |       at net.filebot.Main.onStart(Unknown Source)
filebot-xrpa    |       at net.filebot.Main.lambda$main$2(Unknown Source)
filebot-xrpa    |       at net.filebot.util.ui.SwingUI$SwingRunnable.doInBackground(Unknown Source)
filebot-xrpa    |       at net.filebot.util.ui.SwingUI$SwingRunnable.doInBackground(Unknown Source)
filebot-xrpa    | Caused by: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAncho                                                                                       rs parameter must be non-empty
filebot-xrpa    |       ... 14 more
filebot-xrpa    | Caused by: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
filebot-xrpa    |       ... 14 more
filebot-xrpa    |
rednoah commented 3 years ago

SSL indicates a network issue of some kind. These things are tricky. You can Google the error message, but there's a good chance that different people get the same error message for different reasons. But you should at least be able to find debug advice.

I'd start by changing my network. Enable / Disable VPN. Use mobile hotspot instead of landline and vice versa. See if that makes a difference.

I did run a test, and things worked out of the box:

$ docker run --rm -it -v $PWD:/volume1 -v data:/data rednoah/filebot -list --q Firefly
Initialize new disk cache: /data/.filebot/cache/0
Firefly - 1x01 - The Train Job
Firefly - 1x02 - Bushwhacked
Firefly - 1x03 - Our Mrs. Reynolds
...