Failed to run a scheduled test - [ERROR] katalon - executeJob: { Error: Error: spawn git ENOENT

I created a new Environment using the Agent Setup option, then I started the Agent and Scheduled/Save the configuration. But it looks like its failing to clone scripts from Github, I already tried creating the agent a couple of times

here is the log

C:\Katalon>cd katalon-agent-win-x64-v1.7.5

C:\Katalon\katalon-agent-win-x64-v1.7.5>cli-win-x64 config --server-url https://testops.katalon.io --username myemail@gmail.com --apikey cc3678de-1c69-4a05-96b9-f7706b407283 --teamid 949945 --agent-name “MyName”
[2022-12-01T14:00:05.107] [INFO] katalon - Updated configs @ C:\Katalon\katalon-agent-win-x64-v1.7.5\agentconfig.

C:\Katalon\katalon-agent-win-x64-v1.7.5>cli-win-x64 start-agent
[2022-12-01T14:00:18.552] [INFO] katalon - Loading agent configs @ C:\Katalon\katalon-agent-win-x64-v1.7.5\agentconfig
[2022-12-01T14:00:18.557] [INFO] katalon - Katalon Agent v1.7.5 started @ Thu Dec 01 2022 14:00:18 GMT-0600 (Central Standard Time)
[2022-12-01T14:00:18.557] [INFO] katalon - Getting server profiles…
[2022-12-01T14:00:18.872] [INFO] katalon - get https://testops.katalon.io/info 200.
[2022-12-01T14:00:19.188] [INFO] katalon - get https://testops.katalon.io/api/v1/jobs/get-job 200.

[2022-12-01T14:01:18.927] [INFO] katalon - get https://testops.katalon.io/api/v1/jobs/get-job 200.
[2022-12-01T14:01:19.431] [INFO] katalon - post https://testops.katalon.io/api/v1/agent 200.
[2022-12-01T14:02:18.924] [INFO] katalon - get https://testops.katalon.io/api/v1/jobs/get-job 200.
[2022-12-01T14:02:19.151] [INFO] katalon - post https://testops.katalon.io/api/v1/agent 200.
[2022-12-01T14:03:19.034] [INFO] katalon - get https://testops.katalon.io/api/v1/jobs/get-job 200.
[2022-12-01T14:03:19.035] [INFO] katalon - post https://testops.katalon.io/api/v1/agent 200.
[2022-12-01T14:03:19.366] [INFO] katalon - post https://testops.katalon.io/api/v1/jobs/update-job 200.
[2022-12-01T14:03:19.369] [INFO] katalon - Download test project to temp directory: C:\Katalon\katalon-agent-win-x64-v1.7.5\tmp\2022.12.01-14.3–15348-5hSqeXVk9QsY-1027997
[2022-12-01T14:03:19.376] [INFO] katalon - Uploading job execution log…
[2022-12-01T14:03:20.008] [INFO] katalon - get https://testops.katalon.io/api/v1/files/upload-url 200.
[2022-12-01T14:03:20.404] [INFO] katalon - put https://katalon-test.s3-accelerate.amazonaws.com/2b1f443c-554d-42c7-bcef-e57343c6e15b?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Date=20221201T200319Z&X-Amz-SignedHeaders=host&X-Amz-Expires=3600&X-Amz-Credential=AKIAIXB3N7Z3SQHJU4MQ%2F20221201%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Signature=51d6d3ee3b0e9757e9d4c7c75399583fe7392fbba3e4bf2552ad15d1f25255f7 200.
[2022-12-01T14:03:20.848] [INFO] katalon - post https://testops.katalon.io/api/v1/jobs/save-log 200.
[2022-12-01T20:03:20.854Z] [INFO]: Triggered by Katalon Agent v1.7.5.
[2022-12-01T20:03:20.855Z] [INFO]: Agent server: https://testops.katalon.io
[2022-12-01T20:03:20.855Z] [INFO]: Agent user: myemail@gmail.com
[2022-12-01T14:03:20.855] [INFO] katalon - Downloading test project…
[2022-12-01T20:03:20.856Z] [INFO]: Cloning from https://github.com/myname/MaintenanceWeekend.git (refs/heads/main) into C:\Katalon\katalon-agent-win-x64-v1.7.5\tmp\2022.12.01-14.3–15348-5hSqeXVk9QsY-1027997\MaintenanceWeekend.git. It may take a few minutes.
[2022-12-01T14:03:20.863] [ERROR] katalon - executeJob: { Error: Error: spawn git ENOENT
at Process.ChildProcess._handle.onexit (internal/child_process.js:240:19)
at onErrorNT (internal/child_process.js:415:16)
at process._tickCallback (internal/process/next_tick.js:63:19)
at GitExecutorChain.onFatalException (D:\snapshot\katalon-agent\node_modules\simple-git\src\lib\runners\git-executor-chain.js:61:87)
at GitExecutorChain. (D:\snapshot\katalon-agent\node_modules\simple-git\src\lib\runners\git-executor-chain.js:52:28)
at Generator.throw ()
at rejected (D:\snapshot\katalon-agent\node_modules\simple-git\src\lib\runners\git-executor-chain.js:6:65)
task:
{ commands:
[ ‘clone’,
‘–depth’,
‘1’,
‘–branch’,
‘main’,
https://myname%40mycompany.com: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@github.com/myname/MaintenanceWeekend.git’,
‘C:\Katalon\katalon-agent-win-x64-v1.7.5\tmp\2022.12.01-14.3–15348-5hSqeXVk9QsY-1027997\MaintenanceWeekend.git’ ],
format: ‘utf-8’,
parser: [Function: parser] } }
[2022-12-01T20:03:20.864Z] [ERROR]: Error: spawn git ENOENT
at Process.ChildProcess._handle.onexit (internal/child_process.js:240:19)
at onErrorNT (internal/child_process.js:415:16)
at process._tickCallback (internal/process/next_tick.js:63:19)
{
“task”: {
“commands”: [
“clone”,
“–depth”,
“1”,
“–branch”,
“main”,
https://myname%40lmycompany.com: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@github.com/myname/MaintenanceWeekend.git”,
“C:\Katalon\katalon-agent-win-x64-v1.7.5\tmp\2022.12.01-14.3–15348-5hSqeXVk9QsY-1027997\MaintenanceWeekend.git”
],
“format”: “utf-8”
}
}
[2022-12-01T14:03:21.103] [INFO] katalon - put https://katalon-test.s3-accelerate.amazonaws.com/2b1f443c-554d-42c7-bcef-e57343c6e15b?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Date=20221201T200319Z&X-Amz-SignedHeaders=host&X-Amz-Expires=3600&X-Amz-Credential=AKIAIXB3N7Z3SQHJU4MQ%2F20221201%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Signature=51d6d3ee3b0e9757e9d4c7c75399583fe7392fbba3e4bf2552ad15d1f25255f7 200.
[2022-12-01T14:03:21.385] [INFO] katalon - post https://testops.katalon.io/api/v1/jobs/1027997/notify 200.
[2022-12-01T14:03:21.706] [INFO] katalon - post https://testops.katalon.io/api/v1/jobs/update-job 200.
[2022-12-01T14:03:21.707] [INFO] katalon - Uploading job execution log…
[2022-12-01T14:03:22.320] [INFO] katalon - get https://testops.katalon.io/api/v1/files/upload-url 200.
[2022-12-01T14:03:22.910] [INFO] katalon - put https://katalon-test.s3-accelerate.amazonaws.com/58c93271-458e-4552-9a77-6b1c11a228e6?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Date=20221201T200322Z&X-Amz-SignedHeaders=host&X-Amz-Expires=3600&X-Amz-Credential=AKIAIXB3N7Z3SQHJU4MQ%2F20221201%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Signature=e8bf04d295f68ae7ac7b65b87e75b71edb3b3cfdc9164e2b4784da7e5aaf8451 200.
[2022-12-01T14:03:23.395] [INFO] katalon - post https://testops.katalon.io/api/v1/jobs/save-log 200.
[2022-12-01T14:03:23.396] [INFO] katalon - Job execution log uploaded.
[2022-12-01T14:03:23.704] [INFO] katalon - post https://testops.katalon.io/api/v1/jobs/1027997/notify 200.
[2022-12-01T14:04:19.037] [INFO] katalon - get https://testops.katalon.io/api/v1/jobs/get-job 200.
[2022-12-01T14:04:19.055] [INFO] katalon - post https://testops.katalon.io/api/v1/agent 200.
[2022-12-01T14:05:19.034] [INFO] katalon - get https://testops.katalon.io/api/v1/jobs/get-job 200.
[2022-12-01T14:05:19.150] [INFO] katalon - post https://testops.katalon.io/api/v1/agent 200.

Hi @fcorosas ,

Thank you for sharing your issue. I will investigate your problem and come back to you soon.

Thank you!

I was able to pass this problem, the issue was I didn’t have git installed on the remote computer. I thought that having Github desktop installed will be enough but didn’t work. So, installing git resolved the issue Git - Downloads.

However, I hit a new problem, this time seems to be a certificate issue

[2022-12-06T09:48:29.722] [ERROR] katalon - executeJob: { Error: Cloning into ‘C:\Katalon\katalon-agent-win-x64-v1.7.5\tmp\2022.12.06-9.48–18224-rG64xWtWDXVx-1034320\Maintenance.git’…
fatal: unable to access ‘https://github.com/myuser/Maintenance.git/’: SSL certificate problem: unable to get local issuer certificate

Any hints on how to resolve this issue?

This seems to be network issue. Check if you are using private network (VPN, …) or not. If yes, try not to use private one or tell your company’s ITHelpdesk to add Katalon domain to list