You are not logged in.
I'm trying to get rtgui up and running on my fileserver/bittorrent machine and can't get the damn thing to show anything, right now it just loads a blank page when I go to <ip address>/rtgui/. Well, not entirely blank, it looks like the php script is dying when it makes it's first xml_rpc call, which makes me think that I don't have apache set up properly for SCGI.
I installed mod_scgi 1.13-1 from the AUR, then added:
LoadModule scgi_module modules/mod_scgi.so
SCGIMount /RPC2 127.0.0.1:5000
<Location "/RPC2">
SCGIHandler On
</Location>
to httpd.conf, not sure if the <Location> stuff was necessary, but I figure it can't really hurt.
PHP has xml_rpc support, rtorrent has been compiled with xml_rpc support also, and I can get info from it using xmlrpc from the command line. I've added the line:
scgi_port = localhost:5000
to my rtorrent.rc file also.
Does anyone have any ideas on what is going on here? Any help or advice would be much appreciated.
Last edited by PK (2009-04-04 17:29:06)
Offline
Okay, I'm making some progress, apparently I didn't have xmlrpc and xsl enabled in my php.ini file. Now with those enabled, I at least get _something_, it loads with a "Cannot connect to rtorrent " warning.
Offline
Just gave it a shot with lighttpd installed, and I get the exact same error message. Any ideas?
Offline
I have also problem with setting up the rtgui. I installed it on lighttpd and I also got error "cannot connect to rtorrent", and I have no idea what I'm doing wrong.
Try to check if xmlrpc is working properly:
$ xmlrpc localhost get_upload_rate
You should see something like this:
Result:
Integer: 0
Of course instead of 0 it can be some other number
Last edited by pmd (2009-03-10 21:32:12)
Offline
Yeah, I have xmlrpc working properly, I get the feeling that the connection between the webserver and xmlrpc is where the problem is, although I've now tried both apache and lighttpd using both ports and sockets for both, with no change.
Offline
Unfortunetly I've got the same. I read a lot of topics on forums, few tutorials and nothing, try a lot of options without any results. I also tried to install rtwi and n2hell. I agree with your opinion, this is a problem between webserver and xmlrpc, I think that both of us have the same.
Tomorrow I will try to install from svn and on some other distribution
I resigned from the rtGUI, I installed wTorrent and it works great for me. I used the wiki guide in installation. You should try it too
Last edited by pmd (2009-03-12 00:53:25)
Offline
I gave wTorrent a shot using the wiki, can't seem to get that one to work either, when I go to install.php with my browser I just get a blank page, no HTML info at all, nothing. PHP is working, because a test page with phpinfo(); works just fine, rtorrent is running with xmlpc enabled, apache has scgi enabled (although I don't know how to test if it's working), I'm totally out of ideas on this.
Offline
Firstly you have to enable log_errors option in php.ini. You will see where the problem is.
Offline
Alrighty, I have wtorrent up and running now, the php error log was showing that I didn't chmod all of the files to be writeable in the wtorrent directory, and I had to allow php access to my torrents and downloads folders, thanks so much for all the help, now I'm going to do some digging through error logs to try and figure out rtgui
Offline
If you find something interesting please post this on forum. wTorrent is working fine, but I heard that rtGUI is better so it will be nice to compare both.
Offline
On another note, recompiling php with the "--enable-xsl" flag corrected the issues I was having with rtwi. Hopefully this will help somebody else down the road.
Offline
I got the same error as you, the "cannot connect to rtorrent" and the sad smiley. After an hour or so of pulling my hair and comparing the settings I had on my old Debian system where it all worked, I changed these two lines in php.ini to On and it all worked.
; Whether to allow the treatment of URLs (like http:// or ftp://) as files.
allow_url_fopen = Off
; Whether to allow include/require to open URLs (like http:// or ftp://) as files.
allow_url_include = Off
Hope you get it sorted out.
Offline
That worked like a charm, thanks so much!
Offline
i have the same problem... "cannot connect to rtorrent ".
My problem is that i can't get xmlrpc to work...
xmlrpc localhost system.listMethods
Error: Curl failed to perform HTTP POST request. curl_easy_perform() says: couldn't connect to host (-504)
I followed the xmlrpc guide from the rtorrent wiki, but i cant figure out where the problem is... (using lighttpd)
Offline
I just accidentally replied....and now can't seem to figure out how to delete it.....sorry.
Last edited by PK (2009-05-12 01:26:58)
Offline
@jouz I keep getting the same error, did you find any solution for this?
Would be interesting to know what kind of packages you have installed.
PROCRASTINATION
is like masturbation...it's good in the beginning, but in the end, you realize
you've just fkd yourself
Offline
I find at last the way to run the rtGUI with lighttpd
add the module
server.modules = (
.
.
.
"mod_scgi",
.
.
.
)
scgi.server = (
"/RPC2" =>
( "127.0.0.1" =>
(
"host" => "127.0.0.1",
"port" => 5000,
"check-local" => "disable",
"disable-time" => 0,
)
)
)
I find scgi it's not list in modules onconfiguration file and check in the installation location of lighttpd
P.S. = Sorry for bad English
Last edited by SaturnTheIcy (2009-10-26 06:56:22)
P.S. : sorry for my bad English
Offline
i have the same problem... "cannot connect to rtorrent ".
My problem is that i can't get xmlrpc to work...xmlrpc localhost system.listMethods Error: Curl failed to perform HTTP POST request. curl_easy_perform() says: couldn't connect to host (-504)
I followed the xmlrpc guide from the rtorrent wiki, but i cant figure out where the problem is... (using lighttpd)
Bump because I had this problem and (halfway) solved it.
I was trying to serve up the rtorrent connection with fastcgi instead of scgi, and that didn't work. Changing that got wtorrent to say it could connect when I tested the preferences (and /RPC2 to return a blank page rather than a 500), but the main interface still doesn't seem to be able to connect. xmlrpc is good, though, so I think I'm close:
└─[$]> xmlrpc 127.0.0.1 get_upload_rate
Result:
Integer: 20480
Edit:
Alright, so it seems that, for some reason or another, the config file wasn't written, so I had to make changes manually. The two key lines I had to change were the following:
define( 'RT_PORT', 8080);
define( 'RT_DIR', 'RT_RPC2/');
to
define( 'RT_PORT', 80);
define( 'RT_DIR', 'RPC2/');
Last edited by Xiong Chiamiov (2010-01-08 10:15:58)
Offline