#463·shannon

[BUG]: Windows: start crashes with SHANNON_UNEXPECTED_ERROR — directory fsync throws EISDIR

Author: Waku777Created Sep 19, 2026Updated Sep 21, 2026

Describe the bug

The Temporal readiness probe targets the hostname localhost. Docker's embedded DNS at 127.0.0.11 answers A records normally but never answers SRV or TXT queries — it times out rather than returning NXDOMAIN. grpc-go's dns resolver requires LookupSRV("_grpclb._tcp.") and LookupTXT("_grpc_config.") to complete before it will emit any address, even when the A record has already resolved from /etc/hosts. Every hostname-based gRPC target inside a container therefore hangs until its deadline, surfacing as context deadline exceeded rather than a connection error. An IP literal skips the resolver entirely and connects instantly.

Ruled out: IPv6 address selection (reproduces with net.ipv6.conf.{all,default,lo}.disable_ipv6=1 and with the ::1 localhost line removed from the container's /etc/hosts), disk I/O (1.2 GB/s measured inside the VM), memory (166 MiB of 7.6 GiB), CPU (0.25%), stale volume (reproduces on a fresh container with no volume), and stale 2.x state (reproduces on a clean install).

Affected:

  • apps/cli/src/docker.ts — TEMPORAL_ADDRESS = 'localhost:7233'
  • apps/cli/src/temporal-client.ts — ADDRESS = 'localhost:7233'
  • apps/cli/infra/compose.yml and root docker-compose.yml — healthcheck --address localhost:7233

Suggested fix: use 127.0.0.1:7233 in all four places. The target is always container-loopback, so the DNS round trip buys nothing and costs a hard dependency on resolver behaviour that varies by Docker installation. Verified working on two machines.

Steps to reproduce

  1. Windows 11 with Docker Desktop (WSL2 backend).
  2. Start Temporal: docker compose -f "<npm root -g>@keygraph\shannon\infra\compose.yml" up -d
  3. Wait past the 30s start_period, then compare the two addresses against the same container:
bash
docker exec shannon-temporal temporal operator cluster health --address 127.0.0.1:7233
docker exec shannon-temporal temporal operator cluster health --address localhost:7233
  1. Confirm the resolver behaviour:
bash
docker run --rm --network shannon-net alpine nslookup api.anthropic.com
docker run --rm --network shannon-net alpine sh -c "nslookup -type=SRV _grpclb._tcp.localhost"
docker run --rm --network shannon-net alpine sh -c "nslookup -type=TXT _grpc_config.localhost"
  1. shannon start -u https://example.com -r C:\some\repo -w repro-2
  2. docker inspect shannon-temporal --format "{{json .State.Health}}"

Expected behaviour

Both --address forms return SERVING against the same container. The compose healthcheck passes, the container reports healthy, isTemporalReady() returns true, and shannon start proceeds past Waiting for Temporal to be ready without delay.

Actual behaviour

Only the IP literal works. Same container, same server, same second:

--address 127.0.0.1:7233  ->  SERVING
--address localhost:7233  ->  Error: failed reaching server: context deadline exceeded

The DNS queries in step 4 show A records resolving instantly while SRV and TXT both time out:

nslookup api.anthropic.com                   -> 160.79.104.10, instant
nslookup -type=SRV _grpclb._tcp.localhost    -> ;; connection timed out; no servers could be reached  (5.00s)
nslookup -type=TXT _grpc_config.localhost    -> ;; connection timed out; no servers could be reached  (5.00s)

shannon start hangs on Waiting for Temporal to be ready for exactly 60 seconds, then exits 1 with Temporal did not become ready in time. The container reports (unhealthy) throughout with every probe logged as ExitCode: -1, "Health check exceeded timeout (5s)", while its Web UI on :8233 loads normally the entire time.

Pre-submission checklist (required)

  • I have searched the existing open issues and confirmed this bug has not already been reported.
  • 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

No response

Screenshots

No response

CLI mode

npx (@keygraph/shannon)

Provider

Other provider (Pi catalogue)

Full command with all flags used (with redactions)

shannon start -u http://host.docker.internal:8080 -r C:\some\repo -w repro-2

OS (with version)

Microsoft Windows 11 Version: 10.0.22631 Build 22631

Node.js version ('node -v')

v24.21.0

Docker version ('docker -v')

Docker version 29.8.0, build 88096ef

Additional context

No response