License Error: UNREGISTERED when calling filebot from a service running as local system

Support for Windows users
Post Reply
burrissj15
Posts: 3
Joined: 04 Mar 2019, 22:21

License Error: UNREGISTERED when calling filebot from a service running as local system

Post by burrissj15 »

Good Day,

I am currently running filebot 4.9.6 on a server 2016 server. I have a PowerShell script that I have converted into an EXE and set to run as a service in windows so it is running all the time. The Script looks for new files in a directory and then kicks off a filebot script. The issue I am having is when it is running as a service I am getting the following error:

Code: Select all

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#msi      /
 ------------------------------------------------ 
      \                             .       .
       \                           / `.   .' " 
        \                  .---.  <    > <    >  .---.
         \                 |    \  \ - ~ ~ - /  /    |
               _____          ..-~             ~-..-~
              |     |   \~~~\.'                    `./~~~/
             ---------   \__/                        \__/
            .'  O    \     /               /       \  " 
           (_____,    `._.'               |         }  \/~~~/
            `----.          /       }     |        /    \__/
                  `-.      |       /      |       /      `. ,~~|
                      ~-.__|      /_ - ~ ^|      /- _      `..-'   
                           |     /        |     /     ~-.     `-. _  _  _
                           |_____|        |_____|         ~ - . _ _ _ _ _>
FileBot requires a valid license. Please run `filebot --license *.psm` to install your FileBot license.
Bad License (>_<)
When I run sysinfo it shows that the filebot version is licensed:

Code: Select all

FileBot 4.9.6 (r9125)
JNA Native: 6.1.2
MediaInfo: 21.09
7-Zip-JBinding: 16.02
Tools: fpcalc/1.5.0
Extended Attributes: OK
Unicode Filesystem: OK
Script Bundle: 2022-03-30 (r811)
Groovy: 3.0.9
JRE: OpenJDK Runtime Environment 17.0.2
JVM: OpenJDK 64-Bit Server VM
CPU/MEM: 8 Core / 1.1 GB Max Memory / 22 MB Used Memory
OS: Windows Server 2016 (amd64)
STORAGE: NTFS [(C:)] @ 58 GB | NTFS [DATA] @ 1.9 TB
DATA: C:\Users\administrator\AppData\Roaming\FileBot
Package: MSI
License: FileBot License P35364643 (Valid-Until: 2023-04-05)
Done ?(?????)?
Here is a copy of the script:

Code: Select all

.\filebot.exe -script fn:amc --output "S:\Media Server\Tv Shows\" --action move -non-strict "C:\Media\TV\processing" --def skipExtract=n --def deleteAfterExtract=n --def extractFolder="C:\Media\TV\processing\Extracted" --def clean=y --def subtitles=en "seriesFormat=S:\Media Server\Tv Shows\`{n`}\`{`'Season `'+s`}\`{fn`}" "movieFormat=S:\Media Server\Movies`{fn`}" --log-file="c:\logs\TV_Filebot-log.txt
I have tried to set the service to run as local system and local administrator but the issue is still happening.

Is there a workaround to this or something that I am doing wrong? Any help getting to the bottom of this would be appreciated.
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: License Error: UNREGISTERED

Post by rednoah »

:?: Which user is running filebot when your service is calling it? What %APPDATA% folder is that user using?


:?: What does filebot -script fn:sysenv say when filebot is running as local system or local administrator?


:arrow: Please call filebot -script fn:sysinfo (i.e. replace fn:amc with fn:sysinfo in your script and then try again) from your service and then check the console output to find out what's different.


:arrow: filebot --license must be called as the same user that is calling filebot, so if you use FileBot as multiple users, then each user must call filebot --license to install the license file into this users %APPDATA% folder. Please read the filebot --license console output to find out which %APPDATA% folder the license was installed into.



EDIT:

Note that --output "x\" is dangerous, because \ will escape the " and break the command-line sequence, so never write \" unless you mean to escape the " as literal argument value:

Code: Select all

$ filebot -script fn:sysenv "A\" "B" "C"
> "
...
# Arguments #
args[0] = -script
args[1] = fn:sysenv
args[2] = A" B C

Code: Select all

$ filebot -script fn:sysenv "A" "B" "C"
...
# Arguments #
args[0] = -script
args[1] = fn:sysenv
args[2] = A
args[3] = B
args[4] = C
:arrow: Use the @file syntax for reading command-line arguments from external text files so that you don't have to worry about the CMD or PowerShell command-line parser.
:idea: Please read the FAQ and How to Request Help.
Post Reply