Re: Lock file error

Patrick Giasson <[email protected]>
Newsgroups gmane.network.unison.general
Message-ID <[email protected]>

On Tuesday, November 28, 2023 at 9:46:16 PM UTC-5 Greg Troxel wrote:

Patrick Giasson <[email protected]> writes: 

> It was working properly for as long as I can remember, but lately, I'm 
> getting the error: 
> Fatal error: Warning: the archives are locked. 
> 
> There is a lk file in the server .unison directory. If I delete it, it 
get 
> recreated the next time I run unison. 

And what is in the client's .unison? 

 
There are 5 files in the client's .unison folder:

arabec6a3150636e945a3de3aa41043bf4
fpabec6a3150636e945a3de3aa41043bf4
default.prf
unison.log
fp3744fac518d046553d1edcd5b7a74c01


here is the default.prf file:

# Unison preferences
label = Synchronise les documents vers le serveur
root = /home/SYNDICAT/user
root = ssh://[email protected]//home/SYNDICAT/user 
<https://urldefense.com/v3/__http://[email protected]/*home/SYNDICAT/j-f.st-pierre__;Lw!!IBzWLUs!Qz2gpV4YS8wKbbUIPbx6HdTF9aAFOqBVbOTOnpdEYB7rLhNhHAlnRF1glLyGELp6MoNiZDtff14O86o6DZaGI55OHgfmkCts2Q$ >
sshargs = -C
ignore = Name .*
ignore = Path .unison



> I'm positive that I'm not syncing a local folder to the same folder over 
> ssh because if I use the -ignorelocks switch on the command line, it 
works 
> properly. 

I don't see how this follows, but a useful datapoint. 

 
That was in the FAQ as a reason I might get that error.
 


> I'm running Unison 2.51.5 (ocaml 4.13.1) on both the clients and the 
> server. I'm reluctant to install a later version as it could break my 
> packages on my LTS server. 

I don't see how an up-to-date unison would break other things. But you 
are on the mailinglist, where it's ok to ask about old code, as long as 
you tell us about it... 


Just updated to 2.53.3 (ocaml 4.14.1) on both the client and the server


> I also have the ignore = Name .* in the config file to prevent syncing 
the 
> .unison folder. 

This points out that you left out most of what you are doing. 

Did you try ignoring .unison explicitly? 


I did in the latest test, as stated above with default.prf. Same error:

Fatal error: Warning: the archives are locked.

Thanks for your help.

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.