messense / aliyundrive-webdav

阿里云盘 WebDAV 服务
MIT License
9.57k stars 1.09k forks source link

打开302重定向时进行下载会出现403 Forbidden #927

Closed 1045925330 closed 8 months ago

1045925330 commented 8 months ago

问题描述

使用rclone sync将云盘中的资源下载到nas中时出现这个问题

重现步骤

  1. 运行命令rclone sync DriveName:Folder LocalFolder下载文件时出现日志中的错误,使用rclone mount挂载到本地时可以正常复制文件
  2. 运行命令rclone sync LocalFolder DriveName:Folder上传文件时一切正常
  3. 关闭302重定向后使用rclone sync可以正常下载文件

版本

2.3.3

运行平台

webdav在路由器,rclone在另一台Linux

日志

root@openmediavault:/mnt/aliyundrive# rclone sync aliyundrive:/ /srv/dev-disk-by-uuid-03699791-b659-4623-9a50-876884d46da4/media 2023/11/07 11:14:47 ERROR : 1.epub: Failed to copy: failed to open source object: 403 Forbidden 2023/11/07 11:14:47 ERROR : No.86 MD汉化补丁_1.5.3.exe: Failed to copy: multi-thread copy: failed to open source: 403 Forbidden 2023/11/07 11:14:47 ERROR : 电影/不能说的秘密 蓝光原盘 REMUX/不能说的秘密.Secret 2007 1080p Blu-ray AVC DTSHD-HDStar.ass.ass: Failed to copy: failed to open source object: 403 Forbidden 2023/11/07 11:14:47 ERROR : 电影/不能说的秘密 蓝光原盘 REMUX/简英双字.ass: Failed to copy: failed to open source object: 403 Forbidden 2023/11/07 11:14:47 ERROR : Adobe_Photoshop_2023_24.3.0.376_ACR15.2_SP_20230322.rar: Failed to copy: multi-thread copy: failed to open source: 403 Forbidden 2023/11/07 11:14:47 ERROR : 电影/不能说的秘密 蓝光原盘 REMUX/简英双字.srt: Failed to copy: failed to open source object: 403 Forbidden 2023/11/07 11:14:48 ERROR : 电影/不能说的秘密 蓝光原盘 REMUX/不能说的秘密.Secret.2007.1080p.Blu-ray.AVC.DTS-HD.MA.7.1-Sam.mkv: Failed to copy: multi-thread copy: failed to open source: 403 Forbidden 2023/11/07 11:14:48 ERROR : Local file system at /srv/dev-disk-by-uuid-03699791-b659-4623-9a50-876884d46da4/media: not deleting files as there were IO errors 2023/11/07 11:14:48 ERROR : Local file system at /srv/dev-disk-by-uuid-03699791-b659-4623-9a50-876884d46da4/media: not deleting directories as there were IO errors 2023/11/07 11:14:48 ERROR : Attempt 1/3 failed with 7 errors and: multi-thread copy: failed to open source: 403 Forbidden 2023/11/07 11:14:48 ERROR : 1.epub: Failed to copy: failed to open source object: 403 Forbidden 2023/11/07 11:14:48 ERROR : Adobe_Photoshop_2023_24.3.0.376_ACR15.2_SP_20230322.rar: Failed to copy: multi-thread copy: failed to open source: 403 Forbidden 2023/11/07 11:14:48 ERROR : No.86 MD汉化补丁_1.5.3.exe: Failed to copy: multi-thread copy: failed to open source: 403 Forbidden 2023/11/07 11:14:48 ERROR : 电影/不能说的秘密 蓝光原盘 REMUX/不能说的秘密.Secret 2007 1080p Blu-ray AVC DTSHD-HDStar.ass.ass: Failed to copy: failed to open source object: 403 Forbidden 2023/11/07 11:14:48 ERROR : 电影/不能说的秘密 蓝光原盘 REMUX/简英双字.ass: Failed to copy: failed to open source object: 403 Forbidden 2023/11/07 11:14:48 ERROR : 电影/不能说的秘密 蓝光原盘 REMUX/不能说的秘密.Secret.2007.1080p.Blu-ray.AVC.DTS-HD.MA.7.1-Sam.mkv: Failed to copy: multi-thread copy: failed to open source: 403 Forbidden 2023/11/07 11:14:48 ERROR : 电影/不能说的秘密 蓝光原盘 REMUX/简英双字.srt: Failed to copy: failed to open source object: 403 Forbidden 2023/11/07 11:14:48 ERROR : Local file system at /srv/dev-disk-by-uuid-03699791-b659-4623-9a50-876884d46da4/media: not deleting files as there were IO errors 2023/11/07 11:14:48 ERROR : Local file system at /srv/dev-disk-by-uuid-03699791-b659-4623-9a50-876884d46da4/media: not deleting directories as there were IO errors 2023/11/07 11:14:48 ERROR : Attempt 2/3 failed with 7 errors and: failed to open source object: 403 Forbidden 2023/11/07 11:14:48 ERROR : 1.epub: Failed to copy: failed to open source object: 403 Forbidden 2023/11/07 11:14:48 ERROR : Adobe_Photoshop_2023_24.3.0.376_ACR15.2_SP_20230322.rar: Failed to copy: multi-thread copy: failed to open source: 403 Forbidden 2023/11/07 11:14:48 ERROR : No.86 MD汉化补丁_1.5.3.exe: Failed to copy: multi-thread copy: failed to open source: 403 Forbidden 2023/11/07 11:14:48 ERROR : 电影/不能说的秘密 蓝光原盘 REMUX/不能说的秘密.Secret 2007 1080p Blu-ray AVC DTSHD-HDStar.ass.ass: Failed to copy: failed to open source object: 403 Forbidden 2023/11/07 11:14:48 ERROR : 电影/不能说的秘密 蓝光原盘 REMUX/简英双字.srt: Failed to copy: failed to open source object: 403 Forbidden 2023/11/07 11:14:48 ERROR : 电影/不能说的秘密 蓝光原盘 REMUX/简英双字.ass: Failed to copy: failed to open source object: 403 Forbidden 2023/11/07 11:14:48 ERROR : 电影/不能说的秘密 蓝光原盘 REMUX/不能说的秘密.Secret.2007.1080p.Blu-ray.AVC.DTS-HD.MA.7.1-Sam.mkv: Failed to copy: multi-thread copy: failed to open source: 403 Forbidden 2023/11/07 11:14:48 ERROR : Local file system at /srv/dev-disk-by-uuid-03699791-b659-4623-9a50-876884d46da4/media: not deleting files as there were IO errors 2023/11/07 11:14:48 ERROR : Local file system at /srv/dev-disk-by-uuid-03699791-b659-4623-9a50-876884d46da4/media: not deleting directories as there were IO errors 2023/11/07 11:14:48 ERROR : Attempt 3/3 failed with 7 errors and: multi-thread copy: failed to open source: 403 Forbidden 2023/11/07 11:14:48 Failed to sync with 7 errors: last error was: multi-thread copy: failed to open source: 403 Forbidden

webdav的日志中似乎没有报错 2023-11-07T03:07:15.015294Z INFO aliyundrive_webdav::drive: found resource drive drive_id=847030233 2023-11-07T03:07:15.016056Z INFO aliyundrive_webdav::webdav: listening on http://0.0.0.0:8080 2023-11-07T03:11:41.984975Z WARN reqwest_retry::middleware: Retry attempt #0. Sleeping 89.15303ms before the next attempt 2023-11-07T03:11:41.997783Z WARN reqwest_retry::middleware: Retry attempt #0. Sleeping 137.382314ms before the next attempt 2023-11-07T03:11:42.006866Z WARN reqwest_retry::middleware: Retry attempt #0. Sleeping 279.462178ms before the next attempt 2023-11-07T03:11:42.181564Z WARN reqwest_retry::middleware: Retry attempt #1. Sleeping 432.028014ms before the next attempt 2023-11-07T03:11:42.216349Z WARN reqwest_retry::middleware: Retry attempt #0. Sleeping 97.981481ms before the next attempt 2023-11-07T03:11:42.307607Z WARN reqwest_retry::middleware: Retry attempt #0. Sleeping 432.338µs before the next attempt 2023-11-07T03:11:42.349704Z WARN reqwest_retry::middleware: Retry attempt #1. Sleeping 157.452347ms before the next attempt 2023-11-07T03:11:42.352569Z WARN reqwest_retry::middleware: Retry attempt #1. Sleeping 187.873572ms before the next attempt 2023-11-07T03:11:42.394559Z WARN reqwest_retry::middleware: Retry attempt #1. Sleeping 278.412591ms before the next attempt 2023-11-07T03:11:42.551375Z WARN reqwest_retry::middleware: Retry attempt #2. Sleeping 642.542334ms before the next attempt 2023-11-07T03:11:42.594158Z WARN reqwest_retry::middleware: Retry attempt #2. Sleeping 806.062601ms before the next attempt 2023-11-07T03:11:42.663459Z WARN reqwest_retry::middleware: Retry attempt #2. Sleeping 1.010713642s before the next attempt 2023-11-07T03:11:42.717096Z WARN reqwest_retry::middleware: Retry attempt #2. Sleeping 17.404738ms before the next attempt 2023-11-07T03:11:43.517501Z WARN reqwest_retry::middleware: Retry attempt #0. Sleeping 108.463275ms before the next attempt 2023-11-07T03:11:43.671849Z WARN reqwest_retry::middleware: Retry attempt #1. Sleeping 574.762841ms before the next attempt 2023-11-07T03:11:43.823294Z WARN reqwest_retry::middleware: Retry attempt #0. Sleeping 270.138242ms before the next attempt 2023-11-07T03:11:44.295152Z WARN reqwest_retry::middleware: Retry attempt #2. Sleeping 781.03864ms before the next attempt 2023-11-07T03:11:44.401608Z WARN reqwest_retry::middleware: Retry attempt #0. Sleeping 193.423285ms before the next attempt 2023-11-07T03:11:44.493509Z WARN reqwest_retry::middleware: Retry attempt #0. Sleeping 85.843503ms before the next attempt 2023-11-07T03:11:44.624336Z WARN reqwest_retry::middleware: Retry attempt #1. Sleeping 262.126988ms before the next attempt 2023-11-07T03:11:44.667391Z WARN reqwest_retry::middleware: Retry attempt #1. Sleeping 92.360802ms before the next attempt 2023-11-07T03:11:44.764240Z WARN reqwest_retry::middleware: Retry attempt #0. Sleeping 129.858671ms before the next attempt 2023-11-07T03:11:44.804074Z WARN reqwest_retry::middleware: Retry attempt #2. Sleeping 36.464209ms before the next attempt 2023-11-07T03:11:44.931870Z WARN reqwest_retry::middleware: Retry attempt #2. Sleeping 563.770832ms before the next attempt 2023-11-07T03:11:44.939198Z WARN reqwest_retry::middleware: Retry attempt #1. Sleeping 479.589047ms before the next attempt 2023-11-07T03:11:45.203740Z WARN reqwest_retry::middleware: Retry attempt #0. Sleeping 189.404498ms before the next attempt 2023-11-07T03:11:45.439642Z WARN reqwest_retry::middleware: Retry attempt #1. Sleeping 35.58804ms before the next attempt 2023-11-07T03:11:45.481638Z WARN reqwest_retry::middleware: Retry attempt #2. Sleeping 498.480088ms before the next attempt 2023-11-07T03:11:45.523903Z WARN reqwest_retry::middleware: Retry attempt #2. Sleeping 379.959931ms before the next attempt 2023-11-07T03:11:45.583509Z WARN reqwest_retry::middleware: Retry attempt #0. Sleeping 165.328042ms before the next attempt 2023-11-07T03:11:45.793147Z WARN reqwest_retry::middleware: Retry attempt #1. Sleeping 18.501159ms before the next attempt 2023-11-07T03:11:45.856602Z WARN reqwest_retry::middleware: Retry attempt #2. Sleeping 601.499212ms before the next attempt 2023-11-07T03:11:45.929442Z WARN reqwest_retry::middleware: Retry attempt #0. Sleeping 71.875494ms before the next attempt 2023-11-07T03:11:46.067303Z WARN reqwest_retry::middleware: Retry attempt #1. Sleeping 348.169391ms before the next attempt 2023-11-07T03:11:46.236995Z WARN reqwest_retry::middleware: Retry attempt #0. Sleeping 53.224825ms before the next attempt 2023-11-07T03:11:46.335159Z WARN reqwest_retry::middleware: Retry attempt #1. Sleeping 125.823425ms before the next attempt 2023-11-07T03:11:46.465604Z WARN reqwest_retry::middleware: Retry attempt #2. Sleeping 1.150501634s before the next attempt 2023-11-07T03:11:46.504562Z WARN reqwest_retry::middleware: Retry attempt #2. Sleeping 117.668282ms before the next attempt 2023-11-07T03:11:46.992634Z WARN reqwest_retry::middleware: Retry attempt #0. Sleeping 40.410205ms before the next attempt 2023-11-07T03:11:47.548618Z WARN reqwest_retry::middleware: Retry attempt #0. Sleeping 220.457597ms before the next attempt 2023-11-07T03:11:47.723445Z WARN reqwest_retry::middleware: Retry attempt #0. Sleeping 272.508464ms before the next attempt 2023-11-07T03:11:47.818073Z WARN reqwest_retry::middleware: Retry attempt #1. Sleeping 484.096416ms before the next attempt 2023-11-07T03:11:48.193319Z WARN reqwest_retry::middleware: Retry attempt #0. Sleeping 172.340157ms before the next attempt 2023-11-07T03:11:48.392934Z WARN reqwest_retry::middleware: Retry attempt #2. Sleeping 426.521533ms before the next attempt 2023-11-07T03:11:48.410426Z WARN reqwest_retry::middleware: Retry attempt #1. Sleeping 71.716595ms before the next attempt 2023-11-07T03:11:48.527404Z WARN reqwest_retry::middleware: Retry attempt #2. Sleeping 801.741396ms before the next attempt

messense commented 8 months ago

那就别打开。