No connection to rtorrent ....

das329717

Member
May 25, 2018
928
0
16
What this? For which reason you comment $scgi_port? For which reason you place *four* slashes to the address?
 

das329717

Member
May 25, 2018
928
0
16
Try to calculate. Your code:

Code:
$scgi_port = 0;
$scgi_host = "unix://home/x/rutorrent/rtorrent.socket";

One, two. Two slashes.

My example:

Code:
// For web->rtorrent link through unix domain socket
// (scgi_local in rtorrent conf file), change variables
// above to something like this:
//
// $scgi_port = 0;
// $scgi_host = "unix:///tmp/rpc.socket";

One, two, three. Three slashes. And?
 

jith45

Member
May 25, 2018
960
0
16
Code:
$scgi_port = 0;
$scgi_host = "unix:///home/x/rutorrent/rtorrent.socket";

// For web->rtorrent link through unix domain socket
// (scgi_local in rtorrent conf file), change variables
// above to something like this:
//
// $scgi_port = 0;
// $scgi_host = "unix://tmp/rpc.socket";

alright I tried with three slashes and still no connection to rtorrent, also for some reason my example shows two slashes shocked.gif
 

jith45

Member
May 25, 2018
960
0
16
I have read through the plugin pages for rpc and httprpc, the config section and I don't see where specifically i'm supposed to setup any of these plugins ? Or what should be different in my webserver config except not needing an /RPC2 section. I have tried with the /RPC2 section in nginx commented out... still no connection to rtorrent.

Forgive me...
 

das329717

Member
May 25, 2018
928
0
16
1) Check existence of file /home/x/rutorrent/rtorrent.socket (rtorrent user must have access for its creation).
2) Try use normal port instead socket.
 

jith45

Member
May 25, 2018
960
0
16
Thank you so much.....

it works using localhost:5000

I don't understand why my socket won't work though? I have chown it to my user and chmod 777

here is the permissions on the file

srwxr-xr-x 1 x x 0 Jul 22 16:31 rtorrent.socket

both rtorrent and nginx are run as user x