transmission-daemon web 403 forbidden

0

Using transmission-daemon on a Raspberry Pi with Respbian, I always get 403 Forbiden when I try to visit RPi_IP:9091/transmission/ from another computer via local network.

My settings.json:

"rpc-authentication-required": false, 
"rpc-bind-address": "0.0.0.0", 
"rpc-enabled": true, 
"rpc-password":"password",
"rpc-port": 9091, 
"rpc-url": "/transmission/", 
"rpc-username": "pi", 
"rpc-access-control-list":"127.0.0.1,*.*.*.*",
"rpc-whitelist": "127.0.0.1,*.*.*.*", 
"rpc-whitelist-enabled": true,    /* not solved even I change this to true */

How to make the web UI work from non-localhost?

Frozen Flame

Posted 2014-02-19T04:40:40.163

Reputation: 880

Answers

1

It it possible, that the transsmision can't find its config file. In that case reads it from other place than /etc/transsmision-daemon/. Try to run it in the foreground instead of daemonizing.

transmission-daemon -f

Then look from where transmission tries to read config file. It can be home directory of the user who runs transmission-daemon.

(...) [2016-08-13 16:18:00.906 UTC] Using settings from "/home/pi/.config/transmission-daemon" (...)

Stop transmission with killall transmission-daemon, then modify this file and run the daemon again.

Note: If it's the case of config file location, then you should check the CONFIG_DIR variable in /etc/default/transmission-daemon.

HubertS

Posted 2014-02-19T04:40:40.163

Reputation: 76

0

After torture ... :)
I found that in linux CentOS 7.5 there is other file with settings:

/var/lib/transmission/.config/transmission-daemon/settings.json

No matter what settings you make in

/root/.config/transmission-daemon/settings.json

Transmission creates other settings.json file (with default settings) and eventually when you try to open the Transmission webpage you get the Forbidden message.

Solution:

killall transmission-daemon
rm /var/lib/transmission/.config/transmission-daemon/settings.json
cp /root/.config/transmission-daemon/settings.json /var/lib/transmission/.config/transmission-daemon/settings.json
chmod 0600 /var/lib/transmission/.config/transmission-daemon/settings.json

In this way we give only read permission for Transmission default settings. Now lets start service:

systemctl start  transmission-daemon.service
systemctl enable transmission-daemon.service

I tested it as root user, but it is possible to run this service as any user you want.

Raimondas Antanavicius

Posted 2014-02-19T04:40:40.163

Reputation: 1

0

Stop the transmission-daemon by

killall transmission-daemon

Then set "rpc-whitelist-enabled" to false

Run the daemon and voila, you can access the web UI.

Meehatpa

Posted 2014-02-19T04:40:40.163

Reputation: 1

2<sarsasm>Everything works fine, when You disable security.</sarcasm> – Tomasz Jakub Rup – 2016-09-03T12:08:01.957

1Obviously a horrible permanent solution, but for debugging's sake, it lets the administrator determine if the RPC whitelist is the problem or not. – Jean-Marc Liotier – 2019-03-31T15:47:12.450