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

通过aria离线下载磁力链 包含多个文件时无法完成下载 #67

Closed
Tsuk1ko opened this issue Apr 25, 2018 · 2 comments
Labels
bug

Comments

@Tsuk1ko
Copy link

@Tsuk1ko Tsuk1ko commented Apr 25, 2018

离线下载的磁力链中包含多个文件时,只有第一个被下载完的文件能够完成下载并被移动至指定下载目录,之后任务立即变为取消状态

相关日志

[ 2018-04-25T01:02:06+08:00 ] x.x.x.x x.x.x.x GET /RemoteDownload/FlushUser
[ error ] [2]rename([METADATA]xxxxxxxxxxxxxxxxxxxxxxxxxx,/www/wwwroot/Cloudreve/public/uploads/20180425/1/1_v3O1vNJY_[METADATA]xxxxxxxxxxxxxxxxxxxxxxxxxx): No such file or directory
---------------------------------------------------------------
[ 2018-04-25T01:03:02+08:00 ] x.x.x.x x.x.x.x GET /Cron
[ error ] [2]opendir(/www/wwwroot/Cloudreve/public/downloads/5adf630b7014d): failed to open dir: No such file or directory
---------------------------------------------------------------
[ 2018-04-25T01:03:04+08:00 ] x.x.x.x x.x.x.x GET /RemoteDownload/FlushUser
[ error ] [2]rename([METADATA]xxxxxxxxxxxxxxxxxxxxxxxxxx,/www/wwwroot/Cloudreve/public/uploads/20180425/1/1_AGhjwsyj_[METADATA]xxxxxxxxxxxxxxxxxxxxxxxxxx): No such file or directory

瞎猜是判断aria是否下载完成时,只要有一个文件下载完成就使用了setComplete()移动下载好的文件,结果导致aria出错

@HFO4 HFO4 added the bug label Apr 25, 2018
@HFO4

This comment has been minimized.

Copy link
Member

@HFO4 HFO4 commented Apr 26, 2018

已在81abe89 修复

@HFO4 HFO4 closed this Apr 26, 2018
@Tsuk1ko

This comment has been minimized.

Copy link
Author

@Tsuk1ko Tsuk1ko commented Apr 29, 2018

我已经git pull更新了本地代码,并且查看文件确认Aria2.php确实已经更新,但是问题依旧

---------------------------------------------------------------
[ 2018-04-29T19:01:16+08:00 ] x.x.x.x x.x.x.x GET /RemoteDownload/FlushUser
[ info ] xxx.com/RemoteDownload/FlushUser [运行时间:0.431399s][吞吐率:2.32req/s] [内存消耗:3,798.00kb] [文件加载:74]
[ error ] [2]rename([METADATA]xxxxxxxxxxxxxxx,/www/wwwroot/Cloudreve/public/uploads/20180429/1/1_5z5JdbSK_[METADATA]xxxxxxxxxxxxxxx): No such file or directory[/www/wwwroot/Cloudreve/application/index/model/Aria2.php:233]
---------------------------------------------------------------
[ 2018-04-29T19:05:01+08:00 ] x.x.x.x x.x.x.x GET /Cron
[ info ] xxx.com/Cron [运行时间:0.633255s][吞吐率:1.58req/s] [内存消耗:3,585.45kb] [文件加载:72]
[ error ] [2]unlink(/www/wwwroot/Cloudreve/public/downloads/5ae5a5f84bfbb/yyyyyyyyyyyyy): Is a directory[/www/wwwroot/Cloudreve/application/index/model/Aria2.php:234]
[ error ] [2]opendir(/www/wwwroot/Cloudreve/public/downloads/5ae5a5f84bfbb): failed to open dir: No such file or directory[/www/wwwroot/Cloudreve/application/index/model/Aria2.php:172]
[ error ] [2]opendir(/www/wwwroot/Cloudreve/public/downloads/5ae5a5f84bfbb): failed to open dir: No such file or directory[/www/wwwroot/Cloudreve/application/index/model/Aria2.php:172]
---------------------------------------------------------------
[ 2018-04-29T19:05:28+08:00 ] x.x.x.x x.x.x.x GET /RemoteDownload/FlushUser
[ info ] xxx.com/RemoteDownload/FlushUser [运行时间:0.091134s][吞吐率:10.97req/s] [内存消耗:3,553.02kb] [文件加载:72]
[ error ] [2]opendir(/www/wwwroot/Cloudreve/public/downloads/5ae5a5f84bfbb): failed to open dir: No such file or directory[/www/wwwroot/Cloudreve/application/index/model/Aria2.php:172]

已完成列表
图中这些文件是同一个种子内的

@HFO4 HFO4 reopened this Apr 30, 2018
@HFO4 HFO4 closed this in 1fe7be1 Aug 30, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.