Unanswered question

License Lease option throwing invalid user id password error with http 401 error

Hi We got a license installed at Neoload Web and when tried to lease that getting the below error. Please provide your input on this. Thanks !
HTTP response '401: Unauthorized' when communicating with https://neoload-rest.saas.neotys.com/nts/ws/license
Pls note that we are able to connect to the NeoLoad web using access token.

Regards,
Y.S.Sridhar

sridhar S.
sridhar S.

sridhar S.

Level
0
83 / 100
points

Answers

sridhar S.
sridhar S.

sridhar S.

Level
0
83 / 100
points

Thanks Neil! This is based on the license provided for our company by Neotys that is installed with the floating license. The other question was specific to my experiment to learn/understand the NeoLoad cli + Azure Devops. This specific question is when we have license installed in NeoLoad Web and when we try to lease.

Regards,
Y.S.Sridhar

sridhar S.
sridhar S.

sridhar S.

Level
0
83 / 100
points

Starting: Run the NeoLoad test
==============================================================================
Task : Bash
Description : Run a Bash script on macOS, Linux, or Windows
Version : 3.189.0
Author : Microsoft Corporation
Help : https://docs.microsoft.com/azure/devops/pipelines/tasks/u...
==============================================================================
Generating script.
========================== Starting Command Output ===========================
/bin/bash --noprofile --norc /home/vsts/work/_temp/9be8b490-6328-4e50-b01c-94a9f8fcaad6.sh
Results of : fdc0dbf2-904f-46ab-a5ce-a5f9c28e65c0
Logs are available at https://neoload.saas.neotys.com#!result/fdc0dbf2-904f-46a...
Status: TERMINATED
SLA summary:

{
"result": {
"id": "fdc0dbf2-904f-46ab-a5ce-a5f9c28e65c0",
"name": "#7",
"description": "",
"author": "sridhar sathyam",
"terminationReason": "FAILED_TO_START",
"lgCount": 1,
"project": "NL_AzurePipeline_Demo",
"scenario": "scenario1",
"status": "TERMINATED",
"qualityStatus": "UNKNOWN",
"startDate": 1630423859357,
"endDate": 1630423860411,

I could not copy till the end.. but this is the output for the Run NeoLoad Test.
Thanks!
Y.S.Sridhar

Thanks for that output but how the test is kicked off? Is it using the neoload-cli tool or with the NeoLoadCmd executable?

I'm more interested by the command used to start your test and any log output that are displayed after that command is run. Here we can see the result but we can't see what parameters were used.

You can modify any token/password/login value as long as you do not change the whole syntax.

Thanks

sridhar S.
sridhar S.

sridhar S.

Level
0
83 / 100
points

2021/08/25 13:16:42 ERROR - neoload.nlweb: Connection to NeoLoad Web has failed. java.lang.Exception: Connection to NeoLoad Web has failed.
at com.neotys.nl.gui.e.a.b.a(b.java:226)
at com.neotys.nl.gui.e.a.b.lambda$refresh$1(b.java:171)
at rx.Single$16.onError(Single.java:1699)
at rx.observers.SafeSubscriber._onError(SafeSubscriber.java:152)
at rx.observers.SafeSubscriber.onError(SafeSubscriber.java:115)
at rx.Single$1$1.onError(Single.java:85)
at rx.internal.operators.SingleDoAfterTerminate$SingleDoAfterTerminateSubscriber.onError(SingleDoAfterTerminate.java:67)
at rx.Single$18.onError(Single.java:1906)
at rx.observers.SafeSubscriber._onError(SafeSubscriber.java:152)
at rx.observers.SafeSubscriber.onError(SafeSubscriber.java:115)
at rx.Single$1$1.onError(Single.java:85)
at rx.Single$18.onError(Single.java:1906)
at rx.observers.SafeSubscriber._onError(SafeSubscriber.java:152)
at rx.observers.SafeSubscriber.onError(SafeSubscriber.java:115)
at rx.Single$1$1.onError(Single.java:85)
at rx.Single$3.call(Single.java:505)
at rx.Single$3.call(Single.java:501)
at rx.Single$1.call(Single.java:90)
at rx.Single$1.call(Single.java:70)
at rx.Single.subscribe(Single.java:1839)
at rx.Single.subscribe(Single.java:1916)
at rx.internal.operators.SingleOperatorOnErrorResumeNext$2.onError(SingleOperatorOnErrorResumeNext.java:69)
at rx.Single$18.onError(Single.java:1906)
at rx.observers.SafeSubscriber._onError(SafeSubscriber.java:152)
at rx.observers.SafeSubscriber.onError(SafeSubscriber.java:115)
at rx.Single$1$1.onError(Single.java:85)
at rx.internal.operators.SingleOnSubscribeMap$MapSubscriber.onError(SingleOnSubscribeMap.java:85)
at rx.Single$18.onError(Single.java:1906)
at rx.observers.SafeSubscriber._onError(SafeSubscriber.java:152)
at rx.observers.SafeSubscriber.onError(SafeSubscriber.java:115)
at rx.Single$1$1.onError(Single.java:85)
at rx.Single$5$1.onError(Single.java:696)
at rx.Single$18.onError(Single.java:1906)
at rx.observers.SafeSubscriber._onError(SafeSubscriber.java:152)
at rx.observers.SafeSubscriber.onError(SafeSubscriber.java:115)
at rx.Single$1$1.onError(Single.java:85)
at rx.internal.operators.SingleOnSubscribeMap$MapSubscriber.onError(SingleOnSubscribeMap.java:85)
at rx.Single$18.onError(Single.java:1906)
at rx.observers.SafeSubscriber._onError(SafeSubscriber.java:152)
at rx.observers.SafeSubscriber.onError(SafeSubscriber.java:115)
at rx.Single$1$1.onError(Single.java:85)
at rx.Single$5$1.onError(Single.java:696)
at rx.Single$18.onError(Single.java:1906)
at rx.observers.SafeSubscriber._onError(SafeSubscriber.java:152)
at rx.observers.SafeSubscriber.onError(SafeSubscriber.java:115)
at rx.Single$1$1.onError(Single.java:85)
at rx.internal.operators.SingleOnSubscribeMap$MapSubscriber.onError(SingleOnSubscribeMap.java:85)
at rx.Single$18.onError(Single.java:1906)
at rx.observers.SafeSubscriber._onError(SafeSubscriber.java:152)
at rx.observers.SafeSubscriber.onError(SafeSubscriber.java:115)
at rx.Single$1$1.onError(Single.java:85)
at rx.internal.operators.SingleOnSubscribeMap$MapSubscriber.onError(SingleOnSubscribeMap.java:85)
at rx.Single$18.onError(Single.java:1906)
at rx.observers.SafeSubscriber._onError(SafeSubscriber.java:152)
at rx.observers.SafeSubscriber.onError(SafeSubscriber.java:115)
at rx.Single$1$1.onError(Single.java:85)
at rx.Single$5$1.onError(Single.java:696)
at rx.Single$18.onError(Single.java:1906)
at rx.observers.SafeSubscriber._onError(SafeSubscriber.java:152)
at rx.observers.SafeSubscriber.onError(SafeSubscriber.java:115)
at rx.Single$1$1.onError(Single.java:85)
at rx.internal.operators.SingleOnSubscribeMap$MapSubscriber.onError(SingleOnSubscribeMap.java:85)
at rx.Single$18.onError(Single.java:1906)
at rx.observers.SafeSubscriber._onError(SafeSubscriber.java:152)
at rx.observers.SafeSubscriber.onError(SafeSubscriber.java:115)
at rx.Single$1$1.onError(Single.java:85)
at rx.Single$5$1.onError(Single.java:696)
at rx.Single$18.onError(Single.java:1906)
at rx.observers.SafeSubscriber._onError(SafeSubscriber.java:152)
at rx.observers.SafeSubscriber.onError(SafeSubscriber.java:115)
at rx.Single$1$1.onError(Single.java:85)
at rx.internal.operators.SingleOnSubscribeMap$MapSubscriber.onError(SingleOnSubscribeMap.java:85)
at rx.Single$18.onError(Single.java:1906)
at rx.observers.SafeSubscriber._onError(SafeSubscriber.java:152)
at rx.observers.SafeSubscriber.onError(SafeSubscriber.java:115)
at rx.Single$1$1.onError(Single.java:85)
at io.vertx.core.http.impl.HttpClientRequestBase.handleException(HttpClientRequestBase.java:133)
at io.vertx.core.http.impl.HttpClientRequestImpl.handleException(HttpClientRequestImpl.java:370)
at io.vertx.core.http.impl.HttpClientRequestImpl.lambda$null$6(HttpClientRequestImpl.java:472)
at io.vertx.core.impl.ContextImpl.executeTask(ContextImpl.java:366)
at io.vertx.core.impl.EventLoopContext.execute(EventLoopContext.java:43)
at io.vertx.core.impl.ContextImpl.executeFromIO(ContextImpl.java:229)
at io.vertx.core.impl.ContextImpl.executeFromIO(ContextImpl.java:221)
at io.vertx.core.http.impl.HttpClientRequestImpl.lambda$connect$7(HttpClientRequestImpl.java:471)
at io.vertx.core.http.impl.HttpClientImpl.lambda$getConnectionForRequest$4(HttpClientImpl.java:1048)
at io.vertx.core.http.impl.ConnectionManager.lambda$getConnection$7(ConnectionManager.java:159)
at io.vertx.core.http.impl.pool.Pool.connectFailed(Pool.java:397)
at io.vertx.core.http.impl.pool.Pool.access$600(Pool.java:89)
at io.vertx.core.http.impl.pool.Pool$Holder.lambda$connect$0(Pool.java:129)
at io.vertx.core.impl.FutureImpl.tryFail(FutureImpl.java:195)
at io.vertx.core.http.impl.HttpChannelConnector.connectFailed(HttpChannelConnector.java:255)
at io.vertx.core.http.impl.HttpChannelConnector.lambda$doConnect$0(HttpChannelConnector.java:164)
at io.vertx.core.net.impl.ChannelProvider.lambda$connect$1(ChannelProvider.java:78)
at io.vertx.core.net.impl.ChannelProvider.lambda$handleConnect$2(ChannelProvider.java:145)
at io.netty.util.concurrent.DefaultPromise.notifyListener0(DefaultPromise.java:577)
at io.netty.util.concurrent.DefaultPromise.notifyListeners0(DefaultPromise.java:570)
at io.netty.util.concurrent.DefaultPromise.notifyListenersNow(DefaultPromise.java:549)
at io.netty.util.concurrent.DefaultPromise.notifyListeners(DefaultPromise.java:490)
at io.netty.util.concurrent.DefaultPromise.setValue0(DefaultPromise.java:615)
at io.netty.util.concurrent.DefaultPromise.setFailure0(DefaultPromise.java:608)
at io.netty.util.concurrent.DefaultPromise.tryFailure(DefaultPromise.java:117)
at io.netty.channel.nio.AbstractNioChannel$AbstractNioUnsafe.fulfillConnectPromise(AbstractNioChannel.java:321)
at io.netty.channel.nio.AbstractNioChannel$AbstractNioUnsafe.finishConnect(AbstractNioChannel.java:337)
at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:702)
at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:650)
at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:576)
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:493)
at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:989)
at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection refused: no further information: neoload-rest.saas.neotys.com/3.14.229.112:443
Caused by: java.net.ConnectException: Connection refused: no further information
at java.base/sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
at java.base/sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:779)
at io.netty.channel.socket.nio.NioSocketChannel.doFinishConnect(NioSocketChannel.java:330)
at io.netty.channel.nio.AbstractNioChannel$AbstractNioUnsafe.finishConnect(AbstractNioChannel.java:334)
at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:702)
at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:650)
at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:576)
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:493)
at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:989)
at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
at java.base/java.lang.Thread.run(Thread.java:834)

2021/08/25 13:20:27 ERROR - neoload.Controller: License error: com.neotys.license.data.o: Invalid username or password: <HTTP response '401: Unauthorized' when communicating with https://neoload-rest.saas.neotys.com/nts/ws/license>;
at com.neotys.nl.controller.az.b(az.java:961)
at com.neotys.nl.gui.h.f.InstalledLicensesDialog.a(InstalledLicensesDialog.java:349)
at com.neotys.nl.gui.h.f.InstalledLicensesDialog.a(InstalledLicensesDialog.java:207)
at com.neotys.nl.gui.h.f.InstalledLicensesDialog.<init>(InstalledLicensesDialog.java:78)
at com.neotys.nl.gui.h.f.LicenseCategoryPanel.bD(LicenseCategoryPanel.java:1559)
at com.neotys.nl.gui.h.f.LicenseCategoryPanel.lambda$getLeaseButton$12(LicenseCategoryPanel.java:620)
at java.base/java.lang.Thread.run(Thread.java:834)

2021/08/25 13:29:04 ERROR - neoload.Controller: License error: com.neotys.license.data.o: Invalid username or password: <HTTP response '401: Unauthorized' when communicating with https://neoload-rest.saas.neotys.com/nts/ws/license>;
at com.neotys.nl.controller.az.b(az.java:961)
at com.neotys.nl.gui.h.f.InstalledLicensesDialog.a(InstalledLicensesDialog.java:349)
at com.neotys.nl.gui.h.f.InstalledLicensesDialog.a(InstalledLicensesDialog.java:207)
at com.neotys.nl.gui.h.f.InstalledLicensesDialog.<init>(InstalledLicensesDialog.java:78)
at com.neotys.nl.gui.h.f.LicenseCategoryPanel.bD(LicenseCategoryPanel.java:1559)
at com.neotys.nl.gui.h.f.LicenseCategoryPanel.lambda$getLeaseButton$12(LicenseCategoryPanel.java:620)
at java.base/java.lang.Thread.run(Thread.java:834)

sridhar S.
sridhar S.

sridhar S.

Level
0
83 / 100
points

I am trying to use the Lease option in the NeoLoad Controller Desktop GUI. Since we are not able to lease license we are not able to run any test as of now. This license was given by Neotys.

sridhar S.
sridhar S.

sridhar S.

Level
0
83 / 100
points

Added the screenshot

Hi, the trial licence we provide to any one evaluating Neoload is different to the shared licence for customers. If you are a customer what licence type do you have? Only shared/enterprise licences can be leased. When I tried the token you included in your other post, there was no shared licence in your Neoload web account. If you need a shared licence to evaluate please contact your local account team

sridhar S.
sridhar S.

sridhar S.

Level
0
83 / 100
points

Hi Nourdine,
As I explained earlier this license lease issue is specific to the shared license provided by Neotys and not with the trial license.
Please suggest what could be the reason for this error while trying to use the lease option in the NeoLoad Controller GUI.

Regards,
Y.S.Sridhar