# Problem: Delete local data and re-download from sync target

**URL:** <https://discourse.joplinapp.org/t/problem-delete-local-data-and-re-download-from-sync-target/32205>\
**Category:** Support\
**Created:** [13 August 2023 15:36 UTC](https://discourse.joplinapp.org/t/problem-delete-local-data-and-re-download-from-sync-target/32205 "2023-08-13T15:36:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![nomad101](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/nomad101/32/8057_2.png) [@nomad101](https://discourse.joplinapp.org/u/nomad101)\
**Post date:** [13 August 2023 15:36 UTC](https://discourse.joplinapp.org/t/problem-delete-local-data-and-re-download-from-sync-target/32205/1 "2023-08-13T15:36:14Z")

</div>

Hi

Version:

```auto
Joplin 2.11.11 (prod, win32)
Sync Version: 3
Profile Version: 43
Keychain Supported: Yes
Revision: 6886f6f

```

OS: windows 10 (client)

I use webdav on my debian homeserver to sync between laptops.

I reinstalled the server and moved the webdav folder to a new location.  
Then had problems (double-copies of content), so decided to use: 'Delete local data and re-download from sync target'.

I get a message saying needs to upgrade target. But then receive this error (below). I waited a while, tried again, but still receive the error

```auto
Joplin upgrade in progress...
Please wait while the sync target is being upgraded. It may take a few seconds or a few minutes depending on the upgrade. The application will automatically restart once it is completed.

The full error was:

PUT locks/2_1_c999b6f25405443b869b74b20b737ebc.json: Unknown error 2 (500): <?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>500 Internal Server Error</title> </head> <body> <h1>500 Internal Server Error</h1> </body> </html>

Error: PUT locks/2_1_c999b6f25405443b869b74b20b737ebc.json: Unknown error 2 (500): <?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>500 Internal Server Error</title>
 </head>
 <body>
  <h1>500 Internal Server Error</h1>
 </body>
</html>

    at newError (C:\Users\zed\AppData\Local\Programs\Joplin\resources\app.asar\node_modules\@joplin\lib\WebDavApi.js:414:11)
    at WebDavApi.exec (C:\Users\zed\AppData\Local\Programs\Joplin\resources\app.asar\node_modules\@joplin\lib\WebDavApi.js:444:10)
    at process.processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async FileApiDriverWebDav.put (C:\Users\u4073264\AppData\Local\Programs\Joplin\resources\app.asar\node_modules\@joplin\lib\file-api-driver-webdav.js:203:10)

```

Any help appreciated.

Thanks

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex028/uploads/cozic/original/3X/1/c/1c948e33314e232a0927789508474d8624f4270b.png) [@system](https://discourse.joplinapp.org/u/system)\
**Post date:** [12 September 2023 15:36 UTC](https://discourse.joplinapp.org/t/problem-delete-local-data-and-re-download-from-sync-target/32205/2 "2023-09-12T15:36:19Z")

</div>

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