Bittorrent client help

Hi,
I am struggling to get rtorrent or transmission working on MIR3Gv1 or Netgear R6800. I think I am doomed not to have any torrent client on Openwrt.
Netgear R6800 is running as a main AP with OpenWrt 21.02.1 r16325-88151b8303 / LuCI openwrt-21.02 branch git-21.301.66596-f28aaa3;
MIR3G is wired DumpAP running: OpenWrt 21.02.0 r16279-5cc0535800 / LuCI openwrt-21.02 branch git-21.314.39479-e1ccb66
I am using the following tutorial to install rtorrent: https://github.com/wolandmaster/luci-app-rtorrent.
On both systems I get the following system log and also luci-app-rtorrent errors:

Fri Nov 19 19:07:52 2021 daemon.err uhttpd[3191]: /usr/lib/lua/rtorrent.lua:34:
Fri Nov 19 19:07:52 2021 daemon.err uhttpd[3191]:
Fri Nov 19 19:07:52 2021 daemon.err uhttpd[3191]: Failed to connect to rtorrent: rpc port not reachable on 127.0.0.1:6000!
Fri Nov 19 19:07:52 2021 daemon.err uhttpd[3191]: Possible reasons:
Fri Nov 19 19:07:52 2021 daemon.err uhttpd[3191]: - rtorrent is not running (ps w | grep [r]torrent)
Fri Nov 19 19:07:52 2021 daemon.err uhttpd[3191]: - not the rpc version of rtorrent is installed
Fri Nov 19 19:07:52 2021 daemon.err uhttpd[3191]:
Fri Nov 19 19:07:52 2021 daemon.err uhttpd[3191]: stack traceback:
Fri Nov 19 19:07:52 2021 daemon.err uhttpd[3191]: 	[C]: in function 'assert'
Fri Nov 19 19:07:52 2021 daemon.err uhttpd[3191]: 	/usr/lib/lua/rtorrent.lua:34: in function 'call'
Fri Nov 19 19:07:52 2021 daemon.err uhttpd[3191]: 	/usr/lib/lua/rtorrent.lua:50: in function 'multicall'
Fri Nov 19 19:07:52 2021 daemon.err uhttpd[3191]: 	/usr/lib/lua/luci/model/cbi/rtorrent/main.lua:189: in function 'func'
Fri Nov 19 19:07:52 2021 daemon.err uhttpd[3191]: 	/usr/lib/lua/luci/cbi.lua:66: in function 'load'
Fri Nov 19 19:07:52 2021 daemon.err uhttpd[3191]: 	/usr/lib/lua/luci/dispatcher.lua:1501: in function '_form'
Fri Nov 19 19:07:52 2021 daemon.err uhttpd[3191]: 	/usr/lib/lua/luci/dispatcher.lua:1029: in function 'dispatch'
Fri Nov 19 19:07:52 2021 daemon.err uhttpd[3191]: 	/usr/lib/lua/luci/dispatcher.lua:479: in function </usr/lib/lua/luci/dispatcher.lua:478>

Can you help me with that?
When installing transmission system log simply says it crashes. At the moment I am focusing on rtorrent, but if needed I can install transmission for 187 time and provide you with the logs.
Thanks and have a great weekend!
Kind regards

Krassi

As the error message indicates, is the rtorrent daemon up and running?

1 Like

Open two terminals:

  1. logread -f
  2. /etc/init.d/rtorrent start
    What is output in first terminal?
1 Like

Thanks frollic and ulmwind!
I was able to solve the rtorrent issue. The problem was that I didn't created the download sub-directories under /mnt/sda2/.

Thanks anyway!

I would need some help in solving the transmission issue as I am stuck there for more than 1 month, If I can use the same topic. If not I will create additional one.

The Transmission deamon is not running and I get the following system error:

Sat Nov 20 17:23:52 2021 user.notice transmission: Starting with 126028000 virt mem
Sat Nov 20 17:24:17 2021 daemon.info procd: Instance transmission::instance1 s in a crash loop 6 crashes, 0 seconds since last crash

I am following the tutorial: https://openwrt.org/docs/guide-user/services/downloading_and_filesharing/transmission
The downlead folders are created. Since I have rtorrent up and running it is not that important, but I would really like to understand what I am doing wrong.
Thanks for your help
Regards
Krassi

  1. Disable Transmission:
 config transmission
         option enable 0
  1. Restart router, give output of free -h
  2. Open terminal, as above, and run in the second: enable transmission (enable 1), and /etc/init.d/transmission restart

Hi ulmwind,

I executed the steps as suggested, however the same error appears:

Below is the output of free-h.

root@OpenWrt:~# free -h
              total        used        free      shared  buff/cache   available
Mem:         252056       29084      193024        2732       29948      182060
Swap:             0           0           0

Thanks

Regards

BTW: I get the same error message on both routers Xioami MIR3G and Netgear R6800 - well same chipest.

try running it in foreground transmission-daemon -f, see if it tells you what the problem is.

It looks like swap problem, Transmission tries to use swap file, but it is not configured.

Add option mem_percentage 0 to Transmission configuration file.

Hi and thanks for trying to help me:

@ulmwind: nothing changed
However
@frollic when I run it on foreground, it seems to be starting as I get a message on the browser:

403: Forbidden

Unauthorized IP Address.
Either disable the IP address whitelist or add your address to it.
If you're editing settings.json, see the 'rpc-whitelist' and 'rpc-whitelist-enabled' entries.
If you're still using ACLs, use a whitelist instead. See the transmission-daemon manpage for details.
when I enter the webaddres.
Output of the transmission-daemon -f:

root@OpenWrt:~# transmission-daemon -f
[2021-11-20 18:21:33.684] Transmission 3.00 (bb6b5a062e) started (session.c:769)
[2021-11-20 18:21:33.685] RPC Server Adding address to whitelist: 127.0.0.1 (rpc-server.c:956)
[2021-11-20 18:21:33.685] RPC Server Adding address to whitelist: ::1 (rpc-server.c:956)
[2021-11-20 18:21:33.686] RPC Server Serving RPC and Web requests on 0.0.0.0:9091/transmission/ (rpc-server.c:1244)
[2021-11-20 18:21:33.686] RPC Server Whitelist enabled (rpc-server.c:1249)
[2021-11-20 18:21:33.687] DHT Generating new id (tr-dht.c:389)
[2021-11-20 18:21:33.687] Using settings from "/root/.config/transmission-daemon" (daemon.c:646)
[2021-11-20 18:21:33.688] Saved "/root/.config/transmission-daemon/settings.json" (variant.c:1221)
[2021-11-20 18:21:33.689] Port Forwarding (NAT-PMP) initnatpmp succeeded (0) (natpmp.c:73)
[2021-11-20 18:21:33.689] Port Forwarding (NAT-PMP) sendpublicaddressrequest succeeded (2) (natpmp.c:73)
[2021-11-20 18:21:35.684] Port Forwarding (UPnP) Found Internet Gateway Device "http://192.168.1.1:5000/ctl/IPConn" (upnp.c:200)
[2021-11-20 18:21:35.685] Port Forwarding (UPnP) Local Address is "192.168.1.228" (upnp.c:201)
[2021-11-20 18:21:35.685] Port Forwarding (UPnP) Port forwarding through "http://192.168.1.1:5000/ctl/IPConn", service "urn:schemas-upnp-org:service:WANIPConnection:1". (local address: 192.168.1.228:51413) (upnp.c:276)
[2021-11-20 18:21:35.686] Port Forwarding (UPnP) Port forwarding successful! (upnp.c:280)
[2021-11-20 18:21:35.686] Port Forwarding Forwarded (port-forwarding.c:107)
[2021-11-20 18:22:14.684] DHT Attempting bootstrap from dht.transmissionbt.com (tr-dht.c:299)

Regards
Krassi
BTW: Here is the config file:

config transmission
	option config_dir '/tmp/transmission'
	option config_overwrite '1'
	option user 'transmission'
	option group 'transmission'
	option mem_percentage '0'
	option nice '10'
	option alt_speed_enabled 'false'
	option alt_speed_time_enabled 'false'
	option bind_address_ipv4 '0.0.0.0'
	option bind_address_ipv6 '::'
	option blocklist_enabled 'false'
	option cache_size_mb '2'
	option dht_enabled 'true'
	option download_queue_enabled 'true'
	option download_queue_size '4'
	option encryption '1'
	option idle_seeding_limit_enabled 'false'
	option incomplete_dir_enabled 'false'
	option lazy_bitfield_enabled 'true'
	option lpd_enabled 'false'
	option message_level '1'
	option peer_limit_global '240'
	option peer_limit_per_torrent '60'
	option peer_port '51413'
	option peer_port_random_on_start 'false'
	option peer_socket_tos 'default'
	option pex_enabled 'true'
	option port_forwarding_enabled 'true'
	option preallocation '1'
	option queue_stalled_enabled 'true'
	option queue_stalled_minutes '30'
	option ratio_limit_enabled 'false'
	option rename_partial_files 'true'
	option rpc_authentication_required 'false'
	option rpc_bind_address '0.0.0.0'
	option rpc_enabled 'true'
	option rpc_host_whitelist_enabled 'false'
	option rpc_port '9091'
	option rpc_url '/transmission/'
	option scrape_paused_torrents_enabled 'true'
	option script_torrent_done_enabled 'false'
	option seed_queue_enabled 'false'
	option speed_limit_down_enabled 'false'
	option speed_limit_up_enabled 'false'
	option start_added_torrents 'true'
	option trash_original_torrent_files 'false'
	option umask '18'
	option upload_slots_per_torrent '14'
	option utp_enabled 'true'
	option scrape_paused_torrents 'true'
	option watch_dir_enabled 'false'
	option download_dir '/mnt/sda1/transmission/done'
	option enabled '1'
	option rpc_whitelist_enabled 'false'

What does it mean?

Make option message_level '7', and see more messages in the log.

Remove also these options.

Well @ulmwind I left the default option '/tmp/transmission'. What it should be?
With message option 7:
I get the following log:

Sat Nov 20 18:45:43 2021 user.notice transmission: Starting with 0 virt mem
Sat Nov 20 18:45:43 2021 daemon.info procd: - init complete -
Sat Nov 20 18:47:40 2021 daemon.err nmbd[3614]: [2021/11/20 18:47:40.096343,  0] ../../lib/util/become_daemon.c:136(daemon_ready)
Sat Nov 20 18:47:40 2021 daemon.err nmbd[3614]:   daemon_ready: daemon 'nmbd' finished starting up and ready to serve connections
Sat Nov 20 18:47:40 2021 daemon.err smbd[3613]: [2021/11/20 18:47:40.609200,  0] ../../lib/util/become_daemon.c:136(daemon_ready)
Sat Nov 20 18:47:40 2021 daemon.err smbd[3613]:   daemon_ready: daemon 'smbd' finished starting up and ready to serve connections
Sat Nov 20 18:47:42 2021 daemon.err uhttpd[2406]: luci: accepted login on / for root from 192.168.1.189
Sat Nov 20 18:48:01 2021 daemon.info procd: Instance transmission::instance1 s in a crash loop 6 crashes, 0 seconds since last crash

Deleted:
option user 'transmission'
option group 'transmission'
However nothing changes.
Thanks

Regards

OK, sorry, I have no idea: Transmission no longer working

1 Like

Thanks anyway @ulmwind .

Don't have access to my transmission atm, but I think you have to change your whitelist params.

I have tried it @frollic, but didn't work. Will play around again later. The same error message " forbidden" appered on transmission remote. It is a good sign, however I am not sure why it doesn't work with default settings. On my previouse Tp-Link wdr 3600 it worked with the default settings.
I will report later. Thanks
Regards
PS: it may be related with the fact that I have another Dump ap with padavan xiaomi mir3 running transmission.Highly unlikely, but I will switch it off when changing settings.

Again no luck. After I started it on foreground, I tried all possible whitelist combinations which I can think of, and again I am receiving the forbidden message.
Whenever you have a chance please check your settings @frollic
I wonder if my problem (if we disregard that I need to start transmission manually) is not similar to the following: https://forum.openwrt.org/t/cannot-open-a-port-on-router/71830
However I am not sure how can I execute the solution in my case.
Thanks
Regards

i think the parameter I was thinking about was bind-address-ipv4, and yours already 0.0.0.0.

what URL are you attempting to use when you access transmission, anyway ?
and did you install transmission-web and/or transmission-web-control ?

this is my config, as config.json,

{
    "alt-speed-down": 50,
    "alt-speed-enabled": false,
    "alt-speed-time-begin": 540,
    "alt-speed-time-day": 127,
    "alt-speed-time-enabled": false,
    "alt-speed-time-end": 1020,
    "alt-speed-up": 50,
    "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": "/bleh/",
    "download-queue-enabled": true,
    "download-queue-size": 5,
    "encryption": 1,
    "idle-seeding-limit": 30,
    "idle-seeding-limit-enabled": false,
    "incomplete-dir": "/blah/",
    "incomplete-dir-enabled": false,
    "lpd-enabled": false,
    "message-level": 2,
    "peer-congestion-algorithm": "",
    "peer-id-ttl-hours": 6,
    "peer-limit-global": 200,
    "peer-limit-per-torrent": 50,
    "peer-port": 8895,
    "peer-port-random-high": 8895,
    "peer-port-random-low": 8890,
    "peer-port-random-on-start": false,
    "peer-socket-tos": "default",
    "pex-enabled": true,
    "port-forwarding-enabled": false,
    "preallocation": 1,
    "prefetch-enabled": true,
    "queue-stalled-enabled": true,
    "queue-stalled-minutes": 30,
    "ratio-limit": 0,
    "ratio-limit-enabled": true,
    "rename-partial-files": true,
    "rpc-authentication-required": true,
    "rpc-bind-address": "0.0.0.0",
    "rpc-enabled": true,
    "rpc-host-whitelist": "",
    "rpc-host-whitelist-enabled": false,
    "rpc-password": "{25asasdasdasdasdasdd4Fqybk",
    "rpc-port": 9091,
    "rpc-url": "/transmission/",
    "rpc-username": "ben.dover",
    "rpc-whitelist": "127.0.0.1",
    "rpc-whitelist-enabled": false,
    "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": true,
    "trash-original-torrent-files": false,
    "umask": 18,
    "upload-slots-per-torrent": 14,
    "utp-enabled": true
}

Yep - I've installed transmission-web 3.00-12. I am trying to access it via http://192.168.1.228:9091/, as my Dump AP IP is at .228.
I tried the binding and again - "Forbidden".

What I have tested as well is to install again transmission on my main AP and run transmission-daemon -f, as I have suspected that my Dump AP is not properly set, however I got the same message "Forbidden..."
Thanks

Kind regards
Krassi