Orphaned files are not purged

Zotero was not purging orphaned files. I checked debug output and saw this error.

```
Error: DAV:href '/uAdkCDJL/Zotero/' does not begin with path '/zotero/' Error: DAV:href '/uAdkCDJL/Zotero/' does not begin with path '/zotero/' Zotero.Sync.Storage.Mode.WebDAV.prototype.purgeOrphanedStorageFiles<@chrome://zotero/content/xpcom/storage/webdav.js:1064:15 From previous event: runFunc@resource://zotero/concurrentCaller.js:224:22 ConcurrentCaller.prototype._processNext@resource://zotero/concurrentCaller.js:265:3 ConcurrentCaller.prototype.start@resource://zotero/concurrentCaller.js:156:12 serial/<@chrome://zotero/content/xpcom/utilities_internal.js:1905:14 Zotero.Sync.Runner_Module/this.setSyncTimeout/callback.notify<@chrome://zotero/content/xpcom/sync/syncRunner.js:1005:9
```

This is the relevant code. Why does this method throw error ? While syncing works perfectly with webdav url.

https://github.com/zotero/zotero/blob/c27bac2ad629b2ff216462515c220e2d5ce148ba/chrome/content/zotero/xpcom/storage/webdav.js#L1063C4-L1065C5

**More details:**

I have webdav server running at `http://127.0.0.1:4443/uAdkCDJL/Zotero/` and it is served with nginx reverse proxy at `https://webdav.lan/zotero`.

Nginx reverse-proxy config

```
location /zotero/ {
proxy_pass http://127.0.0.1:4443/uAdkCDJL/Zotero/;
auth_basic "Admin Area";
auth_basic_user_file /etc/nginx/webdav.htpasswd;
client_max_body_size 0;
proxy_read_timeout 1800;
proxy_connect_timeout 1800;
proxy_send_timeout 1800;
send_timeout 1800;
}
```

Please solve this issue or guide me to how to fix this. Thanks.
  • edited October 18, 2023
    The 'Zotero' folder on the WebDAV server should be lowercase ('zotero'), since that’s the hardcoded value and what Zotero automatically creates.
  • Thanks for replying. I still wonder though that synchronization works perfectly. And purge orphaned files method not work.
Sign In or Register to comment.