Giter Club home page Giter Club logo

Comments (14)

jkaberg avatar jkaberg commented on May 29, 2024 1

@dedmo, are you using an blocklist? If so, my bet: https://github.com/linuxserver/docker-transmission/blob/master/root/defaults/blocklist-update.sh

@thelamer thoughts?

from docker-transmission.

dedmo avatar dedmo commented on May 29, 2024

@jkaberg, Yes I'm use blocklist. Sorry, can't comment script, I'm simple user :-|
Since 3 Jul i'm test linuxserver/transmission with disabled UDP. It looks like the RAM usage has decreased. Please see attached screenshot with total system RAM usage for last month.

But additional background process "transmission-daemon" continues to be added. Jul 3 - 1 process "transmission-daemon", today 5 Jul - 4 process.

synology RAM usage log

from docker-transmission.

jkaberg avatar jkaberg commented on May 29, 2024

@dedmo Unless I read this completely wrong the blocklist script will launch a new instance of transmission each time its run (which is everyday according to the README)

Interesting take on UDP, will keep that in mind

from docker-transmission.

jkaberg avatar jkaberg commented on May 29, 2024

Based on the Transmission documentation the blocklist script should do something like this instead:

SID=$(curl -sSLI http://localhost:9091/transmission/ | grep -Fi X-Transmission-Session-Id | cut -d ' ' -f 2) curl -sSL http://localhost:9091/transmission/rpc -H "X-Transmission-Session-Id: $SID" -d '{\"method\":\"blocklist-update\",\"arguments\":{},\"tag\":\"\"}'

The above is not tested. This should replace the current restart method as thats unnecessary.

from docker-transmission.

dedmo avatar dedmo commented on May 29, 2024

@jkaberg
Thanks for your time. Now I set "blocklist-enabled": false. I'm check it after few days and leave a comment here (if needed).
Do I understand correctly that sometime in the next versions the blocklist script may be fixed?

from docker-transmission.

sparklyballs avatar sparklyballs commented on May 29, 2024

@jkaberg that doesn't take into account that someone may be using a password

from docker-transmission.

jkaberg avatar jkaberg commented on May 29, 2024

@sparklyballs just parse the settings.json file?

Psuedo code - untested:

#!/usr/bin/bash
USER=$(cat /config/settings.json | jq .\"rpc-user\")
PASSWORD=$(cat /config/settings.json | jq .\"rpc-password\")

if [ -z "$PASSWORD" ] then
    SID=$(curl -sSLI http://localhost:9091/transmission/ | grep -Fi X-Transmission-Session-Id | cut -d ' ' -f 2)
else
    SID=$(curl -sSLI -u "$USER":"$PASSWORD" http://localhost:9091/transmission/ | grep -Fi X-Transmission-Session-Id | cut -d ' ' -f 2)
fi

curl -sSL http://localhost:9091/transmission/rpc -H "X-Transmission-Session-Id: $SID" -d '{\"method\":\"blocklist-update\",\"arguments\":{},\"tag\":\"\"}'

from docker-transmission.

dedmo avatar dedmo commented on May 29, 2024

@jkaberg
Thanks for your time. Now I set "blocklist-enabled": false. I'm check it after few days and leave a comment here (if needed).

In my case (after testing):

  1. utp-enabled: false - normalize RAM use and system
  2. blocklist-enabled: false - background process "transmission-daemo" no longer multiplies each days

from docker-transmission.

thelamer avatar thelamer commented on May 29, 2024

Closing pending #78

from docker-transmission.

dedmo avatar dedmo commented on May 29, 2024

Unfortunatelly multiply pocess issue not solved. See screenshot below (latest version linuxserver/transmission)
Снимок

from docker-transmission.

thelamer avatar thelamer commented on May 29, 2024

@dedmo post logs and also execute into the container and run :

s6-svc -t /var/run/s6/services/transmission

This is the output you should get:

Caught SIGTERM signal!
localhost:9091/transmission/rpc/ responded: "success"
[2019-07-22 16:18:58.850] Saved "/config/settings.json" (variant.c:1266)
[2019-07-22 16:18:58.850] DHT Not saving nodes, DHT not ready (tr-dht.c:359)
[2019-07-22 16:18:58.850] Port Forwarding Stopped (port-forwarding.c:180)
Closing transmission session... done.

Then s6 will pickup and start the app as it detects the down pid.

from docker-transmission.

thelamer avatar thelamer commented on May 29, 2024

NM I see what is wrong, you need to delete the existing blocklis-update script in /config and restart the container.
https://github.com/linuxserver/docker-transmission/blob/master/root/etc/cont-init.d/20-config#L11-L13

The assumption is that people are customizing this script.

from docker-transmission.

dedmo avatar dedmo commented on May 29, 2024

@thelamer
log file attached.
linuxserver-transmission2.zip

I deleted "blocklist-update.sh" in "/config" and restarted container. I will return with the result in a few days. Thanks.

from docker-transmission.

dedmo avatar dedmo commented on May 29, 2024

NM I see what is wrong, you need to delete the existing blocklis-update script in /config and restart the container.
https://github.com/linuxserver/docker-transmission/blob/master/root/etc/cont-init.d/20-config#L11-L13

The assumption is that people are customizing this script.

Unfortunatylly steps:

  • stop container
  • delete "blocklist-update.sh" in "/config"
  • run contaiter
    don't solve problem - process "transmission-daemon" still multiply.
    Снимок

from docker-transmission.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.