Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
rtorrent not load
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
bagas
Apprentice
Apprentice


Joined: 29 Jun 2018
Posts: 206

PostPosted: Fri Jun 29, 2018 5:14 pm    Post subject: rtorrent not load Reply with quote

Hello.
Help please understand.
Not starting rtorrent.
Code:
rtorrent -help
Rakshasa's BitTorrent client version 0.9.7

# uname -rms
Linux 4.9.95-gentoo x86_64[/code]
Code:
# /etc/init.d/rtorrentd restart
 * Stopping rtorrent ...
pgrep: ключ должен использоваться с аргументом — «P»

Usage:
 pgrep [options]

Options:
 -d, --delimiter   specify output delimiter
 -l, --list-name           list PID and process name
 -a, --list-full           list PID and full command line
 -v, --inverse             negates the matching
 -w, --lightweight         list all TID
 -c, --count               count of matching processes
 -f, --full                use full process name to match
 -g, --pgroup    match listed process group IDs
 -G, --group      match real group IDs
 -i, --ignore-case         match case insensitively
 -n, --newest              select most recently started
 -o, --oldest              select least recently started
 -P, --parent    match only child processes of the given parent
 -s, --session    match session IDs
 -t, --terminal   match by controlling terminal
 -u, --euid        match by effective IDs
 -U, --uid         match by real IDs
 -x, --exact               match exactly with the command name
 -F, --pidfile       read PIDs from file
 -L, --logpidfile          fail if PID file is not locked
 --ns                 match the processes that belong to the same
                           namespace as
 --nslist          list which namespaces will be considered for
                           the --ns option.
                           Available namespaces: ipc, mnt, net, pid, user, uts

 -h, --help     display this help and exit
 -V, --version  output version information and exit

For more details see pgrep(1).                                                                                                                                                     [ !! ]
 * ERROR: rtorrentd failed to stop

init sckript
Code:
# cat /etc/init.d/rtorrentd
#!/sbin/openrc-run
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

depend() {
   use net ypbind nis
   after slapd mysqld postgresql
}

start() {
   PWHOME="$(getent passwd $USER | awk -F: '{ print $6 }')"

   ebegin "Starting rtorrent"
   env TERM="xterm" \
      start-stop-daemon \
         --start \
         --make-pidfile \
         --pidfile /var/run/rtorrentd.pid \
         --background \
         --user $USER \
         --env HOME="${PWHOME:-/home/$USER}" \
         --name rtorrent \
         --exec /usr/bin/screen -- -D -m -S rtorrentd /usr/bin/rtorrent
   eend $?
}

stop() {
   ebegin "Stopping rtorrent"
   # Because we've daemonized with screen, we need to replace the PID file with the real PID of rtorrent
   pgrep -P $(cat /var/run/rtorrentd.pid) > /var/run/rtorrentd.pid

   start-stop-daemon --stop --signal 15 \
         --pidfile /var/run/rtorrentd.pid
   eend $?
}
Back to top
View user's profile Send private message
bagas
Apprentice
Apprentice


Joined: 29 Jun 2018
Posts: 206

PostPosted: Fri Jun 29, 2018 5:59 pm    Post subject: Reply with quote

rolled back to version 0.9.6, rtorrent started.
Back to top
View user's profile Send private message
Silmano
n00b
n00b


Joined: 10 Mar 2012
Posts: 59

PostPosted: Fri Aug 10, 2018 3:08 pm    Post subject: Reply with quote

Hello,

First of all, do you have IPv6 support on your device? If, like me, you have it disabled take note that there is a current bug which doesn't allow to compile rtorrent without IPv6 support (its already on the package notes):
Code:
 * rtorrent will not start without IPv6 support in your kernel
 * without further configuration. Please set bind=0.0.0.0 or
 * similar in your rtorrent.rc
 * Upstream bug: https://github.com/rakshasa/rtorrent/issues/732


Aside from that, I've seen that between versions 0.9.6 and 0.9.7 there has been some configuration changes that might impact your current rtorrent.rc configuration file. I was able to find and fix them by running directly 'rtorrent' from CLI, instead of using the daemon (which forks in background and might not output the real error):
Code:
user@server [~]
-> % rtorrent
rtorrent: Error in option file: ~/.rtorrent.rc:103: Command "system.method.set" does not exist.
[...]
user@server [~]
-> % rtorrent
rtorrent: Error in option file: ~/.rtorrent.rc:97: Command "view_add" does not exist.


For the above cases:
    * view_add has been changed to view.add
    * system.method.set has been changed to method.set
    * Also I've found an item that its no longer supported: use_udp_trackers


With this info I believe you should be able to make the new 0.9.7 version work.
Back to top
View user's profile Send private message
bagas
Apprentice
Apprentice


Joined: 29 Jun 2018
Posts: 206

PostPosted: Sat Sep 29, 2018 5:41 am    Post subject: Reply with quote

The problem has solved so.
In the new version, rtorrent added to the configuration bind = 0.0.0.0
It works now.
My working config.
Code:
$ cat .rtorrent.rc
bind = 0.0.0.0
network.scgi.open_port = 127.0.0.1:33333
throttle.min_peers.normal.set = 1
throttle.max_peers.normal.set = 100
throttle.global_down.max_rate.set_kb = 0
throttle.global_up.max_rate.set_kb = 0
directory.default.set = /home/bagas/downloud
session.path.set = /home/bagas/session
schedule2 = watch_directory,5,5,load.start=/home/bagas/torrents/*.torrent
schedule2 = low_diskspace,5,60,((close_low_diskspace, 100M))
network.port_range.set = 59222-59222
network.port_random.set = no
pieces.hash.on_completion.set = yes
session.save = yes
trackers.use_udp.set = yes
encoding.add = utf8
dht.port.set = 6881
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum