You are not logged in.

#1 2014-12-27 23:42:54

torors
Member
Registered: 2012-09-28
Posts: 106

[Solved]Unable to access transmission web

When trying to access transmission from web-browswer i got the message :

403: Forbidden
Unauthorized IP Address.
Either disable the IP address whitelist or add your address to it.
If you're editing settings.json, see the 'rpc-whitelist' and 'rpc-whitelist-enabled' entries.
If you're still using ACLs, use a whitelist instead. See the transmission-daemon manpage for details.

I have googeled and tried to change the settings in ~/.config/transmission-daemon/settings.json
Here is the relevant part:

    "rpc-authentication-required": false, 
    "rpc-bind-address": "0.0.0.0", 
    "rpc-enabled": true, 
    "rpc-password": "{38608669907758f46616b5f309e619068b56ae20nVSUUPnI", 
    "rpc-port": 9091, 
    "rpc-url": "/transmission/", 
    "rpc-username": "", 
    "rpc-whitelist": "127.0.0.1,192.168.0.*", 
    "rpc-whitelist-enabled": true, 

No luck, so I have obviously missed somthing.

Last edited by torors (2014-12-28 12:17:25)

Offline

#2 2014-12-27 23:48:48

lucke
Member
From: Poland
Registered: 2004-11-30
Posts: 4,018

Re: [Solved]Unable to access transmission web

Have you run "pkill -HUP transmission-da"? Or stopped the daemon, made the changes and started it?

Offline

#3 2014-12-27 23:56:06

mylux
Member
Registered: 2012-03-03
Posts: 19

Re: [Solved]Unable to access transmission web

Did you have success disabling rpc-whitelist? (No intention to keep it disabled, just testing if there is the problem)

Offline

#4 2014-12-28 00:17:05

torors
Member
Registered: 2012-09-28
Posts: 106

Re: [Solved]Unable to access transmission web

I have tried to disable whitelist, but then was not able to connetct to the server at all, even not from localhost.
I have stoped with systemctl stop transmission and restarted.
No luck, but one of the times the changes were overwritten after restart.

Offline

#5 2014-12-28 00:24:44

lucke
Member
From: Poland
Registered: 2004-11-30
Posts: 4,018

Re: [Solved]Unable to access transmission web

What's the output of "ip a" on the PC you are connecting from?

Offline

#6 2014-12-28 00:26:52

bleach
Member
Registered: 2013-07-26
Posts: 264

Re: [Solved]Unable to access transmission web

You can put in the address or put ,* (or *.*.*.*)though that accepts all. You probably should deactivate the daemon then edit and then start.

Offline

#7 2014-12-28 00:31:34

torors
Member
Registered: 2012-09-28
Posts: 106

Re: [Solved]Unable to access transmission web

Output of ip a

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default 
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: enp7s0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc fq_codel state DOWN group default qlen 1000
    link/ether 4c:72:b9:70:f4:97 brd ff:ff:ff:ff:ff:ff
3: wlp6s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
    link/ether 74:e5:43:ce:68:d5 brd ff:ff:ff:ff:ff:ff
    inet 192.168.0.11/24 brd 192.168.0.255 scope global wlp6s0
       valid_lft forever preferred_lft forever
    inet6 2a02:fe0:c710:9590:76e5:43ff:fece:68d5/64 scope global mngtmpaddr dynamic 
       valid_lft 1209582sec preferred_lft 604782sec
    inet6 fe80::76e5:43ff:fece:68d5/64 scope link 
       valid_lft forever preferred_lft forever

MORE IMPORTANT: I have discovered that each time I restart the daemon, my whitelsit are overwritten som it just whitelists 127.0.0.1
I will try more tomorrow. It is 01:30 in the night i Norway now.

Last edited by torors (2014-12-28 00:32:54)

Offline

#8 2014-12-28 00:38:44

lucke
Member
From: Poland
Registered: 2004-11-30
Posts: 4,018

Re: [Solved]Unable to access transmission web

You need to do what I mentioned in my first post - change the config file and run "pkill -HUP transmission-da" or stop the daemon, change the file, start the daemon.

Offline

#9 2014-12-28 07:01:14

torors
Member
Registered: 2012-09-28
Posts: 106

Re: [Solved]Unable to access transmission web

Tried to reinstall transmission and not running as user(my username) but just start the service with systemctl start transmission. Then I got these error message:

systemct status transmission

Dec 28 07:51:46 Bedehusgata systemd[1]: Starting Transmission BitTorrent Daemon...
Dec 28 07:51:46 Bedehusgata systemd[1]: Started Transmission BitTorrent Daemon.
Dec 28 07:51:47 Bedehusgata transmission-daemon[1746]: [2014-12-28 07:51:47.415 CET] Couldn't create "/var/lib/transmission": Permission denied (utils.c:424)
Dec 28 07:51:47 Bedehusgata transmission-daemon[1746]: [2014-12-28 07:51:47.415 CET] Couldn't create "/var/lib/transmission": Permission denied (utils.c:424)
Dec 28 07:51:47 Bedehusgata transmission-daemon[1746]: [2014-12-28 07:51:47.415 CET] Couldn't create "/var/lib/transmission": Permission denied (utils.c:424)
Dec 28 07:51:47 Bedehusgata transmission-daemon[1746]: [2014-12-28 07:51:47.415 CET] UDP Failed to set receive buffer: requested 4194304, got 425984 (tr-udp.c:78)
Dec 28 07:51:47 Bedehusgata transmission-daemon[1746]: [2014-12-28 07:51:47.415 CET] UDP Failed to set send buffer: requested 1048576, got 425984 (tr-udp.c:89)
Dec 28 07:51:47 Bedehusgata transmission-daemon[1746]: [2014-12-28 07:51:47.415 CET] UDP Failed to set receive buffer: requested 4194304, got 425984 (tr-udp.c:78)
Dec 28 07:51:47 Bedehusgata transmission-daemon[1746]: [2014-12-28 07:51:47.415 CET] UDP Failed to set send buffer: requested 1048576, got 425984 (tr-udp.c:89)
Dec 28 07:51:47 Bedehusgata transmission-daemon[1746]: [2014-12-28 07:51:47.415 CET] Couldn't save temporary file "/var/lib/transmission/.config/transmission-daemo...t.c:1227)

So now I have no config files at all!
I must be doing somthing verry stupid, but I can not find out what.

Offline

#10 2014-12-28 09:57:53

lucke
Member
From: Poland
Registered: 2004-11-30
Posts: 4,018

Re: [Solved]Unable to access transmission web

Installing transmission should have created a transmission user ("transmission:x:169:169:Transmission BitTorrent Client:/var/lib/transmission:/bin/false" in my /etc/passwd) and created a /var/lib/transmission home directory (drwx------ 3 transmission transmission 4096 Dec 28 10:51 transmission). Check if you have the user and the home directory with permissions as mine.

Offline

#11 2014-12-28 12:16:30

torors
Member
Registered: 2012-09-28
Posts: 106

Re: [Solved]Unable to access transmission web

Thanks a lot to all of you. I had to create the dir /var/lib/transmission manualy and then set the right ownership and permissions. Now everthing is woring.
Will mark the tread as solved

Offline

Board footer

Powered by FluxBB