Re: Fwd: Error: Warning: the archives are locked.
Tõivo Leedjärv <[email protected]> Thu, 9 Oct 2025 08:28:40 +0200
| Newsgroups | gmane.network.unison.general |
|---|---|
| Message-ID | <CAALvpZQr2byfgFxQKKewgO-NSEvv5HS02R2Fp+OX2Z75g7wnUw@mail.gmail.com> |
--0000000000001476600640b3eaae Content-Type: text/plain; charset="UTF-8" I don't think there is much you can do. I believe there is currently no code in Unison to remove stale lock files on process exit. There probably should be. That won't help against dropped connections, of course, but it would make the next attempt run cleanly. Toivo On Tue, 7 Oct 2025 at 00:41, 'Daniela Rivas' via unison-users < [email protected]> wrote: > Dear Unison mailing list, > > I hope this email finds you well. > > We have been using Unison for more than a year and we are very satisfied > with the program, however we are reaching out to you because we encountered > a small issue with the sync file in unstable network conditions. > > Let me explain our use case: We have more than 20 clients that sync to one > server. The clients and the server have Unison installed. These clients can > lose connection and get it back hours after. > > In the last past months we have seen this error repeat across the clients. > > Roots: > /www/uploads > ssh://user@server//www/uploads > > > *Error: Lost connection with the server* > Unison 2.53.5 (ocaml 4.14.2) log started at 2025-09-17 at 12:29:52 > > Roots: > /www/uploads > ssh://user@server//www/uploads > > *Error: Warning: the archives are locked.* > > If no other instance of unison is running, the locks should be removed. > The file /unison/lkb3c54ad2dbed82fb3d2ee570190a9551 on host myclient > should be deleted > The file /home/ > [email protected]/.unison/lka45db4ec67afbd5f4fbc6a3bc9ba8225 > <https://urldefense.com/v3/__http://[email protected]/.unison/lka45db4ec67afbd5f4fbc6a3bc9ba8225__;!!IBzWLUs!ScwYVrW5Ib1eJH8DsLZLCJXT2POtpPa7TEy4rcFTxk0nEkmT-QpQ0dcq3_I3BocLfNsRWi4Wbto8bZtqe-fVnF9bHQxdkic$> > on host myserver12 should be deleted > Please delete lock files as appropriate and try again. > > Once we delete the files in the client and the server (sometimes the lock > file is only present on the server) the program resumes to run > successfully. > > Would you have any suggestions/improvements or any unison commands that we > can run to prevent this type issue? We appreciate any feedback you could > give us. > > Looking forward to hearing from you. > Thanks in advance. > > Best regards, > Daniela Rivas | Devops > > 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]. --0000000000001476600640b3eaae Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div>I don't think there is much you can do.</div><div= ><br></div><div>I believe there is currently no code in Unison to remove st= ale lock files on process exit. There probably should be. That won't he= lp against dropped connections, of course, but it would make the next attem= pt run cleanly.</div><div><br></div><div>Toivo</div></div><br><div class=3D= "gmail_quote gmail_quote_container"><div dir=3D"ltr" class=3D"gmail_attr">O= n Tue, 7 Oct 2025 at 00:41, 'Daniela Rivas' via unison-users <<a= href=3D"mailto:[email protected]">[email protected]</a= >> wrote:<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0px= 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><di= v dir=3D"ltr"><div>Dear Unison mailing list,</div><div class=3D"gmail_quote= "><div dir=3D"ltr"><div><br></div><div>I hope this email finds you well.</d= iv><div><br></div><div>We have been using Unison for more than a year and w= e are very satisfied with the program,=C2=A0however we=C2=A0are reaching ou= t to you because=C2=A0we encountered a small issue with the sync file in un= stable network conditions.</div><div><br></div><div>Let me explain our use = case: We have more than 20 clients that sync to one server. The clients and= the server have Unison installed. These clients can lose connection and ge= t it back hours after.=C2=A0</div><div><br></div><div>In the last past mont= hs we have seen this error repeat across=C2=A0the clients.</div><div><br></= div><div>Roots:</div><div>=C2=A0 /www/uploads<br>=C2=A0 ssh://user@server//= www/uploads<br><br><b>Error: Lost connection with the server<br></b><br>Uni= son 2.53.5 (ocaml 4.14.2) log started at 2025-09-17 at 12:29:52<br><br>Root= s:<br>=C2=A0 /www/uploads<br>=C2=A0 ssh://user@server//www/uploads<br><br><= b>Error: Warning: the archives are locked.</b></div><div><b><br></b>If no o= ther instance of unison is running, the locks should be removed.<br>The fil= e /unison/lkb3c54ad2dbed82fb3d2ee570190a9551 on host myclient should be del= eted<br>The file /home/<a href=3D"https://urldefense.com/v3/__http://myuser= @myserver.com/.unison/lka45db4ec67afbd5f4fbc6a3bc9ba8225__;!!IBzWLUs!ScwYVr= W5Ib1eJH8DsLZLCJXT2POtpPa7TEy4rcFTxk0nEkmT-QpQ0dcq3_I3BocLfNsRWi4Wbto8bZtqe= -fVnF9bHQxdkic$" target=3D"_blank">[email protected]/.unison/lka45db4ec67= afbd5f4fbc6a3bc9ba8225</a> on host myserver12 should be deleted<br>Please d= elete lock files as appropriate and try again.</div><div><br></div><div>Onc= e we delete the files in the client and the server (sometimes the lock file= is only present on the server) the program resumes to run successfully.=C2= =A0<br><br></div><div>Would you have any suggestions/improvements or any un= ison commands that we can run to prevent this type issue? We appreciate any= feedback you could give us.</div><div><br></div><div>Looking forward to he= aring from you.</div><div>Thanks in advance.</div><div><br></div><div><div = dir=3D"ltr" class=3D"gmail_signature"><div dir=3D"ltr"><div style=3D"color:= rgb(136,136,136)"><span style=3D"color:rgb(0,0,0)"><span style=3D"font-fami= ly:verdana,sans-serif">Best regards,</span></span></div><div style=3D"color= :rgb(136,136,136)"><span style=3D"color:rgb(0,0,0)"><span style=3D"font-fam= ily:verdana,sans-serif">Daniela Rivas | Devops</span></span></div><div styl= e=3D"color:rgb(136,136,136)"><img src=3D"https://ci3.googleusercontent.com/= mail-sig/AIorK4w1o2w0sXTCUBusSHQ1YqDizToyQZM1pFKcw8i_37U_a1gT7EV8CdyufDqHdD= lt2MJKf7mkxLM" width=3D"96" height=3D"45"></div></div></div></div></div> </div></div> <p></p> To unsubscribe from this group and stop receiving emails from it, send an e= mail to <a href=3D"mailto:[email protected]" target= =3D"_blank">[email protected]</a>.<br> </blockquote></div> <p></p> To unsubscribe from this group and stop receiving emails from it, send an e= mail to <a href=3D"mailto:[email protected]">unison-u= [email protected]</a>.<br /> --0000000000001476600640b3eaae--