When running Shannon via `npx @keygraph/shannon start`, the CLI consistently times out with "Timeout waiting for workflow to start" before the worker container can register with Temporal and begin processing.
Describe the bug
When running Shannon via npx @keygraph/shannon start, the CLI consistently times out with "Timeout waiting for workflow to start" before the worker container can register with Temporal and begin processing.
Environment
- OS: Ubuntu 24.04 LTS (GCP VM, e2-standard-8)
- Docker: 27.x
- Node.js: v20.20.2
- Shannon: v1.0.0 (via npx)
- Provider: Google Vertex AI (us-east5)
Steps to reproduce
1.npx @keygraph/shannon setup (configure Vertex AI)
2. npx @keygraph/shannon start -u <url> -r <repo> -c <config>
3. CLI shows banner, then "Waiting for workflow to start..." with dots
4. After ~60s, "Timeout waiting for workflow to start"
Expected behaviour
Worker should start and workflow should begin processing.
Actual behaviour
The CLI times out, but running the worker container manually with docker run using the same config works perfectly — preflight passes, pre-recon agent launches, and Claude starts analyzing.
Pre-submission checklist (required)
- [x] I have searched the existing open issues and confirmed this bug has not already been reported.
- [x] I am running the latest released version of
shannon.
If applicable
- [ ] I have included relevant error messages, stack traces, or failure details.
- [ ] I have checked the workspaces folder for logs and pasted the relevant errors.
- [ ] I have inspected the failed Temporal workflow run and included the failure reason.
- [ ] I have included clear steps to reproduce the issue.
- [ ] I have redacted any sensitive information (tokens, URLs, repo names).
Debugging details
Running the worker container manually works:
docker run --rm --network shannon-net \
-e TEMPORAL_ADDRESS=shannon-temporal:7233 \
-e CLAUDE_CODE_USE_VERTEX=1 \
... \
keygraph/shannon:1.0.0 \
node apps/worker/dist/temporal/worker.js \
--task-queue shannon-pentest --config
Screenshots
No response
CLI mode
npx (@keygraph/shannon)
Provider
Google Vertex AI
Full command with all flags used (with redactions)
npx @keygraph/shannon start -u https://example.com/ -r ~/repo-of-my-app -c ~/congif-file.yaml
OS (with version)
Ubuntu 24.04 LTS (GCP VM, e2-standard-8)
Node.js version ('node -v')
v20.20.2
Docker version ('docker -v')
27.x
Additional context
- The worker container spawned by the CLI (
spawnWorkerinindex.mjs) uses--rmandstdio: "pipe", making it impossible to capture logs after timeout. - The timeout seems hardcoded and may be too short for the Vertex AI initialization + workflow bundling (~15-20s).
- Tested on both a manually cloned repo (
./shannon start) and npx — same behavior. - Works fine on macOS with OrbStack.
Thanks for reporting. Can you provide the following details which will be helpful for us to reproduce the issue on our side
- Are you able to successfully run Shannon with Vertex AI on macOS?
- Are you running
npx @keygraph/shannon startas root or as a non-root user on the Linux VM?
Are you able to successfully run Shannon with Vertex AI on macOS? Yes
Are you running npx @keygraph/shannon start as root or as a non-root user on the Linux VM? For both I have tried, and the result is same.
I am also facing similar issue on my macOS
Got the same behavior testing on Debian 13(ARM) and MacOS. Neither npx nor running directly from the Repo worked. The shannon-worker doesn't seem to start correctly or at all... also no logs to be found on what the could cause the error
A small update: I tried it again on a x86 platform in a LXC Container with fresh installed NodeJS 25.09 and I got it running. Seems to be related to Arm
i tried it on x86 platform , with node -v as 25 but even it failed to start the workflow . tested it both on npx and locally
I had the same issue and tracked it down to this: https://github.com/KeygraphHQ/shannon/blob/1f6dfd7e176c26a90f7e9ab3fef773155bcf940f/apps/cli/src/commands/start.ts#L82-L88
MacOS has the same behavior as Linux, but the check only looks for Linux
The fix should be to delete the os check or to add MacOS to it (thought if it's not needed to protect Windows clients it can probably just be removed)
Facing the same issue on Ubuntu 24.04.4 LTS.
Thank you for reporting this and for the additional details in the thread. We acknowledge the reports here and are actively investigating.
Based on what we have seen so far, this may be related either to AI provider-specific behavior with Vertex or to an operating system or environment-specific issue in Shannon's startup path. At this point, we cannot yet say with confidence which is the primary cause.
We are continuing to investigate and will follow up here once we have a clearer understanding of the root cause and next steps.
If it helps I'm using a Bedrock provider (proxied through a custom endpoint).
I removed the OS check I showed you and it fixed the issue for me so I can't speak for other users but that's at least ONE cause of this on OS X.
Thanks everyone for the reports and reproduction details.
Root cause was the os.platform() === 'linux' guard around the .shannon overlay mount-point pre-creation in apps/cli/src/commands/start.ts. We develop against Podman, which auto-creates missing folders on mount, so the guard worked fine in our environment. After running through the reported issues on Windows and macOS, it turned out Docker Desktop doesn't auto-create folders on mount the way Linux Docker does. On those platforms the block was skipped and the worker's read-only repo mount failed before registering with Temporal, surfacing as the "Timeout waiting for workflow to start" error.
The guard has been removed in e674547 and the fix will ship in the next release.
For Linux users: please make sure Docker is configured to run without sudo (see Docker post-install steps) and run Shannon as a regular user rather than as root.
We also shipped a related diagnostics improvement in #299: docker run daemon errors (mount failures, missing images, etc.) now surface to the terminal instead of being silently swallowed, and a new --debug flag preserves the worker container after exit so docker logs <name> can be inspected when the container starts but the worker crashes early.
If you still encounter issues after the next release, please feel free to reopen this issue (or open a new one) and share the docker logs output from a --debug run. That will help us investigate further.
Huge thanks to @akirilov for pinpointing the os.platform() === 'linux' guard as the root cause. Your diagnosis led us to an easy fix, and we really appreciate you taking the time to track it down.