When I run Anatella normally, it works but when I run Anatella inside Jenkins, it returns "Invalid Serial Number: check license"

Gabriele

New member
Currently I have all my Anatella-graph set up and I am trying to automate the process using Jenkins. I already created a job with a trigger when the file is found a specific folder. When looking at the output of the console inside Jenkins I get the following error:

.
image003.png



Just to double check, I tried to run the Anatella-graph directly from the console using the same prompt that Jenkins uses (I simply copied that) and it works.



Any idea on what coulde be the problem?
 

Support

Administrator
Staff member
When Anatella returns "Invalid Serial Number: check license" inside Jenkins but not inside a normal interactive Windows session, this usually means that Jenkins is not running using your own credentials. To run Jenkins with you own credentials, you must see your windows-login here (inside the "services" windows from Windows):
2023-05-08_111001.png



If you cannot run Jenkins using your own credentials, then, here is a quick "fix" so that you can use to still run Anatella inside Jenkins: You just need to save your Anatella "serial number" for "All users (Server-Wide License)". The procedure to do so is the following:
1. open the TIMi License Manager (run "C:\soft\TIMi\bin\TIMiEnterLicense.exe")
2. You should now see something like this:
2023-05-08_111550.png


3. Click on the button "Get from Current User"
4. Click on the button "Ok: Save in Registry for All Users" (administrative privileges are required for this step).
5. You should now see something like that:

2023-05-08_111730.png

If you are unable to follow the above procedure (because, for example, you do not have administrative rights), you can still do the following:
1. Create a text file named "license.xml" (using "notepad") inside the root of the TIMi installation directory. Typically, the filepath is something like: "C:\soft\TIMi\license.xml".
2. The content of the "license.xml" is the following:
2023-05-08_113908.png


To help you: Here is a template for the content of the "license.xml":
<LICENSE>
<NAME> ??? </NAME>
<SERIAL> ??? </SERIAL>
</LICENSE>



Please be aware that some uncommon Anatella functionalities might not always work properly when running Jenkins as a "local admin" (instead of running Jenkins under your own account). This includes:
* the Python home directory is defined using the global DOS environment variable "PYTHONPATH" instead of the value defined inside Anatella.
* your ODBC connections cannot be defined using a "User DSN" inside the Microsoft ODBC manager (but you can still use all the ODBC connections that are defined using a connection string or a "System DSN").
* you should be extra careful when setting-up the "Jenkins custom initialization scripts" (see point 23.2 from section 4.8.2. inside the AnatellaQuickGuide.pdf). More precisely: You must use the "long form" for the "net use" command: "net use Z: \\My_File_Server\public <password> /user:<login> /Y"
* The automatic renewal procedure for your serial number won't work: Of course, you can still renew your TIMi/Anatella serial number manually.
* see also section 4.8.2.3. of the AnatellaQuickGuide.pdf (press F1 inside Anatella to read this PDF)
 
Top