Re: Lock file error

Patrick Giasson <[email protected]>
Newsgroups gmane.network.unison.general
Message-ID <[email protected]>
Here is the debug all output :


[startup] Preferences:
ui = graphic
listen = 
socket = 
server = false
prefsman = 
prefsdocs = false
doc = 
version = false
i = false
color = default
silent = false
dumbtty = false
testserver = false
showprev = false
selftest = false
confirmmerge = false
retry = 0
repeat = 
contactquietly = false
key = 
label = Synchronise les documents vers le serveur
expert = false
height = 15
auto = false
maxthreads = 0
maxsizethreshold = -1
prefer = 
force = 
sortnewfirst = false
sortbysize = false
keeptempfilesaftermerge = false
diff = diff -u OLDER NEWER
copyonconflict = false
backupdir = 
maxbackups = 2
backups = false
backupsuffix = 
backupprefix = .bak.$VERSION.
backuploc = central
copymax = 1
copythreshold = -1
copyprogrest = rsync --partial --append-verify --compress
copyprog = rsync --partial --inplace --compress
rsync = true
fastcheck = default
ignorelocks = false
dumparchives = false
showarchive = false
rootsName = 
ignorearchives = false
fastercheckUNSAFE = false
fat = false
allHostsAreRunningWindows = false
someHostIsRunningWindows = false
ignore = Path .unison
ignore = Name .*
confirmbigdel = true
batch = false
root = ssh://[email protected]//home/SYNDICAT/user
root = /home/SYNDICAT/user
killserver = false
halfduplex = false
stream = true
addversionno = false
servercmd = 
sshargs = -C
sshcmd = ssh
xferbycopying = true
clientHostName = p686wvz1
ignoreinodenumbers = false
links-aux = true
links = default
acl = false
xattrignore = Regex !(security|trusted)[.].*
xattrignore = Path !system.posix_acl_*
xattrs = false
times = false
group = false
owner = false
numericids = false
dontchmod = false
perms = 1023
watch = false
rsrc-aux = false
rsrc = default
maxerrors = 1
unicodeCS = false
unicodeEnc = false
unicode = default
someHostIsInsensitive = false
ignorecase = default
timers = false
terse = false
logfile = unison.log
log = true
debugtimes = false
debug = all
addprefsto = 

Unison 2.53.3 (ocaml 4.14.1) log started at 2023-12-08 at 14:00:24

Roots:
  /home/SYNDICAT/user
<>!  ssh://[email protected]//home/SYNDICAT/user

Unison 2.53.3 (ocaml 4.14.1): Contacting server...
[remote] Shell connection: ssh (ssh, -l, user, serveurdell.syndicat.org, 
-e, none, -C, unison, -server, __new-rpc-mode)
[remote] Received RPC version upgrade notice
[remote] Going to attempt RPC version upgrade
[remote] Selected RPC version: 1
[features] Supported features:
  - Sync: ACL
  - Sync: xattr
[features] Common features for root /home/SYNDICAT/user:
  - Sync: ACL
  - Sync: xattr
[features] Common features for root //serveurDell//home/SYNDICAT/user:
  - Sync: ACL
  - Sync: xattr
[features] Enabled features:
  - Sync: ACL
  - Sync: xattr
Connected [//p686wvz1//home/SYNDICAT/user -> 
//serveurDell//home/SYNDICAT/user]
 
[startup] Roots: 
        /home/SYNDICAT/user
        ssh://[email protected]//home/SYNDICAT/user
  i.e. 
        /home/SYNDICAT/user
        ssh://[email protected]//home/SYNDICAT/user
  i.e. (in canonical order)
       /home/SYNDICAT/user
       //serveurDell//home/SYNDICAT/user

[globals] Checking path '' for expansions
[props] Setting permission mask to 1777 (1777 and 7777)
[stasher] initBackupsLocal
[stasher] d = /
[stasher] Prefix and suffix regexps for backup filenames have been updated
[server: stasher] initBackupsLocal
[server: stasher] d = /
[server: stasher] Prefix and suffix regexps for backup filenames have been 
updated
Looking for changes
[ui] temp: Globals.paths = 
[pred] ignore '' = false
[update] Loading archive from 
/home/SYNDICAT/user/.unison/ar3744fac518d046553d1edcd5b7a74c01
[update] Archive 
/home/SYNDICAT/user/.unison/ar3744fac518d046553d1edcd5b7a74c01 not found
[update] Loading archive from 
/home/SYNDICAT/user/.unison/arabec6a3150636e945a3de3aa41043bf4
Growing heap to 2380k bytes
Growing page table to 2048 entries
[update] Setting archive for //p686wvz1//home/SYNDICAT/user
[server: update] Loading archive from 
/home/SYNDICAT/user/.unison/are397a70a253067454c6c79a735a60219
[server: update] Archive 
/home/SYNDICAT/user/.unison/are397a70a253067454c6c79a735a60219 not found
[server: update] Loading archive from 
/home/SYNDICAT/user/.unison/ar03a1e26e3d2b27f42c8634c3f5acd3f4
[server: update] Setting archive for //serveurDell//home/SYNDICAT/user
[update] findOnRoot //serveurDell//home/SYNDICAT/user
[update] findOnRoot /home/SYNDICAT/user
[update] findLocal /home/SYNDICAT/user ()
[fpcache] opening cache file 
/home/SYNDICAT/user/.unison/fp3744fac518d046553d1edcd5b7a74c01 for input
<>$<>Starting new major GC cycle
[fpcache] read chunk of 138 files
[fpcache] opening cache file 
/home/SYNDICAT/user/.unison/fp3744fac518d046553d1edcd5b7a74c01 for output
[pred] ignore '' = false
[update] buildUpdateRec: /home/SYNDICAT/user
[pred] atomic '' = false
[pred] immutable '' = false
[pred] ignore '.Xauthority' = true
[pred] ignorenot '.Xauthority' = false
[ignore] buildUpdateChildren: ignoring path .Xauthority
[pred] ignore '.bash_history' = true
[pred] ignorenot '.bash_history' = false
[ignore] buildUpdateChildren: ignoring path .bash_history
[pred] ignore '.bash_logout' = true
[pred] ignorenot '.bash_logout' = false
[ignore] buildUpdateChildren: ignoring path .bash_logout
[pred] ignore '.bashrc' = true
[pred] ignorenot '.bashrc' = false
[ignore] buildUpdateChildren: ignoring path .bashrc
[pred] ignore '.cache' = true
[pred] ignorenot '.cache' = false
[ignore] buildUpdateChildren: ignoring path .cache
[pred] ignore '.config' = true
[pred] ignorenot '.config' = false
[ignore] buildUpdateChildren: ignoring path .config
[pred] ignore '.dmrc' = true
[pred] ignorenot '.dmrc' = false
[ignore] buildUpdateChildren: ignoring path .dmrc
[pred] ignore '.gtkrc-2.0' = true
[pred] ignorenot '.gtkrc-2.0' = false
[ignore] buildUpdateChildren: ignoring path .gtkrc-2.0
[pred] ignore '.gtkrc-xfce' = true
[pred] ignorenot '.gtkrc-xfce' = false
[ignore] buildUpdateChildren: ignoring path .gtkrc-xfce
[pred] ignore '.lesshst' = true
[pred] ignorenot '.lesshst' = false
[ignore] buildUpdateChildren: ignoring path .lesshst
[pred] ignore '.local' = true
[pred] ignorenot '.local' = false
[ignore] buildUpdateChildren: ignoring path .local
[pred] ignore '.mozilla' = true
[pred] ignorenot '.mozilla' = false
[ignore] buildUpdateChildren: ignoring path .mozilla
[pred] ignore '.profile' = true
[pred] ignorenot '.profile' = false
[ignore] buildUpdateChildren: ignoring path .profile
[pred] ignore '.ssh' = true
[pred] ignorenot '.ssh' = false
[ignore] buildUpdateChildren: ignoring path .ssh
[pred] ignore '.unison' = true
[pred] ignorenot '.unison' = false
[ignore] buildUpdateChildren: ignoring path .unison
[pred] ignore '.xsession-errors' = true
[pred] ignorenot '.xsession-errors' = false
[ignore] buildUpdateChildren: ignoring path .xsession-errors
[pred] ignore '.xsession-errors.old' = true
[pred] ignorenot '.xsession-errors.old' = false
[ignore] buildUpdateChildren: ignoring path .xsession-errors.old
[pred] ignore 'Bureau' = false
[update] buildUpdateRec: /home/SYNDICAT/user/Bureau
[pred] atomic 'Bureau' = false
[pred] immutable 'Bureau' = false
[server: update] findLocal /home/SYNDICAT/user ()
[server: fpcache] opening cache file 
/home/SYNDICAT/user/.unison/fpe397a70a253067454c6c79a735a60219 for input
[pred] ignore 'Desktop' = false
[update] buildUpdateRec: /home/SYNDICAT/user/Desktop
[pred] atomic 'Desktop' = false
[pred] immutable 'Desktop' = false
[pred] ignore 'Desktop/2020-2024-CCT-Alma-Horaire.pdf' = false
[update] buildUpdateRec: 
/home/SYNDICAT/user/Desktop/2020-2024-CCT-Alma-Horaire.pdf
[update] checkContentsChange: archStamp is inode (4998256) / info.inode 
(4998256) / times: 1701184380.859832 = 1701184380.859832... true / lengths: 
1874980 - 1874980
[xferhint] insertEntry: fspath=/home/SYNDICAT/user, 
path=Desktop/2020-2024-CCT-Alma-Horaire.pdf, 
fp=(15cf4faaf6e704047bd58938641235ce,)
[pred] ignore 'Desktop/2021canlii122344.pdf' = false
[update] buildUpdateRec: /home/SYNDICAT/user/Desktop/2021canlii122344.pdf
[update] checkContentsChange: archStamp is inode (4998257) / info.inode 
(4998257) / times: 1701184380.879832 = 1701184380.879832... true / lengths: 
406625 - 406625
[xferhint] insertEntry: fspath=/home/SYNDICAT/user, 
path=Desktop/2021canlii122344.pdf, fp=(45b7b2d3b465255daadb1c48219d45c6,)
[pred] ignore 'Desktop/Absence et TS 2022.xlsx' = false
[update] buildUpdateRec: /home/SYNDICAT/user/Desktop/Absence et TS 2022.xlsx
[update] checkContentsChange: archStamp is inode (4998258) / info.inode 
(4998258) / times: 1701184380.895833 = 1701184380.895833... true / lengths: 
37999 - 37999
[xferhint] insertEntry: fspath=/home/SYNDICAT/user, path=Desktop/Absence et 
TS 2022.xlsx, fp=(f362c7ea5616c0ad0cb68dc0fb279dea,)
...
...
...
[server: pred] ignore 'Téléchargements/Étalement, maximum heure et 
norme.pdf' = false
[server: update] buildUpdateRec: 
/home/SYNDICAT/user/T\195\169l\195\169chargements/\195\137talement, maximum 
heure et norme.pdf
[server: update] checkContentsChange: archStamp is inode (2126074) / 
info.inode (2126074) / times: 1576596061.642723 = 1576596061.642723... true 
/ lengths: 44965 - 44965
[server: xferhint] insertEntry: fspath=/home/SYNDICAT/user, 
path=Téléchargements/Étalement, maximum heure et norme.pdf, 
fp=(684497fff1da63ccf1f590640c2786a9,)
[server: pred] ignore 'Téléchargements/Évaluation des emplois 01 juillet 
2020.doc' = false
[server: update] buildUpdateRec: 
/home/SYNDICAT/user/T\195\169l\195\169chargements/\195\137valuation des 
emplois 01 juillet 2020.doc
[server: update] checkContentsChange: archStamp is inode (2125751) / 
info.inode (2125751) / times: 1594038335.391732 = 1594038335.391732... true 
/ lengths: 131072 - 131072
[server: xferhint] insertEntry: fspath=/home/SYNDICAT/user, 
path=Téléchargements/Évaluation des emplois 01 juillet 2020.doc, 
fp=(dbeffb81c1d0804f1ccefe21d0e7d48c,)
[server: pred] ignore 'Vidéos' = false
[server: update] buildUpdateRec: /home/SYNDICAT/user/Vid\195\169os
[server: pred] atomic 'Vidéos' = false
[server: pred] immutable 'Vidéos' = false
[server: pred] ignore 'Warpinator' = false
[server: update] buildUpdateRec: /home/SYNDICAT/user/Warpinator
[server: pred] atomic 'Warpinator' = false
[server: pred] immutable 'Warpinator' = false
[server: pred] ignore 'toto' = false
[server: update] buildUpdateRec: /home/SYNDICAT/user/toto
[server: update]   buildUpdate -> New file
[server: fpcache] cache hit for path toto
[server: xferhint] insertEntry: fspath=/home/SYNDICAT/user, path=toto, 
fp=(d41d8cd98f00b204e9800998ecf8427e,)
[server: update] Setting archive for //serveurDell//home/SYNDICAT/user
Reconciling changes
[recon] reconcileAll
[pred] atomic '' = false
[recon] reconcile: 1 results
[update] Marking 1 paths equal
[update] markEqualLocal /home/SYNDICAT/user toto
[pred] backupcurr 'toto' = false
[update] Setting archive for //p686wvz1//home/SYNDICAT/user
[server: update] markEqualLocal /home/SYNDICAT/user toto
[server: pred] backupcurr 'toto' = false
[server: update] Setting archive for //serveurDell//home/SYNDICAT/user
[update] Updating archives
Fatal error: Warning: the archives are locked.  
If no other instance of unison is running, the locks should be removed.
The file /home/SYNDICAT/user/.unison/lke397a70a253067454c6c79a735a60219 on 
host serveurDell should be deleted
Please delete lock files as appropriate and try again.

On Friday, December 8, 2023 at 1:41:42 PM UTC-5 Patrick Giasson wrote:

> 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 
> <http://[email protected]//home/SYNDICAT/j-f.st-pierre>
> 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.