What is the problem you are having with rclone?
Rclone gets 401 unauthorized http code when webdav server redirects to another domain.
Example: https://domain.name/dav/personal-files/device-detector-6.0.4.zip >>> https://my.tld/dav/personal-files/device-detector-6.0.4.zip
Run the command 'rclone version' and share the full output of the command.
rclone v1.62.2
- os/version: almalinux 8.7 (64 bit)
- os/kernel: 4.18.0-425.19.2.el8_7.x86_64 (x86_64)
- os/type: linux
- os/arch: amd64
- go/version: go1.20.2
- go/linking: static
- go/tags: none
Which cloud storage system are you using? (eg Google Drive)
WebDAV
The command you were trying to run (eg rclone copy /tmp remote:tmp
)
rclone -vvv --no-check-certificate=true --dump=headers copy "admin:/personal-files/device-detector-6.0.4.zip" /storage/tmp
The rclone config contents with secrets removed.
[admin]
type = webdav
url = https://origin.domain.name/dav/personal-files
vendor = other
user = admin
pass = ******
A log from the command with the -vv
flag
2023/06/24 14:15:08 DEBUG : rclone: Version "v1.62.2" starting with parameters ["rclone" "-vvv" "--no-check-certificate=true" "--dump=headers" "copy" "admin:/personal-files/device-detector-6.0.4.zip" "/storage/tmp"]
2023/06/24 14:15:08 DEBUG : Creating backend with remote "admin:/personal-files/device-detector-6.0.4.zip"
2023/06/24 14:15:08 DEBUG : Using config file from "/root/.config/rclone/rclone.conf"
2023/06/24 14:15:08 DEBUG : found headers:
2023/06/24 14:15:08 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.
2023/06/24 14:15:08 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2023/06/24 14:15:08 DEBUG : HTTP REQUEST (req 0xc00097eb00)
2023/06/24 14:15:08 DEBUG : PROPFIND /dav/personal-files/device-detector-6.0.4.zip HTTP/1.1
Host: origin.domain.name
User-Agent: rclone/v1.62.2
Authorization: XXXX
Depth: 1
Referer: https://origin.domain.name/dav/
Accept-Encoding: gzip
2023/06/24 14:15:08 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2023/06/24 14:15:08 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2023/06/24 14:15:08 DEBUG : HTTP RESPONSE (req 0xc00097eb00)
2023/06/24 14:15:08 DEBUG : HTTP/2.0 207 Multi-Status
Content-Length: 704
Cache-Control: no-cache
Cdn-Cachedat: 06/24/2023 17:15:08
Cdn-Edgestorageid: 883
Cdn-Proxyver: 1.03
Cdn-Pullzone: 1334033
Cdn-Requestcountrycode: NL
Cdn-Requestid: c9498c7c4e01558dceca229f04ff4de0
Cdn-Requestpullcode: 207
Cdn-Requestpullsuccess: True
Cdn-Status: 207
Cdn-Uid: 5356470d-341a-4aed-9205-a5ba8b33a88d
Content-Type: text/xml; charset=utf-8
Date: Sat, 24 Jun 2023 17:15:08 GMT
Server: BunnyCDN-AMS1-879
2023/06/24 14:15:08 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2023/06/24 14:15:08 DEBUG : fs cache: adding new entry for parent of "admin:/personal-files/device-detector-6.0.4.zip", "admin:personal-files"
2023/06/24 14:15:08 DEBUG : Creating backend with remote "/storage/tmp"
2023/06/24 14:15:08 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2023/06/24 14:15:08 DEBUG : HTTP REQUEST (req 0xc000576400)
2023/06/24 14:15:08 DEBUG : PROPFIND /dav/personal-files/device-detector-6.0.4.zip HTTP/1.1
Host: origin.domain.name
User-Agent: rclone/v1.62.2
Authorization: XXXX
Depth: 1
Referer: https://origin.domain.name/dav/
Accept-Encoding: gzip
2023/06/24 14:15:08 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2023/06/24 14:15:08 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2023/06/24 14:15:08 DEBUG : HTTP RESPONSE (req 0xc000576400)
2023/06/24 14:15:08 DEBUG : HTTP/2.0 207 Multi-Status
Content-Length: 704
Cache-Control: no-cache
Cdn-Cachedat: 06/24/2023 17:15:08
Cdn-Edgestorageid: 883
Cdn-Proxyver: 1.03
Cdn-Pullzone: 1334033
Cdn-Requestcountrycode: NL
Cdn-Requestid: 76914a0e0f755403a41811596c28527e
Cdn-Requestpullcode: 207
Cdn-Requestpullsuccess: True
Cdn-Status: 207
Cdn-Uid: 5356470d-341a-4aed-9205-a5ba8b33a88d
Content-Type: text/xml; charset=utf-8
Date: Sat, 24 Jun 2023 17:15:08 GMT
Server: BunnyCDN-AMS1-879
2023/06/24 14:15:08 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2023/06/24 14:15:08 DEBUG : device-detector-6.0.4.zip: Need to transfer - File not found at Destination
2023/06/24 14:15:08 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2023/06/24 14:15:08 DEBUG : HTTP REQUEST (req 0xc00097e300)
2023/06/24 14:15:08 DEBUG : GET /dav/personal-files/device-detector-6.0.4.zip HTTP/1.1
Host: origin.domain.name
User-Agent: rclone/v1.62.2
Authorization: XXXX
Depth: 0
Referer: https://origin.domain.name/dav/
Accept-Encoding: gzip
2023/06/24 14:15:08 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2023/06/24 14:15:08 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2023/06/24 14:15:08 DEBUG : HTTP RESPONSE (req 0xc00097e300)
2023/06/24 14:15:08 DEBUG : HTTP/2.0 302 Found
Content-Length: 145
Cache-Control: no-cache
Cdn-Cache: MISS
Cdn-Cachedat: 06/24/2023 17:15:08
Cdn-Edgestorageid: 883
Cdn-Proxyver: 1.03
Cdn-Pullzone: 1334033
Cdn-Requestcountrycode: NL
Cdn-Requestid: 50336236dae12fa06ff4b489b35fefd8
Cdn-Requestpullcode: 302
Cdn-Requestpullsuccess: True
Cdn-Status: 302
Cdn-Uid: 5356470d-341a-4aed-9205-a5ba8b33a88d
Content-Type: text/html
Date: Sat, 24 Jun 2023 17:15:08 GMT
Location: https://target.domain.name/dav/personal-files/device-detector-6.0.4.zip
Redirect-Ref: /dav/personal-files/device-detector-6.0.4.zip
Server: BunnyCDN-AMS1-879
2023/06/24 14:15:08 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2023/06/24 14:15:08 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2023/06/24 14:15:08 DEBUG : HTTP REQUEST (req 0xc0008cc200)
2023/06/24 14:15:08 DEBUG : GET /dav/personal-files/device-detector-6.0.4.zip HTTP/1.1
Host: target.domain.name
User-Agent: rclone/v1.62.2
Depth: 0
Referer: https://origin.domain.name/dav/personal-files/device-detector-6.0.4.zip
Accept-Encoding: gzip
2023/06/24 14:15:08 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2023/06/24 14:15:08 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2023/06/24 14:15:08 DEBUG : HTTP RESPONSE (req 0xc0008cc200)
2023/06/24 14:15:08 DEBUG : HTTP/2.0 401 Unauthorized
Content-Length: 14
Content-Type: text/plain; charset=utf-8
Date: Sat, 24 Jun 2023 17:15:08 GMT
Server: nginx/1.23.3
Www-Authenticate: Basic realm="Cells DAV"
2023/06/24 14:15:08 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2023/06/24 14:15:08 ERROR : device-detector-6.0.4.zip: Failed to copy: failed to open source object: Unauthorized.: 401 Unauthorized
2023/06/24 14:15:08 ERROR : Attempt 1/3 failed with 1 errors and: failed to open source object: Unauthorized.: 401 Unauthorized
2023/06/24 14:15:08 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2023/06/24 14:15:08 DEBUG : HTTP REQUEST (req 0xc0008cd100)
2023/06/24 14:15:08 DEBUG : PROPFIND /dav/personal-files/device-detector-6.0.4.zip HTTP/1.1
Host: origin.domain.name
User-Agent: rclone/v1.62.2
Authorization: XXXX
Depth: 1
Referer: https://origin.domain.name/dav/
Accept-Encoding: gzip
2023/06/24 14:15:08 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2023/06/24 14:15:08 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2023/06/24 14:15:08 DEBUG : HTTP RESPONSE (req 0xc0008cd100)
2023/06/24 14:15:08 DEBUG : HTTP/2.0 207 Multi-Status
Content-Length: 704
Cache-Control: no-cache
Cdn-Cachedat: 06/24/2023 17:15:08
Cdn-Edgestorageid: 883
Cdn-Proxyver: 1.03
Cdn-Pullzone: 1334033
Cdn-Requestcountrycode: NL
Cdn-Requestid: e1ae8ae61424aa95feb14df5099e2480
Cdn-Requestpullcode: 207
Cdn-Requestpullsuccess: True
Cdn-Status: 207
Cdn-Uid: 5356470d-341a-4aed-9205-a5ba8b33a88d
Content-Type: text/xml; charset=utf-8
Date: Sat, 24 Jun 2023 17:15:08 GMT
Server: BunnyCDN-AMS1-879
2023/06/24 14:15:08 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2023/06/24 14:15:08 DEBUG : device-detector-6.0.4.zip: Need to transfer - File not found at Destination
2023/06/24 14:15:08 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2023/06/24 14:15:08 DEBUG : HTTP REQUEST (req 0xc00097e600)
2023/06/24 14:15:08 DEBUG : GET /dav/personal-files/device-detector-6.0.4.zip HTTP/1.1
Host: origin.domain.name
User-Agent: rclone/v1.62.2
Authorization: XXXX
Depth: 0
Referer: https://origin.domain.name/dav/
Accept-Encoding: gzip
2023/06/24 14:15:08 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2023/06/24 14:15:08 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2023/06/24 14:15:08 DEBUG : HTTP RESPONSE (req 0xc00097e600)
2023/06/24 14:15:08 DEBUG : HTTP/2.0 302 Found
Content-Length: 145
Cache-Control: no-cache
Cdn-Cache: MISS
Cdn-Cachedat: 06/24/2023 17:15:08
Cdn-Edgestorageid: 883
Cdn-Proxyver: 1.03
Cdn-Pullzone: 1334033
Cdn-Requestcountrycode: NL
Cdn-Requestid: 3fa9d542bdc3ce60be9f94dbf9b49e0a
Cdn-Requestpullcode: 302
Cdn-Requestpullsuccess: True
Cdn-Status: 302
Cdn-Uid: 5356470d-341a-4aed-9205-a5ba8b33a88d
Content-Type: text/html
Date: Sat, 24 Jun 2023 17:15:08 GMT
Location: https://target.domain.name/dav/personal-files/device-detector-6.0.4.zip
Redirect-Ref: /dav/personal-files/device-detector-6.0.4.zip
Server: BunnyCDN-AMS1-879
2023/06/24 14:15:08 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2023/06/24 14:15:08 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2023/06/24 14:15:08 DEBUG : HTTP REQUEST (req 0xc00097e900)
2023/06/24 14:15:08 DEBUG : GET /dav/personal-files/device-detector-6.0.4.zip HTTP/1.1
Host: target.domain.name
User-Agent: rclone/v1.62.2
Depth: 0
Referer: https://origin.domain.name/dav/personal-files/device-detector-6.0.4.zip
Accept-Encoding: gzip
2023/06/24 14:15:08 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2023/06/24 14:15:08 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2023/06/24 14:15:08 DEBUG : HTTP RESPONSE (req 0xc00097e900)
2023/06/24 14:15:08 DEBUG : HTTP/2.0 401 Unauthorized
Content-Length: 14
Content-Type: text/plain; charset=utf-8
Date: Sat, 24 Jun 2023 17:15:08 GMT
Server: nginx/1.23.3
Www-Authenticate: Basic realm="Cells DAV"
2023/06/24 14:15:08 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2023/06/24 14:15:08 ERROR : device-detector-6.0.4.zip: Failed to copy: failed to open source object: Unauthorized.: 401 Unauthorized
2023/06/24 14:15:08 ERROR : Attempt 2/3 failed with 1 errors and: failed to open source object: Unauthorized.: 401 Unauthorized
2023/06/24 14:15:08 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2023/06/24 14:15:08 DEBUG : HTTP REQUEST (req 0xc0007ea000)
2023/06/24 14:15:08 DEBUG : PROPFIND /dav/personal-files/device-detector-6.0.4.zip HTTP/1.1
Host: origin.domain.name
User-Agent: rclone/v1.62.2
Authorization: XXXX
Depth: 1
Referer: https://origin.domain.name/dav/
Accept-Encoding: gzip
2023/06/24 14:15:08 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2023/06/24 14:15:08 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2023/06/24 14:15:08 DEBUG : HTTP RESPONSE (req 0xc0007ea000)
2023/06/24 14:15:08 DEBUG : HTTP/2.0 207 Multi-Status
Content-Length: 704
Cache-Control: no-cache
Cdn-Cachedat: 06/24/2023 17:15:08
Cdn-Edgestorageid: 883
Cdn-Proxyver: 1.03
Cdn-Pullzone: 1334033
Cdn-Requestcountrycode: NL
Cdn-Requestid: 8816d3b0d94756285ada535fed995e24
Cdn-Requestpullcode: 207
Cdn-Requestpullsuccess: True
Cdn-Status: 207
Cdn-Uid: 5356470d-341a-4aed-9205-a5ba8b33a88d
Content-Type: text/xml; charset=utf-8
Date: Sat, 24 Jun 2023 17:15:08 GMT
Server: BunnyCDN-AMS1-879
2023/06/24 14:15:08 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2023/06/24 14:15:08 DEBUG : device-detector-6.0.4.zip: Need to transfer - File not found at Destination
2023/06/24 14:15:08 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2023/06/24 14:15:08 DEBUG : HTTP REQUEST (req 0xc0007ea300)
2023/06/24 14:15:08 DEBUG : GET /dav/personal-files/device-detector-6.0.4.zip HTTP/1.1
Host: origin.domain.name
User-Agent: rclone/v1.62.2
Authorization: XXXX
Depth: 0
Referer: https://origin.domain.name/dav/
Accept-Encoding: gzip
2023/06/24 14:15:08 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2023/06/24 14:15:08 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2023/06/24 14:15:08 DEBUG : HTTP RESPONSE (req 0xc0007ea300)
2023/06/24 14:15:08 DEBUG : HTTP/2.0 302 Found
Content-Length: 145
Cache-Control: no-cache
Cdn-Cache: MISS
Cdn-Cachedat: 06/24/2023 17:15:08
Cdn-Edgestorageid: 883
Cdn-Proxyver: 1.03
Cdn-Pullzone: 1334033
Cdn-Requestcountrycode: NL
Cdn-Requestid: f61eb8e96d538e7e0f6a143f51438867
Cdn-Requestpullcode: 302
Cdn-Requestpullsuccess: True
Cdn-Status: 302
Cdn-Uid: 5356470d-341a-4aed-9205-a5ba8b33a88d
Content-Type: text/html
Date: Sat, 24 Jun 2023 17:15:08 GMT
Location: https://target.domain.name/dav/personal-files/device-detector-6.0.4.zip
Redirect-Ref: /dav/personal-files/device-detector-6.0.4.zip
Server: BunnyCDN-AMS1-879
2023/06/24 14:15:08 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2023/06/24 14:15:08 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2023/06/24 14:15:08 DEBUG : HTTP REQUEST (req 0xc0008cd300)
2023/06/24 14:15:08 DEBUG : GET /dav/personal-files/device-detector-6.0.4.zip HTTP/1.1
Host: target.domain.name
User-Agent: rclone/v1.62.2
Depth: 0
Referer: https://origin.domain.name/dav/personal-files/device-detector-6.0.4.zip
Accept-Encoding: gzip
2023/06/24 14:15:08 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2023/06/24 14:15:08 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2023/06/24 14:15:08 DEBUG : HTTP RESPONSE (req 0xc0008cd300)
2023/06/24 14:15:08 DEBUG : HTTP/2.0 401 Unauthorized
Content-Length: 14
Content-Type: text/plain; charset=utf-8
Date: Sat, 24 Jun 2023 17:15:08 GMT
Server: nginx/1.23.3
Www-Authenticate: Basic realm="Cells DAV"
2023/06/24 14:15:08 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2023/06/24 14:15:08 ERROR : device-detector-6.0.4.zip: Failed to copy: failed to open source object: Unauthorized.: 401 Unauthorized
2023/06/24 14:15:08 ERROR : Attempt 3/3 failed with 1 errors and: failed to open source object: Unauthorized.: 401 Unauthorized
2023/06/24 14:15:08 INFO :
Transferred: 0 B / 0 B, -, 0 B/s, ETA -
Errors: 1 (retrying may help)
Elapsed time: 0.2s
2023/06/24 14:15:08 DEBUG : 6 go routines active
2023/06/24 14:15:08 Failed to copy: failed to open source object: Unauthorized.: 401 Unauthorized