Skip to content

fix(install): skip empty CONTAINER_SOCK mount on Windows+WSL#930

Open
forcoder wants to merge 1 commit into
agentscope-ai:mainfrom
forcoder:fix/windows-wsl-installer
Open

fix(install): skip empty CONTAINER_SOCK mount on Windows+WSL#930
forcoder wants to merge 1 commit into
agentscope-ai:mainfrom
forcoder:fix/windows-wsl-installer

Conversation

@forcoder

Copy link
Copy Markdown

Summary

The embedded controller's podman run unconditionally mounts -v "${CONTAINER_SOCK}:/var/run/docker.sock". On Windows + WSL the installer cannot auto-detect a Unix socket path (no systemctl, no /run/podman/podman.sock), so CONTAINER_SOCK is empty and podman fails with "host directory cannot be empty" — blocking every install attempt on Windows.

  • Wrap the socket mount (and matching --security-opt label=disable) in a check for non-empty CONTAINER_SOCK
  • Add an INFO log when running embedded mode
  • Add a WARNING log when CONTAINER_SOCK is empty, telling users Worker creation won't work until a real Docker/Podman socket is available

Test plan

  • On a Windows+WSL host, run HICLAW_NON_INTERACTIVE=1 ./install/hiclaw-install.sh manager — should no longer fail with "host directory cannot be empty"
  • On a Linux host with a working podman socket, verify the socket is still mounted as before
  • On a Linux host without a podman socket (e.g. HICLAW_MOUNT_SOCKET=0), verify the controller starts with a warning

🤖 Generated with Claude Code

The embedded controller's podman run unconditionally mounted
-v "${CONTAINER_SOCK}:/var/run/docker.sock". On Windows + WSL
the installer cannot auto-detect a Unix socket path (no systemd,
no /run/podman/podman.sock), so CONTAINER_SOCK is empty and
podman fails with "host directory cannot be empty" — blocking every
install attempt.

Wrap the socket mount (and matching --security-opt) in a check for
non-empty CONTAINER_SOCK. Add an INFO log when running embedded and a
WARNING when the socket is missing, so users know Worker creation
won't work until a real Docker/Podman socket is available.
@github-actions

Copy link
Copy Markdown
Contributor

❌ Integration Tests Failed (controller-cr / mgr=copaw / wk=copaw)

Commit: 3d3dc2f
Workflow run: #1327

Test Results
No test output captured.
Debug Log (tail)
No debug logs available.

📦 Download full debug logs & test artifacts

@github-actions

Copy link
Copy Markdown
Contributor

❌ Integration Tests Failed (llm-interaction-2 / mgr=copaw / wk=copaw)

Commit: 3d3dc2f
Workflow run: #1327

Test Results
No test output captured.
Debug Log (tail)
No debug logs available.

📦 Download full debug logs & test artifacts

@github-actions

Copy link
Copy Markdown
Contributor

❌ Integration Tests Failed (controller-cr / mgr=openclaw / wk=openclaw)

Commit: 3d3dc2f
Workflow run: #1327

Test Results
No test output captured.
Debug Log (tail)
No debug logs available.

📦 Download full debug logs & test artifacts

@github-actions

Copy link
Copy Markdown
Contributor

❌ Integration Tests Failed (llm-interaction-2 / mgr=copaw / wk=hermes)

Commit: 3d3dc2f
Workflow run: #1327

Test Results
No test output captured.
Debug Log (tail)
No debug logs available.

📦 Download full debug logs & test artifacts

@github-actions

Copy link
Copy Markdown
Contributor

❌ Integration Tests Failed (llm-interaction / mgr=openclaw / wk=openclaw)

Commit: 3d3dc2f
Workflow run: #1327

Test Results
No test output captured.
Debug Log (tail)
No debug logs available.

📦 Download full debug logs & test artifacts

@github-actions

Copy link
Copy Markdown
Contributor

❌ Integration Tests Failed (llm-interaction-2 / mgr=openclaw / wk=openclaw)

Commit: 3d3dc2f
Workflow run: #1327

Test Results
No test output captured.
Debug Log (tail)
No debug logs available.

📦 Download full debug logs & test artifacts

@github-actions

Copy link
Copy Markdown
Contributor

❌ Integration Tests Failed (controller-cr-2 / mgr=copaw / wk=copaw)

Commit: 3d3dc2f
Workflow run: #1327

Test Results
No test output captured.
Debug Log (tail)
No debug logs available.

📦 Download full debug logs & test artifacts

@github-actions

Copy link
Copy Markdown
Contributor

❌ Integration Tests Failed (llm-interaction / mgr=copaw / wk=copaw)

Commit: 3d3dc2f
Workflow run: #1327

Test Results
No test output captured.
Debug Log (tail)
No debug logs available.

📦 Download full debug logs & test artifacts

@github-actions

Copy link
Copy Markdown
Contributor

❌ Integration Tests Failed (controller-cr / mgr=copaw / wk=hermes)

Commit: 3d3dc2f
Workflow run: #1327

Test Results
No test output captured.
Debug Log (tail)
No debug logs available.

📦 Download full debug logs & test artifacts

@github-actions

Copy link
Copy Markdown
Contributor

❌ Integration Tests Failed (llm-interaction / mgr=copaw / wk=hermes)

Commit: 3d3dc2f
Workflow run: #1327

Test Results
No test output captured.
Debug Log (tail)
No debug logs available.

📦 Download full debug logs & test artifacts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant