Skip to content
This repository has been archived by the owner on May 30, 2022. It is now read-only.

下载失败! #14

Closed
beafuture opened this issue Nov 11, 2014 · 11 comments
Closed

下载失败! #14

beafuture opened this issue Nov 11, 2014 · 11 comments

Comments

@beafuture
Copy link

aria2 版本 1.18.1,系统Linuxmint17 ,浏览器firefox 33
在不启用rpc 验证的情况下,添加任务提示 “下载失败!是不是没有开启aria2?”,但任务已经成功添加了。
在启用了rpc验证的情况下,会有同样的提示,但是任务没有添加成功,aria2 日志里会有一条 “11/11 18:09:44 [INFO] Request path is invaild. Ignore the request body.” 。

@acgotaku
Copy link
Owner

@beafuture rpc验证是用的用户名密码还是 token?

@beafuture
Copy link
Author

使用的用户名验证

@acgotaku
Copy link
Owner

@beafuture chrome下正常不?

@beafuture
Copy link
Author

chrome 下也是同样的问题 ,关闭验证提示下载失败,但aria2已经在下载,开启验证,下载任务添加就失败了

@acgotaku
Copy link
Owner

@beafuture 其实我自己的aria2c都不带任何验证的 所以对验证的测试可能少了点
我之后会测试修复的

@acgotaku
Copy link
Owner

@beafuture 我这边测试正常啊 == 你的aria2c的配置文件是怎么设置用户名和密码的?
对了,用户名和密码(需要1.15.2以上,1.18.6以下版本)在之后是不推荐使用的认证方式
建议使用token (需要1.18.4以上版本)

@beafuture
Copy link
Author

我用的aria2 1.18.1,你测试正常的aria2版本是多少?
以下是我的配置文件:
daemon=true
enable-rpc=true
rpc-user=test
rpc-passwd=123456
rpc-listen-all=true
rpc-listen-port=6800
max-concurrent-downloads=10
continue=true
max-connection-per-server=10
min-split-size=10M
split=10
max-overall-download-limit=0
max-download-limit=0
max-overall-upload-limit=0
max-upload-limit=0
dir=/mnt/sda2/DOWNLOAD/
file-allocation=falloc

@beafuture
Copy link
Author

我的aria2是ubuntu server 14.04 直接apt安装的,另外在不启用验证的时候,添加任务成功了,提示也不正确

@beafuture
Copy link
Author

刚刚导出到aria2的时候在firebug的控制台看到了这条提示:
已阻止交叉源请求:同源策略不允许读取 http://<我的域名>:6800/jsonrpc?tm=1415756394221 上的远程资源。可以将资源移动到相同的域名上或者启用 CORS 来解决这个问题。

@beafuture
Copy link
Author

报歉,是我aria2 没有配置 rpc-allow-origin-all=true 所致,现在不管是否启用验证,都可以提示下载成功了。

@acgotaku
Copy link
Owner

@beafuture 那就关闭这个issue吧

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants