Sync Target fails, PUT .sync/readme.txt

Upgrading to the latest Version Sync Target Upgrade fails with following error:

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:

Could not upgrade from version 1 to version 2: PUT .sync/readme.txt: Unknown error 2 (403): <html> <head><title>403 Forbidden</title></head> <body> <center><h1>403 Forbidden</h1></center> <hr><center>nginx</center> </body> </html>

Error: Could not upgrade from version 1 to version 2: PUT .sync/readme.txt: Unknown error 2 (403): <html>
<head><title>403 Forbidden</title></head>
<body>
<center><h1>403 Forbidden</h1></center>
<hr><center>nginx</center>
</body>
</html>

at newError (/Applications/Joplin.app/Contents/Resources/app.asar/lib/WebDavApi.js:399:11)
at WebDavApi.exec (/Applications/Joplin.app/Contents/Resources/app.asar/lib/WebDavApi.js:429:10)

My NC installation is in a subfolder named sync, but not .sync. URL to NC looks like https://example.com/sync/.

Bye
Thomas

I'm stuck with the same error.

Thomas, did you try uploading a 'readme.txt' file to your NC ?
This give me an 'unknown error has occurred'

Here it was a ACL configured in my NGINX. A WordPress hardening tool was a little bit overmotivated and had also blocked "readme.txt" outside its scope. Removing this ACL has fixed it.

1 Like