Summary: | =net-p2p/rtorrent-0.9.7-r1 deamon crashes at start and failed to stop | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Andrey Aleksandrovich <andrey.aleksandrovich> |
Component: | Current packages | Assignee: | Stephen Shkardoon <ss23> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | crabbedhaloablution, jstein, luke, perfinion |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Andrey Aleksandrovich
2018-08-17 09:12:45 UTC
There's probably only one real bug here: The init script fails to indicate rtorrent is stopped once it's crashed. I'll take a look at this next week, unless someone else wants to take it first. With regards to why it's crashing, it's probably just a configuration problem. Are you able to run it manually with the same options it would be using if started from the init script (e.g. the correct user)? /etc/conf.d/rtorrentd USER="p2p" If I run start command like in init script from the regular user (not "p2p"): /usr/bin/screen -- -D -m -S rtorrentd /usr/bin/rtorrent I see black screen few seconds and then: [screen is terminating] If I just start '/usr/bin/rtorrent' from the regular user is seems like starts successfully, and quit too. When I tried to start it from init script after system boot - it indicates no errors, but the /var/run/rtorrentd.pid is empty (doesn't contain any number; zero size file) for some reason... After this I can't stop it by init script (see above), only reboot. I find out the crash reason, ~/.rtorrent.rc If I delete it the rtorrentd starts successfully. But if I write some options there - rtorrentd crashes. Contents of the ~/.rtorrentd directory = /home/p2p/Downloads session = /home/p2p/_session session_save = yes schedule = watch_directory,5,5,load_start=/home/p2p/_watch/*.torrent port_range = 61000-61000 port_random = no encryption = allow_incoming,try_outgoing,enable_retry,prefer_plaintext dht = auto dht_port = 61000 peer_exchange = yes Well, the problem is that newer versions of rtorrent use different syntax for ~/.rtorrent.rc https://github.com/rakshasa/rtorrent/wiki/RPC-Migration-0.9 The rTorrent Configuration Template (new syntax) is here: https://github.com/rakshasa/rtorrent/wiki/CONFIG-Template So, please, keep https://wiki.gentoo.org/wiki/RTorrent up-to-date. Also, it would be good if ebuild would warns about changes like that. https://wiki.gentoo.org/index.php?title=RTorrent&diff=821902&oldid=813191 Wiki seems to be fixed, as for the transition and a warning in the ebuild, that time seems to have passed. 0.9.7 is the oldest in portage. Propose RESOLVED, FIXED? |