ratio and channel failing

simur612

Member
May 25, 2018
879
0
16
I have the ratio and channel plugins installed but when I try to change a torrent to a ratio group it silently fails. I have the same problem with channels. Other plugins work fine, for example rss manager auto downloads stuff. I can also change priorities of torrents. I can change the settings in ratio groups (names and download limit and so on) but not apply them to torrents. I have the rtorrent log enabled and there's an error which may not be related that says

Undefined offset: 1 in /var/www/rutorrent/php/initplugins.php on line 102

I've tried a complete reinstall, I even tried chmod -R 777 /var/www/rutorrent but that didn't help either.
 

peshua19

Member
May 25, 2018
897
0
16
rTorrent 0.8.6/0.12.6
rutorrent svn 1463
apache Server version: Apache/2.2.16 (Debian)
php PHP 5.3.2-2 with Suhosin-Patch (cli) (built: Jul 19 2010 12:36:53)
 

saroos1

Member
May 25, 2018
718
0
16
None in error.log or access.log. When I select various options in the ratio or channel drop downs I don't even see an entry in access.log saying ratio.php or whatever
 

simur612

Member
May 25, 2018
879
0
16
OK, if I hit set channel I can see it changing in the rtorrent gui: thr_0 to thr_1 for example. But the rutorrent web page still thinks it is in no channel. i.e. right click a torrent, select channel, no channel greyed out also nothing in channel column.
 

randac56

Member
May 25, 2018
915
0
16
this sounds like you've somehow screwed up your install.....can you try updating to the latest svn of both the core files and the plugins?

Code:
svn co http://rutorrent.googlecode.com/svn/trunk
rm -r trunk/rutorrent/plugins && mv trunk/plugins/ trunk/rutorrent/ && mv trunk/rutorrent/ ./ && rm -r trunk/

this will give you a new rutorrent directory. If your webuser is www-data run the following:
Code:
chown -R www-data:www-data rutorrent/share/

Then install rutorrent as per normal.
 

peshua19

Member
May 25, 2018
897
0
16
OK, I did this

Code:
/etc/init.d/apache2 stop
cd /var/www
rm -rf *
svn co http://rutorrent.googlecode.com/svn/trunk
rm -r trunk/rutorrent/plugins && mv trunk/plugins/ trunk/rutorrent/ && mv trunk/rutorrent/ ./ && rm -r trunk/
chown -R www-data:www-data rutorrent/share/
/etc/init.d/apache2 start

apache is running as www-data

And its behaving just the same. Right click torrent->set ratio group->ratio0, right click torrent again and No ratio group is grey and I can still reselect ratio0. Also the Ratio Group column is empty.

Thanks for your help BTW.
 

lisas4567

Member
May 25, 2018
773
0
16
Are you using the httprpc plugin by any chance.

I found that the latest changes to the httprpc plugin caused similar problems to the ones you are describing. I also noticed the the Finished column from the seedingtime was not being returned correctly. I rolled back the changes to the httprpc plugin and all is good again.

Hope this helps
ramrat.
 

saroos1

Member
May 25, 2018
718
0
16
Holy moley. Right click, disable httprpc, problem immediately solved. There is no way I would have ever found that on my own. Thanks so much.
 

simur612

Member
May 25, 2018
879
0
16
Fixed now. Don't forget to restart rtorrent after update.
I found that the latest changes to the httprpc plugin caused similar problems to the ones you are describing
Strange thing... I can't see you issue about this problem on the project page...
 

randac56

Member
May 25, 2018
915
0
16
Fixed now. Don't forget to restart rtorrent after update.

Strange thing... I can't see you issue about this problem on the project page...
Sorry didn't get a chance earlier, was going to do it today, but now it's fixed smiley.gif

Thanks again for the quick support novik