Trigus42 / alpine-qbittorrentvpn

Multiarch docker image with the latest qBittorrent-nox client (WEB UI) and WireGuard/OpenVPN tunnel
GNU General Public License v3.0
69 stars 10 forks source link

/dev/net/tun": no such file or directory #45

Closed poudenes closed 7 months ago

poudenes commented 7 months ago

Hi There,

I get this error when I update the stack in portainer:

Failed to deploy a stack: Container qbittorrent Creating Container qbittorrent Created Container qbittorrent Starting Error response from daemon: error gathering device information while adding custom device "/dev/net/tun": no such file or directory

I also tried the 'trigus42/qbittorrentvpn:issue-42' and get same issue.

version: "3.9"
services:

  qbittorrent:
    image: trigus42/qbittorrentvpn:issue-42
    container_name: qbittorrent
    hostname: qbittorrent
    restart: always
    ports:
      - 8084:8080
      - 20000:20000
    volumes:
      - /etc/localtime:/etc/localtime:ro
      - /volumeUSB2/usbshare/docker/qbittorrent/:/config:rw
      - /volumeUSB2/usbshare/docker/qbittorrent/downloads:/downloads:rw
      - /volume1/data/torrents:/data/torrents:rw
    environment:
      TZ: Europe/Amsterdam
      LAN_NETWORK: 192.168.100.0/24
      VPN_ENABLED: yes
      VPN_TYPE: openvpn
      NAME_SERVERS: 8.8.8.8
      VPN_USERNAME: my_username 
      VPN_PASSWORD: my_password
      PUID: 1026
      PGID: 100
      FIREWALL_OUTBOUND_SUBNETS: 172.30.33.0/24,192.168.100.0/24 
      DEBUG: yes
    mem_limit: 2g
    cpu_shares: 768
    security_opt:
      - no-new-privileges:true
    cap_add:
      - NET_ADMIN
    devices:
      - /dev/net/tun
    healthcheck:
     test: curl -f http://localhost:8080/ || exit 1
    networks:
       synology:
         ipv4_address: 172.30.33.106

networks:
  synology:
    external: true

I Also removed everything and tried to build everything from scratch. Didn't work.

poudenes commented 7 months ago

removed:

    devices:
      - /dev/net/tun

This error is gone now. Have moved from VPN provider and have issues now with "VPN Unlimited OpenVPN profile" to let it work. If not working will create new issue.