PROPFIND : Unknown error 2 (500): (Code 500) with WebDAV synchronization

I post this a reference, since it might help others. From the following gh issue, which should have reported on the forum in the first place.


Cannot synchronize with WebDAV from my webspace provider (udmedia.de). It gives an error with Joplin. The displayed error message after a few seconds waiting time is: PROPFIND .lock/: Unknown error 2 (500).

From Edge for example access seems to work. Folders “.sync”, “.resource”, “.lock” are created.

Environment

Joplin version: 1.0.175
Platform: Windows
OS specifcs: 10

Steps To Reproduce

  1. Get webspace from udmedia.de that includes webdav capability.
  2. Setup webdav with this webspace.
  3. Insert webdav URL in Joplin/Options/Synchronization
  4. Check synchronization status or click on synchronize in the main window

Describe what you expected to happen:

No error. Synching instead.

Logfile

No output in the console.

From log file:

2020-01-03 17:57:04: "Garbage collecting alarms..."
2020-01-03 17:57:04: "RevisionService::maintenance: Starting..."
2020-01-03 17:57:04: "RevisionService::maintenance: Service is enabled"
2020-01-03 17:57:04: "RevisionService::collectRevisions: Created revisions for 0 notes"
2020-01-03 17:57:04: "RevisionService::maintenance: Done in 107ms"
2020-01-03 17:57:09: "Scheduling sync operation..."
2020-01-03 17:57:09: "Preparing scheduled sync"
2020-01-03 17:57:09: "Starting scheduled sync"
2020-01-03 17:57:30: "Error: MKCOL .sync/: Unknown error 2 (500): 
Code: 500
Error: MKCOL .sync/: Unknown error 2 (500): 
    at newError (C:\Program Files\Joplin\resources\app.asar\lib\WebDavApi.js:393:11)
    at WebDavApi.exec (C:\Program Files\Joplin\resources\app.asar\lib\WebDavApi.js:423:10)
    at process._tickCallback (internal/process/next_tick.js:68:7)"
2020-01-03 17:57:30: "Req 17:56:24: MKCOL https://webdav.frype.de/joplin/.sync/ {"headers":{"Authorization":"********","If-None-Match":"JoplinIgnore-89702","User-Agent":"Joplin/1.0"},"timeout":120000,"maxRetry":0}"
2020-01-03 17:57:30: "Res 17:56:24: "
2020-01-03 17:57:30: "Req 17:56:24: MKCOL https://webdav.frype.de/joplin/.lock/ {"headers":{"Authorization":"********","If-None-Match":"JoplinIgnore-3623","User-Agent":"Joplin/1.0"},"timeout":120000,"maxRetry":0}"
2020-01-03 17:57:30: "Res 17:56:24: "
2020-01-03 17:57:30: "Req 17:56:24: MKCOL https://webdav.frype.de/joplin/.resource/ {"headers":{"Authorization":"********","If-None-Match":"JoplinIgnore-73280","User-Agent":"Joplin/1.0"},"timeout":120000,"maxRetry":0}"
2020-01-03 17:57:30: "Res 17:56:24: "
2020-01-03 17:57:30: "Req 17:56:24: PROPFIND https://webdav.frype.de/joplin/.lock/ {"headers":{"Depth":1,"Authorization":"********","If-None-Match":"JoplinIgnore-34468","User-Agent":"Joplin/1.0","Content-Length":"190"},"body":"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\t\t\t<d:propfind xmlns:d=\"DAV:\">\n\t\t\t\t<d:prop xmlns:oc=\"http://owncloud.org/ns\">\n\t\t\t\t\t<d:getlastmodified/><d:resourcetype/>\n\t\t\t\t</d:prop>\n\t\t\t</d:propfind>","timeout":120000,"maxRetry":0}"
2020-01-03 17:57:30: "Res 17:56:24: "
2020-01-03 17:57:30: "Req 17:56:28: PROPFIND https://webdav.frype.de/joplin/.lock/ {"headers":{"Depth":1,"Authorization":"********","If-None-Match":"JoplinIgnore-42848","User-Agent":"Joplin/1.0","Content-Length":"190"},"body":"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\t\t\t<d:propfind xmlns:d=\"DAV:\">\n\t\t\t\t<d:prop xmlns:oc=\"http://owncloud.org/ns\">\n\t\t\t\t\t<d:getlastmodified/><d:resourcetype/>\n\t\t\t\t</d:prop>\n\t\t\t</d:propfind>","timeout":120000,"maxRetry":0}"
2020-01-03 17:57:30: "Res 17:56:28: "
2020-01-03 17:57:30: "Req 17:56:36: PROPFIND https://webdav.frype.de/joplin/.lock/ {"headers":{"Depth":1,"Authorization":"********","If-None-Match":"JoplinIgnore-87059","User-Agent":"Joplin/1.0","Content-Length":"190"},"body":"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\t\t\t<d:propfind xmlns:d=\"DAV:\">\n\t\t\t\t<d:prop xmlns:oc=\"http://owncloud.org/ns\">\n\t\t\t\t\t<d:getlastmodified/><d:resourcetype/>\n\t\t\t\t</d:prop>\n\t\t\t</d:propfind>","timeout":120000,"maxRetry":0}"
2020-01-03 17:57:30: "Res 17:56:36: "
2020-01-03 17:57:30: "Req 17:56:46: PROPFIND https://webdav.frype.de/joplin/.lock/ {"headers":{"Depth":1,"Authorization":"********","If-None-Match":"JoplinIgnore-62908","User-Agent":"Joplin/1.0","Content-Length":"190"},"body":"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\t\t\t<d:propfind xmlns:d=\"DAV:\">\n\t\t\t\t<d:prop xmlns:oc=\"http://owncloud.org/ns\">\n\t\t\t\t\t<d:getlastmodified/><d:resourcetype/>\n\t\t\t\t</d:prop>\n\t\t\t</d:propfind>","timeout":120000,"maxRetry":0}"
2020-01-03 17:57:30: "Res 17:56:46: "
2020-01-03 17:57:30: "Req 17:57:09: MKCOL https://webdav.frype.de/joplin/.sync/ {"headers":{"Authorization":"********","If-None-Match":"JoplinIgnore-38486","User-Agent":"Joplin/1.0"},"timeout":120000,"maxRetry":0}"
2020-01-03 17:57:30: "Res 17:57:09: "
2020-01-03 17:57:30: "Req 17:57:13: MKCOL https://webdav.frype.de/joplin/.sync/ {"headers":{"Authorization":"********","If-None-Match":"JoplinIgnore-53983","User-Agent":"Joplin/1.0"},"timeout":120000,"maxRetry":0}"
2020-01-03 17:57:30: "Res 17:57:13: "
2020-01-03 17:57:30: "Req 17:57:20: MKCOL https://webdav.frype.de/joplin/.sync/ {"headers":{"Authorization":"********","If-None-Match":"JoplinIgnore-57958","User-Agent":"Joplin/1.0"},"timeout":120000,"maxRetry":0}"
2020-01-03 17:57:30: "Res 17:57:20: "
2020-01-03 17:57:30: "Req 17:57:30: MKCOL https://webdav.frype.de/joplin/.sync/ {"headers":{"Authorization":"********","If-None-Match":"JoplinIgnore-76446","User-Agent":"Joplin/1.0"},"timeout":120000,"maxRetry":0}"
2020-01-03 17:57:30: "Res 17:57:30: "
2020-01-03 17:57:30: "Operations completed: "
2020-01-03 17:57:30: "Total folders: 1"
2020-01-03 17:57:30: "Total notes: 4"
2020-01-03 17:57:30: "Total resources: 3"
2020-01-03 17:57:30: "There was some errors:"
2020-01-03 17:57:30: "Error: MKCOL .sync/: Unknown error 2 (500): 
Code: 500
Error: MKCOL .sync/: Unknown error 2 (500): 
    at newError (C:\Program Files\Joplin\resources\app.asar\lib\WebDavApi.js:393:11)
    at WebDavApi.exec (C:\Program Files\Joplin\resources\app.asar\lib\WebDavApi.js:423:10)
    at process._tickCallback (internal/process/next_tick.js:68:7)"

The WebDAV service was unable to generate an ETag for a directory (to resolve the If-None-Match header) and returned an HTTP 500 instead. ETags for files were working fine though.

see gh comment

Hello! I am trying to synchronize between my desktop computer (windows 10) and my phone (iOS 13.4.1) and I get the exact same error as before:

Error. Please check that URL, username, password, etc. are correct and that the sync target is accessible. The reported error was:

PROPFIND : Unknown error 2 (500): Internal error (Code 500)

I did not really understand the reply, how can the error be fixed?

Error 500 means "Internal server error", in other words a bug in the server itself. So you would need to contact your WebDAV provider to fix this issue.

1 Like

Hi,

in case this is about the Koofr cloud storage service:

You probably need to fix your password settings, please read the details here:

https://koofr.eu/blog/posts/improving-your-koofr-account-security-together

Your block will expire 30 minutes after the last attempt. So you should wait 30 minutes before trying again. Make sure you use the right passwords to avoid the block again.

Make sure to check all your devices and WebDAV setups, because one misconfigured device can get your IP blocked which results in all of them to stop working for 30 minutes.

Maybe it also helps someone else.

The Koofr team