You are not logged in.

#1 2009-03-01 06:34:22

PK
Member
Registered: 2009-02-21
Posts: 12

[solved] rtgui problems

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

#2 2009-03-02 03:50:12

PK
Member
Registered: 2009-02-21
Posts: 12

Re: [solved] rtgui problems

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 sad" warning.

Offline

#3 2009-03-10 01:04:34

PK
Member
Registered: 2009-02-21
Posts: 12

Re: [solved] rtgui problems

Just gave it a shot with lighttpd installed, and I get the exact same error message. Any ideas?

Offline

#4 2009-03-10 21:31:44

pmd
Member
From: Poland
Registered: 2008-08-11
Posts: 26

Re: [solved] rtgui problems

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

#5 2009-03-10 21:40:52

PK
Member
Registered: 2009-02-21
Posts: 12

Re: [solved] rtgui problems

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

#6 2009-03-10 22:57:15

pmd
Member
From: Poland
Registered: 2008-08-11
Posts: 26

Re: [solved] rtgui problems

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

#7 2009-03-13 04:08:54

PK
Member
Registered: 2009-02-21
Posts: 12

Re: [solved] rtgui problems

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

#8 2009-03-13 18:23:15

pmd
Member
From: Poland
Registered: 2008-08-11
Posts: 26

Re: [solved] rtgui problems

Firstly you have to enable log_errors option in php.ini. You will see where the problem is.

Offline

#9 2009-03-13 18:40:38

PK
Member
Registered: 2009-02-21
Posts: 12

Re: [solved] rtgui problems

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 smile

Offline

#10 2009-03-13 18:43:07

pmd
Member
From: Poland
Registered: 2008-08-11
Posts: 26

Re: [solved] rtgui problems

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

#11 2009-03-13 20:37:16

PK
Member
Registered: 2009-02-21
Posts: 12

Re: [solved] rtgui problems

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

#12 2009-04-01 19:33:19

Jonlin
Member
From: Sweden
Registered: 2008-11-18
Posts: 6

Re: [solved] rtgui problems

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

#13 2009-04-04 17:28:37

PK
Member
Registered: 2009-02-21
Posts: 12

Re: [solved] rtgui problems

That worked like a charm, thanks so much!

Offline

#14 2009-05-09 22:09:11

jouz
Member
Registered: 2009-04-16
Posts: 5

Re: [solved] rtgui problems

i have the same problem... "cannot connect to rtorrent sad".
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

#15 2009-05-12 01:25:39

PK
Member
Registered: 2009-02-21
Posts: 12

Re: [solved] rtgui problems

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

#16 2009-09-03 14:18:42

jonkristian
Member
From: Norway
Registered: 2007-03-09
Posts: 101
Website

Re: [solved] rtgui problems

@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

#17 2009-10-24 05:44:04

SaturnTheIcy
Member
Registered: 2008-07-17
Posts: 4

Re: [solved] rtgui problems

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

big_smile

P.S. = Sorry for bad English

Last edited by SaturnTheIcy (2009-10-26 06:56:22)


P.S. : sorry for my bad English

Offline

#18 2010-01-08 10:05:25

Xiong Chiamiov
Member
From: central coast, california
Registered: 2008-06-18
Posts: 142
Website

Re: [solved] rtgui problems

jouz wrote:

i have the same problem... "cannot connect to rtorrent sad".
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

Board footer

Powered by FluxBB