Skip to content

After upgrading to webdav-cli 1.5.1 TrueNAS cloud sync fails. Update to 1.5.2 is even worse. #221

@cheikemate

Description

@cheikemate

Steps to reproduce:

  1. Install webdav cli on a Linux VM running in TrueNAS
  2. Configure webdav service in the VM specifying http as protocol
  3. Configure CloudSync task in TrueNAS to use the VM IP as targe webdav service
  4. Run the task

Results:

Task runs and partially transfers the files (total files 46GB / tranferred 1.2GB). Then fails.
Error in TrueNAS is generic (http 404).
Webdav service stays on and serving requests during task execution (doesn't crash).
Webdav service writes tons of errors in the log. Examples bellow.

{"level":"info","message":"Resource not found on local database","resource":{"name":"Backups_copia_para_iphone","parentPath":"/TrueNAS Sync/Backups Sao/","path":{"base":"Backups_copia_para_iphone","dir":"/TrueNAS Sync/Backups Sao","ext":"","name":"Backups_copia_para_iphone","root":"/"},"type":"folder","url":"/TrueNAS Sync/Backups Sao/Backups_copia_para_iphone/"},"service":"internxt-webdav","timestamp":"2025-03-16T11:02:52.045Z"}
{"level":"info","message":"WebDav request received\nMethod: PROPFIND\nURL: /TrueNAS%20Sync/Backups%20Sao/Backups_copia_para_iphone/\nBody: {}\nHeaders: {\"host\":\"192.168.11.206:3005\",\"user-agent\":\"rclone/v1.57.0-DEV\",\"authorization\":\"Basic ZmFrZXVzZXI6ZmFrZXBhc3M=\",\"depth\":\"0\",\"referer\":\"http://192.168.11.206:3005/\",\"accept-encoding\":\"gzip\"}","service":"internxt-webdav","timestamp":"2025-03-16T11:02:52.051Z"}
{"level":"info","message":"[PROPFIND] Request received for folder at /TrueNAS Sync/Backups Sao/Backups_copia_para_iphone/","service":"internxt-webdav","timestamp":"2025-03-16T11:02:52.052Z"}
{"level":"info","message":"Resource not found on local database","resource":{"name":"Backups_copia_para_iphone","parentPath":"/TrueNAS Sync/Backups Sao/","path":{"base":"Backups_copia_para_iphone","dir":"/TrueNAS Sync/Backups Sao","ext":"","name":"Backups_copia_para_iphone","root":"/"},"type":"folder","url":"/TrueNAS Sync/Backups Sao/Backups_copia_para_iphone/"},"service":"internxt-webdav","timestamp":"2025-03-16T11:02:52.054Z"}
{"level":"info","message":"WebDav request received\nMethod: PROPFIND\nURL: /TrueNAS%20Sync/Backups%20Sao/Backups_copia_para_iphone/\nBody: {}\nHeaders: {\"host\":\"192.168.11.206:3005\",\"user-agent\":\"rclone/v1.57.0-DEV\",\"authorization\":\"Basic ZmFrZXVzZXI6ZmFrZXBhc3M=\",\"depth\":\"0\",\"referer\":\"http://192.168.11.206:3005/\",\"accept-encoding\":\"gzip\"}","service":"internxt-webdav","timestamp":"2025-03-16T11:02:52.128Z"}
{"level":"info","message":"[PROPFIND] Request received for folder at /TrueNAS Sync/Backups Sao/Backups_copia_para_iphone/","service":"internxt-webdav","timestamp":"2025-03-16T11:02:52.129Z"}
{"level":"info","message":"Resource not found on local database","resource":{"name":"Backups_copia_para_iphone","parentPath":"/TrueNAS Sync/Backups Sao/","path":{"base":"Backups_copia_para_iphone","dir":"/TrueNAS Sync/Backups Sao","ext":"","name":"Backups_copia_para_iphone","root":"/"},"type":"folder","url":"/TrueNAS Sync/Backups Sao/Backups_copia_para_iphone/"},"service":"internxt-webdav","timestamp":"2025-03-16T11:02:52.131Z"}
{"level":"info","message":"WebDav request received\nMethod: MKCOL\nURL: /TrueNAS%20Sync/Backups%20Sao/Backups_copia_para_iphone/\nBody: {}\nHeaders: {\"host\":\"192.168.11.206:3005\",\"user-agent\":\"rclone/v1.57.0-DEV\",\"authorization\":\"Basic ZmFrZXVzZXI6ZmFrZXBhc3M=\",\"referer\":\"http://192.168.11.206:3005/\",\"accept-encoding\":\"gzip\"}","service":"internxt-webdav","timestamp":"2025-03-16T11:02:52.157Z"}
{"level":"info","message":"[MKCOL] Request received for folder at /TrueNAS Sync/Backups Sao/Backups_copia_para_iphone/","service":"internxt-webdav","timestamp":"2025-03-16T11:02:52.158Z"}
{"level":"info","message":"Resource not found on local database","resource":{"name":"Backups Sao","parentPath":"/TrueNAS Sync/","path":{"base":"Backups Sao","dir":"/TrueNAS Sync","ext":"","name":"Backups Sao","root":"/"},"type":"folder","url":"/TrueNAS Sync/Backups Sao/"},"service":"internxt-webdav","timestamp":"2025-03-16T11:02:52.160Z"}
{"level":"info","message":"WebDav request received\nMethod: MKCOL\nURL: /TrueNAS%20Sync/Backups%20Sao/Backups_copia_para_iphone/\nBody: {}\nHeaders: {\"host\":\"192.168.11.206:3005\",\"user-agent\":\"rclone/v1.57.0-DEV\",\"authorization\":\"Basic ZmFrZXVzZXI6ZmFrZXBhc3M=\",\"referer\":\"http://192.168.11.206:3005/\",\"accept-encoding\":\"gzip\"}","service":"internxt-webdav","timestamp":"2025-03-16T11:02:52.164Z"}
{"level":"info","message":"[MKCOL] Request received for folder at /TrueNAS Sync/Backups Sao/Backups_copia_para_iphone/","service":"internxt-webdav","timestamp":"2025-03-16T11:02:52.165Z"}
{"level":"info","message":"Resource not found on local database","resource":{"name":"Backups Sao","parentPath":"/TrueNAS Sync/","path":{"base":"Backups Sao","dir":"/TrueNAS Sync","ext":"","name":"Backups Sao","root":"/"},"type":"folder","url":"/TrueNAS Sync/Backups Sao/"},"service":"internxt-webdav","timestamp":"2025-03-16T11:02:52.167Z"}
{"level":"info","message":"WebDav request received\nMethod: MKCOL\nURL: /TrueNAS%20Sync/Backups%20Sao/Backups_copia_para_iphone/\nBody: {}\nHeaders: {\"host\":\"192.168.11.206:3005\",\"user-agent\":\"rclone/v1.57.0-DEV\",\"authorization\":\"Basic ZmFrZXVzZXI6ZmFrZXBhc3M=\",\"referer\":\"http://192.168.11.206:3005/\",\"accept-encoding\":\"gzip\"}","service":"internxt-webdav","timestamp":"2025-03-16T11:02:52.237Z"}
{"level":"info","message":"[MKCOL] Request received for folder at /TrueNAS Sync/Backups Sao/Backups_copia_para_iphone/","service":"internxt-webdav","timestamp":"2025-03-16T11:02:52.238Z"}
{"level":"info","message":"Resource not found on local database","resource":{"name":"Backups Sao","parentPath":"/TrueNAS Sync/","path":{"base":"Backups Sao","dir":"/TrueNAS Sync","ext":"","name":"Backups Sao","root":"/"},"type":"folder","url":"/TrueNAS Sync/Backups Sao/"},"service":"internxt-webdav","timestamp":"2025-03-16T11:02:52.240Z"}
{"level":"info","message":"WebDav request received\nMethod: MKCOL\nURL: /TrueNAS%20Sync/Backups%20Sao/Backups_copia_para_iphone/\nBody: {}\nHeaders: {\"host\":\"192.168.11.206:3005\",\"user-agent\":\"rclone/v1.57.0-DEV\",\"authorization\":\"Basic ZmFrZXVzZXI6ZmFrZXBhc3M=\",\"referer\":\"http://192.168.11.206:3005/\",\"accept-encoding\":\"gzip\"}","service":"internxt-webdav","timestamp":"2025-03-16T11:02:52.276Z"}
{"level":"info","message":"[MKCOL] Request received for folder at /TrueNAS Sync/Backups Sao/Backups_copia_para_iphone/","service":"internxt-webdav","timestamp":"2025-03-16T11:02:52.277Z"}

From the TrueNAS perspective (rclone) it seems that the resources were not properly created in the Internxt drive during first sync and every subsequent syncs fails with HTTP not found. Logs follow.

2025/03/16 10:34:38 INFO  : 
Transferred:   	          0 B / 0 B, -, 0 B/s, ETA -
Elapsed time:         2.2s

2025/03/16 10:34:41 ERROR : GPS and MAPS/PDF/BarrocoDoVelho_v1.pdf: Failed to copy: Update mkParentDir failed: <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Error</title>
</head>
<body>
<pre>Not Found</pre>
</body>
</html>: 404 Not Found
2025/03/16 10:34:41 ERROR : GPS and MAPS/PDF/Fonte_v1.pdf: Failed to copy: Update mkParentDir failed: <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Error</title>
</head>
<body>
<pre>Not Found</pre>
</body>
</html>: 404 Not Found
2025/03/16 10:34:41 ERROR : GPS and MAPS/PDF/CantoPereiro_1e2_v1.pdf: Failed to copy: Update mkParentDir failed: <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Error</title>
</head>
<body>
<pre>Not Found</pre>
</body>
</html>: 404 Not Found
2025/03/16 10:34:42 ERROR : GPS and MAPS/PDF/Cimo_da_Cha_v1.pdf: Failed to copy: Update mkParentDir failed: <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Error</title>
</head>
<body>
<pre>Not Found</pre>
</body>
</html>: 404 Not Found
2025/03/16 10:34:42 ERROR : GPS and MAPS/PDF/Fontinha_v1.pdf: Failed to copy: Update mkParentDir failed: <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Error</title>
</head>
<body>
<pre>Not Found</pre>
</body>
</html>: 404 Not Found
2025/03/16 10:34:42 ERROR : GPS and MAPS/PDF/Fundo_Boucinho_v1.pdf: Failed to copy: Update mkParentDir failed: <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Error</title>
</head>
<body>
<pre>Not Found</pre>
</body>
</html>: 404 Not Found
2025/03/16 10:34:42 ERROR : GPS and MAPS/PDF/Ladeira_v1.pdf: Failed to copy: Update mkParentDir failed: <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Error</title>
</head>
<body>
<pre>Not Found</pre>
</body>
</html>: 404 Not Found
2025/03/16 10:34:43 ERROR : GPS and MAPS/PDF/Tojal_v1.pdf: Failed to copy: Update mkParentDir failed: <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Error</title>
</head>
<body>
<pre>Not Found</pre>
</body>
</html>: 404 Not Found
2025/03/16 10:34:43 ERROR : GPS and MAPS/GPS RAW data/Garmin_eTrex_Ago018-GoogleEarth.kml: Failed to copy: Update mkParentDir failed: <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions