LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   systemctl transmission-daemon fails to load config file (https://www.linuxquestions.org/questions/linux-newbie-8/systemctl-transmission-daemon-fails-to-load-config-file-4175671821/)

Johantonissen 03-23-2020 06:54 AM

systemctl transmission-daemon fails to load config file
 
Hi there,

I'm having problems with my debian transmission web client.
I've checked the systemctl status and i get the following error:

Code:

● transmission-daemon.service - Transmission BitTorrent Daemon
  Loaded: loaded (/lib/systemd/system/transmission-daemon.service; enabled; vendor preset: enabled)
  Active: failed (Result: exit-code) since Mon 2020-03-23 12:21:06 CET; 9min ago
  Process: 9965 ExecStart=/usr/bin/transmission-daemon -f --log-debug --logfile /home/username/Desktop/trans.log (code=exited, status=1/FAILURE)
 Main PID: 9965 (code=exited, status=1/FAILURE)

cat /home/username/Desktop/trans.log
[2020-03-23 12:21:06.505] transmission-daemon Error loading config file -- exiting. (daemon.c:693)

So apparently my config file is wrong. I've checked the file with the standard features on the github of the daemon but have not found the problem https://github.com/transmission/tran...guration-Files.

I've checked for missing commas, and if requested statements are also complimentary (e.g. when a Boolean is requested that i also give a Boolean and not a string.)

I've also set the settings.json file to 777 to check if maybe the file is not accessible but that did not change anything.

My settings.json file looks like this:
Code:

cat /etc/transmission-daemon/settings.json
{
    "alt-speed-down": 2000,
    "alt-speed-enabled": true,
    "alt-speed-time-begin": 60,
    "alt-speed-time-day": 127,
    "alt-speed-time-enabled": false,
    "alt-speed-time-end": 450,
    "alt-speed-up": 500,
    "bind-address-ipv4": "0.0.0.0",
    "bind-address-ipv6": "::",
    "blocklist-enabled": false,
    "blocklist-url": "http://www.example.com/blocklist",
    "cache-size-mb": 4,
    "dht-enabled": true,
    "download-dir": "/media/kist/Torrent-Complete",
    "download-limit": 100,
    "download-limit-enabled": true,
    "download-queue-enabled": true,
    "download-queue-size": 5,
    "encryption": 1,
    "idle-seeding-limit": 30,
    "idle-seeding-limit-enabled": false,
    "incomplete-dir": "/media/kist/Torrent-Incomplete",
    "incomplete-dir-enabled": true,
    "lpd-enabled": false,
    "max-peers-global": 200,
    "message-level": 1,
    "peer-congestion-algorithm": "",
    "peer-id-ttl-hours": 6,
    "peer-limit-global": 200,
    "peer-limit-per-torrent": 50,
    "peer-port": 51413,
    "peer-port-random-high": 65535,
    "peer-port-random-low": 49152,
    "peer-port-random-on-start": false,
    "peer-socket-tos": "default",
    "pex-enabled": true,
    "port-forwarding-enabled": true,
    "preallocation": 1,
    "prefetch-enabled": true,
    "queue-stalled-enabled": true,
    "queue-stalled-minutes": 30,
    "ratio-limit": 2,
    "ratio-limit-enabled": false,
    "rename-partial-files": true,
    "rpc-authentication-required": true,
    "rpc-bind-address": "0.0.0.0",
    "rpc-enabled": true,
    "rpc-host-whitelist": "192.168.*.*",
    "rpc-host-whitelist-enabled": true,
    "rpc-password": "{652d470d74d65b0004387656a1098f4349ceb8008MT8nxuO",
    "rpc-port": 9091,
    "rpc-url": "/transmission/",
    "rpc-username": "username",
    "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": 100,
    "speed-limit-down-enabled": false,
    "speed-limit-up": 100,
    "speed-limit-up-enabled": false,
    "start-added-torrents": false,
    "trash-original-torrent-files": false,
    "umask": 18,
    "upload-limit": 100,
    "upload-limit-enabled": false,
    "upload-slots-per-torrent": 14,
    "utp-enabled": true
}

Can anyone please assist me in how i should go from here ? or am i missing something ?

thank you in advance!

Johantonissen 03-23-2020 08:28 AM

I've noticed that there are a lot of different locations of the settings.json file could it be the problem that i'm editing the wrong one ? unfortunately systemctl does not say which file it's loading.

rtmistler 03-23-2020 08:41 AM

I've never used any torrent client where I specifically set it up using the config file, but instead used their interface for this.

My suggestion is that you run it default, get the default config file, or even make some settings changes that you can do using the GUI and then check that config file against what you intend to use.

ondoho 03-24-2020 06:14 AM

Also check the journal.

Johantonissen 03-24-2020 06:23 AM

I've found the solution!

Apparently the settings.json file located in $HOME/.config/transmission folder was loaded rather than the /etc/transmission-daemon/settings.json location. The settings file there turned out to be corrupt. Overwriting it with the /etc/transmission-daemon/settings.json solved the issue!


All times are GMT -5. The time now is 06:17 AM.