From df04ff7164c5948d005510a9d89a371bb2e0d2ec Mon Sep 17 00:00:00 2001 From: gapul <92638132+gapul@users.noreply.github.com> Date: Sun, 9 Aug 2026 18:24:17 +0900 Subject: [PATCH] fix(mutagen): create the remote parent directory before creating the session mutagen creates the synchronization root but not the directories above it. With no ~/Sync on the far side the session came up connected and healthy-looking, and only a transition problem on the beta endpoint revealed that nothing could ever be written. --- nix/home/mutagen-sync.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nix/home/mutagen-sync.nix b/nix/home/mutagen-sync.nix index 57a426bb..ed68d2e1 100644 --- a/nix/home/mutagen-sync.nix +++ b/nix/home/mutagen-sync.nix @@ -84,6 +84,10 @@ let fi echo "$(date '+%F %T') creating session ${host}" >>"${logFile}" + # mutagen creates the synchronization root but not the directories above it, and a missing + # parent only shows up afterwards as a transition problem on a session that otherwise looks + # healthy ("unable to walk to transition root parent"). Make the parent first. + /usr/bin/ssh -o BatchMode=yes "${sshHost}" "mkdir -p ${remoteDir}" >>"${logFile}" 2>&1 || true # Creating a session contacts the far side to install the agent, so this is also where an # unreachable or unconfigured host shows up. mutagen keeps reconnecting on its own once # the session exists, so this only ever runs again after a terminate.