rutorrent on cygwin

simur612

Member
May 25, 2018
879
0
16
Hi rutorrent community! I'm a longtime (7+ years) rtorrent user on various platforms but just recently learned about rutorrent. Looks good!

As I'm running cygwin on my windows mediacenter anyway for ssh etc, I compiled rtorrent for the kicks of it. It works rather nice, so I figured why not try to get rutorrent running on the machine aswell. I have lighttpd with php installed/configured according to the docs and .rtorrent.rc including scgi_port = 127.0.0.1:5000

I can get rutorrent to load, but it displays the following error: [28.06.2010 21:26:50] Bad response from server: (500 [error,getplugins]) and won't make any connection to rtorrent. As my situation is quite odd I haven't been able to figure out the specifics why this is happening, but maybe someone can help me along. Would be fun to get this running wink.gif
 

Attachments

simur612

Member
May 25, 2018
879
0
16
sorry, that happened when i renamed plugins/ dir, but looks like it must be there. anyway, rutorrent is now working on my windows machine. I guess I have to look more into what plugin causes the mess.

[28.06.2010 21:38:47] rTorrent's user can't access 'id' program. Some functionality will be unavailable
 

randac56

Member
May 25, 2018
915
0
16
type

which id


if you don't have it, then install id


if you get a response, put it in your rutorrent/conf/config.php (or rutorrent/conf/users/USERNAME/config.php )

if not, you need to install id
 

simur612

Member
May 25, 2018
879
0
16
id is installed, as is everything else. I also added it to the windows PATH. so it works when i type it directly at a cmd prompt too. I wonder if I might have to call it id.exe in config.php though. Anyway, I'll report of my findings soon.
 

randac56

Member
May 25, 2018
915
0
16
i just installed cygwin just to check and it's located at /usr/bin/id


I will attempt to compile rtorrent/rutorrent and all that but it might be slow going due to it being in a vm of window xp AND in cygwin

I'm sure i'll get it all straighted out
 

simur612

Member
May 25, 2018
879
0
16
hey, sounds good wink.gif if you have any issues with compilation, check http://rtwi.jmk.hu/wiki/rTorrentOnWindows

The info there misses a couple of required packages, but you need the patch. Everything else is quite easy to figure out thoughfor some reason my cygwin couldn't locate ncurses, so I had to symlink ncurses.h inside /usr/includes to /usr/includes/ncurses/curses.h to get rtorrent to compile.
 

Attachments

simur612

Member
May 25, 2018
879
0
16
Quote
if i can make it compile on solaris i can make it compile on cygwin


Hear-hear! Longtime Solaris user here too.. work related ofc cheesy.gif
 

Attachments

simur612

Member
May 25, 2018
879
0
16
been digging a bit deeper into this. seems like most plugins fail like this in php error log:

Code:
[28-Jun-2010 21:26:50] PHP Fatal error: require_once(): Failed opening required 'C:\docs\wwwutorrent/plugins/rss/conf.php' (include_path='.;C:\php5\pear') in C:\docs\www\rutorrent\plugins\rss\init.php(2) : eval()'d code on line 1
seems like something strips the path? proper should be c:\docs\www\rutorrent, but the slash and r are gone.
 

simur612

Member
May 25, 2018
879
0
16
I switched to a wamp distribution for my apache/php needs and can now see the following in the rutorrent log:


[28.06.10 21:48:31] <?xml version="1.0" encoding="UTF-8"?><methodCall><methodName>execute</methodName><params>
<param><value><string>sh</string></value></param>
<param><value><string>-c</string></value></param>
<param><value><string>id -u &gt; C:\wamp\www
utorrent mp
utorrent-stats-148484c2918af4e81f ; id -G &gt;&gt; C:\wamp\www
utorrent mp
utorrent-stats-148484c2918af4e81f ; echo ~ &gt;&gt; C:\wamp\www
utorrent mp
utorrent-stats-148484c2918af4e81f ; chmod 0644 C:\wamp\www
utorrent mp
utorrent-stats-148484c2918af4e81f</string></value></param>
</params></methodCall>
[28.06.10 21:48:31] Status: 200 OK
Content-Type: text/xml
Content-Length: 296

<?xml version="1.0" encoding="UTF-8"?>
<methodResponse>
<fault>
<value><struct>
<member><name>faultCode</name>
<value><i4>-503</i4></value></member>
<member><name>faultString</name>
<value><string>Bad return code.</string></value></member>
</struct></value>
</fault>
</methodResponse>
 

randac56

Member
May 25, 2018
915
0
16
i'm honestly not sure...i haven't had time to really start playing with it yet. This problem is likely related entirely to cygwin but i'm sure if it can be fixed we will figure it out
 

simur612

Member
May 25, 2018
879
0
16
Quote
i'm honestly not sure...i haven't had time to really start playing with it yet. This problem is likely related entirely to cygwin but i'm sure if it can be fixed we will figure it out


hey. looks to me the problems all come from the external made-for-windows, ie. non-cygwin php. I found a proper cygwin package for php too, and will try with that one tomorrow.
 

randac56

Member
May 25, 2018
915
0
16
man, i'm fuckin around with cygwin and god is it slow.

I mean REALLY slow. I would put money on Virtualbox + debian or FreeBSD being the better option.
 

simur612

Member
May 25, 2018
879
0
16
Quote
man, i'm fuckin around with cygwin and god is it slow.

I mean REALLY slow. I would put money on Virtualbox + debian or FreeBSD being the better option.


yes, would make more sense it seems.
 

randac56

Member
May 25, 2018
915
0
16
a couple things:

Looking at some of the instructions online:


they say to use svn rtorrent, this is not going to be a good idea

only use stable 0.8.6

also, use xmlrpc-c advanced


I'm almost done installing everything so i will let you know