The following script works 1 or 2 times in 10, otherwise it creates defunct qbittorrent-nox processes. Where the process is stalled, killing the younger qbittorent-nox child processes frees up cleanly and qbittorrrent is back via systemctl.
Even a simple script with "date >> /config/log" for content zombies most of the time.
#/bin/sh
# /config/complete.sh "%I" "%R"
set -x
WEBUI="http://localhost:8080/api/v2/torrents"
HASH="$1"
RDIR="$2"
if [ "${HASH}" == "" ]; then exit; fi
if [ "$RDIR" == "" ]; then exit; fi
test ! -e "${RDIR}" && exit
function dl {
curl --cookie 'SID=REDACTED' "${WEBUI}/$1"
}
if [ -n "${HASH}" ]; then
dl "resume?hashes=$HASH"
dl "removeTags?hashes=$HASH"
fi
if [ -n "${HASH}" ]; then
dl "addTags?tags=syncing&hashes=$HASH"
fi
#
Information
Run external program on torrent completion is extremely fragile (static compile?) and crashes qbittorrent.
Current setup
information about your current setup
python 8eeac62e227d
docker-compose.yml
file ordocker run
commandhow did you start the container? (don't forget to use backticks for creating a proper code block)
Attempted Fix(es)
The following script works 1 or 2 times in 10, otherwise it creates defunct qbittorrent-nox processes. Where the process is stalled, killing the younger qbittorent-nox child processes frees up cleanly and qbittorrrent is back via systemctl.
Even a simple script with "date >> /config/log" for content zombies most of the time.