Rtorrent not working

Having issues with your DietPi installation, or, found a bug? Post it here.
vorrac
Posts: 8
Joined: Tue Jan 30, 2018 2:21 pm

Rtorrent not working

Post by vorrac »

Hello,
I'm using an odroid C2 and flashed the lateste Stretch image.
The first problem I had was that some dietpi functions where missing on /boot/dietpi/func, like dietpi-ramlog, dietpi-banner, and others.
I've copied them from github and it started working again.
I've then installed rtorrent, Jackett, Emby, Syncthing and UrBackup.
When I try to use rutorrent, it says rtorrent isn't running, when I go and check rtorrent service status it gives me this log:

Code: Select all

 DietPi-Services
─────────────────────────────────────────────────────
 Mode: status rtorrent

[FAILED] DietPi-Services | ● rtorrent.service - rTorrent (DietPi)
   Loaded: loaded (/etc/systemd/system/rtorrent.service; disabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Thu 2020-05-07 19:11:31 BST; 1min 10s ago
  Process: 950 ExecStop=/usr/bin/screen -S rtorrent -X quit (code=exited, status=1/FAILURE)
  Process: 929 ExecStart=/usr/bin/screen -fa -dmS rtorrent /usr/bin/rtorrent (code=exited, status=0/SUCCESS)
 Main PID: 930 (code=exited, status=0/SUCCESS)

May 07 19:11:30 DietPi systemd[1]: Starting rTorrent (DietPi)...
May 07 19:11:30 DietPi systemd[1]: Started rTorrent (DietPi).
May 07 19:11:31 DietPi screen[950]: No screen session found.
May 07 19:11:31 DietPi systemd[1]: rtorrent.service: Control process exited, code=exited status=1
May 07 19:11:31 DietPi systemd[1]: rtorrent.service: Unit entered failed state.
May 07 19:11:31 DietPi systemd[1]: rtorrent.service: Failed with result 'exit-code'.
As you can see, apparently the problem is that no screen session is found.
Can you guys please help me?

Ps.: I've used DietPi on this Odroid for a long time, maybe 3 or 4 years, I've never had these issues.
User avatar
Joulinar
Posts: 2022
Joined: Sat Nov 16, 2019 12:49 am

Re: Rtorrent not working

Post by Joulinar »

Hi,

many thanks for your report. I tried to replicate your issues and indeed it seems to be related to the new version v6.29.2. I spend quite some time to find our what happen, but did not found a real solution yet.

I noticed that Rtorrent is working if you install it on v6.28 and do the update to v6.29.2 afterwards. Means in general it's working on v6.29.2. However if you do the update first to v6.29.2 and installing Rtorrent afterwards, the service is not starting due to missing screen.

I tried getting screen up and running but without success. So it depends on the sequence how it is installed. But this doesn't help you, as you have installed a new image and this will be bumped to latest DietPi release as soon as you start.

As well you are on Debian Stretch. On Buster it would be easier as there we could run Rtorrent in daemon mode and screen would not be needed anymore.

I also spend time to check the versions between Stretch and Buster.
  1. Stretch - 0.9.6-2 - 06 Nov 2015
  2. Buster - 0.9.7-1 - 28 Jun 2018
looking to the release date, I did not expect that someone will add daemon mode to Stretch version.

So only way would be to get screen running or you can try the new Buster image. It still has testing flag but maybe you can give it a try.

https://dietpi.com/downloads/testing/Di ... -Buster.7z

Maybe @MichaIng would have an idea why screen is not working anymore if it will be installed on v6.29.2.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
vorrac
Posts: 8
Joined: Tue Jan 30, 2018 2:21 pm

Re: Rtorrent not working

Post by vorrac »

Thanks for your answer, I'll try buster image again today. I had the same missing dietpi functions problem with it and uninstalled. Will let you know if it works. Thanks
User avatar
Joulinar
Posts: 2022
Joined: Sat Nov 16, 2019 12:49 am

Re: Rtorrent not working

Post by Joulinar »

yes the missing files on /boot/dietpi/func are already know. See GitHub https://github.com/MichaIng/DietPi/issues/3509
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
User avatar
Joulinar
Posts: 2022
Joined: Sat Nov 16, 2019 12:49 am

Re: Rtorrent not working

Post by Joulinar »

One thing in addition. It might happen that Rtorrent will fail as well with following error message.

Code: Select all

May 08 14:52:46 DietPiVM1 rtorrent[530]: rtorrent: Error in option file: ~/.rtorrent.rc:49: Invalid argument.
but this is quite easy to fix. You could follow this user guide (but might have different settings)

viewtopic.php?f=15&t=7613

Or you simply going to change DHT mode on /mnt/dietpi_userdata/rtorrent/.rtorrent.rc from dht.mode.set = enabled to dht.mode.set = auto

@MichaIng
probably something to adjust on our default config for Buster based systems.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
vorrac
Posts: 8
Joined: Tue Jan 30, 2018 2:21 pm

Re: Rtorrent not working

Post by vorrac »

I've installed Buster and it all worked, even the functions were there. I had to change dht mode in .rtorrent.rc and had to change network.open_port to yes, but it's not working yet. ruTorrent complains that the port is closed, I'm looking into it now.

Many thanks for all the help
User avatar
Joulinar
Posts: 2022
Joined: Sat Nov 16, 2019 12:49 am

Re: Rtorrent not working

Post by Joulinar »

ok I checked it and for me and it is working fine. Did you correctly forward port 6881 TCP on your router to your DietPi system?
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
PiTech
Posts: 7
Joined: Fri May 08, 2020 12:39 pm

Re: Rtorrent not working

Post by PiTech »

You can follow the tutorial here
https://youtu.be/geV0cMvFHr0
Last edited by PiTech on Sat May 09, 2020 7:43 am, edited 1 time in total.
vorrac
Posts: 8
Joined: Tue Jan 30, 2018 2:21 pm

Re: Rtorrent not working

Post by vorrac »

I’ve never had to, rtorrent always worked. But I did and it still not worked. Tomorrow I’m gonna try again
User avatar
Joulinar
Posts: 2022
Joined: Sat Nov 16, 2019 12:49 am

Re: Rtorrent not working

Post by Joulinar »

ok let me know how you end up. In my case, it was set to green as soon as I opened the port on my router.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Post Reply