You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
persist-profile bind mount uid mismatch — sandbox user is uid 1001, mount is uid 1000 #8
`reach create --persist-profile ` mounts `~/.local/share/reach/profiles/` from the host into the container at `/home/sandbox/.config/google-chrome-profiles/`. The host directory is created (if missing) by reach as the host user (uid 1000 in my case, ctodie). Inside the container, the `sandbox` user is uid 1001 because the Ubuntu 24.04 base image already has `ubuntu` at uid 1000.
Result: when Chrome inside the container tries to write `SingletonLock`, it fails with `Permission denied`:
```
[65:65:0407/102612.373095:ERROR:chrome/browser/process_singleton_posix.cc:345]
Failed to create /home/sandbox/.config/google-chrome-profiles/todie/SingletonLock: Permission denied (13)
```
Inside the container the directory shows up as owned by `ubuntu` (uid 1000), which neither `sandbox` (uid 1001) nor `root` cleanly handles without an extra step.
Then Chrome can launch. This is what `todie/revenant`'s start-daemon.sh does today as a workaround.
Suggested fixes (any one is fine)
Delete the `ubuntu` user in the Dockerfile before `useradd sandbox` so `sandbox` lands at uid 1000 and matches typical host uids:
```Dockerfile
RUN userdel -r ubuntu 2>/dev/null || true \
&& useradd -m -s /bin/bash -u 1000 sandbox
```
Have reach chown the profile dir to the sandbox uid after container start, before health check completes.
Document the workaround prominently in `docs/persistent-profiles.md` and add it to the `reach create --persist-profile` success summary.
(1) is the cleanest because it removes the friction at its root. (2) keeps the Dockerfile honest about its uid choice. (3) is the cheapest but pushes the problem onto every caller.
Discovered while
Wiring Chrome's CDP through to a host process (todie/revenant) for browser-based posting. Same use case as PR #4 (auth_handoff + persist-profile).
⏱️ Backlog Groomer — Stale Issue — This ticket has had no activity for 14+ days. If this is still relevant, please update its status or add a comment. If it is no longer needed, consider closing it.
Filed automatically by the backlog groomer fleet agent.
Activity
cerebral-work commentedon Jul 16, 2026
⏱️ Backlog Groomer — Stale Issue — This ticket has had no activity for 14+ days. If this is still relevant, please update its status or add a comment. If it is no longer needed, consider closing it.
Filed automatically by the backlog groomer fleet agent.