I have a jenkins windows 10 agent, which i installed on it Katalon Enterprise Studio and Katalon Runtime Engine with trial license. I can run katalon commands inside this slave. But when i run command inside pipeline from Jenkins it cant activate license. When i troblueshoot it this issue i noticed that when Katalon wants to run commands from Jenkins master inside the pipeline, logs show me different machine id than Windows agent. What can be the issue of this.
My windows 10 agent resides in on-premise ESXi. Master Jenkins on cloud.
Know someone who can answer?
@likithsunny1995
Please provide the command line and the full console log so that we know what’s going on.
I’m using trial KRE license
I’m facing the same issue. There is my command line:
-noSplash -runMode=console -projectPath=“project” -retry=0 -testSuiteCollectionPath=“Test Suites/demo-github-action” -executionProfile=“default” -browserType=“Web Service” -apiKey=“key” --config -proxy.auth.option=NO_PROXY -proxy.system.option=NO_PROXY -proxy.system.applyToDesiredCapabilities=true -webui.autoUpdateDrivers=true
And there is the log when I run on github action:
Please visit https://github.com/katalon-studio/docker-images for new usage. The use of katalon-execute.sh has been deprecated.
Starting Katalon Studio
Mozilla Firefox 88.0
- echo ‘Starting Katalon Studio’
Google Chrome 91.0.4472.106
- cat /katalon/version
Katalon Studio
++ pwd
- current_dir=/github/workspace
- workspace_dir=/tmp/katalon_execute/workspace
- mkdir -p /tmp/katalon_execute/workspace
- chmod -R 777 /tmp/katalon_execute/workspace
- source_dir=/katalon/katalon/source
- ‘[’ -d /katalon/katalon/source ‘]’
++ pwd
- source_dir=/github/workspace
- project_dir=/tmp/katalon_execute/project
- mkdir -p /tmp/katalon_execute/project
- cp -r /github/workspace/DA-Helium ‘/github/workspace/Helium API Testing’ /github/workspace/oscarquote /tmp/katalon_execute/project
++ find /tmp/katalon_execute/project -name ‘*.prj’ -print -quit
- project_prj_file=’/tmp/katalon_execute/project/Helium API Testing/web-service-tests.prj’
- cd /tmp/katalon_execute/project
- ‘[’ -f /tmp/katalon_execute/project/build.gradle ‘]’
- cd /github/workspace
- touch /tmp/katalon_execute/project/.classpath
- chmod -R 777 /tmp/katalon_execute/project
- rm -rf /tmp/katalon_execute/project/bin
- rm -rf /tmp/katalon_execute/project/Libs
- ls -la /tmp/katalon_execute/project
- report_dir=/katalon/katalon/report
- ‘[’ -d /katalon/katalon/report ‘]’
- report_dir=/github/workspace/report
- mkdir -p /github/workspace/report
total 20
drwxrwxrwx 5 root root 4096 Jul 28 08:32 .
drwxr-xr-x 4 root root 4096 Jul 28 08:32 …
-rwxrwxrwx 1 root root 0 Jul 28 08:32 .classpath
drwxrwxrwx 12 root root 4096 Jul 28 08:32 DA-Helium
drwxrwxrwx 14 root root 4096 Jul 28 08:32 Helium API Testing
drwxrwxrwx 13 root root 4096 Jul 28 08:32 oscarquote
- args=("$KATALON_KATALON_INSTALL_DIR/katalonc" “$@”)
- args+=("-runMode=console")
- args+=("-reportFolder=$report_dir")
- args+=("-projectPath=$project_prj_file")
- cd /tmp/katalon_execute/workspace
- xvfb-run -a -e /dev/stdout -s ‘-screen 0 1024x768x24’ /opt/katalonstudio/katalonc -apiKey= -runMode=console -reportFolder=/github/workspace/report ‘-projectPath=/tmp/katalon_execute/project/Helium API Testing/web-service-tests.prj’
Katalon workspace folder is set to default location: /tmp/session-06b77e70
Starting Groovy-Eclipse compiler resolver. Specified compiler level: unspecified
138 org.codehaus.groovy_2.4.20.v202009301404-e2006-RELEASE ACTIVE
INFO: Katalon Version: 8.0.5
INFO: Command-line arguments: -apiKey=******** -runMode=console -reportFolder=/github/workspace/report -projectPath=/tmp/katalon_execute/project/Helium API Testing/web-service-tests.prj
INFO: User working dir: /tmp/katalon_execute/workspace
INFO: Error log: /tmp/session-06b77e70/.metadata/.log
INFO: Katalon TestOps server URL: https://analytics.katalon.com
INFO: Katalon Store server URL: https://store.katalon.com
INFO: User home: /root
INFO: Java vendor: Private Build
INFO: Java version: 1.8.0_292
INFO: Local OS: Linux 64bit
INFO: CPU load: 0%
INFO: Total memory: 6953 MB
INFO: Free memory: 2853 MB
Start getting machine ID on Linux
End getting machine ID on Linux 0637f2c290f0ca004a05894f60c98261
Start appending additional signatures
hardwareSerialNumber
osDependentUsername root
End appending additional signatures 0637f2c290f0ca004a05894f60c98261__root
INFO: Machine ID: 0c3395193e38aac23fa9904ab3e55c19
INFO: Your environment is compatible with the Katalon Runtime Engine FLOATING license.
Activating…
Start activating offline…
Search for valid offline licenses in folder: /root/.katalon/license
The number of valid offline licenses: 0
Offline activation failed.
Start activating online…
Katalon TestOps: Unexpected response, URL: https://analytics.katalon.com/oauth/token, Status: 400, Response: {“error”:“invalid_grant”,“error_description”:“Invalid credentials.”}
Invalid credentials.
Online activation for console mode failed.
Activation failed. Please make sure you are using a valid license.
All launchers terminated
- ret_code=3
++ id -u
++ id -g
- chown -R 0:0 /github/workspace/report
- chmod -R 777 /github/workspace/report
- ls /github/workspace/report
- cd /github/workspace
- exit 3
The machine ID is different