My license keeps getting band, need help figuring out why

Support for Ubuntu and other Desktop Linux distributions
Post Reply
aaseef021
Posts: 53
Joined: 08 Nov 2017, 04:08

My license keeps getting band, need help figuring out why

Post by aaseef021 »

My license keeps getting band, not sure why.

Every thing from 1 to 7 looks good, only thing is number 5, maybe that is my issue. Just need to confirm from you experts.

Code: Select all

udev             10M  4.0K   10M   1% /dev
/dev/md0        4.0G  3.2G  552M  86% /
tmpfs           7.8G   20K  7.8G   1% /dev/shm
tmpfs           7.8G  3.7M  7.8G   1% /run
tmpfs           3.9G  2.0M  3.9G   1% /run/lock
tmpfs           7.8G     0  7.8G   0% /sys/fs/cgroup
/dev/md127      9.1T  2.4T  6.8T  26% /data
/dev/md127      9.1T  2.4T  6.8T  26% /home
/dev/md127      9.1T  2.4T  6.8T  26% /apps
Using Debian 8 ReadyNas516

My setup

Cronjob

Code: Select all

*/5 * * * * /data/Documents/extract_filebot.sh >>/var/log/filebot_extract_cron.$
*/17 * * * * /data/Documents/filebot_script.sh >>/var/log/filebot_cron.log 2>&1
My script is as followed

Code: Select all

filebot -script fn:amc --output "/data/Videos" --action copy --conflict override -non-strict --log-file amc.log --def clean=y artwork=y excludeList=amc.txt "/data/Torrents/Completed"
This is all I see in the filebot_amc.log file

tail filebot_amc.log

Code: Select all

FileBot requires a valid license. Please run `sudo -H -u root filebot --license *.psm` to install your FileBot license.
Bad License (>_<)
User avatar
rednoah
The Source
Posts: 22991
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: My license keeps getting band, need help figuring out why

Post by rednoah »

1.
This error message means that no license is installed:

Code: Select all

FileBot requires a valid license. Please run `sudo -H -u root filebot --license *.psm` to install your FileBot license.
:!: Has nobody ever told you to never ever run anything as root? FileBot is probably not an application that requires root privileges. :lol:


If you install your license, but then get this message after a few days, and then install your license again, and repeat the cycle a few hundred times, then your license will eventually get banned. That would indicate that your FileBot application data folder is randomly lost or deleted.


If your license is installed and banned, then you will get this error message:

Code: Select all

License Error: Banned due to abuse


2.
Where does FileBot store it's application data files? Does this directory get deleted routinely?

Code: Select all

filebot -script fn:sysinfo

3.
After reading (6.) and (7.) how many Activate License events did you count in the persistent log file you have been keeping for the last few weeks?
viewtopic.php?t=9594



EDIT:

I note various inconsistencies in your report:
* You have 2 cron jobs, but you only show us one filebot call
* Your filebot call specifies a log file named amc.log yet you check filebot_amc.log
* Your cron job is also writing logs to filebot_cron.log but that's different as well
* Your other extract_filebot.sh cron job that you didn't show is doesn't redirect error output, and has weird a $ symbol at the end which seems odd for a script file extension
:idea: Please read the FAQ and How to Request Help.
aaseef021
Posts: 53
Joined: 08 Nov 2017, 04:08

Re: My license keeps getting band, need help figuring out why

Post by aaseef021 »

Hi

So when I try to install my license file I get the following

Code: Select all

root@Plex:/data/Documents# filebot --license FileBot_License_P9982009.psm 
Activate License P9982009
License Error: Banned due to abuse. Please read https://www.filebot.net/error/429.html for details.
2. No I do not have anything setup to delete this directory at all filebot -script fn:sysinfo, I do get this when I run the command

Code: Select all

FileBot 4.8.5 (r6224)
JNA Native: 5.2.2
MediaInfo: 18.12
7-Zip-JBinding: 9.20
Chromaprint: java.io.IOException: Cannot run program "fpcalc": error=2, No such file or directory
Extended Attributes: OK
Unicode Filesystem: OK
Script Bundle: 2019-05-15 (r565)
Groovy: 2.5.6
JRE: Java(TM) SE Runtime Environment 1.8.0_231
JVM: 64-bit Java HotSpot(TM) 64-Bit Server VM
CPU/MEM: 8 Core / 3 GB Max Memory / 21 MB Used Memory
OS: Linux (amd64)
HW: Linux Plex 4.4.190.x86_64.1 #1 SMP Mon Oct 28 01:55:46 UTC 2019 x86_64 GNU/Linux
DATA: /root/filebot-portable/data/root
Package: TAR
License: Banned due to abuse. Please read https://www.filebot.net/error/429.html for details.

------------------- UPDATE AVAILABLE: FileBot 4.9.1 (r7372) --------------------

Done ヾ(@⌒ー⌒@)ノ
3. How do I attached the logs so you can view them, I did not see anything in the log that indicated that license is being activated each time
User avatar
rednoah
The Source
Posts: 22991
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: My license keeps getting band, need help figuring out why

Post by rednoah »

2.
Here's another reason not to run everything as root, because you want your user home to be on your 9 TB hard drive, and not on your 4 GB internal storage:

Code: Select all

/dev/md0        4.0G  3.2G  552M  86% /

Code: Select all

DATA: /root/...
:idea: Newer versions of FileBot will check if you're running low on disk space, and error out on startup in cases like this.


3.
How do you usually share files? Use that. Whatever is convenient for you. ;)

Personally, I'd share text via Pastebin or Gist:
https://pastebin.com/
:idea: Please read the FAQ and How to Request Help.
aaseef021
Posts: 53
Joined: 08 Nov 2017, 04:08

Re: My license keeps getting band, need help figuring out why

Post by aaseef021 »

Hi

So I updated filebot to 4.9.1 and updated my filebot user from root, anyway you can unban my license so I can test again and confirm that this never happens again please.

Also changed my filebot installation from Filesystem
Size Used Avail Use% Mounted on

Code: Select all

udev             10M  4.0K   10M   1% /dev
/dev/md0        4.0G  2.9G  854M  78% /
to my /data/filebot


FileBot 4.9.1 (r7372) / Java(TM) SE Runtime Environment 11.0.7 / Linux 4.4.190.x86_64.1 (amd64)

Code: Select all

*/5 * * * * su filebot -c /data/Documents/extract_filebot.sh >>/data/filebot/log/filebot_extract_cron.log 2>&1  
*/17 * * * * su filebot -c /data/Documents/filebot_script.sh >>/data/filebot/log/filebot_cron.log 2>&1
User avatar
rednoah
The Source
Posts: 22991
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: My license keeps getting band, need help figuring out why

Post by rednoah »

You can try now. Your license should work again now. Make sure to keep an eye on the logs as explained in (7.) so you can count license activations yourself and verify that things are indeed now working correctly.
:idea: Please read the FAQ and How to Request Help.
aaseef021
Posts: 53
Joined: 08 Nov 2017, 04:08

Re: My license keeps getting band, need help figuring out why

Post by aaseef021 »

Hi Thank you the license works, questions. I feel like the issue may occur again but I want to avoid it.

When I run filebot -script fn:sysinfo, it looks like it caches the filebot license in/ (/dev/md0), anyway I can change the cache location some other place where there is storage? If so how can I accomplish this.

I already changed my filebot user and location of installation to another location where I have space

I see the following

Code: Select all

Low Disk Space (882 MB) on / (/dev/md0)
Low Disk Space (882 MB) on / (/dev/md0)
FileBot 4.9.1 (r7372)
JNA Native: java.lang.UnsatisfiedLinkError: Native library (com/sun/jna/linux-x86-64/libjnidispatch.so) not found in resource path (/usr/share/filebot/jar/filebot.jar)
MediaInfo: net.filebot.mediainfo.MediaInfoException: Unable to load amd64 (64-bit) native library libmediainfo.so: Could not initialize class com.sun.jna.Native
p7zip: p7zip Version 9.20 (locale=en_US.UTF-8,Utf16=on,HugeFiles=on,8 CPUs)
unrar: UNRAR 5.30 beta 2 freeware
May 15, 2020 11:18:42 AM java.util.prefs.FileSystemPreferences$1 run
INFO: Created user preferences directory.
Chromaprint: 1.2.0
Extended Attributes: OK
Unicode Filesystem: OK
Script Bundle: 2020-04-20 (r634)
Groovy: 3.0.3
JRE: Java(TM) SE Runtime Environment 11.0.7
JVM: 64-bit Java HotSpot(TM) 64-Bit Server VM
CPU/MEM: 8 Core / 4.2 GB Max Memory / 40 MB Used Memory
OS: Linux (amd64)
HW: Linux Plex 4.4.190.x86_64.1 #1 SMP Mon Oct 28 01:55:46 UTC 2019 x86_64 GNU/Linux
STORAGE: btrfs [/] @ 882 MB | btrfs [/data] @ 7 TB | btrfs [/home] @ 7 TB | btrfs [/apps] @ 7 TB | ufsd [/media/USB_HDD_2] @ 2.5 TB | ufsd [/run/nfs4/media/USB_HDD_2] @ 2.5 TB | btrfs [/run/nfs4/home] @ 7 TB
DATA: /root/.filebot
Package: DEB
License: FileBot License P9982009 (Valid-Until: 2020-11-03)
Done ヾ(@⌒ー⌒@)ノ
aaseef021
Posts: 53
Joined: 08 Nov 2017, 04:08

Re: My license keeps getting band, need help figuring out why

Post by aaseef021 »

Hi

Nevermind, i figured it out now, i actuhave it running under filebot user.

Thank you for your help. You may mark this as resolved.
aaseef021
Posts: 53
Joined: 08 Nov 2017, 04:08

Re: My license keeps getting band, need help figuring out why

Post by aaseef021 »

Sorry I should have included this, this is resolved. thank you for your help, just incase someone has the same issue. I changed my cache location to DATA: /data/filebot/.filebot.

With the help of Rednose and suggestions, do not use root, create a user and the location of your cache where there is enough space. If there is not enough space Filebot will crash and cause license errors.

Code: Select all

FileBot 4.9.1 (r7372)
JNA Native: java.lang.UnsatisfiedLinkError: Native library (com/sun/jna/linux-x86-64/libjnidispatch.so) not found in resource path (/usr/share/filebot/jar/filebot.jar)
MediaInfo: net.filebot.mediainfo.MediaInfoException: Unable to load amd64 (64-bit) native library libmediainfo.so: Could not initialize class com.sun.jna.Native
p7zip: p7zip Version 9.20 (locale=en_US.UTF-8,Utf16=on,HugeFiles=on,8 CPUs)
unrar: UNRAR 5.30 beta 2 freeware
Chromaprint: 1.2.0
Extended Attributes: OK
Unicode Filesystem: OK
Script Bundle: 2020-04-20 (r634)
Groovy: 3.0.3
JRE: Java(TM) SE Runtime Environment 11.0.7
JVM: 64-bit Java HotSpot(TM) 64-Bit Server VM
CPU/MEM: 8 Core / 4.2 GB Max Memory / 52 MB Used Memory
OS: Linux (amd64)
HW: Linux Plex 4.4.190.x86_64.1 #1 SMP Mon Oct 28 01:55:46 UTC 2019 x86_64 GNU/Linux
STORAGE: btrfs [/] @ 877 MB | btrfs [/data] @ 7 TB | btrfs [/home] @ 7 TB | btrfs [/apps] @ 7 TB | ufsd [/media/USB_HDD_2] @ 2.5 TB | ufsd [/run/nfs4/media/USB_HDD_2] @ 2.5 TB | btrfs [/run/nfs4/home] @ 7 TB
DATA: /data/filebot/.filebot
Package: DEB
License: FileBot License P9982009 (Valid-Until: 2020-11-03)
Done ヾ(@⌒ー⌒@)ノ
Post Reply