transmission-demon has no configuration file

Hi there,

I’ve installed transmission-daemon-3.00-1.1.x86_64transmission-3.00-1.1.x86_64transmission-common-3.00-1.1.noarch using zypper.
I cann not figure out where is the download folder, which is the peer-port (standard) and several details usually found in the configuration file.
In fact, there is no configuration file (settings.json) in any packages that I’ve installed (rpm -ql pkg | grep -i json)!
The service (/usr/lib/systemd/system/transmission-daemon.service) has no mention to it or to a configuration/application folder !

ExecStart=/usr/bin/transmission-daemon -f --log-error

How it is supposed to configure transmission-daemon and tweak its settings ?

The configuration file you’re looking for likely is related to setting the default behavior of transmission running in daemon mode, so won’t be found with any specific rpms.

This kind of information is usually found in the MAN pages, eg

https://linux.die.net/man/1/transmission-daemon

From that, the default location for the file when compiled from source should be

~/.config/transmission-daemon

Sometimes SUSE/openSUSE maintainers change the location to comply with distro conventions which can be different.
If the file isn’t where you expect, it can usually be easy found by using the locate utility (mlocate package), and the file can usually be found with the following command

locate config/transmission-daemon

If the file still can’t be found anywhere, you can try to see if anyone has posted the sample anywhere (actually my guess is that it should easily be found in the source, so I’d start by looking for the source (nowadays often in github) and copying the file to your machine.

Once you’ve found the file or determined the problem, be sure to submit a bug to https://bugzilla.opensuse.org.

HTH,
TSU

hi tsu,

The transmission-daemon it is suppose to run by systemd and putting it at transmission home user created during the install (/var/lib/transmission) is no go.
What I did: I changed the transmission-daemon.service file (/usr/lib/systemd/system/transmission-daemon.service)



 ExecStart=/usr/bin/transmission-daemon -f -g /etc/transmission -c /var/lib/transmission/torrents --log-debug

and copy a settings.json from a ubuntu installation to /etc/transmission.
Looks like it worked:


 ...
Jun 11 15:38:12 kimera.rozsas.eng.br transmission-daemon[1456]: [2020-06-11 15:38:12.989] Using settings from "/etc/transmission" (daemon.c:646)
Jun 11 15:38:12 kimera.rozsas.eng.br transmission-daemon[1456]: [2020-06-11 15:38:12.989] Saved "/etc/transmission/settings.json" (variant.c:1221)
...

but there are problems too:


...

Jun 11 15:38:12 kimera.rozsas.eng.br transmission-daemon[1456]: [2020-06-11 15:38:12.989] Couldn't read "/etc/transmission/stats.json": No such file or directory (utils.c:263)
Jun 11 15:38:12 kimera.rozsas.eng.br transmission-daemon[1456]: [2020-06-11 15:38:12.989] Couldn't read "/etc/transmission/stats.benc": No such file or directory (utils.c:263)
...

and it creates blocklists, resume and torrents on /etc/transmission but it was supposed to create it in /var/lib.

Also, when I add a torrent to download it does not start the download.

It should not be that difficult to put it to run. For sure I am missing something…

never mind, I figure out, it is on /var/lib/transmission/.config/transmission-daemon/settings.json as you pointed in your first reply.

What I did to figure it out: I removed the package with “zypper rm” and removed all files i’ve created around.
Then I installed transmission-daemon again and changed the log to --log-debug, started the daemon and watch the messages with “journalctl -u transmission-daemon.service”.
The messages reveled the location of default config file.

The trick is the file wasn’t there at first. I have to stop the service to settings.json file be created with defaults.
With the file in place I can adjust it to my needs.

thanks,