Self-heal vault/state ownership; run ob as the sync user #42
Loading…
Reference in a new issue
No description provided.
Delete branch "obsidian-sync-ownership"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Docker auto-creates missing bind sources as root:root, which locked the sync user out of its own vault (EACCES on downloads on beelink and tower). Containers now start as root solely to repair /state and vault ownership (chown -R the top level when the owner is wrong), then drop to OBSIDIAN_UID/GID via gosu for every ob call, so ob never writes as root and fresh hosts need no manual chown. go su resets $HOME, which hid the persisted auth token and forced a re-login on every start; run() pins HOME=/state through the drop, and the login pre-flight now retries transient failures but breaks immediately on a genuine 'No account logged in'.