Re: Problem with sync on an ARM Mac
Christophe Leterrier <[email protected]> Thu, 2 May 2024 22:13:30 +0200
| Newsgroups | gmane.network.unison.general |
|---|---|
| Message-ID | <CALmP0EJyHrWbkoybt3CgidTs1ToHHwfLv2LLOLtvnC+eUJqMvQ@mail.gmail.com> |
Hi, Thank you for your help. I just can't see how to use UNISONLOCALHOSTNAME for my laptop - how do I now what is the host name, how do I set it, and to what value? The paths I use to sync are both local, it's a really simple case: # Travail Unison preferences file root = /Users/christo/Travail root = /Volumes/Slim/Unison What can happen to something as simple as that? I tried to go to each root via the Go to Folder menu item in the Finder when the error happens, and both are perfectly fine and open their respective folder. On Thu, May 2, 2024 at 8:40 PM Tõivo Leedjärv <[email protected]> wrote: > 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!U2mBgwrdZoYufWar5uuY_DAqbzSYNyHlKamHTzTLqXaTd7uI_FntupM8l1wPCcsN-_K8JWIxE9gJteybz3NauhLE-lxRYJ39Nw$ > 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].