Replies: 14 comments
-
Ok, I installed lighttpd again with RPC host and port and I think I made progress. Now it's giving me this error when I launch ruTorrent:
|
Beta Was this translation helpful? Give feedback.
-
I'm getting some weird 403 Forbidden when it seems I'm accessing my php files, but when I access |
Beta Was this translation helpful? Give feedback.
-
Hello, I would recommend the swizzin installation script on Ubuntu 24.04 LTS. This type of installation method is complex and time consuming. You can be up and running in 10 minutes on rTorrent 0.10.0 with ruTorrent v5.0. https://github.com/swizzin/swizzin |
Beta Was this translation helpful? Give feedback.
-
Ty stickz, I can use the script as a last resort, but I'd like to figure out how this works. I'm trying now the nginx route. I installed nginx and php-fpm using this guide. I can load ruTorrent and it seems to connect to rTorrent, but it's giving me the following
Checking nginx error logs I see:
When I check phpinfo() I see under Core
Yet when I check
disable_functions is blank... but for some reason my exec function is disabled.. |
Beta Was this translation helpful? Give feedback.
-
Some more info.. when I run phpinfo() through the command line php command |
Beta Was this translation helpful? Give feedback.
-
Ah, I had
set in one of my conf files in the Error message:
Looks like some permissions issue. |
Beta Was this translation helpful? Give feedback.
-
It's definitely a file permission issue. The user running the web server (usually |
Beta Was this translation helpful? Give feedback.
-
Does rTorrent create the socket or php-fpm? It seems like php-fpm creates the socket and the one I'm running is in
The socket is owned by www-data as is the process
The user running rtorrent is t1. He is already a member of www-data.
In
There's a lot of moving pieces. I'm sorry I don't have a fuller understanding. How does rtorrent know where to use the socket? Also, my logs rotated. I'm not getting any errors anymore in Yeah I'm just not understanding all the connections. I think I just have to get rtorrent to connect to the socket now. |
Beta Was this translation helpful? Give feedback.
-
So it looks like rtorrent opens a socket here (from
which is When I change this to I guess I don't understand how the sockets work. |
Beta Was this translation helpful? Give feedback.
-
just a guy reading along taking an interest & willing to help if i can. worth checking just seen your last comment.. weird i dont have network.scgi.open_local in my rc |
Beta Was this translation helpful? Give feedback.
-
Ah, I had it uncommented when it's normally commented. I'm not sure what configuration I need so rtorrent is setup to talk to the webserver/rutorrent. Docs seems to say to go here so I downloaded the basic .rtorrent.rc from there and just trying to work from a default installation. I'm trying to start from basics. Just a simple rtorrent, then install web server, then drop in rutorrent, then install what I need to get the webserver to talk to rtorrent. I'm not running screen or anything advanced yet. I'm just running rtorrent from my terminal. There seems to be a lot of different options to run rutorrent through the webserver and get it to talk to rtorrent. I'm just trying to find one that works lol. I thought I would know enough, but evidently I need to know more to understand and get the job done. I used to just use apache and scgi on ubuntu 15.10, but that doesn't seem to work anymore, or at least I'm not up to date on the new changes. I tried going the scgi route with rpc host and port, but I had problems. I can try again, but without jumping all over the place I'd like to go step by step and understand each step and work things through. |
Beta Was this translation helpful? Give feedback.
-
i feel ya m8, its pretty darn interesting stuff init hahaa one reason i enjoy reading & learning here. |
Beta Was this translation helpful? Give feedback.
-
I seemed to have fixed the problem by making sure I have
Adding
In my Now I'm getting
I had the same error for ffmpeg, but I solved it by simply installing it so that seems to be the fix. So that's what I'm going to do and it should fix my problems. I think I might ignore the rutracker_check webserver permission issue since I don't use it. Hopefully it won't effect my usage. If I have time I may write a tutorial. We shall see if everything works. |
Beta Was this translation helpful? Give feedback.
-
Everything's working so I will close this. Thanks everyone. :) |
Beta Was this translation helpful? Give feedback.
-
I'm pulling my hair out trying to get my ruTorrent to connect to rTorrent. I just upgraded to Ubuntu 24.10 and I'm trying to transfer everything over. I'm starting with the absolute basics with basic configuration.
I installed rtorrent via
sudo apt-get install rtorrent
Version is 0.9.8. I downloaded .rtorrent.rc fromhttps://github.com/rakshasa/rtorrent/wiki/CONFIG-Template
by copy and pasting the default config. rTorrent works and is running. However, when runningss -ltnp
I only seeLISTEN 0 4096 *:55556 *:* users:(("rtorrent main",pid=21693,fd=14))
I don't see any port 5000 SCGI listening port.
I went to
https://github.com/Novik/ruTorrent/wiki/WebSERVER
. I installed apache2 viasudo apt-get install apache2
. I installedlibapache2-mod-php
,php-mbstring
,php-cgi
,php-fpm
. I can't remember what else I installed, the instructions aren't super clear.When running
sudo apt-get install libapache2-mod-scgi
I'm toldE: Package 'libapache2-mod-scgi' has no installation candidate
. It looks like scgi is deprecated. I followed the instructions here and downloaded the deb of 1.13 for amd64. Hopefully this is ok.I ran
sudo a2enmod scgi
and the same for php8.3. It says they are enabled. I edited/etc/apache2/sites-enabled/000-default.conf
and addSCGIMount /RPC2 127.0.0.1:5000
inside the<VirtualHost *:80>
directive. I ransudo a2ensite 000-default.conf
. It's enabled. I restart my webserver constantly withsudo systemctl restart apache2.service
. I check phpinfo() and can see mbstring and mod_scgi.I download the stable ruTorrent-5.0.0 tar.gz. I move it over to
/var/www/html
andsudo tar -zxvf ruTorrent-5.0.0.tar.gz
. I change ownership of the files from root to www-data usingsudo chown -R www-data:www-data ruTorrent-5.0.0
and rename to just ruTorrent. Inconfig.php
the scgi_port and scgi_host is 5000 and 127.0.0.1 so I don't touch anything. I go to 127.0.0.1/ruTorrent. The interface pops up, but saysTorrent list not available yet, connection to rTorrent not established
. I check/var/log/apache2/error.log
and everything there looks fine. I try to check/tmp/errors.log
for the ruTorrent log but that file doesn't exist.I try Mod Proxy SCGI. I edited
/etc/apache2/sites-enabled/000-default.conf
and replaced the oldSCGIMount /RPC2 127.0.0.1:5000
withProxyPass /RPC2 scgi://localhost:5000/
andsudo a2enmod proxy_scgi
and restarted the server. I refresh ruTorrent and it says the same thing.I try the unix socket. I replace
ProxyPass /RPC2 scgi://localhost:5000/
withProxyPass /RPC2 unix:/tmp/rpc.socket|scgi://127.0.0.1
and edited config.php by commenting out scgi_host and scgi_port and uncommenting the socket ($scgi_port = 0; $scgi_host = "unix:///tmp/rpc.socket";) Still doesn't work.Without going into all the details I've tried lighttpd and nginx as well even though I'm less familiar with those. I haven't tried the HTTPRPC plugin, I'm not sure how to install that. Doesn't anybody have any ideas? I'm surely missing something simple.
I think it might be something with scgi. When I tried
xmlrpc http://127.0.0.1/RPC2 view.list
I get an error message and my apache log says[Sat Oct 12 18:24:08.973154 2024] [:error] [pid 44089:tid 44089] (111)Connection refused: [client 127.0.0.1:58788] scgi: scgi: can't connect to server
error message:
Failed. Call failed. HTTP POST to URL 'http://127.0.0.1/RPC2' failed. HTTP response code is 503, not 200. (XML-RPC fault code -504)
Beta Was this translation helpful? Give feedback.
All reactions