STOP and READ USE THIS TEMPLATE NO EXCEPTIONS - By not using this, you waste your time, our time and really hate puppies. Please remove these two lines and that will confirm you have read them.
What is the problem you are having with rclone?
Hello,
I am trying to connect to a WebDAV server using rclone and I am getting a 401 Unauthorized error. I am asking for help. Other WebDAV clients (Windows default, RaiDrive, Chrome, etc.) connect and authenticate normally with the same credentials.
It works fine on other clients, but I'm having trouble figuring out why digest authentication is failing on rclone, which is giving me a 401 Unauthorized error.
In particular, I'm wondering what could be wrong with rclone's digest authentication handling in an environment where Cloudflare and Nginx are used as proxies. Is there anything I need to adjust in my rclone config, or do I need to add a specific exception rule for rclone requests in my Cloudflare/Nginx config?
Or is there a known compatibility issue between the way rclone handles digest authentication and my Cloudflare/Nginx proxy environment?
Thanks in advance for your help.
Run the command 'rclone version' and share the full output of the command.
rclone v1.69.2
- os/version: Microsoft Windows 11 Education 23H2 23H2 (64 bit)
- os/kernel: 10.0.22631.5189 (x86_64)
- os/type: windows
- os/arch: amd64
- go/version: go1.24.2
- go/linking: static
- go/tags: cmount
Which cloud storage system are you using? (eg Google Drive)
WebDAV for my personal server
The command you were trying to run (eg rclone copy /tmp remote:tmp
)
rclone lsd NASwebdav:
Please run 'rclone config redacted' and share the full output. If you get command not found, please make sure to update rclone.
[NASwebdav]
type = webdav
url = https://data.ssunny.me/
vendor = other
user = XXX
pass = XXX
auth_redirect = true
A log from the command that you were trying to run with the -vv
flag
2025/05/09 23:07:35 NOTICE: --dump-headers is obsolete - please use --dump headers instead
2025/05/09 23:07:35 NOTICE: --dump-bodies is obsolete - please use --dump bodies instead
2025/05/09 23:07:35 DEBUG : rclone: Version "v1.69.2" starting with parameters ["rclone" "lsd" "NASwebdav:" "--dump-bodies" "--dump-headers" "-vv"]
2025/05/09 23:07:35 DEBUG : Creating backend with remote "NASwebdav:"
2025/05/09 23:07:35 DEBUG : Using config file from "C:\\Users\\eungs\\AppData\\Roaming\\rclone\\rclone.conf"
2025/05/09 23:07:35 DEBUG : found headers:
2025/05/09 23:07:35 DEBUG : You have specified to dump information. Please be noted that the Accept-Encoding as shown may not be correct in the request and the response may not show Content-Encoding if the go standard libraries auto gzip encoding was in effect. In this case the body of the request will be gunzipped before showing it.
2025/05/09 23:07:35 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2025/05/09 23:07:35 DEBUG : HTTP REQUEST (req 0xc000388b40)
2025/05/09 23:07:35 DEBUG : PROPFIND / HTTP/1.1
Host: data.ssunny.me
User-Agent: rclone/v1.69.2
Authorization: XXXX
Depth: 1
Referer: https://data.ssunny.me/
Accept-Encoding: gzip
2025/05/09 23:07:35 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2025/05/09 23:07:35 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2025/05/09 23:07:35 DEBUG : HTTP RESPONSE (req 0xc000388b40)
2025/05/09 23:07:35 DEBUG : HTTP/2.0 401 Unauthorized
Connection: close
Alt-Svc: h3=":443"; ma=86400
Cf-Cache-Status: DYNAMIC
Cf-Ray: 93d1c3990d8bd790-NRT
Content-Type: text/html; charset=iso-8859-1
Date: Fri, 09 May 2025 14:07:36 GMT
Nel: {"success_fraction":0,"report_to":"cf-nel","max_age":604800}
Report-To: {"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v4?s=3gk5qGf3%2FO9Ojk3Q21wiqdTNXR9Pa3yDFvsUi%2BALaOEd3YEx%2BwczcVHU1tlwSVLvdK6ogFzI17IK%2Fe4FkNaZCd66kbqqIQwaE%2B%2FVP6Mb%2BbTiu8pbVQ6BVBPj%2BJ2GEwTYXQ%3D%3D"}],"group":"cf-nel","max_age":604800}
Server: cloudflare
Server-Timing: cfL4;desc="?proto=TCP&rtt=49756&min_rtt=45528&rtt_var=16517&sent=7&recv=8&lost=0&retrans=0&sent_bytes=3170&recv_bytes=582&delivery_rate=95510&cwnd=156&unsent_bytes=0&cid=2cc7f67e94a9d06a&ts=240&x=0"
Strict-Transport-Security: max-age=15552000; includeSubDomains; preload
Www-Authenticate: Digest realm="Data Realm", nonce="3RX9fLQ0BgA=36d94c210e2b2078ae595c862a5eff146aabcc70", algorithm=MD5, qop="auth"
X-Content-Type-Options: nosniff
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>401 Unauthorized</title>
</head><body>
<h1>Unauthorized</h1>
<p>This server could not verify that you
are authorized to access the document
requested. Either you supplied the wrong
credentials (e.g., bad password), or your
browser doesn't understand how to supply
the credentials required.</p>
<hr>
<address>Apache/2.4.58 (Ubuntu) Server at data.ssunny.me Port 8081</address>
<script>(function(){function c(){var b=a.contentDocument||a.contentWindow.document;if(b){var d=b.createElement('script');d.innerHTML="window.__CF$cv$params={r:'93d1c3990d8bd790',t:'MTc0Njc5OTY1Ni4wMDAwMDA='};var a=document.createElement('script');a.nonce='';a.src='/cdn-cgi/challenge-platform/scripts/jsd/main.js';document.getElementsByTagName('head')[0].appendChild(a);";b.getElementsByTagName('head')[0].appendChild(d)}}if(document.body){var a=document.createElement('iframe');a.height=1;a.width=1;a.style.position='absolute';a.style.top=0;a.style.left=0;a.style.border='none';a.style.visibility='hidden';document.body.appendChild(a);if('loading'!==document.readyState)c();else if(window.addEventListener)document.addEventListener('DOMContentLoaded',c);else{var e=document.onreadystatechange||function(){};document.onreadystatechange=function(b){e(b);'loading'!==document.readyState&&(document.onreadystatechange=e,c())}}}})();</script></body></html>
2025/05/09 23:07:35 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2025/05/09 23:07:35 ERROR : : error listing: couldn't list files: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>401 Unauthorized</title>
</head><body>
<h1>Unauthorized</h1>
<p>This server could not verify that you
are authorized to access the document
requested. Either you supplied the wrong
credentials (e.g., bad password), or your
browser doesn't understand how to supply
the credentials required.</p>
<hr>
<address>Apache/2.4.58 (Ubuntu) Server at data.ssunny.me Port 8081</address>
<script>(function(){function c(){var b=a.contentDocument||a.contentWindow.document;if(b){var d=b.createElement('script');d.innerHTML="window.__CF$cv$params={r:'93d1c3990d8bd790',t:'MTc0Njc5OTY1Ni4wMDAwMDA='};var a=document.createElement('script');a.nonce='';a.src='/cdn-cgi/challenge-platform/scripts/jsd/main.js';document.getElementsByTagName('head')[0].appendChild(a);";b.getElementsByTagName('head')[0].appendChild(d)}}if(document.body){var a=document.createElement('iframe');a.height=1;a.width=1;a.style.position='absolute';a.style.top=0;a.style.left=0;a.style.border='none';a.style.visibility='hidden';document.body.appendChild(a);if('loading'!==document.readyState)c();else if(window.addEventListener)document.addEventListener('DOMContentLoaded',c);else{var e=document.onreadystatechange||function(){};document.onreadystatechange=function(b){e(b);'loading'!==document.readyState&&(document.onreadystatechange=e,c())}}}})();</script></body></html>: 401 Unauthorized
2025/05/09 23:07:35 DEBUG : 3 go routines active
2025/05/09 23:07:35 NOTICE: Failed to lsd with 2 errors: last error was: couldn't list files: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>401 Unauthorized</title>
</head><body>
<h1>Unauthorized</h1>
<p>This server could not verify that you
are authorized to access the document
requested. Either you supplied the wrong
credentials (e.g., bad password), or your
browser doesn't understand how to supply
the credentials required.</p>
<hr>
<address>Apache/2.4.58 (Ubuntu) Server at data.ssunny.me Port 8081</address>
<script>(function(){function c(){var b=a.contentDocument||a.contentWindow.document;if(b){var d=b.createElement('script');d.innerHTML="window.__CF$cv$params={r:'93d1c3990d8bd790',t:'MTc0Njc5OTY1Ni4wMDAwMDA='};var a=document.createElement('script');a.nonce='';a.src='/cdn-cgi/challenge-platform/scripts/jsd/main.js';document.getElementsByTagName('head')[0].appendChild(a);";b.getElementsByTagName('head')[0].appendChild(d)}}if(document.body){var a=document.createElement('iframe');a.height=1;a.width=1;a.style.position='absolute';a.style.top=0;a.style.left=0;a.style.border='none';a.style.visibility='hidden';document.body.appendChild(a);if('loading'!==document.readyState)c();else if(window.addEventListener)document.addEventListener('DOMContentLoaded',c);else{var e=document.onreadystatechange||function(){};document.onreadystatechange=function(b){e(b);'loading'!==document.readyState&&(document.onreadystatechange=e,c())}}}})();</script></body></html>: 401 Unauthorized