[GH-ISSUE #150] Fails to start on mac #50

Closed
opened 2026-02-27 07:20:10 +03:00 by kerem · 3 comments
Owner

Originally created by @parmindersk on GitHub (Feb 20, 2026).
Original GitHub issue: https://github.com/KeygraphHQ/shannon/issues/150

Command to run shannon:
./shannon start URL=http://localhost/login REPO=app CONFIG=./configs/config.yaml

{
"type": "workflowExecutionFailedEventAttributes",
"failure": {
"message": "Activity task failed",
"cause": {
"message": "Failed to spawn Claude Code process: spawn node ENOENT",
"source": "TypeScriptSDK",
"stackTrace": "ApplicationFailure: Failed to spawn Claude Code process: spawn node ENOENT\n at ApplicationFailure.nonRetryable (/app/node_modules/@temporalio/common/lib/failure.js:207:16)\n at runAgentActivity (file:///app/dist/temporal/activities.js:137:48)\n at async Activity.execute (/app/node_modules/@temporalio/worker/lib/activity.js:101:20)\n at async NativeConnection.withAbortSignal (/app/node_modules/@temporalio/worker/lib/connection.js:172:16)\n at async Client.withAbortSignal (/app/node_modules/@temporalio/client/lib/base-client.js:65:16)\n at async /app/node_modules/@temporalio/worker/lib/activity.js:161:32\n at async /app/node_modules/@temporalio/worker/lib/worker.js:725:30",
"applicationFailureInfo": {
"type": "AgentExecutionError",
"nonRetryable": true,
"details": {
"payloads": [
[
{
"agentName": "pre-recon",
"attemptNumber": 1,
"elapsed": 43
}
]
]
}
}
},
"activityFailureInfo": {
"scheduledEventId": "11",
"startedEventId": "12",
"identity": "1@3ec435e167ae",
"activityType": {
"name": "runPreReconAgent"
},
"activityId": "2",
"retryState": "RETRY_STATE_NON_RETRYABLE_FAILURE"
}
},
"retryState": "RETRY_STATE_RETRY_POLICY_NOT_SET",
"workflowTaskCompletedEventId": "22"
}

Originally created by @parmindersk on GitHub (Feb 20, 2026). Original GitHub issue: https://github.com/KeygraphHQ/shannon/issues/150 Command to run shannon: ./shannon start URL=http://localhost/login REPO=app CONFIG=./configs/config.yaml { "type": "workflowExecutionFailedEventAttributes", "failure": { "message": "Activity task failed", "cause": { "message": "Failed to spawn Claude Code process: spawn node ENOENT", "source": "TypeScriptSDK", "stackTrace": "ApplicationFailure: Failed to spawn Claude Code process: spawn node ENOENT\n at ApplicationFailure.nonRetryable (/app/node_modules/@temporalio/common/lib/failure.js:207:16)\n at runAgentActivity (file:///app/dist/temporal/activities.js:137:48)\n at async Activity.execute (/app/node_modules/@temporalio/worker/lib/activity.js:101:20)\n at async NativeConnection.withAbortSignal (/app/node_modules/@temporalio/worker/lib/connection.js:172:16)\n at async Client.withAbortSignal (/app/node_modules/@temporalio/client/lib/base-client.js:65:16)\n at async /app/node_modules/@temporalio/worker/lib/activity.js:161:32\n at async /app/node_modules/@temporalio/worker/lib/worker.js:725:30", "applicationFailureInfo": { "type": "AgentExecutionError", "nonRetryable": true, "details": { "payloads": [ [ { "agentName": "pre-recon", "attemptNumber": 1, "elapsed": 43 } ] ] } } }, "activityFailureInfo": { "scheduledEventId": "11", "startedEventId": "12", "identity": "1@3ec435e167ae", "activityType": { "name": "runPreReconAgent" }, "activityId": "2", "retryState": "RETRY_STATE_NON_RETRYABLE_FAILURE" } }, "retryState": "RETRY_STATE_RETRY_POLICY_NOT_SET", "workflowTaskCompletedEventId": "22" }
kerem closed this issue 2026-02-27 07:20:10 +03:00
Author
Owner

@ezl-keygraph commented on GitHub (Feb 20, 2026):

Thanks for reporting, could you follow the below steps and provide us the workflow.log? And if you are testing against a local application then the url should be http://host.docker.internal:port as specified in the README.md

  • Check the audit logs at: ./audit-logs/target_url_shannon-123/workflow.log
    Use grep or search to identify errors.
    Paste the relevant error output below.

Could you also share if you are using ANTHROPIC_API_KEY or CLAUDE_CODE_OAUTH_TOKEN ?

These would help us reproduce the error on our side, thanks!

<!-- gh-comment-id:3932373459 --> @ezl-keygraph commented on GitHub (Feb 20, 2026): Thanks for reporting, could you follow the below steps and provide us the workflow.log? And if you are testing against a local application then the url should be `http://host.docker.internal:port` as specified in the `README.md` - Check the audit logs at: `./audit-logs/target_url_shannon-123/workflow.log` Use grep or search to identify errors. Paste the relevant error output below. Could you also share if you are using `ANTHROPIC_API_KEY` or `CLAUDE_CODE_OAUTH_TOKEN `? These would help us reproduce the error on our side, thanks!
Author
Owner

@parmindersk commented on GitHub (Feb 20, 2026):

I'm using OPENAI instead of ANTHROPIC.

My .env:

OPENAI_API_KEY=<<<MY_KEY>>>
ROUTER_DEFAULT=openai,gpt-5.2
ROUTER=true

Log is as below:

================================================================================
Shannon Pentest - Workflow Log
================================================================================
Workflow ID: host-docker-internal_shannon-1771609079690
Target URL:  http://host.docker.internal:5173/login
Started:     2026-02-20T17:37:59.744Z
================================================================================

[2026-02-20 17:37:59] [PHASE] Starting: pre-recon
[2026-02-20 17:37:59] [AGENT] pre-recon: Starting (attempt 1)
[2026-02-20 17:37:59] [AGENT] pre-recon: Failed - Failed to spawn Claude Code process: spawn node ENOENT (3ms $0.00)

================================================================================
Workflow FAILED
────────────────────────────────────────
Workflow ID: host-docker-internal_shannon-1771609079690
Status:      failed
Duration:    0ms
Total Cost:  $0.0000
Agents:      0 completed
Error:       Activity task failed

Agent Breakdown:
================================================================================
<!-- gh-comment-id:3936252287 --> @parmindersk commented on GitHub (Feb 20, 2026): I'm using OPENAI instead of ANTHROPIC. My .env: ``` OPENAI_API_KEY=<<<MY_KEY>>> ROUTER_DEFAULT=openai,gpt-5.2 ROUTER=true ``` Log is as below: ``` ================================================================================ Shannon Pentest - Workflow Log ================================================================================ Workflow ID: host-docker-internal_shannon-1771609079690 Target URL: http://host.docker.internal:5173/login Started: 2026-02-20T17:37:59.744Z ================================================================================ [2026-02-20 17:37:59] [PHASE] Starting: pre-recon [2026-02-20 17:37:59] [AGENT] pre-recon: Starting (attempt 1) [2026-02-20 17:37:59] [AGENT] pre-recon: Failed - Failed to spawn Claude Code process: spawn node ENOENT (3ms $0.00) ================================================================================ Workflow FAILED ──────────────────────────────────────── Workflow ID: host-docker-internal_shannon-1771609079690 Status: failed Duration: 0ms Total Cost: $0.0000 Agents: 0 completed Error: Activity task failed Agent Breakdown: ================================================================================ ```
Author
Owner

@ezl-keygraph commented on GitHub (Feb 20, 2026):

Thanks for reporting! Fixed in #152.

<!-- gh-comment-id:3937121727 --> @ezl-keygraph commented on GitHub (Feb 20, 2026): Thanks for reporting! Fixed in #152.
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/shannon-KeygraphHQ#50
No description provided.