blaise-io / acelink

Play Ace Streams on macOS using Docker.
MIT License
747 stars 49 forks source link

Errors and instability under VPN #85

Closed litio2001 closed 2 months ago

litio2001 commented 2 months ago

When I launch the container connected under VPN (using Gluetun container) in the acelink log I see many errors that are not shown when I do NOT use VPN.

I Paste container log acelink: *(I have replaced the link ID with XXXX for privacy)

2024-04-11 20:06:01,464|ServiceBrowserThread-24|zc|run: got socket error
2024-04-11 20:06:21,464|ServiceBrowserThread-24|zc|run: got socket error
2024-04-11 20:06:24,303|AceStreamCoreThread|acestream.live.download.XXXXXXXXXXXXX|send_multicast_pex_announce: error: <class 'PermissionError'>:[Errno 1] Operation not permitted
2024-04-11 20:06:41,464|ServiceBrowserThread-24|zc|run: got socket error
2024-04-11 20:07:01,464|ServiceBrowserThread-24|zc|run: got socket error
2024-04-11 20:07:16,361|AceStreamCoreThread|acestream.live.download.XXXXXXXXXXXXX|send_multicast_pex_announce: error: <class 'PermissionError'>:[Errno 1] Operation not permitted
2024-04-11 20:07:21,464|ServiceBrowserThread-24|zc|run: got socket error
2024-04-11 20:07:24,309|AceStreamCoreThread|acestream.live.download.XXXXXXXXXXXXX|send_multicast_pex_announce: error: <class 'PermissionError'>:[Errno 1] Operation not permitted

These errors when not connected by VPN are not displayed. However, even with these errors the playback usually works, but when many errors begin to appear it begins to be unstable. Since it is a paid VPN, I can configure it by removing the security filters (ad blocking, etc.), activating NAT and port forwarding:

imagen

More data: 1- I use paid ProtonVPN (Wireguard protocol). 2- The acelink container is associated with the Gluetun container network. 3- My host system is a Synology DS920+

I paste my docker compose (I use portainer):

version: "3"
services:
  gluetun:
    image: qmcgaw/gluetun
    container_name: gluetun
    mem_limit: 1g
    cpu_shares: 768
    cap_add:
      - NET_ADMIN
    devices:
      - /dev/net/tun:/dev/net/tun
    ports:
      - 8888:8888/tcp # HTTP proxy #For gluetun container
      - 8388:8388/tcp # Shadowsocks #For gluetun container
      - 8388:8388/udp # Shadowsocks #For gluetun container
      - 6878:6878 #For acestream container
      - 8621:8621 #For acestream container
      - 62062:62062 #For acestream container

    volumes:
      - /volume1/docker/gluetun:/gluetun
    environment:
      - TZ=Europe/Madrid
      - VPN_SERVICE_PROVIDER=custom
      - VPN_TYPE=wireguard
      - VPN_ENDPOINT_IP=XXX.XXX.XXX.XXX
      - VPN_ENDPOINT_PORT=51820
      - WIREGUARD_PUBLIC_KEY=XXXXX
      - WIREGUARD_PRIVATE_KEY=XXXX
      - WIREGUARD_ADDRESSES=XX.X.X.X/XX
      - DNS_ADDRESS=X.X.X.X
      - WIREGUARD_MTU=XXXX
    networks:
      - gluetun-bridge #It is the network previously created expressly for gluetun.
networks:
      gluetun-bridge:
       external: true
version: '3.3'
services:
   blaiseio-acelink:
    image: blaiseio/acelink:2.0.7-a1
    container_name: acestream
    mem_limit: 1g
    cpu_shares: 768
   #ports: (Disabled when connecting to VPN)
    #- 6878:6878 
    environment:
      - TZ=Europe/Madrid
    volumes:
      - /volume1/docker/acelink:/config
    restart: always
    network_mode: "container:gluetun" # to join gluetun container network
blaise-io commented 2 months ago

Acestream is P2P, maybe your VPN provider limits the number of concurrent connections? I don't think I will be able to fix this in Ace Link.

litio2001 commented 2 months ago

Acestream is P2P, maybe your VPN provider limits the number of concurrent connections? I don't think I will be able to fix this in Ace Link.

No, I confirm that it is not the VPN (protonVPN premium is precisely configured for P2P). This user has repaired it by adding to his code the latest version of acestream linux that avoids blocking by ISPs: https://github.com/marquezpsergio/acestream-docker-home

blaise-io commented 2 months ago

Can you try this beta build? https://github.com/blaise-io/acelink/issues/79#issuecomment-2095934318

litio2001 commented 2 months ago

Can you try this beta build? #79 (comment)

I am testing the version: docker pull blaiseio/acelink:2.1.0 I will confirm shortly if it is stable.

litio2001 commented 2 months ago

Can you try this beta build? #79 (comment)

I confirm after 2 and a half hours that the version is stable acelink:2.1.0 👍

blaise-io commented 2 months ago

Thanks!