Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PikPak webdav上传错误,可能是秒传导致的 #1081

Closed
3 tasks done
fantastlcok opened this issue May 10, 2022 · 7 comments
Closed
3 tasks done

PikPak webdav上传错误,可能是秒传导致的 #1081

fantastlcok opened this issue May 10, 2022 · 7 comments
Labels
question Further information is requested

Comments

@fantastlcok
Copy link

Please make sure of the following things

  • I have read the documentation.
  • I'm sure there are no duplicate issues or discussions.
  • I'm sure it's due to alist and not something else(such as Dependencies or Operational).

Alist Version / Alist 版本

v2.5.1

Describe the bug / 问题描述

当我使用rclone 通过 webdav 上传一些文件到网盘时,经常收到错误:
Failed to copy: Method Not Allowed: 405 Method Not Allowed
同时发现一个很神奇的现象,一部文件上传后会直接出现在网盘的回收站里。
排查发现上传405错误的文件,竟然在回收站里放着,而且文件是完整的。
看alist的日志,rclone在收到错误后尝试删除文件导致的。
但rclone明明并没有成功上传文件,这个文件应该是被pikpak秒传了,但alist直接返回405导致rclone以为失败了。

Reproduction / 复现链接

rclone -P -vv sync /path/ alist:pikpak/sync/

Logs / 日志

No response

@xhofe
Copy link
Collaborator

xhofe commented May 11, 2022

提供一下日志

@xhofe xhofe added the question Further information is requested label May 11, 2022
@github-actions
Copy link

Hello @fantastlcok, please input issue by template and add detail. Issues labeled by question will be closed if no activities in 7 days.
你好 @fantastlcok,请按照issue模板填写, 并详细说明问题/复现步骤/复现链接/实现思路或提供更多信息等, 7天内未回复issue自动关闭。

@fantastlcok
Copy link
Author

提供一下日志

重新排查了下,看起来不是秒传导致的。好吧,它就是错误了。
这些出错的文件都在回收站,每个文件大小都是58.7M,并不是完整的。

GIN] 2022/05/11 - 14:19:18 | 405 |  620.254496ms |      172.22.0.1 | PUT      "/dav/ppk/12/zbtrnjpi.zip"

[GIN] 2022/05/11 - 14:19:20 | 204 |  530.291006ms |      172.22.0.1 | DELETE   "/dav/ppk/12/zbtrnjpi.zip"

[GIN] 2022/05/11 - 14:19:20 | 201 |  274.733879ms |      172.22.0.1 | MKCOL    "/dav/ppk/12/"

ERRO[2022-05-11 14:19:21] upload error: InvalidParameter: 2 validation error(s) found.

- minimum field size of 1, CreateMultipartUploadInput.Bucket.

- minimum field size of 1, CreateMultipartUploadInput.Key. 

ERRO[2022-05-11 14:19:21] InvalidParameter: 2 validation error(s) found.

- minimum field size of 1, CreateMultipartUploadInput.Bucket.

- minimum field size of 1, CreateMultipartUploadInput.Key. 

[GIN] 2022/05/11 - 14:19:21 | 405 |  689.914678ms |      172.22.0.1 | PUT      "/dav/ppk/12/piffhees.zip"

[GIN] 2022/05/11 - 14:19:22 | 204 |  530.933199ms |      172.22.0.1 | DELETE   "/dav/ppk/12/piffhees.zip"

[GIN] 2022/05/11 - 14:19:22 | 201 |  267.528326ms |      172.22.0.1 | MKCOL    "/dav/ppk/12/"

ERRO[2022-05-11 14:19:23] upload error: InvalidParameter: 2 validation error(s) found.

- minimum field size of 1, CreateMultipartUploadInput.Bucket.

- minimum field size of 1, CreateMultipartUploadInput.Key. 

ERRO[2022-05-11 14:19:23] InvalidParameter: 2 validation error(s) found.

[GIN] 2022/05/11 - 14:19:23 | 405 |  606.535762ms |      172.22.0.1 | PUT      "/dav/ppk/12/sadzbzww.zip"

- minimum field size of 1, CreateMultipartUploadInput.Bucket.

- minimum field size of 1, CreateMultipartUploadInput.Key. 

rclone 日志

2022-05-11 22:19:03 DEBUG : webdav root 'ppk/12': Waiting for checks to finish
2022-05-11 22:19:03 DEBUG : 12/kpxmwcnf.zip: Sizes identical
2022-05-11 22:19:03 DEBUG : 12/kpxmwcnf.zip: Unchanged skipping
2022-05-11 22:19:03 DEBUG : webdav root 'ppk/12': Waiting for transfers to finish
2022-05-11 22:19:15 INFO  : 12/zdzcnzpc.zip: Copied (new)
2022-05-11 22:19:17 ERROR : 12/ntxwdrri.zip: Failed to copy: Method Not Allowed: 405 Method Not Allowed
2022-05-11 22:19:20 ERROR : 12/zbtrnjpi.zip: Failed to copy: Method Not Allowed: 405 Method Not Allowed
2022-05-11 22:19:22 ERROR : 12/piffhees.zip: Failed to copy: Method Not Allowed: 405 Method Not Allowed
2022-05-11 22:19:25 ERROR : 12/sadzbzww.zip: Failed to copy: Method Not Allowed: 405 Method Not Allowed

@xhofe
Copy link
Collaborator

xhofe commented May 12, 2022

日志说的是因为获取到的bucket和key是空的。所以参数检查失败

@fantastlcok
Copy link
Author

好吧,我不太理解为什么会出现这个错误。
上传文件,有失败的有成功的。
对于上传大量文件,有条件的话,通过BT做种离线代替上传是更好的选择。

@github-actions
Copy link

Hello @, this issue was closed due to no activities in 7 days.
你好 @,此issue因超过7天未回复被关闭。

@github-actions github-actions bot mentioned this issue Feb 22, 2023
4 tasks
@hiahia250
Copy link

我这也是相同情况

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants