Re: unison, davfs2, mv .unison failing...
Greg Troxel <[email protected]> Tue, 04 Aug 2026 08:19:46 -0400
| Newsgroups | gmane.network.unison.general |
|---|---|
| Message-ID | <[email protected]> |
Mo B <[email protected]> writes: > Hi, is there any way to disable the temporary .unison copies? The point is to write a new file and then do an atomic rename. I don't remember if there is an option to turn this off because I think the atomic rename is good for soundness (and I personally have no interest is less sound operation). > On davfs2 this is sometimes failing and I don't know why. That is the real issue, and I would suggest that you fix the actual problem. I would approach this by - running unison under ktrace/strace/ktruss however it is spelled on your system - turning on debug logs on the DAV server > I tried manually removing the stale .unison copies several times. I tried > different folder names and shorter pathes, different locations, but with > this directory it's always failing. All the other several Gigabytes on the > WebDAV server are working fine with unison, and there is enough space free. > > net-misc/unison-2.53.8 That's out of date, but there is no real hint of unison behaving badly. > net-fs/davfs2-1.7.3 > > # unison -ui text DAV_Documents -fastcheck true -debug all > ... > [files] rename(root=/mnt/autofs/davfs/hidrive/public, > localPath=Documents/TODO.260727, > pathOld=.unison.TODO.260727.161efda76924fe565b32ea2ffb5e1855.unison.tmp, > pathNew=TODO.260727) > [update] checkNoUpdates /mnt/autofs/davfs/hidrive/public > Documents/TODO.260727 > [update] buildUpdateRec: > /mnt/autofs/davfs/hidrive/public/Documents/TODO.260727 > [update] buildUpdate -> Absent and no archive > [files] Renaming > .unison.TODO.260727.161efda76924fe565b32ea2ffb5e1855.unison.tmp to > TODO.260727 in /mnt/autofs/davfs/hidrive/public/Documents; root is > /mnt/autofs/davfs/hidrive/public > [files] rename: moveFirst=false > [stasher] backup: /mnt/autofs/davfs/hidrive/public / Documents/TODO.260727 > [pred] follow 'Documents/TODO.260727' = false > [fspath] > Os.findWorkingDir(/mnt/autofs/davfs/hidrive/public,Documents/TODO.260727) = > (/mnt/autofs/davfs/hidrive/public/Documents,TODO.260727) > [stasher] File Documents/TODO.260727 in /mnt/autofs/davfs/hidrive/public > does not exist, so no need to back up > [os] rename > /mnt/autofs/davfs/hidrive/public/Documents/.unison.TODO.260727.161efda76924fe565b32ea2ffb5e1855.unison.tmp > to /mnt/autofs/davfs/hidrive/public/Documents/TODO.260727 > [exn] Converting a Unix error to Transient: > Error in renaming > /mnt/autofs/davfs/hidrive/public/Documents/.unison.TODO.260727.161efda76924fe565b32ea2ffb5e1855.unison.tmp > to /mnt/autofs/davfs/hidrive/public/Documents/TODO.260727: > Input/output error Did you try to just run 'mv' with these paths in the shell? It looks to me like either the local dav fs provider, the network, or the server is flaky. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].