Katalon not found

Hi all,

     I've been working several days trying to solve this issue, and I'm posting the error here, maybe someone had the same issue and can help.

     Trying to run Katalon from Jenkins JX (Jenkins ver. 2.176.4) with the latest Katalon plugin (1.0.21). I'm trying to run 5.10.x and 6.3.x, and neither of both worked (having the same behavior / error).

     Moreover, jenkins user has full permissions over project folder and project build.

     Already reviewed topic in: https://forum.katalon.com/t/jenkins-and-katalon-issue-sh-1-katalon-not-found/22242

     This may also help (Jenkins System information):

os.arch - amd64
os.name - Linux
os.version - 4.14.106-97.85.amzn2.x86_64

The error shown in Jenkins console is the following.

Started by user Gustavo Pozzi
Running as SYSTEM
Agent aws-cdk-8fwmz is provisioned from template Kubernetes Pod Template

apiVersion: “v1”
kind: “Pod”
metadata:
annotations: {}
labels:
jenkins: “slave”
jenkins/jenkins-aws-cdk: “true”
name: “aws-cdk-8fwmz”
spec:
containers:

  • args:
    • “********”
    • “aws-cdk-8fwmz”
      env:
    • name: “JENKINS_SECRET”
      value: “********”
    • name: “JENKINS_TUNNEL”
      value: “jenkins-agent:50000”
    • name: “GIT_AUTHOR_EMAIL”
      value: "jenkins-x@googlegroups.com"
    • name: “GIT_COMMITTER_NAME”
      value: “jenkins-x-bot”
    • name: “GIT_AUTHOR_NAME”
      value: “jenkins-x-bot”
    • name: “JENKINS_AGENT_WORKDIR”
      value: “/home/jenkins/agent”
    • name: “XDG_CONFIG_HOME”
      value: “/home/jenkins”
    • name: “DOCKER_CONFIG”
      value: “/home/jenkins/.docker/”
    • name: “JENKINS_AGENT_NAME”
      value: “aws-cdk-8fwmz”
    • name: “GIT_COMMITTER_EMAIL”
      value: "jenkins-x@googlegroups.com"
    • name: “_JAVA_OPTIONS”
      value: “-XX:+UnlockExperimentalVMOptions -Dsun.zip.disableMemoryMapping=true
      \ -XX:+UseParallelGC -XX:MinHeapFreeRatio=5 -XX:MaxHeapFreeRatio=10 -XX:GCTimeRatio=4
      \ -XX:AdaptiveSizePolicyWeight=90 -Xms10m -Xmx512m”
    • name: “JENKINS_NAME”
      value: “aws-cdk-8fwmz”
    • name: “JENKINS_URL”
      value: “http://jenkins:8080
      image: “jenkinsci/jnlp-slave:3.26-1-alpine”
      imagePullPolicy: “IfNotPresent”
      name: “jnlp”
      resources:
      limits: {}
      requests:
      memory: “128Mi”
      cpu: “100m”
      securityContext:
      privileged: false
      tty: false
      volumeMounts:
    • mountPath: “/home/jenkins/.docker”
      name: “volume-2”
      readOnly: false
    • mountPath: “/root/.m2”
      name: “volume-1”
      readOnly: false
    • mountPath: “/var/run/docker.sock”
      name: “volume-0”
      readOnly: false
    • mountPath: “/home/jenkins/.gnupg”
      name: “volume-3”
      readOnly: false
    • mountPath: “/home/jenkins/agent”
      name: “workspace-volume”
      readOnly: false
      workingDir: “/home/jenkins/agent”
  • args:
    • “cat”
      command:
    • “/bin/sh”
    • “-c”
      env:
    • name: “DOCKER_CONFIG”
      value: “/home/jenkins/.docker/”
    • name: “GIT_AUTHOR_EMAIL”
      value: "jenkins-x@googlegroups.com"
    • name: “GIT_COMMITTER_EMAIL”
      value: "jenkins-x@googlegroups.com"
    • name: “GIT_COMMITTER_NAME”
      value: “jenkins-x-bot”
    • name: “_JAVA_OPTIONS”
      value: “-XX:+UnlockExperimentalVMOptions -Dsun.zip.disableMemoryMapping=true
      \ -XX:+UseParallelGC -XX:MinHeapFreeRatio=5 -XX:MaxHeapFreeRatio=10 -XX:GCTimeRatio=4
      \ -XX:AdaptiveSizePolicyWeight=90 -Xms10m -Xmx512m”
    • name: “GIT_AUTHOR_NAME”
      value: “jenkins-x-bot”
    • name: “XDG_CONFIG_HOME”
      value: “/home/jenkins”
    • name: “JENKINS_URL”
      value: “http://jenkins:8080
      image: “gcr.io/jenkinsxio/builder-maven-nodejs:2.0.974-310
      imagePullPolicy: “IfNotPresent”
      name: “aws-cdk”
      resources:
      limits:
      memory: “2048Mi”
      cpu: “2”
      requests:
      memory: “512Mi”
      cpu: “400m”
      securityContext:
      privileged: true
      tty: true
      volumeMounts:
    • mountPath: “/home/jenkins/.docker”
      name: “volume-2”
      readOnly: false
    • mountPath: “/root/.m2”
      name: “volume-1”
      readOnly: false
    • mountPath: “/var/run/docker.sock”
      name: “volume-0”
      readOnly: false
    • mountPath: “/home/jenkins/.gnupg”
      name: “volume-3”
      readOnly: false
    • mountPath: “/home/jenkins/agent”
      name: “workspace-volume”
      readOnly: false
      workingDir: “/home/jenkins/agent”
      nodeSelector: {}
      restartPolicy: “Never”
      serviceAccount: “jenkins”
      volumes:
  • hostPath:
    path: “/var/run/docker.sock”
    name: “volume-0”
  • name: “volume-2”
    secret:
    secretName: “jenkins-docker-cfg”
  • name: “volume-1”
    secret:
    secretName: “jenkins-maven-settings”
  • emptyDir:
    medium: “”
    name: “workspace-volume”
  • name: “volume-3”
    secret:
    secretName: “jenkins-release-gpg”

Building remotely on aws-cdk-8fwmz (jenkins-aws-cdk) in workspace /home/jenkins/agent/workspace/KatalonTests
using credential jx-pipeline-git-github-github--com
Cloning the remote Git repository
Cloning repository https://github..com/AI/qa.git

git init /home/jenkins/agent/workspace/KatalonTests # timeout=10
Fetching upstream changes from https://github..com/AI/qa.git
git --version # timeout=10
using GIT_ASKPASS to set credentials API Token for acccessing https://github..com Git service inside pipelines
git fetch --tags --progress – https://github..com/AI/qa.git +refs/heads/:refs/remotes/origin/
git config remote.origin.url https://github..com/AI/qa.git # timeout=10
git config --add remote.origin.fetch +refs/heads/:refs/remotes/origin/ # timeout=10
git config remote.origin.url https://github..com/AI/qa.git # timeout=10
Fetching upstream changes from https://github..com/AI/qa.git
using GIT_ASKPASS to set credentials API Token for acccessing https://github..com Git service inside pipelines
git fetch --tags --progress – https://github..com/AI/qa.git +refs/heads/:refs/remotes/origin/
git rev-parse refs/remotes/origin/master^{commit} # timeout=10
git rev-parse refs/remotes/origin/origin/master^{commit} # timeout=10
Checking out Revision (refs/remotes/origin/master)
git config core.sparsecheckout # timeout=10
git checkout -f
Commit message: “Merge pull request #62 from AI/gpozzi/sprint22-enhancements”
git rev-list --no-walk # timeout=10
[2019-12-31T01:00:39.106] Retrieve Katalon Studio version: 6.3.3, OS: linux
[2019-12-31T01:00:39.908] Number of releases: 245
[2019-12-31T01:00:39.908] Katalon Studio is hosted at https://github.com/katalon-studio/katalon-studio/releases/download/v6.3.3/Katalon_Studio_Linux_64-6.3.3.tar.gz.
[2019-12-31T01:00:39.909] Downloading Katalon Studio from https://github.com/katalon-studio/katalon-studio/releases/download/v6.3.3/Katalon_Studio_Linux_64-6.3.3.tar.gz. It may take a few minutes.
[2019-12-31T01:00:49.254] Extract /tmp/Katalon-2880516187703948030 to /home/jenkins/.katalon/6.3.3
[2019-12-31T01:00:49.255] Execute [sh, -c, tar -xzf “/tmp/Katalon-2880516187703948030”] in /home/jenkins/.katalon/6.3.3
[2019-12-31T01:00:52.952] Katalon Studio has been installed successfully.
[2019-12-31T01:00:52.958] Using Katalon Studio at /home/jenkins/.katalon/6.3.3/Katalon_Studio_Linux_64-6.3.3
[2019-12-31T01:00:52.958] Making driver executables…
[2019-12-31T01:00:52.958] Drivers folder at: /home/jenkins/.katalon/6.3.3/Katalon_Studio_Linux_64-6.3.3/configuration/resources/drivers
[2019-12-31T01:00:52.962] Set chromedriver as executable !
[2019-12-31T01:00:52.962] Set geckodriver as executable !
[2019-12-31T01:00:52.964] Execute [sh, -c, /home/jenkins/.katalon/6.3.3/Katalon_Studio_Linux_64-6.3.3/katalon -noSplash -runMode=console -retry=0 -testSuitePath=“Test Suites/runJobsTc” -executionProfile=“qa” -browserType=“Web Service” -projectPath="/home/jenkins/agent/workspace/KatalonTests/qa/katalon/Project.prj" ] in /tmp/katalon-8238143155864695992
[2019-12-31T01:00:52.965] sh: /home/jenkins/.katalon/6.3.3/Katalon_Studio_Linux_64-6.3.3/katalon: not found
Build step ‘Execute Katalon Studio Tests’ marked build as failure
Finished: FAILURE

Your help is appreciated, Thanks in advance,

Gustavo

1 Like

Having this exact same issue. Anyone know what a solution might be?

Can you check under:

 /home/jenkins/.katalon/6.3.3/Katalon_Studio_Linux_64-6.3.3/katalon

Which appears in the error message to see if the file pointed by that path exists ?

Hi ,
I am facing the same issue, i have checked the file path as you mentioned above and it exists.
Can someone help here what is the issue causing this and the solution.
Appreciate your help in advance.