transmission notes

Issue: Transmission Remote GUI 403 Forbidden

Package: transmission-daemon
Version: 2.94-2+deb10u1
find / -mount -type f -name settings.json -exec ls -l {} \;

-rw------- 1 root root 2186 Sep 20 22:29 /root/.config/transmission-daemon/settings.json
-rw-rw---- 1 debian-transmission debian-transmission 2398 Oct 30 16:37 /etc/transmission-daemon/settings.json
-rw------- 1 debian-transmission debian-transmission 2226 Oct 30 16:45 /home/debian-transmission/.config/transmission-daemon/settings.json

Symptom: setting from /etc/transmission-daemon/settings.json don’t using

grep -e rpc-whitelist /root/.config/transmission-daemon/settings.json /etc/transmission-daemon/settings.json /home/debian-transmission/.config/transmission-daemon/settings.json


/root/.config/transmission-daemon/settings.json:    "rpc-whitelist": "127.0.0.1",
/root/.config/transmission-daemon/settings.json:    "rpc-whitelist-enabled": true,

/etc/transmission-daemon/settings.json:    "rpc-whitelist": "127.0.0.1,192.168.*.*",
/etc/transmission-daemon/settings.json:    "rpc-whitelist-enabled": true,

/home/debian-transmission/.config/transmission-daemon/settings.json:    "rpc-whitelist": "127.0.0.1",
/home/debian-transmission/.config/transmission-daemon/settings.json:    "rpc-whitelist-enabled": true,
journalctl -u transmission-daemon.service -f


Oct 30 17:11:14 srv.dom.wdm.net.ua transmission-daemon[312]: [2020-10-30 17:11:14.566] Using settings from "/home/debian-transmission/.config/transmission-daemon" (daemon.c:528)
Oct 30 17:11:14 srv.dom.wdm.net.ua transmission-daemon[312]: [2020-10-30 17:11:14.566] Saved "/home/debian-transmission/.config/transmission-daemon/settings.json" (variant.c:1271)

Solution: Make changes in /etc/transmission-daemon/settings.json, when service is active and reload them

# Make changes
vim /home/debian-transmission/.config/transmission-daemon/settings.json 

# reload and restart 
systemctl reload transmission-daemon.service
systemctl restart transmission-daemon.service

# Checking 
[email protected]:/home/dima# grep whitelist /home/debian-transmission/.config/transmission-daemon/settings.json
    "rpc-host-whitelist": "",
    "rpc-host-whitelist-enabled": true,
    "rpc-whitelist": "127.0.0.1,192.168.*.*",
    "rpc-whitelist-enabled": true,

#  Testing 
curl -I 192.168.1.11:9091

HTTP/1.1 301 Moved Permanently
Server: Transmission
Location: /transmission/web/
Date: Fri, 30 Oct 2020 15:44:41 GMT