Docker Package Error Registering License

Support for Synology NAS, QNAP NAS and other Embedded Linux systems
Post Reply
flyingbox
Posts: 2
Joined: 22 Feb 2020, 21:09

Docker Package Error Registering License

Post by flyingbox »

I've installed the docker package and works so far but when I try to install the license I get the following error:

Code: Select all

sudo docker run --rm -it -v $PWD:/volume1 -v data:/data rednoah/filebot --license /tmp/FileBot_License.psm
Error during startup

Code: Select all

net.filebot.cli.CmdlineException: Invalid License File: /tmp/FileBot_License_P11152494.psm
        at net.filebot.cli.ArgumentBean.getLicenseKey(ArgumentBean.java:367)
        at net.filebot.Main.main(Main.java:125)
Caused by: java.nio.file.NoSuchFileException: /tmp/FileBot_License_P11152494.psm
        at net.filebot.util.FileUtilities.readFile(FileUtilities.java:202)
        at net.filebot.util.FileUtilities.readTextFile(FileUtilities.java:213)
        at net.filebot.cli.ArgumentBean.getLicenseKey(ArgumentBean.java:365)
        ... 1 more
When I run the sysinfo:

sudo docker run --rm -it -v $PWD:/volume1 -v data:/data rednoah/filebot -script fn:sysinfo

FileBot 4.8.5 (r6224)
JNA Native: 5.2.0
MediaInfo: 17.12
p7zip: p7zip Version 16.02 (locale=C.UTF-8,Utf16=on,HugeFiles=on,64 bits,2 CPUs Intel(R) Xeon(R) CPU E3-1230 V2 @ 3.30GHz (306A9),ASM,AES-NI)
unrar: UNRAR 5.50 freeware
Chromaprint: fpcalc version 1.4.3
Extended Attributes: OK
Unicode Filesystem: OK
Script Bundle: 2019-05-15 (r565)
Groovy: 2.5.6
JRE: OpenJDK Runtime Environment 11.0.5
JVM: 64-bit OpenJDK 64-Bit Server VM
CPU/MEM: 2 Core / 502 MB Max Memory / 19 MB Used Memory
OS: Linux (amd64)
HW: Linux cdf0539df482 3.10.105 #24922 SMP Wed Jul 3 16:35:54 CST 2019 x86_64 x86_64 x86_64 GNU/Linux
DATA: /data/.filebot
Package: DOCKER
License: UNREGISTERED
Done ヾ(@⌒ー⌒@)ノ


I don't understand what's wrong.
User avatar
rednoah
The Source
Posts: 22994
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Docker Package Error Registering License

Post by rednoah »

Is /tmp/FileBot_License_P11152494.psm a valid path within the docker container?

Code: Select all

Caused by: java.nio.file.NoSuchFileException: /tmp/FileBot_License_P11152494.psm

:idea: You need to -v map the folder that contains your license file into the container, so you can then read it from within the container.


:arrow: Please read the docker manual for details on how docker works and how files work in the context of docker: https://docs.docker.com/storage/bind-mounts/
:idea: Please read the FAQ and How to Request Help.
flyingbox
Posts: 2
Joined: 22 Feb 2020, 21:09

Re: Docker Package Error Registering License

Post by flyingbox »

Thank you, you pointed me in the right direction:

$PWD is the current working directory. That's where the *.psm license file is expected. That is mapped as /volume1 inside the container, and then accessed accordingly.

I learned something today :-)
User avatar
rednoah
The Source
Posts: 22994
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Docker Package Error Registering License

Post by rednoah »

flyingbox wrote: 22 Feb 2020, 22:11 I learned something today :-)
You got it! :ugeek:
:idea: Please read the FAQ and How to Request Help.
Post Reply