Novik / ruTorrent

Yet another web front-end for rTorrent
Other
2.03k stars 414 forks source link

Throttle plugin not working #2491

Closed ac1dburnz closed 1 year ago

ac1dburnz commented 1 year ago

Please complete the following tasks.

Tell us about your environment

Web Browser: Google Chrome 97.0.4692.71 ruTorrent: 4.1 PHP: PHP81 OS: Truenas 13 running Freebsd 13.1-

Give us detailed steps to reproduce the error

Followed the following guide for installation : https://forums.freebsd.org/threads/freebsd-install-rtorrent-and-rutorrent-on-lighttpd-full-guide.85230/#post-567706 and upgraded to 4.1

Tell us the error message

Upon loading the UI throttle: Plugin failed to start and I cannot find any logs to backup why it failed. I have tried installing it on a sperate instance with the same result.

Provide the php error log contents (if applicable)

No response

stickz commented 1 year ago

@colinborins Please try the install process again using the latest master commit. Clear your web browser cache when completed. https://github.com/Novik/ruTorrent/commit/d8435ede5a5f89fcd0f1529acc2dc956442314ae

I mitigated a potential issue with users hosting content in hierarchy directories where the web server doesn't have executable access. I don't know if this was your problem, but it was easily avoidable during the initialization process for ruTorrent.

The goal of this latest commit is to get users past the initialization phase, so they receive more meaningful errors. It will not fully address the problem. ruTorrent requires proper access permissions. However, it should help with future bug reports.

ac1dburnz commented 1 year ago

hey ! so i updated but I'm still not able to load it. Any ideas for next steps?

stickz commented 1 year ago

The guide is bad. The owner still hasn't updated it yet.

This command should be: mkdir -p /usr/local/www/lighttpd/ruTorrent/share/torrents NOT: mkdir -p /usr/local/www/lighttpd/ruTorrent/php/share/torrents

Also you need: pkg install php81-extensions. Read the comments bellow the guide. This seems like a version upgrade issue to me. If you ran a separate instance, you probably forgot to install some packages. Ensure all these external paths actually have the specified binaries.

         $pathToExternals = array(
                "php"   => '/usr/local/bin/php',                  
                "curl"  => '/usr/local/bin/curl',       
                "gzip"  => '/usr/bin/gzip',              
                "id"    => '/usr/bin/id',             
                "stat"  => '/usr/bin/stat',       
                "pgrep" => '/usr/bin/pgrep',
                "sox"   => '/usr/local/bin/sox',
                "python" => '/usr/local/bin/python',
                "unrar" =>  '/usr/local/bin/unrar',
                "mediainfo" =>  '/usr/local/bin/mediainfo',
                "ffmpeg" =>  '/usr/local/bin/ffmpeg',
        );

Please check /usr/local/www/lighttpd/ruTorrent/php folder. There should not folders creating in this directory. The only folder in there should be the utility folder. /usr/local/www/lighttpd/ruTorrent/share should contain the folders settings, users, torrents etc.

Did you get the new version of ruTorrent/conf/config.php ? Throttle had something changed in there. If you have $throttleMaxSpeed, try disabling the throttle plugin and seeing if the web interface continues to load.

Also for ee /usr/local/www/lighttpd/ruTorrent/conf/config.php you probably want to set $localHostedMode=true. This will stop using xmlrpc to lookup binaries. If you're missing a php extension it could be why things are failing.

ac1dburnz commented 1 year ago

it turns out there was an issue with the conf/config.php. It's been corrected and throttle now works. In regards to the php folder. This is what is in there https://ibb.co/27QNrMm should the PHP files not be there?

ac1dburnz commented 1 year ago

i know this isnt really something you do but you did a great job making the vmtouch work. How can i get method.set_key=event.download.finished,cross_seed,"execute={'pwd/rtorrent-cross-seed.sh',$d.name=}"' >> .rtorrent.rc to work in my rtorrent file?

stickz commented 1 year ago

I'm glad you got version 4.1 working. I don't have time to investigate the custom cross seeding script.