Mastering OpenWRT (LEDE): rtorrent

Introduction

Tips for building an rtorrent environment on OpenWRT / LEDE. When downloading image files such as Raspberry Pi and Orange Pi, etc. It may take several hours depending on the server, so It is very convenient if torrent works on a NAS that is always running.

There are still various issues, but Since it can be operated as it is Leave a footprint.

The description is based on the following environment. Use Chinese fanless NAS with OpenWRT (LEDE)

reference:

  1. https://github.com/wolandmaster/luci-app-rtorrent
  2. LEDE/OpenWRT — Setting Up Torrent Downloading

Environment construction method

Refer to README.md on the luci-app-rtorrent github page in Reference 1. Install. Only the contents of /root/.rtorrent.rc referred to the information on the page of Reference 2.

owner assignment

With the above environment construction, it started to work implicitly, Because the permission of the downloaded file becomes root The usability is subtle, so I'll fix it.

~/.rtorrent.rc


system.umask.set = 0000

Remaining task 1

Is it some sort of boot order dependency issue? Immediately after reboot, the torrent list (cgi-bin / luci / admin / rtorrent / main) of luci-app does not work.

Right now, the problem can be solved by restarting rtorrent after rebooting, but I would like to solve it fundamentally.

/etc/init.d/rtorrent stop
/etc/init.d/rtorrent start

By the way, I tried to put the above command in /etc/rc.local, but it still didn't work. Is there something that starts slowly ...

Remaining task 2

For some reason, sometimes the luci-app's Torrent List becomes unresponsive. When I reattach it from the screen, it works as an rtorrent, so It looks like something is wrong with the call from luci-app.

As a workaround for the time being I prepared the following script and executed it.

#!/bin/bash -x
/etc/init.d/rtorrent stop
rm -rf /root/.rtorrent.session/*
/etc/init.d/rtorrent start

Toward a solution

Because I have encountered a similar phenomenon that seems to be a hint I would appreciate it if you could comment.

Recommended Posts

Mastering OpenWRT (LEDE): rtorrent
Mastering OpenWRT (LEDE): LINE Notify
Mastering OpenWRT (LEDE): Until sharing samba as NAS
Use Chinese fanless NAS with OpenWRT (LEDE)