openclaw - 💡(How to fix) Fix [Bug]: Run setup.sh fail with Error: EACCES: permission denied on v2026.5.3 and later [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openclaw/openclaw#80381Fetched 2026-05-11 03:15:18
View on GitHub
Comments
1
Participants
2
Timeline
2
Reactions
2
Timeline (top)
commented ×1labeled ×1

Running Docker setup.sh on v2026.5.3 and later fails at sync_gateway_config() on Windows/WSL install with output: Error: EACCES: permission denied, mkdir '/mnt/c'.

Error Message

Running Docker setup.sh on v2026.5.3 and later fails at sync_gateway_config() on Windows/WSL install with output: Error: EACCES: permission denied, mkdir '/mnt/c'. Error: EACCES: permission denied, mkdir '/mnt/c' Error: EACCES: permission denied, mkdir '/mnt/c'

Root Cause

Running Docker setup.sh on v2026.5.3 and later fails at sync_gateway_config() on Windows/WSL install with output: Error: EACCES: permission denied, mkdir '/mnt/c'.

RAW_BUFFERClick to expand / collapse

Bug type

Regression (worked before, now fails)

Beta release blocker

No

Summary

Running Docker setup.sh on v2026.5.3 and later fails at sync_gateway_config() on Windows/WSL install with output: Error: EACCES: permission denied, mkdir '/mnt/c'.

Steps to reproduce

  1. Attempt to install OpenClaw from VSCode terminal with command wsl -e bash -c OPENCLAW_IMAGE=openclaw:local OPENCLAW_CONFIG_DIR=/mnt/c/Users/Trevor/.openclaw OPENCLAW_WORKSPACE_DIR=/mnt/c/Users/Trevor/.openclaw/workspace OPENCLAW_SANDBOX=1 OPENCLAW_SKIP_ONBOARDING=True scripts/docker/setup.sh
  2. Observe output: Reusing gateway token from /mnt/c/Users/Trevor/.openclaw/openclaw.json ==> Building Docker image: openclaw:local ==> Fixing data-directory permissions Container ai-suite-openclaw-gateway-run-de2cb1f55390 Creating Container ai-suite-openclaw-gateway-run-de2cb1f55390 Created ==> Skipping onboarding (OPENCLAW_SKIP_ONBOARDING is set) ==> Docker gateway defaults Container ai-suite-openclaw-gateway-run-f9338eec61ae Creating Container ai-suite-openclaw-gateway-run-f9338eec61ae Created Error: EACCES: permission denied, mkdir '/mnt/c'

Expected behavior

In v2026.5.2, the installation output is as expected: Reusing gateway token from /mnt/c/Users/Trevor/.openclaw/openclaw.json ==> OpenClaw environment variables:

  • ROOT_DIR: /mnt/c/Users/Trevor/Projects/ai-suite/openclaw
  • COMPOSE_FILE: /mnt/c/Users/Trevor/Projects/ai-suite/openclaw/docker-compose.yml
  • EXTRA_COMPOSE_FILE: /mnt/c/Users/Trevor/Projects/ai-suite/openclaw/docker-compose.extra.yml
  • OPENCLAW_IMAGE: openclaw:local
  • OPENCLAW_GATEWAY_TOKEN: 30e2ef25537b142ca441934436f1231d5a37043645dc35298d6374ae7ec9d523
  • OPENCLAW_CONFIG_DIR: /mnt/c/Users/Trevor/.openclaw
  • OPENCLAW_WORKSPACE_DIR: /mnt/c/Users/Trevor/.openclaw/workspace
  • OPENCLAW_SANDBOX: 1
  • OPENCLAW_INSTALL_DOCKER_CLI: 1
  • OPENCLAW_GATEWAY_PORT: 18789
  • OPENCLAW_BRIDGE_PORT: 18790
  • OPENCLAW_GATEWAY_BIND: lan
  • OPENCLAW_SKIP_ONBOARDING: 1
  • OPENCLAW_DISABLE_BONJOUR:
  • OPENCLAW_EXTRA_MOUNTS:
  • OPENCLAW_HOME_VOLUME:
  • OPENCLAW_DOCKER_APT_PACKAGES:
  • OPENCLAW_EXTENSIONS:
  • OPENCLAW_DOCKER_SOCKET: /var/run/docker.sock
  • DOCKER_GID: 1001
  • OPENCLAW_ALLOW_INSECURE_PRIVATE_WS:
  • OPENCLAW_TZ:
  • OTEL_EXPORTER_OTLP_ENDPOINT:
  • OTEL_EXPORTER_OTLP_TRACES_ENDPOINT:
  • OTEL_EXPORTER_OTLP_METRICS_ENDPOINT:
  • OTEL_EXPORTER_OTLP_LOGS_ENDPOINT:
  • OTEL_EXPORTER_OTLP_PROTOCOL:
  • OTEL_SERVICE_NAME:
  • OTEL_SEMCONV_STABILITY_OPT_IN:
  • OPENCLAW_OTEL_PRELOADED: ==> Building Docker image: openclaw:local

==> Fixing data-directory permissions Container ai-suite-openclaw-gateway-run-f2ec155e00b9 Creating Container ai-suite-openclaw-gateway-run-f2ec155e00b9 Created

==> Skipping onboarding (OPENCLAW_SKIP_ONBOARDING is set)

==> Docker gateway defaults Control UI allowlist already configured; leaving gateway.controlUi.allowedOrigins unchanged. Container ai-suite-openclaw-gateway-run-6f16d3a54980 Creating Container ai-suite-openclaw-gateway-run-6f16d3a54980 Created Config overwrite: /home/node/.openclaw/openclaw.json (sha256 99a00627a54e9f2c1436d3ee71574e372151acdd0cb7aa3e0ff8023c05c5fdf4 -> ec052c967103040dd6d1daf6b96adf58bf0184d9d3cd7d2ce3332eb41296a990, backup=/home/node/.openclaw/openclaw.json.bak) Pinned gateway.mode=local and gateway.bind=lan for Docker setup.

==> Provider setup (optional) WhatsApp (QR): docker compose -f /mnt/c/Users/Trevor/Projects/ai-suite/openclaw/docker-compose.yml run --rm openclaw-cli channels login Telegram (bot token): docker compose -f /mnt/c/Users/Trevor/Projects/ai-suite/openclaw/docker-compose.yml run --rm openclaw-cli channels add --channel telegram --token <token> Discord (bot token): docker compose -f /mnt/c/Users/Trevor/Projects/ai-suite/openclaw/docker-compose.yml run --rm openclaw-cli channels add --channel discord --token <token> Docs: https://docs.openclaw.ai/channels

==> Starting gateway [+] up 1/1 ✔ Container openclaw-gateway Started 0.5s

==> Sandbox setup Building sandbox image: openclaw-sandbox:bookworm-slim ==> Sandbox: added Docker socket mount Container ai-suite-openclaw-cli-run-54beed4bae9a Creating Container ai-suite-openclaw-cli-run-54beed4bae9a Created Config overwrite: /home/node/.openclaw/openclaw.json (sha256 ec052c967103040dd6d1daf6b96adf58bf0184d9d3cd7d2ce3332eb41296a990 -> b45d88dc04d6135fdeac2d83a8b0b2582d018022bcc205357317aad00c2cac06, backup=/home/node/.openclaw/openclaw.json.bak) Container ai-suite-openclaw-cli-run-fb34abb4864f Creating Container ai-suite-openclaw-cli-run-fb34abb4864f Created Config overwrite: /home/node/.openclaw/openclaw.json (sha256 b45d88dc04d6135fdeac2d83a8b0b2582d018022bcc205357317aad00c2cac06 -> e303cdfe5caa9ace1ffaa78198822d125e1f42d68fe846800a94aa12ff6ff33f, backup=/home/node/.openclaw/openclaw.json.bak) Container ai-suite-openclaw-cli-run-b1fe4c79aa47 Creating Container ai-suite-openclaw-cli-run-b1fe4c79aa47 Created Config overwrite: /home/node/.openclaw/openclaw.json (sha256 e303cdfe5caa9ace1ffaa78198822d125e1f42d68fe846800a94aa12ff6ff33f -> c2cefc24354b5115673035bf0640b073bf3d5f64100765313cb17d8da1b63882, backup=/home/node/.openclaw/openclaw.json.bak) Sandbox enabled: mode=non-main, scope=agent, workspaceAccess=none Docs: https://docs.openclaw.ai/gateway/sandboxing [+] up 1/1 ✔ Container openclaw-gateway Started 1.2s

Gateway running with host port mapping. Access from tailnet devices via the host's tailnet IP. Config: /mnt/c/Users/Trevor/.openclaw Workspace: /mnt/c/Users/Trevor/.openclaw/workspace Token: 30e2ef25537b142ca441934436f1231d5a37043645dc35298d6374ae7ec9d523

Commands: docker compose -f /mnt/c/Users/Trevor/Projects/ai-suite/openclaw/docker-compose.yml logs -f openclaw-gateway docker compose -f /mnt/c/Users/Trevor/Projects/ai-suite/openclaw/docker-compose.yml exec openclaw-gateway node dist/index.js health --token "30e2ef25537b142ca441934436f1231d5a37043645dc35298d6374ae7ec9d523"

Actual behavior

Error: EACCES: permission denied, mkdir '/mnt/c'

OpenClaw version

2026.5.3 to 2026.5.7

Operating system

Windows 11/WSL

Install method

Docker, VSCode

Model

ollama/llama3.2:latest

Provider / routing chain

openclaw

Additional provider/model setup details

No response

Logs, screenshots, and evidence

Impact and severity

Affected: installation Severity: blocks installation Frequency: always Consequence: Incomplete installation

Additional information

Last working version was v2026.5.2

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

FAQ

Expected behavior

In v2026.5.2, the installation output is as expected: Reusing gateway token from /mnt/c/Users/Trevor/.openclaw/openclaw.json ==> OpenClaw environment variables:

  • ROOT_DIR: /mnt/c/Users/Trevor/Projects/ai-suite/openclaw
  • COMPOSE_FILE: /mnt/c/Users/Trevor/Projects/ai-suite/openclaw/docker-compose.yml
  • EXTRA_COMPOSE_FILE: /mnt/c/Users/Trevor/Projects/ai-suite/openclaw/docker-compose.extra.yml
  • OPENCLAW_IMAGE: openclaw:local
  • OPENCLAW_GATEWAY_TOKEN: 30e2ef25537b142ca441934436f1231d5a37043645dc35298d6374ae7ec9d523
  • OPENCLAW_CONFIG_DIR: /mnt/c/Users/Trevor/.openclaw
  • OPENCLAW_WORKSPACE_DIR: /mnt/c/Users/Trevor/.openclaw/workspace
  • OPENCLAW_SANDBOX: 1
  • OPENCLAW_INSTALL_DOCKER_CLI: 1
  • OPENCLAW_GATEWAY_PORT: 18789
  • OPENCLAW_BRIDGE_PORT: 18790
  • OPENCLAW_GATEWAY_BIND: lan
  • OPENCLAW_SKIP_ONBOARDING: 1
  • OPENCLAW_DISABLE_BONJOUR:
  • OPENCLAW_EXTRA_MOUNTS:
  • OPENCLAW_HOME_VOLUME:
  • OPENCLAW_DOCKER_APT_PACKAGES:
  • OPENCLAW_EXTENSIONS:
  • OPENCLAW_DOCKER_SOCKET: /var/run/docker.sock
  • DOCKER_GID: 1001
  • OPENCLAW_ALLOW_INSECURE_PRIVATE_WS:
  • OPENCLAW_TZ:
  • OTEL_EXPORTER_OTLP_ENDPOINT:
  • OTEL_EXPORTER_OTLP_TRACES_ENDPOINT:
  • OTEL_EXPORTER_OTLP_METRICS_ENDPOINT:
  • OTEL_EXPORTER_OTLP_LOGS_ENDPOINT:
  • OTEL_EXPORTER_OTLP_PROTOCOL:
  • OTEL_SERVICE_NAME:
  • OTEL_SEMCONV_STABILITY_OPT_IN:
  • OPENCLAW_OTEL_PRELOADED: ==> Building Docker image: openclaw:local

==> Fixing data-directory permissions Container ai-suite-openclaw-gateway-run-f2ec155e00b9 Creating Container ai-suite-openclaw-gateway-run-f2ec155e00b9 Created

==> Skipping onboarding (OPENCLAW_SKIP_ONBOARDING is set)

==> Docker gateway defaults Control UI allowlist already configured; leaving gateway.controlUi.allowedOrigins unchanged. Container ai-suite-openclaw-gateway-run-6f16d3a54980 Creating Container ai-suite-openclaw-gateway-run-6f16d3a54980 Created Config overwrite: /home/node/.openclaw/openclaw.json (sha256 99a00627a54e9f2c1436d3ee71574e372151acdd0cb7aa3e0ff8023c05c5fdf4 -> ec052c967103040dd6d1daf6b96adf58bf0184d9d3cd7d2ce3332eb41296a990, backup=/home/node/.openclaw/openclaw.json.bak) Pinned gateway.mode=local and gateway.bind=lan for Docker setup.

==> Provider setup (optional) WhatsApp (QR): docker compose -f /mnt/c/Users/Trevor/Projects/ai-suite/openclaw/docker-compose.yml run --rm openclaw-cli channels login Telegram (bot token): docker compose -f /mnt/c/Users/Trevor/Projects/ai-suite/openclaw/docker-compose.yml run --rm openclaw-cli channels add --channel telegram --token <token> Discord (bot token): docker compose -f /mnt/c/Users/Trevor/Projects/ai-suite/openclaw/docker-compose.yml run --rm openclaw-cli channels add --channel discord --token <token> Docs: https://docs.openclaw.ai/channels

==> Starting gateway [+] up 1/1 ✔ Container openclaw-gateway Started 0.5s

==> Sandbox setup Building sandbox image: openclaw-sandbox:bookworm-slim ==> Sandbox: added Docker socket mount Container ai-suite-openclaw-cli-run-54beed4bae9a Creating Container ai-suite-openclaw-cli-run-54beed4bae9a Created Config overwrite: /home/node/.openclaw/openclaw.json (sha256 ec052c967103040dd6d1daf6b96adf58bf0184d9d3cd7d2ce3332eb41296a990 -> b45d88dc04d6135fdeac2d83a8b0b2582d018022bcc205357317aad00c2cac06, backup=/home/node/.openclaw/openclaw.json.bak) Container ai-suite-openclaw-cli-run-fb34abb4864f Creating Container ai-suite-openclaw-cli-run-fb34abb4864f Created Config overwrite: /home/node/.openclaw/openclaw.json (sha256 b45d88dc04d6135fdeac2d83a8b0b2582d018022bcc205357317aad00c2cac06 -> e303cdfe5caa9ace1ffaa78198822d125e1f42d68fe846800a94aa12ff6ff33f, backup=/home/node/.openclaw/openclaw.json.bak) Container ai-suite-openclaw-cli-run-b1fe4c79aa47 Creating Container ai-suite-openclaw-cli-run-b1fe4c79aa47 Created Config overwrite: /home/node/.openclaw/openclaw.json (sha256 e303cdfe5caa9ace1ffaa78198822d125e1f42d68fe846800a94aa12ff6ff33f -> c2cefc24354b5115673035bf0640b073bf3d5f64100765313cb17d8da1b63882, backup=/home/node/.openclaw/openclaw.json.bak) Sandbox enabled: mode=non-main, scope=agent, workspaceAccess=none Docs: https://docs.openclaw.ai/gateway/sandboxing [+] up 1/1 ✔ Container openclaw-gateway Started 1.2s

Gateway running with host port mapping. Access from tailnet devices via the host's tailnet IP. Config: /mnt/c/Users/Trevor/.openclaw Workspace: /mnt/c/Users/Trevor/.openclaw/workspace Token: 30e2ef25537b142ca441934436f1231d5a37043645dc35298d6374ae7ec9d523

Commands: docker compose -f /mnt/c/Users/Trevor/Projects/ai-suite/openclaw/docker-compose.yml logs -f openclaw-gateway docker compose -f /mnt/c/Users/Trevor/Projects/ai-suite/openclaw/docker-compose.yml exec openclaw-gateway node dist/index.js health --token "30e2ef25537b142ca441934436f1231d5a37043645dc35298d6374ae7ec9d523"

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

openclaw - 💡(How to fix) Fix [Bug]: Run setup.sh fail with Error: EACCES: permission denied on v2026.5.3 and later [1 comments, 2 participants]