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

Transmission Won't Run Script When Done Downloading #6303

Open
nyxs opened this issue Nov 27, 2023 · 1 comment
Open

Transmission Won't Run Script When Done Downloading #6303

nyxs opened this issue Nov 27, 2023 · 1 comment

Comments

@nyxs
Copy link

nyxs commented Nov 27, 2023

What is the issue?

I'm using a docker environment.

docker-compose has the following environment variables:

volumes:
      - /opt/transmission-container/config:/config
      - /opt/transmission-container/scripts:/scripts
environment:
      - TRANSMISSION_SCRIPT_TORRENT_DONE_ENABLED=true
      - TRANSMISSION_SCRIPT_TORRENT_DONE_FILENAME="/scripts/afterDL.sh"

I've updated the /config/settings.json from the host (/opt/transmission-container/config/settings.json) and set:
"script-torrent-done-enabled": true,
"script-torrent-done-filename": "/scripts/afterDL.sh",
I validated the update of the settings.json with these values by looking into the /config/settings.json file inside the docker.

I've set the afterDL.sh file with chmod +x from within the docker.

The first thing written in the script is:

echo -e "TR_TORRENT_DIR: ${TR_TORRENT_DIR}\nTR_TORRENT_NAME: ${TR_TORRENT_NAME}\nTR_TORRENT_ID: ${TR_TORRENT_ID}" > /proc/1/fd/1

Nothing of this works.
I can run the script manually and I see the output when I open the docker's logs using:

sudo docker logs -f transmission

But when a download is done, and it starts seeding already, nothing works.

I noticed that when I performed:

sudo docker compose restart transmission

The settings.json files, both on the host and inside the docker, are resetting the "script-torrent-done-enabled" and the "script-torrent-done-filename" settings.

What am I doing wrong?

Thanks.

Which application of Transmission?

Web client

Which version of Transmission?

4.0.4 24077e3

@killemov
Copy link

Only use:

volumes:
  - /opt/transmission-container/config:/config

The rest should all be configured with settings.json on your host in /opt/transmission-container/config. This is also where your scripts should be. Only change settings.json when transmission-daemon is not running. You should not use compose every time.

Also see: haugene/docker-transmission-openvpn#802

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants