Skip to content

把文件从本地复制到网盘,会先在temp目录下复制一份,会占满磁盘无法上传 #2186

Description

@YouHaveGone

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).
  • I'm sure I'm using the latest version

Alist Version / Alist 版本

v3.3.0

Driver used / 使用的存储驱动

Onedrive 本地存储

Describe the bug / 问题描述

Alist添加 从本地向Onedrive复制 的任务,会先在 alist安装目录/data/temp下创建一个一样的副本,而不是直接上传。当需要复制的文件过大直接把服务器磁盘都占满了。
image

Reproduction / 复现链接

Logs / 日志

root@ip-172-26-22-250:/opt/alist/log# tail -f log.log 
[GIN] 2022/11/02 - 13:36:08 | 200 |     111.931µs |     42.3.27.163 | GET      "/api/admin/task/copy/undone"
[GIN] 2022/11/02 - 13:36:10 | 200 |     139.509µs |     42.3.27.163 | GET      "/api/admin/task/copy/undone"
[GIN] 2022/11/02 - 13:36:12 | 200 |     142.233µs |     42.3.27.163 | GET      "/api/admin/task/copy/undone"
[GIN] 2022/11/02 - 13:36:25 | 200 |   24.897416ms |     42.3.27.163 | GET      "/api/admin/task/copy/undone"
ERRO[2022-11-02 13:36:45] error [write /opt/alist/data/temp/47a26196-0662-4d9e-912e-f4902bc4f542-ANSYS_Products_2021_R2x64.zip: copy_file_range: no space left on device
failed get [/home/ubuntu/alist/ANSYS_Products_2021_R2x64.zip] stream] while run task [copy [/本地](/home/ubuntu/alist/ANSYS_Products_2021_R2x64.zip) to [/Onedrive](/设计)] 
[GIN] 2022/11/02 - 13:37:26 | 200 |   16.018306ms |     42.3.27.163 | GET      "/api/admin/task/copy/undone"
[GIN] 2022/11/02 - 13:38:25 | 200 |     115.406µs |     42.3.27.163 | GET      "/api/admin/task/copy/undone"
[GIN] 2022/11/02 - 13:39:26 | 200 |     127.374µs |     42.3.27.163 | GET      "/api/admin/task/copy/undone"
[GIN] 2022/11/02 - 13:40:25 | 200 |     123.392µs |     42.3.27.163 | GET      "/api/admin/task/copy/undone"
[GIN] 2022/11/02 - 13:41:25 | 200 |      154.18µs |     42.3.27.163 | GET      "/api/admin/task/copy/undone"

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requeststaleNo activity for more than 30 days

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions