Can't seem to work rtgui on scgi 5001

88 views
Skip to first unread message

rapid serverz

unread,
Sep 28, 2010, 5:03:00 AM9/28/10
to rtGui
Hi Guys,

Trying to use scgi port one - the other gui's I am running are working
fine on 5000 but cannot find anywhere in rtgui where I can set it now
where I can edit the main code.

Help appreciated.

Thanks

simon

unread,
Sep 28, 2010, 5:06:29 AM9/28/10
to rtGui

The port is set in your webservers' config - not rtGui!

See here: http://code.google.com/p/rtgui/wiki/ubuntu_rtgui

-Simon

rapid serverz

unread,
Sep 28, 2010, 5:04:49 AM9/28/10
to rtGui
Hi Guys,

Cannot seem to use scgi port 5001 instead of 5000. Other gui's are
working fine on 5001 but cannot see anywhere I can edit to use 5001
instead.

All help appreciated.

Thanks

RS

rapid serverz

unread,
Sep 28, 2010, 5:14:00 AM9/28/10
to rtGui
Hi simon - sorry for the double post up there.

I have it set in lighttpd to 5001 and I want it on 5001:

scgi.server = (
"/RPC1" =>
( "127.0.0.1" =>
(
"host" => "127.0.0.1", # Ip where rtorrent is listening
"port" => 5001, # Port specified in .rtorrent.rc
"check-local" => "disable"
)
)
)

$rpc_connect="http://localhost/RPC1";

But for some reason I can get it working on 5000 but not 5001 :S:S

simon

unread,
Sep 28, 2010, 5:19:49 AM9/28/10
to rtGui

....and you've set that in your .rtorrent.rc as well ?

rapid serverz

unread,
Sep 28, 2010, 5:29:14 AM9/28/10
to rtGui
Yup :) scgi_port = 127.0.0.1:5001

Thanks for the fast replies!

RS

simon

unread,
Sep 28, 2010, 5:52:59 AM9/28/10
to rtGui

...then rtGui should work!

I'd re-check your config. If other GUI's are working this should be a
good sign. rtGui uses the same mechanism as wTorrent/ruTorrent etc.

rapid serverz

unread,
Sep 28, 2010, 6:45:52 AM9/28/10
to rtGui
Hi simon,

Ive gone away - played for about 30 minutes with the config.php

Tried every possible combination (as in dir with trailing / and no
trailing / and other silly things like that)

As I thought no change. I know it should work lol but it doesn't,
thats why im here :)

Many Thanks

RS

rapid serverz

unread,
Sep 28, 2010, 10:03:01 AM9/28/10
to rtGui
from lighttpd error log - thanks

2010-09-28 13:48:57: (server.c.1258) NOTE: a request for /RPC1 timed
out after writing 160 bytes. We waited 360 seconds. If this a problem
increase server.max-write-idle
2010-09-28 13:48:57: (mod_scgi.c.2443) emergency exit: scgi:
connection-fd: 39 fcgi-fd: -1

simon

unread,
Sep 28, 2010, 10:28:35 AM9/28/10
to rtGui

Looks like lighthttpd can't talk to rtorrent....

rapid serverz

unread,
Sep 28, 2010, 10:44:24 AM9/28/10
to rtGui
hi simon,

working fine with rutorrent and avalanche on the same server.

Apreciate your help thanks

James Nylen

unread,
Sep 28, 2010, 11:14:32 AM9/28/10
to rt...@googlegroups.com
Sorry I don't have any experience with lighttpd, but I believe I have avoided this class of problems in my copy of rtGui.

I'm not sure about avalanche, but I know ruTorrent handles the scgi connection itself, without requiring a web server in between rTorrent and the PHP code.  This is probably why ruTorrent works for you and rtGui doesn't.

I've posted working code for using this method in rtGui elsewhere on this list, but here is the latest revision of it:

http://gist.github.com/601164


--
You received this message because you are subscribed to the Google Groups "rtGui" group.
To post to this group, send email to rt...@googlegroups.com.
To unsubscribe from this group, send email to rtgui+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rtgui?hl=en.


rapid serverz

unread,
Sep 28, 2010, 11:39:52 AM9/28/10
to rtGui
Ahh I see - replace the fuctions - just saw the page name at top on
gist - thanks ill shout back

On Sep 28, 4:14 pm, James Nylen <jny...@gmail.com> wrote:
> Sorry I don't have any experience with lighttpd, but I believe I have
> avoided this class of problems in my copy of rtGui.
>
> I'm not sure about avalanche, but I know ruTorrent handles the scgi
> connection itself, without requiring a web server in between rTorrent and
> the PHP code.  This is probably why ruTorrent works for you and rtGui
> doesn't.
>
> I've posted working code for using this method in rtGui elsewhere on this
> list, but here is the latest revision of it:
>
> http://gist.github.com/601164
>
> > rtgui+un...@googlegroups.com <rtgui%2Bunsu...@googlegroups.com>.

rapid serverz

unread,
Sep 28, 2010, 11:43:51 AM9/28/10
to rtGui
Ok so I have replaced the do_xmlrpc function and added the other to
below it and still no

ERROR: Cannot connect to rtorrent

Thanks

RS

On Sep 28, 4:14 pm, James Nylen <jny...@gmail.com> wrote:
> Sorry I don't have any experience with lighttpd, but I believe I have
> avoided this class of problems in my copy of rtGui.
>
> I'm not sure about avalanche, but I know ruTorrent handles the scgi
> connection itself, without requiring a web server in between rTorrent and
> the PHP code.  This is probably why ruTorrent works for you and rtGui
> doesn't.
>
> I've posted working code for using this method in rtGui elsewhere on this
> list, but here is the latest revision of it:
>
> http://gist.github.com/601164
>
> > rtgui+un...@googlegroups.com <rtgui%2Bunsu...@googlegroups.com>.
Message has been deleted

wonslung

unread,
Sep 29, 2010, 4:55:51 AM9/29/10
to rtGui
I can say for sure that something is wrong.

I've checked and doublechecked this and there is nothing wrong with
the lighttpd config, rtorrent config or the rtgui config. It works
fine with apache, but does not work with lighttpd.

This is with debian lenny AND squeeze. I also tried compiling a fresh
lighttpd manually from source. There is something which is causing
rtgui to not work.....my guess would be something in the php.ini so
that's where i will look next.

I wish i could find some errors, but even setting debugging on for
rtgui doesn't seem to show any errors.

if anyone thinks they can fix it i can easily set up a clone of this
server for them to try.

wonslung

unread,
Nov 10, 2010, 2:38:25 AM11/10/10
to rtGui
I wanted to let everyone know this issue turned out to be due to
authentication.
Reply all
Reply to author
Forward
0 new messages