-
-
Notifications
You must be signed in to change notification settings - Fork 80.7k
gateway install fails with error 5 when home directory is on external APFS volume #60398
Copy link
Copy link
Open
Labels
P1High-priority user-facing bug, regression, or broken workflow.High-priority user-facing bug, regression, or broken workflow.clawsweeper:linked-pr-openClawSweeper found an open linked pull request for this issue.ClawSweeper found an open linked pull request for this issue.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.ClawSweeper does not recommend queueing a new automated fix PR for this issue.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.ClawSweeper found a high-confidence source-level issue reproduction.impact:crash-loopCrash, hang, restart loop, or process-level availability failure.Crash, hang, restart loop, or process-level availability failure.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.Very strong issue quality with high-confidence source-level or clear reproduction.maturity:stableIssue affects a taxonomy feature currently scored M4/M5.Issue affects a taxonomy feature currently scored M4/M5.
Description
Metadata
Metadata
Assignees
Labels
P1High-priority user-facing bug, regression, or broken workflow.High-priority user-facing bug, regression, or broken workflow.clawsweeper:linked-pr-openClawSweeper found an open linked pull request for this issue.ClawSweeper found an open linked pull request for this issue.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.ClawSweeper does not recommend queueing a new automated fix PR for this issue.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.ClawSweeper found a high-confidence source-level issue reproduction.impact:crash-loopCrash, hang, restart loop, or process-level availability failure.Crash, hang, restart loop, or process-level availability failure.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.Very strong issue quality with high-confidence source-level or clear reproduction.maturity:stableIssue affects a taxonomy feature currently scored M4/M5.Issue affects a taxonomy feature currently scored M4/M5.
Type
Fields
Priority
None yet
Environment
/Volumes/MainDataDrive)Problem
openclaw gateway installalways fails with:macOS
launchdcannot bootstrap LaunchAgent plists from non-boot APFS volumes, even with disk ownership enabled viadiskutil enableOwnership.The plist itself is valid (
plutil -lintpasses), the service is enabled inlaunchctl print-disabled, and all referenced paths exist. The issue is purely thatlaunchdrefuses to bootstrap from an external volume.Steps to reproduce
/Volumes/<externalDrive>/Users/username)openclaw gateway installBootstrap failed: 5: Input/output errorWorkaround
Manually copy the plist to the boot volume and bootstrap from there:
Suggested fix
When the resolved
~/Library/LaunchAgentspath is not on the boot volume, write the plist to/Users/<username>/Library/LaunchAgents/on the boot volume instead. The boot volume root can be detected viadiskutil info /or by checkingstat -f "%Sd" /vsstat -f "%Sd" ~/.Note:
openclaw gateway install --forcemakes the situation worse — it unloads the working service and then fails to re-bootstrap from the external volume.