Forum Discussion

SB_ext's avatar
SB_ext
New Contributor
2 years ago

Getting occasionaly Exit code -10 on agent node

Hello dear community,

 

I ran into very frustrating issue, when TestComplete occasionally returns Exit code -10 (Unable to create a user session) to Jenkins from my agent node.

On our master (Built-In node) machine everything works perfectly. We have this problem only on agent node.

To be clear it is not a permanent problem. Sometimes the session is created and TestExecute performs the tests correctly and returns results correctly. But sometimes it returns Exit code -10. There was no change at all at agent server, nothing happened there, neither in Jenkins. After this happens, every other test which we run on agent node fails with Exit code -10. After I restart the the agent (Windows) server, TestExecute starts working correctly again and everything is perfect, but then after few days after tens of successful builds, this issue happens again, and suddenly we are receiving Exit Code -10 again. We contacted out IT support team to check the Windows Events log, but they cannot see anything suspicious. True that, we can see the logins and logouts from Windows with the dedicated automation user, but there is no reason in logoff message, it seems like it is a regular log off. I tried also to reinstall the TestExecute on agent node, but it did not help. This issue is present only on agent server, master server does not have this issue.

 

Any help would be appreciated, because I dag up the whole internet already.

Thank you.

 

Stefan.

 

Attached full log from Jenkins from a failed build

 

Started by user Stefan Bus
Running as SYSTEM
Building remotely on slaveMachine in workspace c:\Program Files (x86)\Jenkins\w4ManagerWorkspace
Updating svn+ssh://10.74.1.41/data/subversion/svn/tools/testComplete/trunk/W4Manager at revision '2023-04-26T15:15:20.776 +0200' --quiet
Using sole credentials d641c00b-a75c-46d0-9aaf-a0d91401fa9b in realm ‘svn+ssh://10.74.1.41’
Using sole credentials d641c00b-a75c-46d0-9aaf-a0d91401fa9b in realm ‘svn+ssh://10.74.1.41’
At revision 8699

Using sole credentials d641c00b-a75c-46d0-9aaf-a0d91401fa9b in realm ‘svn+ssh://10.74.1.41’
Using sole credentials d641c00b-a75c-46d0-9aaf-a0d91401fa9b in realm ‘svn+ssh://10.74.1.41’
Next nodes: []
[w4ManagerWorkspace] $ cmd /c call C:\Windows\TEMP\jenkins918246220445942129.bat

c:\Program Files (x86)\Jenkins\w4ManagerWorkspace>xcopy /y W4Manager.mds "c:\Program Files (x86)\Jenkins\w4ManagerWorkspace\W4Manager\W4Manager" 
C:W4Manager.mds
1 File(s) copied

c:\Program Files (x86)\Jenkins\w4ManagerWorkspace>setProjectVariables.cmd "tc3D_Secure" "c:\Program Files (x86)\Jenkins\w4ManagerWorkspace" 
---------------------------------------------------------------
Editing of the TestComplete MDS file: c:\Program Files (x86)\Jenkins\w4ManagerWorkspace\W4Manager\W4Manager\W4Manager.mds
---------------------------------------------------------------
-----------END-----------

[TestComplete] The test execution started (W4Manager/W4Manager).
[TestComplete] Found TestComplete/TestExecute installations:
	Type: TC, Version: 15.31.374.7, Path: "C:\Program Files (x86)\SmartBear\TestComplete 15\x64\bin\TestComplete.exe"
	Type: TE, Version: 15.31.374.11, Path: "C:\Program Files (x86)\SmartBear\TestExecute 15\x64\bin\TestExecute.exe"
	Type: TELite, Version: 15.31.374.50, Path: "C:\Program Files (x86)\SmartBear\TestExecuteLite 15\x64\bin\TestExecuteLite.exe"
[TestComplete] Selected TestComplete/TestExecute installation:
	Type: TE, Version: 15.31.374.11, Path: "C:\Program Files (x86)\SmartBear\TestExecute 15\x64\bin\TestExecute.exe"
[TestComplete] Launching the test runner.
$ '"C:\Program Files (x86)\SmartBear\TestExecute 15\bin\TestCompleteService15.exe"' //LogonAndExecute //lDomain: "" //lName: "arpc_ta" //lPassword: ******** //lTimeout: "1180000" //lUseActiveSession: "false" //lCommandLine: '""C:\Program Files (x86)\SmartBear\TestExecute 15\x64\bin\TestExecute.exe" "c:\Program Files (x86)\Jenkins\w4ManagerWorkspace\W4Manager\W4Manager.pjs" /run /SilentMode /ForceConversion /ns /exit "/ExportLog:c:\Program Files (x86)\Jenkins\w4ManagerWorkspace\1682514927811.tclogx" "/ExportLog:c:\Program Files (x86)\Jenkins\w4ManagerWorkspace\1682514927811.htmlx" "/ErrorLog:c:\Program Files (x86)\Jenkins\w4ManagerWorkspace\1682514927811.txt" /Timeout:1000 /project:W4Manager /DoNotShowLog PANs=4505000000000008 "testCases=this is testcase name" environment=RBKO1 "institutions=Tatra banka" isSmokeTest=true / /JenkinsTCPluginVersion:2.8.1"' //lSessionScreenWidth: "1920" //lSessionScreenHeight: "1080"
[TestComplete] Test runner exit code: -10 (Unable to create a user session).
[TestComplete] [WARNING] Unable to find the log file "1682514927811.tclogx".
[TestComplete] [WARNING] Unable to find the log file "1682514927811.htmlx".
[TestComplete] [WARNING] Errors occurred during the test execution.
[TestComplete] Marking the build as UNSTABLE.
[TestComplete] The test execution finished (W4Manager/W4Manager).
Build step 'TestComplete Test' changed build result to UNSTABLE
Finished: UNSTABLE