Re: Lock file error

Patrick Giasson <[email protected]>
Newsgroups gmane.network.unison.general
Message-ID <[email protected]>
On Thursday, December 14, 2023 at 5:05:28 AM UTC-5 Tõivo Leedjärv wrote:

On Fri, 8 Dec 2023 at 19:41, Patrick Giasson <[email protected]> wrote: 
> 
> Did you try ignoring .unison explicitly? 
> 
> I did in the latest test, as stated above with default.prf. Same error: 

This shouldn't be necessary, as you correctly pointed out that Name .* 
also ignores .unison. If this made any difference (but we know it 
didn't) then it would be a bug. 

> Fatal error: Warning: the archives are locked. 

This typically means one of two things. Either there are multiple 
unison processes running at the same time or the previous run ended in 
a crash (or a hang, which is really the same as multiple processes in 
parallel). 


No rogue unison process on the server.
 

It is visible from the debug output that the lock file appears on the 
server. Is this always the case when you run into this problem? 


Yes, lk file always appear on the server.


client ip address: 10.0.0.222
server ip address: 10.0.0.2
I tried restarting from the beginning with the example in the manual:
All commands are typed on the client:


$unison -version
unison version 2.53.3 (ocaml 4.14.1)

$ssh server unison -version
unison version 2.53.3 (ocaml 4.14.1)

$mkdir a.tmp

$ls
a.tmp  Bureau  Desktop  Documents  Images  Modèles  Musique  Public 
 Téléchargements  Vidéos  Warpinator

$ssh server ls
Bureau  Desktop  Documents  Images  Modèles  Musique  Public  
Téléchargements  Vidéos  Warpinator

unison -testServer a.tmp ssh://server/a.tmp
Fatal error: cannot synchronize more than one remote root

 

That's weird.

Just to make sure there's no hidden remote-mounted filesystem:

$df a.tmp
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda3          121967248 36143460   79582048  32% /


So a.tmp is definitely a local file on a local drive, but unison sees it as 
a remote root.


For disclosure, I'm using samba as AD-DC. Could it make a difference? Local 
home is still on a local drive.

Patrick

-- 
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.