linuxserver / docker-transmission

GNU General Public License v3.0
577 stars 179 forks source link

[BUG] Watch folder not working with Docker Windows #246

Closed MatrixRonny closed 1 year ago

MatrixRonny commented 1 year ago

Is there an existing issue for this?

Current Behavior

When I add a torrent to the watch folder (manual paste), it is not taken into account. I need to issue docker-compose stop and then docker-compose start. Otherwise, the added torrent file does not get the .added suffix to its name, nor added to config/torrents folder.

Expected Behavior

The torrent file is added immediately to the config/torrents folder.

Steps To Reproduce

  1. Create the docker-compose.yml file with the contents bellow:
  2. Create config, downloads and watch folders next to the docker-compose file.
  3. Run docker-compose up
  4. Add a torrent to the watch folder.

Environment

- OS: Windows 10 Pro
- I am using Docker Desktop for Windows (4.19.0) downloaded from https://www.docker.com/products/docker-desktop/
- Docker was configured to use WSL2
- I noticed that files in config folder (created by transmission-Docker) are owned by my logged on Windows user 
- It is not a network issue, since torrents work after recreating the container.

CPU architecture

x86-64

Docker creation

version: "2.1"
services:
  transmission:
    image: lscr.io/linuxserver/transmission:latest
    container_name: transmission
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=Etc/UTC
      - TRANSMISSION_WEB_HOME= #optional
      - USER= #optional
      - PASS= #optional
      - WHITELIST= #optional
      - PEERPORT= #optional
      - HOST_WHITELIST= #optional
    volumes:
      - ./config:/config
      - ./downloads:/downloads
      - ./watch:/watch
    ports:
      - 9091:9091
      - 51413:51413
      - 51413:51413/udp
    restart: unless-stopped

Container logs

[migrations] started
[migrations] no migrations found
───────────────────────────────────────

      ██╗     ███████╗██╗ ██████╗ 
      ██║     ██╔════╝██║██╔═══██╗
      ██║     ███████╗██║██║   ██║
      ██║     ╚════██║██║██║   ██║
      ███████╗███████║██║╚██████╔╝
      ╚══════╝╚══════╝╚═╝ ╚═════╝ 

   Brought to you by linuxserver.io
───────────────────────────────────────

To support LSIO projects visit:
https://www.linuxserver.io/donate/

───────────────────────────────────────
GID/UID
───────────────────────────────────────

User UID:    1000
User GID:    1000
───────────────────────────────────────

[custom-init] No custom files found, skipping...
[ls.io-init] done.
github-actions[bot] commented 1 year ago

Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid.

j0nnymoe commented 1 year ago

This is going to be specific to something docker for desktop does and we do not support/recommend using it. If you must using windows as your host, install Ubuntu via WSL2 then install docker within Ubuntu.

github-actions[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. This might be due to missing feedback from OP. It will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] commented 11 months ago

This issue is locked due to inactivity