Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Most Plugins not loading #2452

Closed
3 tasks done
MarkusLange opened this issue Feb 20, 2023 · 68 comments
Closed
3 tasks done

Most Plugins not loading #2452

MarkusLange opened this issue Feb 20, 2023 · 68 comments

Comments

@MarkusLange
Copy link

MarkusLange commented Feb 20, 2023

Please complete the following tasks.

  • Web browser cache cleared
  • Copied everything if upgrading to v4.0 or master
  • Web browser, ruTorrent and PHP version provided

Tell us about your environment

Browser/ruTorrent Version
Firefox 110.0 64bit / Edge 110.0.1587.50
ruTorrent: v4.0.1-hotfix

works not:
PHP 8.1.7-1ubuntu3.2
on Ubuntu Kinetic Kudu 22.10

PHP 8.1.2-1ubuntu2.10
on Ubuntu Jammy Jellyfisch 22.04

works on:
Firefox 110.0 64bit / Edge 110.0.1587.50
ruTorrent: v4.0.1-hotfix

PHP 7.4.33
on Debian bullyeye 11.6

PHP 8.2.3
on Debian bullyeye 11.6

PHP PHP 7.4.3-4ubuntu2.17
on Ubuntu Focal Fossa 20.04

Give us detailed steps to reproduce the error

complete identical installation on both ubuntu and debian, on ubuntu nearly 70% of the plugins not loading

Tell us the error message

Only a few plugins did load
grafik
all other did not load

Provide the php error log contents (if applicable)

No response

@stickz
Copy link
Collaborator

stickz commented Feb 20, 2023

@MarkusLange How did you install ruTorrent? Are there any errors in the "Log" tab?

@MarkusLange
Copy link
Author

MarkusLange commented Feb 20, 2023

I install it with the help of a script.
only this error:
[21.02.2023 00:19:45] WebUI started.
[21.02.2023 00:19:46] Keine Verbindung zu rTorrent. Überprüfe ob es wirklicht läuft. Überprüfe $scgi_port und $scgi_host Einstellungen in config.php und scgi_port in der rTorrent Konfigurationsdatei.
but rpc nor httprpc are loaded.

working:
grafik
apt-cache depends libapache2-mod-php8.2 | grep Depends
difference: Depends: libssl1.1

not working:
grafik
apt-cache depends libapache2-mod-php8.2 | grep Depends
difference: Depends: libssl3

both with the PHP reposity from Ondřej Surý

@stickz
Copy link
Collaborator

stickz commented Feb 21, 2023

That error is the reason why it's not working. Ensure the PATH variable for PHP is properly set.

@MarkusLange
Copy link
Author

MarkusLange commented Feb 21, 2023

That error is the reason why it's not working. Ensure the PATH variable for PHP is properly set.

grafik

I did that restarted apache2, that was not the solution

Is there a way to increase the loglevel from rutorrent? errors.log is empty

@MarkusLange
Copy link
Author

MarkusLange commented Feb 21, 2023

little update:
on ubuntu:
if I set the rpc on open.port and the rutorrent config also it works
rtorrent.rc
network.scgi.open_port = 127.0.0.1:5000
/conf/config.php
$scgi_port = 5000;
$scgi_host = "127.0.0.1";
but if I use open.local it's not working
rtorrent.rc
network.scgi.open_local = (cat,(session.path),rpc.socket)
/conf/config.php
$scgi_port = 0;
$scgi_host = "unix:///home/ubuntu/rtorrent/.session/rpc.socket";

the apache vhost conf also may I miss something

<VirtualHost *:80>
        ServerAdmin webmaster@localhost
        DocumentRoot /var/www/ruTorrent-4.0.2
        <Directory "/var/www/ruTorrent-4.0.2">
                AllowOverride None
        </Directory>

        # Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
        # error, crit, alert, emerg.
        # It is also possible to configure the loglevel for particular
        # modules, e.g.
        #LogLevel info ssl:warn

        ErrorLog ${APACHE_LOG_DIR}/rutorrent_error.log
        CustomLog ${APACHE_LOG_DIR}/rutorrent.log vhost_combined
</VirtualHost>

IMHO:
Looks like there is something in Ubuntu that has changed between the Versions and its not actuall a problem with ruTorrent itself, it still works in Debian 11

@liaralabs
Copy link

liaralabs commented Feb 22, 2023

Is your www-data user able to read the socket? There may be permission issues on the way to the rpc.socket you've created (i.e on the socket itself or on the directories on the way to the socket -- /home/user being a dir that typically gets set 750 for security reasons). But you're correct, this is likely not an issue with ruTorrent in particular.

Generally speaking, home directories aren't a great place for unix socket that need to be read by other users. /var/run//run is sort of the de-facto place for these ephemeral objects that only live as long as the application does.

network.scgi.open_local = /var/run/liara/.rtorrent.sock
schedule2 = chmod_scgi_socket, 0, 0, "execute2=chmod,\"g+w,o=\",/var/run/liara/.rtorrent.sock"

This creates the socket, then sets the group to have write permissions and "other" no permissions -- www-data is in the group for liara so the www-data user can access this socket without issue.

@MarkusLange
Copy link
Author

Some exhausting days, at first you are right @liaralabs the socket has to be in /run (for my explain the rtorrent put all in a compact stucture usually inside the users homedir, including the socket) also as far as I can evaluate the best place for samba/ftp/torrents is the /srv folder not the users home, but now to the intersting part Ubuntu had until 22.04 755 for home and now 750 debian has still 755. So everything was fine until Ubuntu makes a move. So thanks @liaralabs for the hint.

@stickz
Copy link
Collaborator

stickz commented Feb 24, 2023

Did you find a solution to your problem @MarkusLange?

@MarkusLange
Copy link
Author

Yes @stickz I describe it, mostly explained by @liaralabs allready
My Solution (I use the rtorrent Template, and Apache Server)
A.
is to set everything including home to 755 and give the user www-data group permissions to the rtorrent user, but this will break the privacy so it's the wrong way, we will not talk about it again.
B.
is a bit more complex

  1. add the group www-data to the user who runs rtorrent
  2. create a /usr/lib/tmpfiles.d/rtorrent.conf because /run will be cleaned on startup
#Type Path            Mode UID      GID        Age Argument
d     /run/rtorrent   0775 www-data www-data   -   -
  1. change this lines inside .rtorrent.rc
#network.scgi.open_local = (cat,(session.path),rpc.socket)
#execute.nothrow = chmod,770,(cat,(session.path),rpc.socket)

to

network.scgi.open_local = /run/rtorrent/rpc.socket
execute.nothrow = chmod,776,/run/rtorrent/rpc.socket
  1. change this lines inside the config.php from ruTorrent
        $scgi_port = 5000;
        $scgi_host = "127.0.0.1";

to

        $scgi_port = 0;
        $scgi_host = "unix:///run/rtorrent/rpc.socket";
  1. move the basedir to /srv like /srv/rtorrent/ and set the group to www-data, if not the rutracker_check will not work it needs access to the sessiondata.

I hope I didn't forget nothing but I will all integrate in this script for the better use.

@stickz
Copy link
Collaborator

stickz commented Feb 24, 2023

Excellent. Thanks for posting your solution. I'm going to close this issue report off now, since it's been resolved.

@MarkusLange
Copy link
Author

@GitHub-BumBleBee

May you can take a look at this https://github.com/MarkusLange/r_ru-torrent-install-script supports rutorrent updates

@MarkusLange
Copy link
Author

@GitHub-BumBleBee

So its a bit on own risk, but I wrote a script that let you remove Bercik installation while keeping the torrents and move them to a common location for the script above, may you can test it on a seperate system to get comfortable with it, I have tested it on a vm and it worked fine, stored under misc

@GitHub-BumBleBee
Copy link

@MarkusLange

What version is your RuTorrent?

@MarkusLange
Copy link
Author

MarkusLange commented Sep 18, 2023

It will allways be the latest (but you can choose), and as I mentioned upgrading is allways possible
grafik

@GitHub-BumBleBee
Copy link

@MarkusLange

How will it work if version v4.2.9 comes out? I will have installed v4.2.6!!!

@MarkusLange
Copy link
Author

MarkusLange commented Sep 18, 2023

@MarkusLange

How will it work if version v4.2.9 comes out? I will have installed v4.2.6!!!

@GitHub-BumBleBee easy, you use this point (marked blue):
grafik
follow the directions and the script will do the rest, it will install your selected ruTorrent version and will create and edit all needed files to use the newly installed version

Btw. you can test it run this (blue marked)
grafik
choose an older version and try an update

@GitHub-BumBleBee
Copy link

@MarkusLange

Thank you for your patience with me. I am from Brazil. I will test your script.

@MarkusLange
Copy link
Author

MarkusLange commented Sep 18, 2023

@MarkusLange

Thank you for your patience with me. I am from Brazil. I will test your script.

@GitHub-BumBleBee

You are wellcome, i hope it helps

@GitHub-BumBleBee
Copy link

@MarkusLange

The installation went well!! But I can't change the folder where the torrents are saved

@MarkusLange
Copy link
Author

MarkusLange commented Sep 19, 2023

@GitHub-BumBleBee

Ah yeah, the use is a bit ruff, there is link how to use it:
https://unix.stackexchange.com/questions/249965/how-to-navigate-in-dialogs-file-and-directory-selectors

Did you remove the Bercik installation also? I had to update the removescript because it did not ask for root privileges

@GitHub-BumBleBee
Copy link

@MarkusLange I want to change this directory

https://i.postimg.cc/gkTnTd1D/Captura-de-tela-2023-09-19-040929.png

I want it to stay like this: /arq.upload/BUMBLEBEE

@GitHub-BumBleBee
Copy link

@MarkusLange I don't want anything else added to the directory.

I don't want to save any more configuration in the directory.

@GitHub-BumBleBee
Copy link

@MarkusLange If you don't understand something, please let me know.

@MarkusLange
Copy link
Author

/arq.upload/BUMBLEBEE

I did'nt understand this " /arq.upload/BUMBLEBEE" is that a folder?

You have an link to /srv/rtorrent/... inside the home of your user!
grafik
the cyan one this will lead you directly to the folder

@GitHub-BumBleBee
Copy link

@MarkusLange

Friend, that path would be a folder where my files are located.

I need to configure rutorrent to save it inside the folder.

@GitHub-BumBleBee
Copy link

@MarkusLange

Remembering my friend that I only want to leave my files in the folder and nothing else.

@MarkusLange
Copy link
Author

@GitHub-BumBleBee
Go this way:
grafik
then this
grafik
and set the folder direct (green cursor)
grafik
and remove this files direcly inside the folder /arq.upload/BUMBLEBEE:
*.libtorrent_resume
*.rtorrent
so that rtorrent/rutorrent grep the files again

@GitHub-BumBleBee
Copy link

@MarkusLange

I do what he asked but he doesn't do it...

https://i.postimg.cc/fLGKtkxH/Captura-de-tela-2023-09-19-070037.png

https://i.postimg.cc/FHHjK0Mr/Captura-de-tela-2023-09-19-070235.png

The location looks like this: /arq.upload/BUMBLEBEE/rtorrent/download

I don't want.
I want it like this: /arq.upload/BUMBLEBEE

@GitHub-BumBleBee
Copy link

@MarkusLange

I did what you said, but nothing happened.

Did I do it in the wrong place?

https://i.postimg.cc/RFWpMHcW/Captura-de-tela-de-2023-09-19-10-01-32.png

@GitHub-BumBleBee
Copy link

@MarkusLange

If it's better for you friend. Make changes to the script. Then I will do a new installation. But test it first.

@MarkusLange
Copy link
Author

MarkusLange commented Sep 19, 2023

@GitHub-BumBleBee

ah okay do at first:
unlink /srv/rtorrent/

and did you move the rtorrent basedir with the script back to /srv/? This is necessary

an let me see whats inside the folder /arq.upload/BUMBLEBEE/ from the terminal

@MarkusLange
Copy link
Author

@MarkusLange

If it's better for you friend. Make changes to the script. Then I will do a new installation. But test it first.

I can't and won't change the script only to fit your needs I can help you to adapt your wishes as best I can

@MarkusLange
Copy link
Author

@GitHub-BumBleBee

Whats inside the folder BUMBLEBEE? And whats inside the folder /srv/torrent

@GitHub-BumBleBee
Copy link

GitHub-BumBleBee commented Sep 19, 2023

@MarkusLange

Would you accept 1 payment for the change?

@MarkusLange
Copy link
Author

@MarkusLange

Would you accept 1 payment for the change?

I won't accept payment in any way, but I can help you to get this working, so show me the folder from the terminal so I can see what happend there and if there allready any softlinks

@GitHub-BumBleBee
Copy link

@MarkusLange

Change the script and send it to me via a cloud. You don't need to update the website. I do whatever it takes.

@GitHub-BumBleBee
Copy link

@MarkusLange I'll send you what's inside the folders.

@MarkusLange
Copy link
Author

@MarkusLange

Change the script and send it to me via a cloud. You don't need to update the website. I do whatever it takes.

Problem I don't know your system, so I can't adapt it in thin air

@GitHub-BumBleBee
Copy link

@GitHub-BumBleBee
Copy link

@MarkusLange

I can generate or do whatever my system needs. Anything!

@MarkusLange
Copy link
Author

MarkusLange commented Sep 19, 2023

@MarkusLange

I don't see why this shoudn't work

@jakobbg
Copy link
Contributor

jakobbg commented Sep 19, 2023

@GitHub-BumBleBee
Copy link

@MarkusLange

One question. I use 2 disks. Being 1 for the Linux Mint 21.02 system. And 1 for the files.
The /arq.upload/BUMBLEBEE folder is on disk 2, 4TB

@MarkusLange
Copy link
Author

MarkusLange commented Sep 19, 2023

@MarkusLange

Seriously? This smells a bit like a troll to me… :-)

@jakobbg
I know what you mean, try to ignore

@GitHub-BumBleBee
Copy link

@MarkusLange

What to do? On 4TB disk 2, I have 2TB of personal files.

@MarkusLange
Copy link
Author

try to create the softlink with sudo rights

@GitHub-BumBleBee
Copy link

@MarkusLange

I already tried, and it didn't work. If it doesn't work for you to change this suggestion. I'll leave it alone. And stop using ruTorrent!

@GitHub-BumBleBee
Copy link

@MarkusLange

I don't want to be disrupting anyone's life. Thank you for your help.

@GitHub-BumBleBee
Copy link

@MarkusLange I will remove everything

@MarkusLange
Copy link
Author

@GitHub-BumBleBee

Don't you have anyone around who can set a softlink to the folder by hand? Or the other way around share the folder download like you did it with the folder BUMBLEBEE so you will see both on Windows

@GitHub-BumBleBee
Copy link

@MarkusLange

I know how to do what I said. But what I need now would be to configure rutorrent for the location I choose. /arq.upload/BUMBLEBEE

@MarkusLange
Copy link
Author

@GitHub-BumBleBee try this

In .rtorrent.rc under /srv/rtorrent/

first lines below:


#############################################################################
# A minimal rTorrent configuration that provides the basic features
# you want to have in addition to the built-in defaults.
#
# See https://github.com/rakshasa/rtorrent/wiki/CONFIG-Template
# for an up-to-date version.
#############################################################################


## Instance layout (base paths)
method.insert = cfg.basedir,  private|const|string, (cat,"/srv/rtorrent/")
method.insert = cfg.download, private|const|string, (cat,(cfg.basedir),"download/")
method.insert = cfg.logs,     private|const|string, (cat,(cfg.basedir),"log/")
method.insert = cfg.logfile,  private|const|string, (cat,(cfg.logs),"rtorrent-",(system.time),".log")
method.insert = cfg.session,  private|const|string, (cat,(cfg.basedir),".session/")
method.insert = cfg.watch,    private|const|string, (cat,(cfg.basedir),"watch/")

change this line:
method.insert = cfg.download, private|const|string, (cat,(cfg.basedir),"download/")
to
method.insert = cfg.download, private|const|string, (cat,"/arq.upload/BUMBLEBEE/")

and we will see if this does the trick

after this:
sudo systemctl restart rtorrent.service is needed

@GitHub-BumBleBee
Copy link

@MarkusLange

It worked out!!!
I am really happy.
Thank you for everything.
May God bless you always.

@MarkusLange
Copy link
Author

@GitHub-BumBleBee

Finally. What a hard birth.

@GitHub-BumBleBee
Copy link

@MarkusLange

I loved your dedication. You are an angel

@MarkusLange
Copy link
Author

@GitHub-BumBleBee

One note, do yourself a favor and delete all links to what ever you postet there in your comments

@GitHub-BumBleBee
Copy link

@MarkusLange Beauty

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants