Just tried to upgrade Joplin (from v2.2.7 to v2.3.3) this morning (Win10 21H1 19043.1165 laptop) when I received this strange error message:
Error
The sync target could not be upgraded due to an error. For support, please copy the complete content of this page and paste it in the forum: https://discourse.joplinapp.org/
The full error was:
Cannot acquire exclusive lock because the following clients have a sync lock on the target: (desktop #4abbb6b47e5446ac89ef43d0d5060265)
Error: Cannot acquire exclusive lock because the following clients have a sync lock on the target: (desktop #4abbb6b47e5446ac89ef43d0d5060265)
at LockHandler.<anonymous> (C:\Program Files\Joplin\resources\app.asar\node_modules\@joplin\lib\services\synchronizer\LockHandler.js:223:31)
at Generator.next (<anonymous>)
at fulfilled (C:\Program Files\Joplin\resources\app.asar\node_modules\@joplin\lib\services\synchronizer\LockHandler.js:5:58)
Is there any manual operation I can do to fix this issue?
I got the same error today on my Android phone. I closed Joplin on my PC and laptop, retried to sync and the error vanished. Or was it just a coincidence ?
Now everything's working as expected.
(Note : I updated all my Joplin installations yesterday)
You're right and everything's working fine after 15mn retry!
However, I still get this weird blank screen at first launch (must close the app and reopen to see the notes) and I now have a new issue: a large left margin displays on every note, thus reducing the available space for information... Any clue?
I did it twice with 5 minutes interval. It did'nt work... this is the message I receive:
Error
The sync target could not be upgraded due to an error. For support, please copy the complete content of this page and paste it in the forum: https://discourse.joplinapp.org/
The full error was:
PUT locks/exclusive_desktop_86845757cb4a43808ee1af2fd4f7e3c2.json: Unknown error 2 (412): <?xml version="1.0" encoding="iso-8859-1"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>412 Precondition Failed</title> </head> <body> <h1>412 Precondition Failed</h1> </body> </html>
Error: PUT locks/exclusive_desktop_86845757cb4a43808ee1af2fd4f7e3c2.json: Unknown error 2 (412): <?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>412 Precondition Failed</title>
</head>
<body>
<h1>412 Precondition Failed</h1>
</body>
</html>
at newError (C:\Program Files\Joplin\resources\app.asar\node_modules\@joplin\lib\WebDavApi.js:414:11)
at WebDavApi.exec (C:\Program Files\Joplin\resources\app.asar\node_modules\@joplin\lib\WebDavApi.js:444:10)
at async FileApiDriverWebDav.put (C:\Program Files\Joplin\resources\app.asar\node_modules\@joplin\lib\file-api-driver-webdav.js:201:10)