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

添加离线下载时aria2无法通信 #2122

Open
xyphllipyx opened this issue Sep 22, 2024 · 6 comments
Open

添加离线下载时aria2无法通信 #2122

xyphllipyx opened this issue Sep 22, 2024 · 6 comments

Comments

@xyphllipyx
Copy link

在NAS上部署使用官方给出的DOCKER命令。
输入参数有误 (Failed to connect to RPC server: Post "http://192.168.8.18:6800/jsonrpc": dial tcp 192.168.8.18:6800: i/o timeout)
aria2 ng能用,我又试了motrix内置的ARIA2能识别,所以这个错误时哪里有问题呢?

@makebl
Copy link

makebl commented Nov 13, 2024

同样的问题,也是nas

@3210448723
Copy link

服务器上我用ws://公网ip:6800/jsonrpc就可以连接上,ws://127.0.0.1:6800/jsonrpc就不行
image

@hatsuyuki280
Copy link
Contributor

@3210448723 aria2的配置是什么样的?

是不是位于docker里面部署的

@3210448723
Copy link

3210448723 commented Dec 11, 2024

@3210448723 aria2的配置是什么样的?

是不是位于docker里面部署的

Aria2是用的这个https://github.com/P3TERX/aria2.sh 工具安装的
AriaNg 链接可以打开,端口都是6800

云盘的docker-compose.yml配置如下

version: "3.8"
services:
  cloudreve:
    container_name: cloudreve
    image: cloudreve/cloudreve:latest
    restart: unless-stopped
    ports:
      - "5212:5212"
    privileged: true  # 加之前离线下载会报错
    
    volumes:
      - temp_data:/data
      - ./cloudreve/uploads:/cloudreve/uploads
      - ./cloudreve/conf.ini:/cloudreve/conf.ini
      - ./cloudreve/cloudreve.db:/cloudreve/cloudreve.db
      - ./cloudreve/avatar:/cloudreve/avatar
      
      - /root/downloads:/root/downloads:rw  # 加之前离线下载会报错
    depends_on:
      - aria2
  aria2:
    container_name: aria2
    image: p3terx/aria2-pro
    restart: unless-stopped
    environment:
      - RPC_SECRET= #填了密钥
      - RPC_PORT=6800
    volumes:
      - ./aria2/config:/config
      - temp_data:/data
volumes:
  temp_data:
    driver: local
    driver_opts:
      type: none
      device: $PWD/data
      o: bind

@hatsuyuki280
Copy link
Contributor

你试试配置成aria2的dockers对应的内网ip地址

@3210448723
Copy link

你试试配置成aria2的dockers对应的内网ip地址

可以详细说下吗?我不太熟悉😁
配置成http://127.0.0.1:6800/类似的都是不行的,只有ws://公网ip:6800/jsonrpc可以

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

No branches or pull requests

4 participants