Fix silverbullet-git push failing with "No user exists for uid 1000"
Deploy with Docker Compose / deploy (push) Successful in 28s
Deploy with Docker Compose / deploy (push) Successful in 28s
The sidecar runs as uid 1000 so its commits match the vault's ownership on the host, but alpine/git has no passwd entry for that uid. ssh resolves the calling uid before it does anything else and aborts when it cannot, so every push failed at "No user exists for uid 1000" without reaching the deploy key. Mount a minimal passwd file that defines the uid. SilverBullet's own entrypoint creates the user at boot for the same reason; this container has no entrypoint of its own, so the entry is supplied as a file. Verified on the Pi: with the mount, ssh authenticates as the silverbullet-git deploy key; without it, the uid error reproduces. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01BCQFvkvorAw1xwhd5gL2qZ
This commit is contained in:
@@ -388,6 +388,8 @@ services:
|
||||
- ${OBSIDIAN_DIR}:/space
|
||||
- ./silverbullet/git-sync.sh:/git-sync.sh:ro
|
||||
- ./silverbullet/ssh:/ssh:ro
|
||||
# ssh will not run for a uid with no passwd entry; see the file's comment.
|
||||
- ./silverbullet/passwd:/etc/passwd:ro
|
||||
|
||||
# FastAPI side-service, proxied at /py/ with the prefix stripped by nginx.
|
||||
# ROOT_PATH=/py tells FastAPI it is mounted under a prefix so the generated
|
||||
|
||||
Reference in New Issue
Block a user