Re: Problem with sync on an ARM Mac

Tõivo Leedjärv <[email protected]> Thu, 2 May 2024 20:40:18 +0200
Newsgroups gmane.network.unison.general
Message-ID <CAALvpZTtfeR1ysVw4Gyma8FkZWe29+8w229r4K7R9DStFJQwZA@mail.gmail.com>
Could it be that the laptop changes the name automatically? See a
recent thread in the archive:
https://urldefense.com/v3/__https://groups.google.com/a/seas.upenn.edu/g/unison-users/c/B3iVo66Wi-w__;!!IBzWLUs!VJQ1420HoPfaaCfkoasWF8yUz7Rq3sPmPiT64n4t3lPZwtW8TEUtMcfSTWW7iMz2vk9EHxR8cr7q7NVVF4DJQQ$ 
Basically, even if not doing a sync over the network, if the local
hostname changes, it will cause the lookup of archive files to fail.
If you don't know if the hostname changes, you can put this theory to
test by including the "clientHostName" preference with a constant
value to see if this helps or not.

On Thu, 2 May 2024 at 19:25, Christophe Leterrier
<[email protected]> wrote:
>
> Hi, long time Unison user here on Mac and Windows. I have a setup for more than 10 years now to backup and sync my work computer. It goes like this:
>
> A whole "Work" folder from my desktop Mac (Intel iMac, drive is APFS SSD, MacOS 13.6.6) is synced to a folder on a 2 TB external SSD drive (formatted as APFS). It uses Unison 2.53.3 with ocaml 4.14.1
> I then sync a subset of this folder (some subfolders etc.) from the external SSD drive to my laptop (MacBook Air M2, APFS SSD drive, MacOS 13.6.6) to keep with what I'm currently working on. It uses Unison 2.53.4 with ocaml 4.14.1.
> I go from iMac to laptop and back using the external drive, syncing on each machine to update with what I've done on the other.
>
> No problem syncing between iMac and external drive, but when I try to sync between external drive and laptop, I often get the "No archive files were found for these roots" error. I have to delete the archives files in Library/Application Support/Unison, rescan the whole thing and then it accepts to sync the small changes. Then it works for ~24h before complaining about the missing archive files (even if I only worked on the laptop in between, meaning the external drive was synced with the laptop last, next day I sync again with the laptop, I get the error).
>
> How can I help get this problem solved? It's hard to keep using Unison if it entails a ~1h sync and rebuilding archives every time I sync with one of my two computers. I posted this on Unison Github and was pointed to this mailing list with the hint that "My Mac keeps changing paths" but I don't know what that means or how to avoid it?
>
> —
>
> To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].

To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].