"transmission-daemon" works as intended, the service does not

Ask for help and report issues not specific to either the Mac OS X or GTK+ versions of Transmission
Post Reply
dnushkswsg
Posts: 4
Joined: Fri Mar 24, 2017 10:58 pm

"transmission-daemon" works as intended, the service does not

Post by dnushkswsg »

Hello,

after the latest apt-get upgrade, I got blocked form accessing Transmission's web interface (running on Ubuntu 16.04.2 LTS). Installing an older version doesn't help.

The transmission-daemon service (

Code: Select all

service transmission-daemon start
) produces the following error when I visit my the 9091 port of my server:
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.


Killing everything and running

Code: Select all

transmission-daemon
makes Transmission work as intended, the whitelist and everything else works like it should.

settings.json is parsed correctly.
This is inside /etc/default:

Code: Select all

# defaults for transmission-daemon
# sourced by /etc/init.d/transmission-daemon

# Change to 0 to disable daemon
ENABLE_DAEMON=1

# This directory stores some runtime information, like torrent files 
# and links to the config file, which itself can be found in 
# /etc/transmission-daemon/settings.json
CONFIG_DIR="/var/lib/transmission-daemon/info" 

# Default options for daemon, see transmission-daemon(1) for more options
OPTIONS="--config-dir $CONFIG_DIR"

# (optional) extra options to start-stop-daemon
#START_STOP_OPTIONS="--iosched idle --nicelevel 10"
transmission-daemon -f gives the following info -- the configuration is correct, I can access :9091 etc.

Code: Select all

[2017-03-25 00:08:34.361] Transmission 2.92 (14714) started (session.c:738)
[2017-03-25 00:08:34.361] RPC Server Adding address to whitelist: 127.0.0.1 (rpc-server.c:903)
[2017-03-25 00:08:34.361] RPC Server Adding address to whitelist:  (rpc-server.c:903)
[2017-03-25 00:08:34.361] RPC Server Adding address to whitelist: 192.168.*.* (rpc-server.c:903)
[2017-03-25 00:08:34.361] RPC Server Serving RPC and Web requests on port 127.0.0.1:9091/transmission/ (rpc-server.c:1110)
[2017-03-25 00:08:34.361] RPC Server Password required (rpc-server.c:1117)
[2017-03-25 00:08:34.361] Port Forwarding Stopped (port-forwarding.c:180)
[2017-03-25 00:08:34.361] UDP Failed to set receive buffer: requested 4194304, got 425984 (tr-udp.c:84)
[2017-03-25 00:08:34.361] UDP Please add the line "net.core.rmem_max = 4194304" to /etc/sysctl.conf (tr-udp.c:89)
[2017-03-25 00:08:34.361] UDP Failed to set send buffer: requested 1048576, got 425984 (tr-udp.c:95)
[2017-03-25 00:08:34.361] UDP Please add the line "net.core.wmem_max = 1048576" to /etc/sysctl.conf (tr-udp.c:100)
[2017-03-25 00:08:34.361] DHT Generating new id (tr-dht.c:311)
[2017-03-25 00:08:34.361] Using settings from "/root/.config/transmission-daemon" (daemon.c:528)
[2017-03-25 00:08:34.361] Saved "/root/.config/transmission-daemon/settings.json" (variant.c:1266)
[2017-03-25 00:08:34.361] transmission-daemon requiring authentication (daemon.c:554)
settings.json:

Code: Select all

{
    "alt-speed-down": 10000,
    "alt-speed-enabled": false,
    "alt-speed-time-begin": [REDACTED],
    "alt-speed-time-day": [REDACTED],
    "alt-speed-time-enabled": true,
    "alt-speed-time-end": [REDACTED],
    "alt-speed-up": 2000,
    "bind-address-ipv4": "0.0.0.0",
    "bind-address-ipv6": "::",
    "blocklist-enabled": true,
    "blocklist-url": "[REDACTED]",
    "cache-size-mb": 4,
    "dht-enabled": true,
    "download-dir": "[REDACTED]",
    "download-limit": 100,
    "download-limit-enabled": 0,
    "download-queue-enabled": true,
    "download-queue-size": 5,
    "encryption": 2,
    "idle-seeding-limit": 115,
    "idle-seeding-limit-enabled": true,
    "incomplete-dir": "[REDACTED]",
    "incomplete-dir-enabled": true,
    "lpd-enabled": true,
    "max-peers-global": 200,
    "message-level": 2,
    "peer-congestion-algorithm": "",
    "peer-id-ttl-hours": 6,
    "peer-limit-global": 300,
    "peer-limit-per-torrent": 50,
    "peer-port": [REDACTED],
    "peer-port-random-high": [REDACTED],
    "peer-port-random-low": [REDACTED],
    "peer-port-random-on-start": false,
    "peer-socket-tos": "default",
    "pex-enabled": true,
    "port-forwarding-enabled": false,
    "preallocation": 1,
    "prefetch-enabled": true,
    "queue-stalled-enabled": true,
    "queue-stalled-minutes": 30,
    "ratio-limit": 2,
    "ratio-limit-enabled": true,
    "rename-partial-files": true,
    "rpc-authentication-required": true,
    "rpc-bind-address": "0.0.0.0",
    "rpc-enabled": true,
    "rpc-password": "[REDACTED]",
    "rpc-port": 9091,
    "rpc-url": "/transmission/",
    "rpc-username": "admin",
    "rpc-whitelist": "127.0.0.1,192.168.*.*",
    "rpc-whitelist-enabled": true,
    "scrape-paused-torrents-enabled": true,
    "script-torrent-done-enabled": false,
    "script-torrent-done-filename": "",
    "seed-queue-enabled": false,
    "seed-queue-size": 10,
    "speed-limit-down": 8192,
    "speed-limit-down-enabled": true,
    "speed-limit-up": 1024,
    "speed-limit-up-enabled": true,
    "start-added-torrents": true,
    "trash-original-torrent-files": false,
    "umask": 0,
    "upload-limit": 100,
    "upload-limit-enabled": 0,
    "upload-slots-per-torrent": 14,
    "utp-enabled": true
}
Some entries were redacted for privacy reasons.


Any help would be greatly appreciated.

Thanks.
dnushkswsg
Posts: 4
Joined: Fri Mar 24, 2017 10:58 pm

Re: "transmission-daemon" works as intended, the service does not

Post by dnushkswsg »

Bump. I still haven't managed to solve the issue.
Chichin79
Posts: 3
Joined: Sun Jun 11, 2017 8:54 am

Re: "transmission-daemon" works as intended, the service does not

Post by Chichin79 »

Did you solve it?

Also having the same issue with 403 forbidden...

Ubuntu 16.02 and latest transmission from repos..
dnushkswsg
Posts: 4
Joined: Fri Mar 24, 2017 10:58 pm

Re: "transmission-daemon" works as intended, the service does not

Post by dnushkswsg »

I "fixed" it by switching to Deluge as I had failed to find a fix.
Deluge works great + has a better web UI (isn't as light, though).
Chichin79
Posts: 3
Joined: Sun Jun 11, 2017 8:54 am

Re: "transmission-daemon" works as intended, the service does not

Post by Chichin79 »

Ok, do you know if deluge has an android app like transmission?
dnushkswsg
Posts: 4
Joined: Fri Mar 24, 2017 10:58 pm

Re: "transmission-daemon" works as intended, the service does not

Post by dnushkswsg »

I use Transdrone https://play.google.com/store/apps/deta ... lite&hl=en. The UI isn't great and there are some bugs but it works.
Chichin79
Posts: 3
Joined: Sun Jun 11, 2017 8:54 am

Re: "transmission-daemon" works as intended, the service does not

Post by Chichin79 »

Solved, I was changing the wrong file, look in /home/transmission-daemon/

There you have a settings.json file also. Changed to allow the IP ranges I want and then it worked :)
hiru
Posts: 2
Joined: Sat Mar 18, 2017 1:09 pm

Re: "transmission-daemon" works as intended, the service does not

Post by hiru »

Are you using the correct settings path? Here's the wiki with all the possible paths for the settings: https://github.com/transmission/transmi ... tion-Files make a backup of your actual legit settings file, stop the transmission-daemon service, remove all the settings files you can find in the wiki paths and start the service again. look where transmission-daemon generated the new file, after you found the right path, stop the service again and edit (or overwrite with the previous backup) the file. when you are done you can start the service back. you should always stop the service before editing the settings file or transmission won't save it
Post Reply