[SOLVED] transmission-daemon never respects settings file

Ask for help and report issues not specific to either the Mac OS X or GTK+ versions of Transmission
Post Reply
MrLucax
Posts: 4
Joined: Thu Nov 10, 2016 8:30 pm

[SOLVED] transmission-daemon never respects settings file

Post by MrLucax »

I'm running transmission-daemon with the service path (@reboot /etc/init.d/transmission-daemon start) on system start-up but every time I add a new torrent, It goes to /var/lib/transmission-rpc/Downloads/. Doesn't matter if I set it on the settings file, it always get this default (?) download path. But the odd thing is that if I stop the service and then start the daemon through the command line (transmission-daemon) it reads the right settings with the download path I originally set.

How can I point the daemon running from service to the right path? Is there any aditional settings.json that I should edit? I'm currently using the one located on ~/.config/transmission-daemon/settings.json.

Thanks!
Last edited by MrLucax on Sat Nov 12, 2016 10:41 pm, edited 1 time in total.
MrLucax
Posts: 4
Joined: Thu Nov 10, 2016 8:30 pm

Re: transmission-daemon never respects settings file

Post by MrLucax »

Where do I find those log files? Pointing transmission to dump log with the --log file option looks like running it through command line therefore, the config path is the right one:
[2016-11-11 08:32:32.258 BRST] Transmission 2.84 (14307) started (session.c:736)
[2016-11-11 08:32:32.258 BRST] Cache Maximum cache size set to 4.00 MiB (256 blocks) (cache.c:261)
[2016-11-11 08:32:32.258 BRST] RPC Server Adding address to whitelist: 127.0.0.1 (rpc-server.c:824)
[2016-11-11 08:32:32.258 BRST] RPC Server Serving RPC and Web requests on port 127.0.0.1:9091/transmission/ (rpc-server.c:1033)
[2016-11-11 08:32:32.258 BRST] RPC Server Whitelist enabled (rpc-server.c:1037)
[2016-11-11 08:32:32.258 BRST] Couldn't bind port 51413 on 0.0.0.0: Address already in use (Is another copy of Transmission already running?) (net.c:371)
[2016-11-11 08:32:32.258 BRST] Couldn't bind port 51413 on ::: Address already in use (Is another copy of Transmission already running?) (net.c:371)
[2016-11-11 08:32:32.258 BRST] UDP Couldn't bind IPv4 socket (tr-udp.c:263)
[2016-11-11 08:32:32.258 BRST] DHT Initializing DHT (tr-dht.c:277)
[2016-11-11 08:32:32.258 BRST] DHT Reusing old id (tr-dht.c:306)
[2016-11-11 08:32:32.258 BRST] DHT DHT initialized (tr-dht.c:331)
[2016-11-11 08:32:32.258 BRST] DHT Finished bootstrapping (tr-dht.c:259)
[2016-11-11 08:32:32.258 BRST] Using settings from "/home/lucas/.config/transmission-daemon" (daemon.c:557)
[2016-11-11 08:32:32.258 BRST] Saved "/home/lucas/.config/transmission-daemon/settings.json" (variant.c:1214)
[2016-11-11 08:32:32.258 BRST] Watching "/home/lucas/Downloads" for new .torrent files (daemon.c:595)
[2016-11-11 08:32:32.258 BRST] Using inotify to watch directory "/home/lucas/Downloads" (watch.c:72)
[2016-11-11 08:32:32.258 BRST] Port Forwarding (NAT-PMP) initnatpmp succeeded (0) (natpmp.c:70)
[2016-11-11 08:32:32.258 BRST] Port Forwarding (NAT-PMP) sendpublicaddressrequest succeeded (2) (natpmp.c:70)
[2016-11-11 08:32:32.258 BRST] Port Forwarding (UPnP) Found Internet Gateway Device "http://192.168.0.1:1900/ipc" (upnp.c:223)
[2016-11-11 08:32:32.258 BRST] Port Forwarding (UPnP) Local Address is "192.168.0.102" (upnp.c:225)
[2016-11-11 08:32:32.258 BRST] Port Forwarding (UPnP) Port forwarding through "http://192.168.0.1:1900/ipc", service "urn:schemas-upnp-org:service:WANIPConnection:1". (local address: 192.168.0.102:51413) (upnp.c:300)
[2016-11-11 08:32:32.258 BRST] Port Forwarding (UPnP) Port forwarding successful! (upnp.c:303)
[2016-11-11 08:32:32.258 BRST] Port Forwarding State changed from "Not forwarded" to "Forwarded" (port-forwarding.c:92)
Running transmission-daemon --log-info, transmission-daemon --log-error or transmission-daemon --log-debug returns nothing. Is there any init.d log?
MrLucax
Posts: 4
Joined: Thu Nov 10, 2016 8:30 pm

Re: transmission-daemon never respects settings file

Post by MrLucax »

The script is this one, the code was diferent, but I got the one you linked from the wiki and give the right permissions. But no deal, didn't work either. One thing I noticed, is that the env variable TRANSMISSION_HOME wasn't set. Then I set it to the config path I wanted.

Didn't managed to find the logs.

PS: before changing the init scrpit I stopped the daemon service.
MrLucax
Posts: 4
Joined: Thu Nov 10, 2016 8:30 pm

Re: transmission-daemon never respects settings file

Post by MrLucax »

It works! Thanks a lot! Just overwrited the settings.json on /var/lib/transmission-daemon/info with the settings file with my personalized configurations. Just had to change the permissions for the info folder to acces it. Originally I couldn't.
Post Reply