You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[10.03.2019 18:59:09] WebUI started.
[10.03.2019 18:59:09] No connection to rTorrent. Check if it is really running. Check $scgi_port and $scgi_host settings in config.php and scgi_port in rTorrent configuration file.
The text was updated successfully, but these errors were encountered:
/root/.rtorrent.rc is not used as config file anymore by the systemd unit. There must have been something changed in systemd about which default HOME dir is used when executing as root.
Adding -o scgi_port=127.0.0.1:5000 to the command directly works, however we have a bunch of settings we want to set, so require a config file.
Overriding the HOME dir via systemd unit for sure works as well. We currently set WorkingDirectory=%h which obviously means user home. WorkingDirectory="~" is the current docs about that but does not work as well. Environment=HOME=/root or such would work.
However we should take this as chance to switch rTorrent to use it's own user as well.
Quick test with useradd -rm -s $(which nologin) -G dietpi -d /mnt/dietpi_userdata/rtorrent rtorrent works well. Then move .rtorrent.rc inside and no WorkingDirectory directive is required at all.
This aligns rTorrent to with the other torrent downloaders which as well run as their own user instead of root.
Ref: https://dietpi.com/phpbb/viewtopic.php?f=11&t=5656
Verified on VM:
The text was updated successfully, but these errors were encountered: