rakshasa / rtorrent

rTorrent BitTorrent client
https://github.com/rakshasa/rtorrent/wiki
GNU General Public License v2.0
4.15k stars 414 forks source link

Pyrocore's interactive search is not working when rtorrent started from cron on reboot #1295

Open trancephorm opened 6 days ago

trancephorm commented 6 days ago

I know it's a very long shot, but pyrocore's feature for interactive search in rtorrent cli interface obtained with ctrl-x, "s=<search term", works normally when rtorrent is started after login, in "screen" terminal multiplexer, while if started by cron like this: @reboot sleep 20 && screen -d -m -S myscreen rtorrent, it does not react to s= command at all.

Cron job is launched under the normal user, the same one which is used for login and then manual start of rtorrent.

I guess it's something about environment at the time of startup, but I don't really have a clue what it can be, because the environment should be the same. Someone has an idea?

kannibalox commented 13 hours ago

Do regular rtcontrol commands work in this state? As long as the SCGI socket/port is available and responding properly, it's unlikely to be a rtorrent bug.

trancephorm commented 13 hours ago

I solved it: in .rtorrent.rc, I added a full path rtcontrol call, although it's not quite clear to me why it's not already in the path, but it seems like it's not in the time of booting.