docker-traefik icon indicating copy to clipboard operation
docker-traefik copied to clipboard

Transmission giving a 404

Open shawnthompson opened this issue 5 years ago • 7 comments

Hopefully this is the last issue I'm having to get my media server up with Traefik v2.

It was working then it stopped. When I go to https://trans.domain.com/ it goes to it goes to https://trans.domain.com/transmission/web/ and I get a 404.

My docker-compose is:

#### .env variables
OPENVPN_PROVIDER=PIA
LOCAL_NETWORK=192.168.90.0/24 # Docker network
SERVER_IP=xxx.xxx.xxx.xxx # ISP IP to my server

  transmission-vpn:
    image: haugene/transmission-openvpn:latest
    container_name: transmission-vpn
    restart: always
    networks:
      # - t2_proxy
      t2_proxy:
        ipv4_address: 192.168.90.90
    # security_opt:
    #   - no-new-privileges:true
    ports:
      - "$TRANSMISSION_PORT:9091"
    cap_add:
      - NET_ADMIN
    devices:
      - /dev/net/tun
    dns:
      - 1.1.1.1
      - 1.0.0.1
    volumes:
      - /etc/localtime:/etc/localtime:ro
      - $DOCKERDIR/transmission-vpn/data:/data
      - $DOCKERDIR/transmission-vpn/config:/config
      - $DOWNLOADDIR:/downloads
      - $DOWNLOADDIR/completed:/downloads/completed
      - $DOWNLOADDIR/incomplete:/downloads/incomplete
      - $WATCHDIR:/data/watch
    environment:
      OPENVPN_PROVIDER: $OPENVPN_PROVIDER
      OPENVPN_USERNAME: $OPENVPN_USERNAME
      OPENVPN_PASSWORD: $OPENVPN_PASSWORD 
      OPENVPN_CONFIG: "ca_montreal"
      OPENVPN_OPTS: --inactive 3600 --ping 10 --ping-exit 60
      LOCAL_NETWORK: "$LOCAL_NETWORK"
      PUID: $PUID
      PGID: $PGID
      TZ: $TZ
      UMASK_SET: 2
      TRANSMISSION_RPC_AUTHENTICATION_REQUIRED: "true"
      TRANSMISSION_RPC_HOST_WHITELIST: "127.0.0.1,$SERVER_IP"
      TRANSMISSION_RPC_PASSWORD: $TRANSMISSION_RPC_PASSWORD
      TRANSMISSION_RPC_USERNAME: $TRANSMISSION_RPC_USERNAME
      TRANSMISSION_UMASK: 002
      TRANSMISSION_RATIO_LIMIT: 0.01
      TRANSMISSION_RATIO_LIMIT_ENABLED: "true"
      TRANSMISSION_ALT_SPEED_DOWN: 2000
      TRANSMISSION_ALT_SPEED_ENABLED: "true"
      TRANSMISSION_ALT_SPEED_UP: 15
      TRANSMISSION_SPEED_LIMIT_DOWN: 6000
      TRANSMISSION_SPEED_LIMIT_DOWN_ENABLED: "true"
      TRANSMISSION_SPEED_LIMIT_UP: 30
      TRANSMISSION_SPEED_LIMIT_UP_ENABLED: "true"
      TRANSMISSION_INCOMPLETE_DIR: /downloads/incomplete
      TRANSMISSION_INCOMPLETE_DIR_ENABLED: "true"
      TRANSMISSION_WATCH_DIR: /data/watch
      TRANSMISSION_WATCH_DIR_ENABLED: "true"
      TRANSMISSION_DOWNLOAD_DIR: /downloads/completed
      TRANSMISSION_WEB_UI: combustion

    labels:
      - "traefik.enable=true"
      ## HTTP Routers
      - "traefik.http.routers.transmission-vpn-rtr.entrypoints=https"
      - "traefik.http.routers.transmission-vpn-rtr.rule=Host(`trans.$DOMAINNAME`)"
      ## Middlewares
      - "traefik.http.routers.transmission-vpn-rtr.middlewares=middlewares-rate-limit@file"
      ## HTTP Services
      - "traefik.http.routers.transmission-vpn-rtr.service=transmission-vpn-svc"
      - "traefik.http.services.transmission-vpn-svc.loadbalancer.server.port=9091"

Any help would be very much appreciated.

Thanks!

shawnthompson avatar Dec 09 '20 00:12 shawnthompson

I switched to qBittorrent but I remember that the image you're using takes a really long time to come up, several minutes. You used to be able to speed it up by adding;

healthcheck:
      start_period: "10s"
      interval: "5s"

My env vars were;

SERVER_IP=my-docker-host-ip # Local IP of the host running Docker
LOCAL_NETWORK=192.168.0.0/16 # Local network and subnet, not my Docker network

You seem to have yours set differently.

Also, unlike in this repository, I had it working with the oauth middleware like so;

- "traefik.http.routers.transmission-vpn-rtr.middlewares=chain-oauth@file"

robflate avatar Dec 09 '20 00:12 robflate

What are you using for VPN?

shawnthompson avatar Dec 09 '20 01:12 shawnthompson

When I used Transmission I was using PIA with the region set to france.

robflate avatar Dec 09 '20 08:12 robflate

What about when you use qBittorrent? Do you use VPN? I was following the guide, not sure why I stuck with Transmission. I'll try it again when I get home. Thanks again @robflate

shawnthompson avatar Dec 09 '20 12:12 shawnthompson

I found your issue https://github.com/htpcBeginner/docker-traefik/issues/35, are you still having a problem?

shawnthompson avatar Dec 09 '20 13:12 shawnthompson

See https://github.com/htpcBeginner/docker-traefik/issues/35#issuecomment-742486145

Because torrent apps require port forwarding, I prefer to use an image with the VPN built in so that is automatically set. I use binhex/arch-qbittorrentvpn setup as a Wireguard client rather than OpenVPN.

You can get port forwarding working by using any torrent image combined with network_mode: service:vpnimage but it takes further setup. I use Gluetun for my VPN and port forwarding can be done like this https://github.com/qdm12/gluetun#private-internet-access-port-forwarding

robflate avatar Dec 10 '20 12:12 robflate

I never got it to work. I switched to qbittorrent and it's working.

shawnthompson avatar Dec 20 '20 17:12 shawnthompson