Unanswered question

Why execution of scenario with NeoLoadCmd not working even with correct license id?

Hi,

I am trying to run Neoload scenario using Jenkins job. I am following this page http://www.neotys.com/documents/doc/neoload/latest/en/htm...

Here it is mentioned to pass license details with option -leaseLicense to neoloadCmd commandline tool.

I know I am passing correct license id as I took it from License Manager where "License Id" is mentioned at bottom and I am copying exactly that full string. But still while running command I get below error

Error leasing license. Unknown Error. Could not find available license matching ID (MC..........=), requested number of VUs (10), and requested number of hours (1).
SHUTDOWN: Unleasing existing license.

I have purposely not mentioned full license id in above error message but correct license id is exactly what appear in between brackets () in above error message (including at the end).

Alpesh S.
Alpesh S.

Alpesh S.

Level
0
83 / 100
points

Answers

Nouredine A.
Nouredine A.

Nouredine A.

Level
4
5000 / 5000
points
Team

It seems that you are trying to lease 10VU of your shared license. Have you manually check that it's possible to lease such number of users for that license using the same credential used from command line?

Alpesh S.
Alpesh S.

Alpesh S.

Level
0
83 / 100
points

Hi,

I am already using same VU and duration to call same scenario from GUI with same license. So everything is same except instead of executing scenario from GUI, I am trying to execute it with command line so that I can automate execution

Nouredine A.
Nouredine A.

Nouredine A.

Level
4
5000 / 5000
points
Team

Could you copy/paste the command line that you use plus the full error message?

You can send me the license ID in private if you prefer.

Alpesh S.
Alpesh S.

Alpesh S.

Level
0
83 / 100
points

Hi,

I am just sharing command first, let's see if you will still need License ID. Below is command.

"/home/www/Neoload5.0/bin/NeoLoadCmd" -project "/home/www/neoload_projects/project.nlp" -launch "Scenario 1" -report "/home/www/neoload_projects/reports/Scenario-1-report.pdf,/home/www/neoload_projects/reports/Scenario-1-report.xml,/home/www/neoload_projects/reports/Scenario-1-report.html" -leaseLicense "MC........=:10:1" -NTS "http://localhost:8080" -noGUI

I just put dots to hide other characters in license ID. in NTS, localhost map to actual IP we are using with GUI.

As mentioned, there is no issue using license with GUI but issue with only command line. It is Standard License and Neoload version is 5.0

Nouredine A.
Nouredine A.

Nouredine A.

Level
4
5000 / 5000
points
Team

I do not see any login information in your command line. Have you removed it for privacy?

Otherwise you have to use the "-NTSLogin" option to provide your credential.

Look at the NeoLoad documentation for more details.

 

Alpesh S.
Alpesh S.

Alpesh S.

Level
0
83 / 100
points

Hi,

I suppose if login is not passed then I expect login issue. Anyway, I passed the parameter that you mentioned.
-NTSLogin "myuser:hashed passwored"
I generated password with tool as explained in document.

I am still having same error. I attached tail of log file which has full stacktrace to debug issue better. This log I found in .neotys/neoload/v5.0/logs/neoload.log

Alpesh S.
Alpesh S.

Alpesh S.

Level
0
83 / 100
points

Hi,

I am awaiting for the response.

Alpesh S.
Alpesh S.

Alpesh S.

Level
0
83 / 100
points

No response ?

Nouredine A.
Nouredine A.

Nouredine A.

Level
4
5000 / 5000
points
Team

I tried to replicate your issue and i get that error message only when NeoLoad is not able to find the license ID that you used in your command line.

Are you sure that from the same NeoLoad version you can see that license ID?

Since the license is per NeoLoad version, you could see that ID from one NeoLoad version and not from another one.

 

Alpesh S.
Alpesh S.

Alpesh S.

Level
0
83 / 100
points

Hello,

Finally issue was resolved when I set 50 VU instead of 10 VU on command line argument. Seems that 50 is minimal VU I need to use and not sure if constraint for all Neoload setup or only my setup.