Page 1 of 1

Filebot license registered (as root) but script not working (when running as debian-deluged)

Posted: 22 Dec 2024, 08:37
by bookedirl
Here is output of sysinfo after installing and rebooting

Code: Select all

root@DietPi:/mnt/scripts# filebot -script fn:sysinfo
Low Disk Space (3.9 GB) on / (/dev/sda1)
FileBot 5.1.6 (r10435)
JNA Native: 6.1.6
MediaInfo: 23.04
Tools: fpcalc/1.5.1 7z/16.02 unrar/6.21
Extended Attributes: OK
Unicode Filesystem: OK
Script Bundle: 2024-10-16 (r986)
Groovy: 4.0.21
JRE: OpenJDK Runtime Environment 21.0.3
JVM: OpenJDK 64-Bit Server VM
System Property: jna.nosys=false
CPU/MEM: 4 Core / 515 MB Max Memory / 29 MB Used Memory
OS: Linux (amd64)
HW: Linux DietPi 6.1.0-28-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.119-1 (2024-11-22) x86_64 GNU/Linux
CPU/MEM: : Common KVM processor / MemTotal: 2.1 GB / MemFree: 330 MB / MemAvailable: 1.5 GB
STORAGE: ext4 [/] @ 3.9 GB | autofs [/mnt/nfs_client] @ 17 TB | nfs4 [/mnt/nfs_client] @ 17 TB
UID/GID: uid=0(root) gid=0(root) groups=0(root)
DATA: /root/.filebot
Package: DEB
License: FileBot License PX8460046 (Valid-Until: 2069-06-29)
Done ヾ(@⌒ー⌒@)ノ
Here is the output of the log file after running the script...

Code: Select all

Low Disk Space (3.9 GB) on / (/dev/sda1)
Run script [fn:amc] at [Sun Dec 22 03:08:53 EST 2024]
Parameter: gmail = *****
Parameter: music = y
Parameter: clean = y
Parameter: movieFormat = Movies/{any{collection}{n+' ('+y+')'}}/{n} {'('+y+')'}{' CD'+pi}
Parameter: ut_dir = /mnt/dietpi_userdata/downloads/Kraven.The.Hunter.2024.1080p.WEBRip.1400MB.DD5.1.x264-GalaxyRG[TGx]
Parameter: ut_kind = multi
Parameter: ut_title = Kraven.The.Hunter.2024.1080p.WEBRip.1400MB.DD5.1.x264-GalaxyRG[TGx]
Input: /mnt/dietpi_userdata/downloads/Kraven.The.Hunter.2024.1080p.WEBRip.1400MB.DD5.1.x264-GalaxyRG[TGx]/Kraven.The.Hunter.2024.1080p.WEBRip.1400MB.DD5.1.x264-GalaxyRG.mkv
Group files by movie or series
Group: {Movie=Kraven the Hunter (2024), Series=null} => [Kraven.The.Hunter.2024.1080p.WEBRip.1400MB.DD5.1.x264-GalaxyRG.mkv]
Rename movies using [TheMovieDB]
Auto-detect movie from context [/mnt/dietpi_userdata/downloads/Kraven.The.Hunter.2024.1080p.WEBRip.1400MB.DD5.1.x264-GalaxyRG[TGx]/Kraven.The.Hunter.2024.1080p.WEBRip.1400MB.DD5.1.x264->
Whoopsies! --action MOVE requires a valid license.
* Consider using --action TEST
License Error: UNREGISTERED
 ________________________________________________
/ Please purchase a FileBot License:             \
\ https://www.filebot.net/purchase.html#deb      /
 ------------------------------------------------
      \                             .       .
       \                           / `.   .' "
        \                  .---.  <    > <    >  .---.
         \                 |    \  \ - ~ ~ - /  /    |
               _____          ..-~             ~-..-~
              |     |   \~~~\.'                    `./~~~/
             ---------   \__/                        \__/
            .'  O    \     /               /       \  "
           (_____,    `._.'               |         }  \/~~~/
            `----.          /       }     |        /    \__/
                  `-.      |       /      |       /      `. ,~~|
                      ~-.__|      /_ - ~ ^|      /- _      `..-'
                           |     /        |     /     ~-.     `-. _  _  _
                           |_____|        |_____|         ~ - . _ _ _ _ _>
FileBot requires a valid license. Please run `filebot --license *.psm` to install your FileBot license.
* FileBot is running as [debian-deluged] using [/mnt/dietpi_userdata/deluge/.filebot/license.txt]
* Use `sudo -H -u debian-deluged filebot --license *.psm` to run FileBot as a different user
Bad License (>_<)
any ideas?

Re: Filebot license registered but script not working

Posted: 22 Dec 2024, 08:52
by rednoah
:idea: You are running filebot --license as root user:

Code: Select all

UID/GID: uid=0(root) gid=0(root) groups=0(root)
DATA: /root/.filebot


:idea: But your are then actually running filebot as debian-deluged user which uses a different $HOME folder:

Code: Select all

* FileBot is running as [debian-deluged] using [/mnt/dietpi_userdata/deluge/.filebot/license.txt]
* Use `sudo -H -u debian-deluged filebot --license *.psm` to run FileBot as a different user


:arrow: Use sudo to run filebot --license as debian-deluged user to install your license as the correct user in the correct $HOME folder:

Shell: Select all

sudo -H -u debian-deluged filebot --license *.psm


:arrow: Alternatively, login as debian-deluged user and then run filebot --license as that user:

Shell: Select all

filebot --license *.psm

Re: Filebot license registered (as root) but script not working (when running as debian-deluged)

Posted: 22 Dec 2024, 16:27
by bookedirl
thank you sir. That was my problem. I guess after all these years I still have problems remembering users. Appreciate it :)

Re: Filebot license registered (as root) but script not working (when running as debian-deluged)

Posted: 23 Dec 2024, 07:58
by rednoah
bookedirl wrote: 22 Dec 2024, 16:27 I guess after all these years I still have problems remembering users.
With great power comes great complexity. :ugeek: I'd add more helpful log messages for this rather common user error, but I wouldn't know what to write at this point. :lol: Sometimes we just need to experience the issue to be able to understand the issue. :ugeek: