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

Can not connect to Aria2-pro using docker #144

Open
Georgebobby opened this issue Sep 30, 2023 · 1 comment
Open

Can not connect to Aria2-pro using docker #144

Georgebobby opened this issue Sep 30, 2023 · 1 comment

Comments

@Georgebobby
Copy link

I'm on Ubuntu 22.04 LTS and have opened up the corresponding port and cleared all firewall rules sudo iptables -F (ufw is disabled). However, I just can't connect to aria2-pro container. when setting up in Ariang, I tried to connect to http://aria-E5:6881/jsonrpc with mypassword but it just shows "not connected". I have no clue why.
The following is my docker compose file:

version: "3.8"
services:
  cloudreve:
    container_name: cloudreve
    image: cloudreve/cloudreve:latest
    restart: unless-stopped
    ports:
      - "5212:5212"
    volumes:
      - temp_data:/data
      - ./cloudreve/uploads:/cloudreve/uploads
      - ./cloudreve/conf.ini:/cloudreve/conf.ini
      - ./cloudreve/cloudreve.db:/cloudreve/cloudreve.db
      - ./cloudreve/avatar:/cloudreve/avatar
    depends_on:
      - aria2-TH
      - aria2-E5
      - aria2-willywang8216
    networks:
      - network_cr
  ariang:
    image: p3terx/ariang
    container_name: ariang
    restart: unless-stopped
    command: --port 6880 --ipv6
    logging:
      driver: json-file
      options:
        max-size: 1m
    ports:
      - "6880:6880"
    networks:
      - network_cr
  aria2-E5:
    container_name: aria2-E5
    image: p3terx/aria2-pro
    restart: unless-stopped
    ports:
      - 6888:6888
        #DHT listen port
      - 6888:6888/udp
        # BT listen port 
      - 6881:6881
    environment:
      - PUID=65534
      - PGID=65534
      - UMASK_SET=022
      - RPC_SECRET=P3TERX
      - LISTEN_PORT=6888
      - DISK_CACHE=64M
      - IPV6_MODE=false
      - UPDATE_TRACKERS=true
      - CUSTOM_TRACKER_URL=
      - SPECIAL_MODE=rclone
      - RPC_SECRET="mypassword"
      - RPC_PORT=6881
      - TZ=Asia/Taipei
    volumes:
      - ./aria2-E5/config:/config
      - ~/rclone-E5-downloads:/downloads
      - temp_data:/data
    networks:
      - network_cr
networks:
  network_cr:
    driver: bridge
    external: true
volumes:
  temp_data:
    driver: local
    driver_opts:
      type: none
      device: $PWD/data
      o: bind
@sideloading
Copy link

I had to change the RPC Protocol to use WebSocket instead of HTTP/S and it shows as Connected since.

Via AriaNg Settings > Your Aria2 RPC

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

2 participants