-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
"Torrent Done" Script Doesn't Appear to Run #802
Comments
Any progress? |
No luck at all, still a problem. |
Having the same problem, script is being called but nothing happens, script runs fine in a non-docker environment like #494 |
I found that the oncomplete script was not carrying the execution bit into the container. I added a |
Adding chmod +x in my pre-start script like @gardner, plus also realizing that scripts are run in context of the root directory ( / ) is what solved my problem! So even if your script is at /scripts/foo.sh, it will be running in /. I think an improvement to this docker image could be made by automatically adding the exec flag to the scripts defined in the env vars. |
@gardner solution worked for me, and as for what @MitchTalmadge said, mine worked fine in the /scripts folder |
@MitchTalmadge @ffcruz85 - I tried this solution and wasn't able to get it to work. I am trying to run on a Synology NAS. Is there anyway to test it without having transmission do another download? The script runs fine via SSH. |
I would try a very simple test script. Try making a script with the following contents:
Then mount the Check if a |
@MitchTalmadge - Thanks for getting back so quickly. So no luck there either. Pre Process So all my transmission log says is |
I suspect that your script
|
@MitchTalmadge - I tried /data/test.txt and same result. Nothing showed up. I connected to the docker container and see both the scripts inside the /scripts directory inside the docker container. |
I just noticed that your Try making the following changes and then test the script again:
Hope this works out :) |
Finally got it working. Thank you so much for the help @MitchTalmadge. Now just gotta find the best way to get sickbeardMP4 converter to play nice. Basically I was trying to unrar files then let Sonarr handle it after that but also want Sickbeard MP4 converter to convert the file in the same go. |
@Muckoma Exciting! Glad to help. MP4 conversion is a great idea actually, might implement that myself sometime. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Note: The stale bot was recently added to this project to help weed out outdated issues. This will help us to focus time and energy on issues that are important and move the others out of the way. There could however be many issues that are still relevant but have gotten old without ever being fixed. As this is the first round of cleaning it might have been too eager. Feel free to re-open this issue if you think it deserves another look. |
can you help me with the script too i cannot get it to run at all keep getting permission denied. |
i am not sure where to add the pre post script and post. |
@d4g79 - Did you try going into the container and running the following command? |
Hi,
Yeah I did that but that was not the issue. The issue was noexec under the disk that had the script. Needs to remove this and now everything works as expected.
Thanks.
…Sent from my iPhone
On 31 Jul 2020, at 12:19 am, Muckoma ***@***.***> wrote:
@d4g79 - Did you try going into the container and running the following command?
chmod +x /SCRIPTNAME.sh
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
I can't get this to work. First off, this is what the log shows in attempting to get the pre script to chmod the "torrent done" script:
I have tried having it chmod the script located in a few places, and I've done every version of the file path I could think of inside the post-start.sh script. I've also run it as a pre-start.sh script. No luck at all. I cannot understand how the response is "No such file or directory." Needless to say, the "torrent done" script meant to echo to a test file is also not running when torrents complete. |
Unrar script i use below. `#!/bin/bash echo "Starting - $(date)" cd "$TR_TORRENT_DIR" if [ -d "$TR_TORRENT_NAME" ]; then |
I don't use the post start scripts, i use Portainer GUI and stacks to install the container. The ENV variable torrent-done is added in the docker script. version: "2.4" |
Hi,
And for my script .sh, I included some logs with the command bellow : It give the error message of my scripts, in my case I had issue with Sudo ans docker which was not installed #!/usr/bin/env bash HARDLINKS=true |
Describe the problem
Using the "torrent done" environment variables (below), I cannot get a script to run when a torrent finishes downloading. The
/data/transmission-home/transmission.log
file does say that the script is called, but the script never does what it is supposed to, and the fileatime
does not change since its creation which implies that it is never read or executed.Environment variables in question:
TRANSMISSION_SCRIPT_TORRENT_DONE_ENABLED
TRANSMISSION_SCRIPT_TORRENT_DONE_FILENAME
Related issues: (Nothing seemed to help. Many authors just abandoned their issues or did not describe their solution.)
#75
#483
#494
#622
#701
Add your docker run command
docker-compose.yml (Click Here)
The
PUID
andPGID
provided are for the usertransmission
, as seen here:Interestingly, when the docker container starts it claims that the user is called
abc
. Not sure why.Script
The script that is being run is as follows:
test.sh
:Permissions: (Full permissions granted to world as a last resort -- no luck)
The
test.txt
file is empty, even after download completes.Logs
Docker Logs (Click Here)
Transmission Logs (Click Here)
Host system:
Debian 9:
Docker:
Thank you for your help.
The text was updated successfully, but these errors were encountered: