Error "412 Precondition Failed" with lighthttp WebDAV server

Hello again:

Sorry for not answering before!

My webdav server is working ok: al files and folders are chomd 777, so full permissions.

I can upload and download files so I think everything is working ok...

I got tired of trying so I made a backup of joplin's notebooks and notes and then I uninstalled Joplin and move away alll the config options. I deleted all files in my webdav server. Finally I installed again Joplin but when trying to connect to my empty webdav I still receiving errors:

Error: PUT locks/exclusive_desktop_5565f62226484772ace2cc1ca25c7b5f.json: Unknown error 2 (412): <?xml version="1.0" encoding="iso-8859-1"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" ""> <html xmlns="" xml:lang="en" lang="en"> <head> <title>412 Precondition Failed</title> </head> <body> <h1>412 Precondition Failed</h1> </body> </html>

What to do?

By the way... The answer is Yes to both questions!

412 Precondition Failed

What WebDAV server is it? It seems a particular server is throwing this random error.

Hi there: I use a raspberry pi with dietpi... using lighhttp server 1.4.59...

I have two more webdav folders (different servers) and they are working ok... The only one failing is this with joplin...

You might want to ask on a lighthttp support forum as they might no more about this, as it seems to be a quirk of this particular server. If we had more info perhaps we can add a lighthttp hack like we did for nginx.

A "Precondition Failed" error in itself doesn't tell us anything if we don't know what precondition the server is expecting.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.