Howto: RTorrent with Webinterface

Questions regarding modifying the torrent engine or download station may go here.
Forum rules
Please note the disclaimer before modifying your Synology Product.

Howto: RTorrent with Webinterface

Postby pableu » Sat Apr 05, 2008 4:02 pm

I've written a new guide that covers RTorrent and wTorrent (a webinterface to RTorrent). It's still very fresh and probably contains some errors, so I'd be glad about some feedback or inputs.

Check it out here: http://www.synology.com/wiki/index.php/ ... rent_HowTo

** Update May 10 2008: Moved the guide from nas-central.org to the synology wiki **
Last edited by pableu on Sat May 10, 2008 8:28 am, edited 1 time in total.
pableu
Sharp
Sharp
 
Posts: 162
Joined: Wed May 09, 2007 9:33 pm

Re: Howto: RTorrent with Webinterface

Postby superdix » Mon Apr 07, 2008 6:45 pm

This didn't work for me (CS407 with 518 firmware). First, I had to use the http://www.maartendamen.com/synoware/Packages repository for xlmrpc-c, since the "normal" repository version gave an error (Fault occured while inserting xmlrpc call).

After doing this I got rtorrent running, but wtorrent doesn't work. Opening up the URL for wtorrent only gives a blank page (according to the view source function in firefox, the page is completely empty). Something must be missing from the lighttpd conf..
---
Using CS407
superdix
Beginner
Beginner
 
Posts: 25
Joined: Thu Jan 10, 2008 9:53 pm

Re: Howto: RTorrent with Webinterface

Postby pableu » Mon Apr 07, 2008 8:32 pm

Thanks for the feedback! I'm not sure if I ever installed xmlrpc-c from Maartens feed. What does "xmlrpc-c-config --version" tell you? Mine says 1.11.

The stuff about the empty pages.. I've had that too in the beginning, but i totally forgot about it. And embarassingly, I don't remember what I did to solve it ;-)

You can try uncommenting error_reporting(E_ALL); in /opt/share/www/lighttpd/wtorrent/index.php (by removing the // at the beginning of the line). That should give you some more output.
Or take a look at the console from which you started lighttpd (or open a console and restart it, if it's already running), it gives some output there too.
pableu
Sharp
Sharp
 
Posts: 162
Joined: Wed May 09, 2007 9:33 pm

Re: Howto: RTorrent with Webinterface

Postby superdix » Mon Apr 07, 2008 9:08 pm

Thanks for the input pableau, but this didn't help either. xmlrpc-c is version 1.11 and I have rTorrent running. I did have some trouble with my config files for ipkg, so my problems with sources might not affect other people!

Uncommenting the error-reporting line didn't provide any output at all. I'm thinking something might have gone wrong in the svc process -- the index.php file is tiny! Retrying the svc now...
superdix
Beginner
Beginner
 
Posts: 25
Joined: Thu Jan 10, 2008 9:53 pm

Re: Howto: RTorrent with Webinterface

Postby ccmtozzi » Mon Apr 07, 2008 9:14 pm

Hi pableu, it didn`t work for me either (DS207+ with 590 firmware). I had to use the http://www.maartendamen.com/synoware/Packages repository for xlmrpc-c too, since the "normal" repository version gave an error (Fault occured while inserting xmlrpc call).

The rtorrent worked but when I try to access the URL I receive "500 - Internal Server Error". The lighttpd log file give me:

Code: Select all
2008-04-07 17:04:15: (log.c.75) server started
2008-04-07 17:04:15: (server.c.932) WARNING: unknown config-key: scgi.server (ignored)
2008-04-07 17:04:47: (mod_fastcgi.c.1743) connect failed: Connection refused on unix:/tmp/php-fcgi.sock-0
2008-04-07 17:04:47: (mod_fastcgi.c.2912) backend died; we'll disable it for 5 seconds and send the request to another backend instead: reconnects: 0 load: 1
2008-04-07 17:04:47: (mod_fastcgi.c.2680) child signaled: 11
2008-04-07 17:04:48: (mod_fastcgi.c.2471) unexpected end-of-file (perhaps the fastcgi process died): pid: 3020 socket: unix:/tmp/php-fcgi.sock-0
2008-04-07 17:04:48: (mod_fastcgi.c.3238) child signaled: 11
2008-04-07 17:04:48: (mod_fastcgi.c.3281) response not received, request sent: 925 on socket: unix:/tmp/php-fcgi.sock-0 for /lighttpd/wtorrent/index.php , closing connection
2008-04-07 17:08:38: (mod_fastcgi.c.1743) connect failed: Connection refused on unix:/tmp/php-fcgi.sock-0
2008-04-07 17:08:38: (mod_fastcgi.c.2912) backend died; we'll disable it for 5 seconds and send the request to another backend instead: reconnects: 0 load: 1
2008-04-07 17:08:38: (mod_fastcgi.c.2680) child signaled: 11
2008-04-07 17:08:38: (mod_fastcgi.c.2471) unexpected end-of-file (perhaps the fastcgi process died): pid: 3175 socket: unix:/tmp/php-fcgi.sock-0
2008-04-07 17:08:38: (mod_fastcgi.c.3238) child signaled: 11
2008-04-07 17:08:38: (mod_fastcgi.c.3281) response not received, request sent: 954 on socket: unix:/tmp/php-fcgi.sock-0 for /lighttpd/wtorrent/index.php , closing connection


I saw two problems here. First it didn`t reconize the scgi.server (2008-04-07 17:04:15: (server.c.932) WARNING: unknown config-key: scgi.server (ignored)) and second I`m having problem with the mod_fastcgi...
Last edited by ccmtozzi on Mon Apr 07, 2008 9:27 pm, edited 1 time in total.
ccmtozzi
Trainee
Trainee
 
Posts: 10
Joined: Mon Apr 07, 2008 6:29 pm

Re: Howto: RTorrent with Webinterface

Postby superdix » Mon Apr 07, 2008 9:20 pm

Here's what turned up in my error.log:

Code: Select all
2008-04-07 22:24:55: (mod_fastcgi.c.2592) FastCGI-stderr: PHP Warning:  require_once(home/cls/ListT.cls.php) [<a href='function.require-once'>function.require-once</a>]: failed to open stream: No such file or directory in /opt/share/www/lighttpd/wtorrent/lib/inc/utils.inc.php(41) : eval()'d code on line 4
PHP Fatal error:  require_once() [<a href='function.require'>function.require</a>]: Failed opening required 'home/cls/ListT.cls.php' (include_path='/opt/share/www/lightppd/wtorrent/') in /opt/share/www/lighttpd/wtorrent/lib/inc/utils.inc.php(41) : eval()'d code on line 4


I have no clue as to where to begin to fix this.
---
Using CS407
superdix
Beginner
Beginner
 
Posts: 25
Joined: Thu Jan 10, 2008 9:53 pm

Re: Howto: RTorrent with Webinterface

Postby pableu » Mon Apr 07, 2008 10:36 pm

ccmtozzi, you'll need to uncomment mod_scgi in lighttpd.conf, that should solve that problem. Forgot that in the guide, thanks for mentioning :)

Superdix, that's exactly the problem that I had once. It's got something to do with PHPs include_path, but I still don't remember how I solved it. You could try something like this:
Code: Select all
echo "include_path = .:" > /opt/etc/php.d/includepath.ini
and then restart lighttpd.

Also, create a a file phpinfo.php somewhere in /opt/share/www/lighttpd/ with the following content and access it from the webserver:
Code: Select all
<?php phpinfo();?>

Look for the line include_path, what does it say? Mine says inlude_path .: .:
pableu
Sharp
Sharp
 
Posts: 162
Joined: Wed May 09, 2007 9:33 pm

Re: Howto: RTorrent with Webinterface

Postby ccmtozzi » Mon Apr 07, 2008 10:53 pm

Thanks Plebeu, the first problem is solved! But I still have this error:

Code: Select all
2008-04-07 18:49:25: (log.c.75) server started
2008-04-07 18:49:37: (mod_fastcgi.c.1743) connect failed: Connection refused on unix:/tmp/php-fcgi.sock-0
2008-04-07 18:49:37: (mod_fastcgi.c.2912) backend died; we'll disable it for 5 seconds and send the request to another backend instead: reconnects: 0 load: 1
2008-04-07 18:49:43: (mod_fastcgi.c.2725) fcgi-server re-enabled: unix:/tmp/php-fcgi.sock-0


Any clue?
ccmtozzi
Trainee
Trainee
 
Posts: 10
Joined: Mon Apr 07, 2008 6:29 pm

Re: Howto: RTorrent with Webinterface

Postby pableu » Tue Apr 08, 2008 2:41 pm

Comtozzi, I think you'll also have to uncomment the mod_fastcgi line in lighttpd.conf. Please tell me if it helps :)
pableu
Sharp
Sharp
 
Posts: 162
Joined: Wed May 09, 2007 9:33 pm

Re: Howto: RTorrent with Webinterface

Postby ccmtozzi » Tue Apr 08, 2008 3:37 pm

Plabeu, didn`t worked, but I delete all my /opt dir and reinstall everything and now is working with a blank screen! :D and a new error...

Code: Select all
2008-04-08 11:29:35: (log.c.75) server started
2008-04-08 11:32:32: (mod_fastcgi.c.2592) FastCGI-stderr: PHP Fatal error:  Class 'SQLiteDatabase' not found in /opt/share/www/lighttpd/wtorrent/lib/cls/Web.cls.php on line 47


I had installed the SQLite, and the version is: 2.8.17

I solved this error now putting this in the php.ini:
Code: Select all
extension=sqlite.so
extension=pdo.so
ccmtozzi
Trainee
Trainee
 
Posts: 10
Joined: Mon Apr 07, 2008 6:29 pm

Re: Howto: RTorrent with Webinterface

Postby pableu » Tue Apr 08, 2008 8:16 pm

Still only a blank page? Or does it work now? :)

I'm personally very happy with RTorrent. For me, it's faster than transmission, and transmission often breaks when there's a new version in ipkg (don't know why exactly). RTorrent just works, once it's set up.
And the Webinterface is decent enough.
pableu
Sharp
Sharp
 
Posts: 162
Joined: Wed May 09, 2007 9:33 pm

Re: Howto: RTorrent with Webinterface

Postby lavers » Wed Apr 09, 2008 1:50 am

I've try on my DS-207+ (590). But didn't work for me.

I had to use the http://www.maartendamen.com/synoware/Packages repository for xlmrpc-c
uncomment the mod_fastcgi and mod_cgi line in lighttpd.conf
install SQLite

putting below two lines in php.ini
extension=sqlite.so
extension=pdo.so

At last, rTorrent can start without any problem. However, wTorrent said it can't connect to rTorrent.

Any ideas?
DS-213 / DSM 4.2 3202
lavers
Student
Student
 
Posts: 70
Joined: Wed Dec 19, 2007 11:07 am
Location: Hong Kong

Re: Howto: RTorrent with Webinterface

Postby pableu » Wed Apr 09, 2008 1:35 pm

lavers wrote:uncomment the mod_fastcgi and mod_cgi line in lighttpd.conf

mod_cgi doesn't matter for this. You'll ned mod_fastcgi and mod_scgi.

And maybe try the thing about the include_path I wrote here:
Code: Select all
echo "include_path = .:" > /opt/etc/php.d/includepath.ini
This might help. Restart lighttpd afterwards.

If you look at the console where you (re)started lighttpd, I'll give you some helpful error messages when something goes wrong.
pableu
Sharp
Sharp
 
Posts: 162
Joined: Wed May 09, 2007 9:33 pm

Re: Howto: RTorrent with Webinterface

Postby lavers » Wed Apr 09, 2008 5:04 pm

pableu wrote:
lavers wrote:uncomment the mod_fastcgi and mod_cgi line in lighttpd.conf

mod_cgi doesn't matter for this. You'll ned mod_fastcgi and mod_scgi.

And maybe try the thing about the include_path I wrote here:
Code: Select all
echo "include_path = .:" > /opt/etc/php.d/includepath.ini
This might help. Restart lighttpd afterwards.

If you look at the console where you (re)started lighttpd, I'll give you some helpful error messages when something goes wrong.


after I add mod_scgi. It works!!!
Thank you very much!
DS-213 / DSM 4.2 3202
lavers
Student
Student
 
Posts: 70
Joined: Wed Dec 19, 2007 11:07 am
Location: Hong Kong

Re: Howto: RTorrent with Webinterface

Postby cx89018 » Wed Apr 09, 2008 11:31 pm

i config all but rtorrent start i've this error

Fault occured while inserting xmlrpc call.

why????

Help

sorryu for my english :oops:
cx89018
Beginner
Beginner
 
Posts: 28
Joined: Thu Jan 10, 2008 11:50 am

Next

Return to Torrent Engines/Download Station Mods

Who is online

Users browsing this forum: No registered users and 1 guest