CubieBoard中文论坛

 找回密码
 立即注册
搜索
热搜: unable
查看: 27117|回复: 2

运行aria2的rpc模式出错,请帮我看一下,谢谢。

[复制链接]
发表于 2013-8-3 07:34:12 | 显示全部楼层 |阅读模式
本帖最后由 简单 于 2013-8-3 07:39 编辑

我想按网上教程开启aria2的rpc模式,log日志里出现如下错误:

  1. 2013-07-30 23:40:10.044958 ERROR - [HttpListenCommand.cc:115]IPv6 RPC: failed to bind port 6800
  2. Exception: [SocketCore.cc:310] errorCode=1 Failed to bind a socket, cause: 未知的名称或服务
  3. 2013-07-30 23:43:06.587394 ERROR - [HttpListenCommand.cc:115]IPv6 RPC: failed to bind port 6800
  4. Exception: [SocketCore.cc:310] errorCode=1 Failed to bind a socket, cause: 未知的名称或服务
  5. 2013-07-30 23:47:04.827537 ERROR - [HttpListenCommand.cc:115]IPv6 RPC: failed to bind port 6800
  6. Exception: [SocketCore.cc:310] errorCode=1 Failed to bind a socket, cause: 未知的名称或服务
  7. 2013-08-02 14:40:58.379851 ERROR - [HttpListenCommand.cc:115]IPv6 RPC: failed to bind port 6800
  8. Exception: [SocketCore.cc:310] errorCode=1 Failed to bind a socket, cause: 未知的名称或服务
  9. 2013-08-02 14:44:11.141573 ERROR - [HttpListenCommand.cc:115]IPv6 RPC: failed to bind port 6800
  10. Exception: [SocketCore.cc:310] errorCode=1 Failed to bind a socket, cause: Name or service not known
复制代码
在浏览器输入网址http://192.168.1.2:6800/jsonrpc?jsoncallback=1测试时回显:

  1. 1({"error":{"code":-32700,"message":"Parse error."},"id":null,"jsonrpc":"2.0"})
复制代码
使用WEB前端http://ziahamza.github.io/webui-aria2/ 无法访问。
我的网址经过测试是可以在外网访问的。
我的aria2.conf是这样的:

  1. #Aria2 configuration

  2. # RPC Setting
  3. #
  4. enable-rpc=true
  5. rpc-listen-all=true
  6. rpc-allow-origin-all=true
  7. rpc-listen-port=6800
  8. rpc-user=user
  9. rpc-passwd=password


  10. # General Setting
  11. #
  12. dir=/mnt/disk1/downloads
  13. input-file=/mnt/disk1/aria2/aria2.session
  14. save-session=/mnt/disk1/aria2/aria2.session
  15. save-session-interval=60
  16. log=/mnt/disk1/aria2/aria2.log
  17. log-level=warn
  18. #event-poll=select
  19. disk-cache=16M
  20. #enable-mmap=true
  21. file-allocation=none
  22. peer-id-prefix=-UT2210-
  23. user-agent=uTorrent/2210(25130)

  24. # Connection Setting
  25. #
  26. continue=true
  27. max-connection-per-server=5
  28. max-concurrent-downloads=3
  29. min-split-size=1M
  30. split=5
  31. max-overall-download-limit=0
  32. max-overall-upload-limit=50K
  33. max-upload-limit=20
  34. lowest-speed-limit=20K
  35. auto-save-interval=120
  36. check-certificate=false

  37. # BT/PT Setting
  38. #
  39. bt-require-crypto=true
  40. bt-max-peers=300
  41. enable-peer-exchange=true
  42. bt-enable-lpd=true
  43. enable-dht=true
  44. listen-port=48028
  45. dht-listen-port=48028
  46. follow-torrent=true
  47. force-save=true
  48. bt-seed-unverified=true
  49. bt-save-metadata=true
  50. bt-hash-check-seed=true
  51. bt-remove-unselected-file=false
  52. bt-stop-timeout=900
  53. seed-ratio=1
  54. seed-time=525600
复制代码
执行方式是在rc.local里面加入语句:

  1. aria2c --conf-path=path/to/aria2/aria2.conf
复制代码
单独执行这条语句时,报错与log日志里的一样。
我的环境是cubieboard预装的ubuntu。
请问如何解决?
PS:我是第一次使用aria2.
谢谢。
回复

使用道具 举报

发表于 2013-8-3 14:59:52 | 显示全部楼层
--disable-ipv6  ?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2013-8-5 07:07:06 | 显示全部楼层
ghw 发表于 2013-8-3 14:59
--disable-ipv6  ?

谢谢,搞定,原来还要禁掉IPV6的。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|粤ICP备13051116号|cubie.cc---深刻的嵌入式技术讨论社区

GMT+8, 2024-5-19 03:34 , Processed in 0.023531 second(s), 15 queries .

Powered by Discuz! X3.4

© 2001-2012 Comsenz Inc. | Style by Coxxs

返回顶部