rTorrent + ruTorrent

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

Re: rTorrent + ruTorrent

Postby Phocea » Tue Mar 13, 2012 1:01 pm

Hello,

Does anyone know if they are any plans to update the rtorrent ipkg package in order to get magnet link support in rtorrent?

Latest rutorrent code is handling it well, but they are not working down the line.
I tried to cross compile the source but failed unfortunately :(
Phocea
I'm New!
I'm New!
 
Posts: 2
Joined: Thu Aug 11, 2011 9:20 am

Re: rTorrent + ruTorrent

Postby timurka » Tue Mar 27, 2012 4:08 pm

Hi All,

After upgrading to DSM 4 I no longer able to run lighttpd with the following error:
Code: Select all
/opt/etc/init.d/S80lighttpd restart
Starting web server: lighttpd
/opt/sbin/lighttpd: error while loading shared libraries: libpcre.so.1: cannot open shared object file: No such file or directory


Could someone point me on to where I can get this library?

Thanks.
timurka
I'm New!
I'm New!
 
Posts: 8
Joined: Tue Mar 08, 2011 5:50 am

Re: rTorrent + ruTorrent

Postby maxxfi » Wed Mar 28, 2012 6:29 am

It seems you need to install pcre IPKG.

[root@Synology /root]# ipkg list|grep pcre
pcre - 8.30-1 - Perl-compatible regular expression library
pcre - 8.13-1 -
pcre-dev - 8.30-1 - Perl-compatible regular expression library, files for development

[root@Synology /root]# ipkg files pcre
Package pcre (8.13-1) is installed on root and has the following files:
/opt/bin/pcregrep
/opt/share/doc/pcre/ChangeLog
/opt/share/doc/pcre/NEWS
/opt/bin/pcretest
/opt/lib/libpcre.so.0
/opt/lib/libpcreposix.so
/opt/lib/libpcreposix.so.0
/opt/lib/libpcrecpp.so.0.0.0
/opt/share/doc/pcre/COPYING
/opt/share/man/man1/pcretest.1
/opt/share/doc/pcre/LICENCE
/opt/share/man/man1/pcregrep.1
/opt/share/doc/pcre/README
/opt/lib/libpcreposix.so.0.0.0
/opt/lib/libpcre.so
/opt/lib/libpcre.so.0.0.1
/opt/lib/libpcrecpp.so
/opt/share/doc/pcre/AUTHORS
/opt/lib/libpcrecpp.so.0


BTW, I'm surprised it's not installed, as pcre is marked as dependency for lighttpd:
[root@Synology /root]# ipkg info lighttpd
Package: lighttpd
Version: 1.4.30-2
Depends: pcre, zlib, libstdc++, openssl, spawn-fcgi
Suggests: bzip2, e2fsprogs, libxml2, lua, sqlite, openldap-libs, mysql
Status: unknown ok not-installed
Section: net
Architecture: arm
maintainer: NSLU2 Linux <nslu2-linux@yahoogroups.com>
MD5Sum: f35c6951ae95a11431dbdc1f86a68e30
Size: 360327
Filename: lighttpd_1.4.30-2_arm.ipk
Source: http://download.lighttpd.net/lighttpd/r ... 30.tar.bz2
Description: A fast webserver with minimal memory footprint.

Package: lighttpd
Version: 1.4.29-1
Depends: pcre, zlib, libstdc++, openssl, spawn-fcgi
Suggests: bzip2, e2fsprogs, libxml2, lua, sqlite, openldap-libs, mysql
Status: install user installed
Architecture: arm
DS-411 (DSM 4.2-3202) w/ 2x WD10EFRX + 1x HD154UI
DS-106j (DSM 3.0-1357), PATA-to-SATA adapter, 2.5" HM250HI
User avatar
maxxfi
Architect
Architect
 
Posts: 4425
Joined: Sun Dec 27, 2009 12:13 pm
Location: Espoo, Finland

Re: rTorrent + ruTorrent

Postby maya » Thu Mar 29, 2012 1:56 am

Hi all!

I bought a DS412+ specifically for seeding/storing all the lossless music I download.

I'm currently in the process of installing rtorrent using the ruTorrent webUI. Everything seemed to through smoothly, as I followed this to the T:

Code: Select all
http://forum.synology.com/wiki/index.php/RTorrent_ruTorrent_HowTo


However, I'm encountering two things:

1. When I reboot the DS, it looks to take forever to do a full reboot cycle, has anyone else experienced this before with this model or another?

2. When loading ruTorrent, I get that common socket error. Do I have to leave the IPs as 127.0.0.1 or do I change them to the IP of my DS?

Thank you for any info.
maya
I'm New!
I'm New!
 
Posts: 5
Joined: Tue Mar 27, 2012 9:46 pm

Re: rTorrent + ruTorrent

Postby timurka » Thu Mar 29, 2012 3:27 pm

maxxfi wrote:It seems you need to install pcre IPKG.

[root@Synology /root]# ipkg list|grep pcre
pcre - 8.30-1 - Perl-compatible regular expression library
pcre - 8.13-1 -
pcre-dev - 8.30-1 - Perl-compatible regular expression library, files for development

[root@Synology /root]# ipkg files pcre
Package pcre (8.13-1) is installed on root and has the following files:
/opt/bin/pcregrep
/opt/share/doc/pcre/ChangeLog
/opt/share/doc/pcre/NEWS
/opt/bin/pcretest
/opt/lib/libpcre.so.0
/opt/lib/libpcreposix.so
/opt/lib/libpcreposix.so.0
/opt/lib/libpcrecpp.so.0.0.0
/opt/share/doc/pcre/COPYING
/opt/share/man/man1/pcretest.1
/opt/share/doc/pcre/LICENCE
/opt/share/man/man1/pcregrep.1
/opt/share/doc/pcre/README
/opt/lib/libpcreposix.so.0.0.0
/opt/lib/libpcre.so
/opt/lib/libpcre.so.0.0.1
/opt/lib/libpcrecpp.so
/opt/share/doc/pcre/AUTHORS
/opt/lib/libpcrecpp.so.0


BTW, I'm surprised it's not installed, as pcre is marked as dependency for lighttpd:
[root@Synology /root]# ipkg info lighttpd
Package: lighttpd
Version: 1.4.30-2
Depends: pcre, zlib, libstdc++, openssl, spawn-fcgi
Suggests: bzip2, e2fsprogs, libxml2, lua, sqlite, openldap-libs, mysql
Status: unknown ok not-installed
Section: net
Architecture: arm
maintainer: NSLU2 Linux <nslu2-linux@yahoogroups.com>
MD5Sum: f35c6951ae95a11431dbdc1f86a68e30
Size: 360327
Filename: lighttpd_1.4.30-2_arm.ipk
Source: http://download.lighttpd.net/lighttpd/r ... 30.tar.bz2
Description: A fast webserver with minimal memory footprint.

Package: lighttpd
Version: 1.4.29-1
Depends: pcre, zlib, libstdc++, openssl, spawn-fcgi
Suggests: bzip2, e2fsprogs, libxml2, lua, sqlite, openldap-libs, mysql
Status: install user installed
Architecture: arm


Thank you for your reply. I'm going to try this out today after my work and I hope it will fix the issue!
timurka
I'm New!
I'm New!
 
Posts: 8
Joined: Tue Mar 08, 2011 5:50 am

Re: rTorrent + ruTorrent

Postby maya » Fri Mar 30, 2012 6:10 am

I'm happy to report I have everything up and running for the most part. :D

However, in the ruTorrent UI, I get these two errors:

Code: Select all
[30.03.2012 00:21:33] _task: Some functionality will be unavailable. rTorrent user can't access external program (pgrep).
[30.03.2012 00:21:33] create: Some functionality will be unavailable. rTorrent user can't access external program (pgrep).


I'm also afraid to see if when rebooting the DS gets stuck, but for some crazy reason, I think it's tied to either the above errors, or more likely, maybe I have to manually shut down rtorrent before rebooting?

Fortunately, rtorrent does load when the DS does come back up. I have to force it to shut down and I really don't want to do that. :(

Again, any assistance is most appreciated.
maya
I'm New!
I'm New!
 
Posts: 5
Joined: Tue Mar 27, 2012 9:46 pm

Re: rTorrent + ruTorrent

Postby maxxfi » Fri Mar 30, 2012 9:34 am

Try to install ipkg package 'procps'.
It seems to contain the missing pgrep command.
DS-411 (DSM 4.2-3202) w/ 2x WD10EFRX + 1x HD154UI
DS-106j (DSM 3.0-1357), PATA-to-SATA adapter, 2.5" HM250HI
User avatar
maxxfi
Architect
Architect
 
Posts: 4425
Joined: Sun Dec 27, 2009 12:13 pm
Location: Espoo, Finland

Re: rTorrent + ruTorrent

Postby maya » Fri Mar 30, 2012 6:48 pm

maxxfi wrote:Try to install ipkg package 'procps'.
It seems to contain the missing pgrep command.


Thanks, maxxfi. I read this somewhere on the forum last night, installed it, and the errors went away.

Now I'm down to only two more to squash.

This is my only error in ruTorrent:

Code: Select all
[30.03.2012 03:02:33] mediainfo: Plugin will not work. rTorrent user can't access external program (mediainfo).


And I still cannot reboot the DS with ruTorrent running. This is the strangest of all the errors.
maya
I'm New!
I'm New!
 
Posts: 5
Joined: Tue Mar 27, 2012 9:46 pm

Re: rTorrent + ruTorrent

Postby timurka » Sun Apr 01, 2012 10:43 pm

maxxfi wrote:It seems you need to install pcre IPKG.

[root@Synology /root]# ipkg list|grep pcre
pcre - 8.30-1 - Perl-compatible regular expression library
pcre - 8.13-1 -
pcre-dev - 8.30-1 - Perl-compatible regular expression library, files for development

[root@Synology /root]# ipkg files pcre
Package pcre (8.13-1) is installed on root and has the following files:
/opt/bin/pcregrep
/opt/share/doc/pcre/ChangeLog
/opt/share/doc/pcre/NEWS
/opt/bin/pcretest
/opt/lib/libpcre.so.0
/opt/lib/libpcreposix.so
/opt/lib/libpcreposix.so.0
/opt/lib/libpcrecpp.so.0.0.0
/opt/share/doc/pcre/COPYING
/opt/share/man/man1/pcretest.1
/opt/share/doc/pcre/LICENCE
/opt/share/man/man1/pcregrep.1
/opt/share/doc/pcre/README
/opt/lib/libpcreposix.so.0.0.0
/opt/lib/libpcre.so
/opt/lib/libpcre.so.0.0.1
/opt/lib/libpcrecpp.so
/opt/share/doc/pcre/AUTHORS
/opt/lib/libpcrecpp.so.0


BTW, I'm surprised it's not installed, as pcre is marked as dependency for lighttpd:
[root@Synology /root]# ipkg info lighttpd
Package: lighttpd
Version: 1.4.30-2
Depends: pcre, zlib, libstdc++, openssl, spawn-fcgi
Suggests: bzip2, e2fsprogs, libxml2, lua, sqlite, openldap-libs, mysql
Status: unknown ok not-installed
Section: net
Architecture: arm
maintainer: NSLU2 Linux <nslu2-linux@yahoogroups.com>
MD5Sum: f35c6951ae95a11431dbdc1f86a68e30
Size: 360327
Filename: lighttpd_1.4.30-2_arm.ipk
Source: http://download.lighttpd.net/lighttpd/r ... 30.tar.bz2
Description: A fast webserver with minimal memory footprint.

Package: lighttpd
Version: 1.4.29-1
Depends: pcre, zlib, libstdc++, openssl, spawn-fcgi
Suggests: bzip2, e2fsprogs, libxml2, lua, sqlite, openldap-libs, mysql
Status: install user installed
Architecture: arm


Thank you - this fixed the issue for me!!!
timurka
I'm New!
I'm New!
 
Posts: 8
Joined: Tue Mar 08, 2011 5:50 am

Re: rTorrent + ruTorrent

Postby maya » Wed Apr 04, 2012 4:34 am

I'm slightly bummed.

Due to the fact Synology does not support third-party modifications with DSM 4.0 and later, and me not really being able to configure my DS412+ with rTorrent and ruTorrent as I would like to, I have to return it. :(

I've also been noticing many retailers no longer carrying the DS412+, and many people are reporting problems, especially with what they refer to as the "blinking blue light of death." I don't know if that was the same issue I had, but apparently right now is not the right time to invest in this particular NAS.

I'm currently playing around with Ubuntu Linux in a VM to see if I can configure rTorrent and ruTorrent. If successful, I'll look into mini, Linux-based PC options.
maya
I'm New!
I'm New!
 
Posts: 5
Joined: Tue Mar 27, 2012 9:46 pm

Re: rTorrent + ruTorrent

Postby marct5 » Tue Apr 10, 2012 5:39 pm

Dear all,

Since installing DSM4 I'm having a problem running rutorrent. I get these errors:
[09.04.2012 16:12:18] WebUI started.
[09.04.2012 16:12:19] Bad response from server: (12029 [null,getplugins])
[09.04.2012 16:12:19] Bad response from server: (12029 [error,getplugins])
[09.04.2012 16:12:20] Bad response from server: (12029 [null,getuisettings])
[09.04.2012 16:12:20] Bad response from server: (12029 [error,getuisettings])

I think I found the problem, because the mediaserver in DSM4 installs its own lighttpd.
After a reboot, this version of light is running:
ps | grep light
8243 root 9440 S /var/packages/MediaServer/target/sbin/lighttpd -f /var

Whereas I need this one:
ps | grep light
30662 root 5860 S /opt/sbin/lighttpd -f /opt/etc/lighttpd/lighttpd.conf

I can of course restart the one I installed using the rutorrent wiki (the one in /opt/bin) and after that rutorrent is working like a charm BUT than my mediaserver doesn't work anymore!

Is there something I can do to have them both funtioning properly?
Thanks in advance for the help!
marct5
I'm New!
I'm New!
 
Posts: 2
Joined: Mon Dec 13, 2010 7:01 pm

Re: rTorrent + ruTorrent

Postby enannan » Mon Apr 16, 2012 6:46 pm

Hi,

I have a new 212j with DSM 4.0 on which I'm trying to install rTorrent and ruTorrent, but I can't get it to work.

I can get through the whole installation guide on the wiki, but when I start ruTorrent it says "Torrent list not yet available, connection to rTorrent not established".

Also I seem to get no screen working:

Code: Select all
DiskStation> screen -list
No Sockets found in /tmp/screens/S-root.


The only error message that I could find during installation was a conflict between wget and wget-ssl.

It seems that quite a few have had similar problems, but I haven't found any solutions that worked for me so far.
enannan
I'm New!
I'm New!
 
Posts: 1
Joined: Mon Apr 16, 2012 8:42 am

Re: rTorrent + ruTorrent

Postby MaximumFish » Thu May 24, 2012 1:14 am

Got this installed last night on my DS1812+. I skipped the xmlrpc-c install as the instructions are for a really old version of DSM and it worked without a hitch. Did have to install optware-devel to get ash on there though.

So far I'm impressed with the speed of it, and it seems to have most, if not all of the features I need. I do have one question though...

Why do we run this from lighttpd? DSM has a built-in web server (running from Apache?) so why not just use that? If that's not possible, then is it possible to have the DSM webserver serve requests to lighttpd? EG. I browse to http://<myip>/rutorrent and it ends up at the right place without going via port 8081.

Thanks for any advice!
MaximumFish
Rookie
Rookie
 
Posts: 35
Joined: Wed Mar 28, 2012 3:20 am

Re: rTorrent + ruTorrent

Postby MaximumFish » Sat May 26, 2012 2:53 pm

maya wrote:I'm also afraid to see if when rebooting the DS gets stuck, but for some crazy reason, I think it's tied to either the above errors, or more likely, maybe I have to manually shut down rtorrent before rebooting?

Fortunately, rtorrent does load when the DS does come back up. I have to force it to shut down and I really don't want to do that. :(

Again, any assistance is most appreciated.


I have the same issue. Even if I manually kill rTorrent beforehand, the DS will get stuck when trying to shutdown or reboot and I have to turn it off manually by holding the power button. Maybe it's lighttpd getting stuck instead? All I know is that this only started occurring since installing rTorrent.

I'm just glad the NAS is generally left on 24/7 so this shouldn't cause too much of an issue. Just annoying when I do need to reboot it for any reason.
MaximumFish
Rookie
Rookie
 
Posts: 35
Joined: Wed Mar 28, 2012 3:20 am

Re: rTorrent + ruTorrent

Postby TreeBeard » Mon Jun 04, 2012 6:59 pm

enannan wrote:Hi,

I have a new 212j with DSM 4.0 on which I'm trying to install rTorrent and ruTorrent, but I can't get it to work.

I can get through the whole installation guide on the wiki, but when I start ruTorrent it says "Torrent list not yet available, connection to rTorrent not established".

Also I seem to get no screen working:

Code: Select all
DiskStation> screen -list
No Sockets found in /tmp/screens/S-root.


The only error message that I could find during installation was a conflict between wget and wget-ssl.

It seems that quite a few have had similar problems, but I haven't found any solutions that worked for me so far.



Try starting rtorrent manually:

Code: Select all
rtorrent -n -o import=/opt/etc/rtorrent.conf


If there is an issue masked by screen, this is a good way of checking stderr. Also, check config.php in rutorrent to ensure the port is correct. The logging section of the rutorrent web gui will suggest that as well.

If you want to start screen, then start rtorrent. Type:

Code: Select all
screen

hit return a couple times until you see a prompt then:

Code: Select all
rtorrent -n -o import=/opt/etc/rtorrent.conf


To exit screen (while keeping rtorrent active) type: Ctrl+a, d

Also, system logs in
Code: Select all
/var/log/messages
can be useful as well.
TreeBeard
I'm New!
I'm New!
 
Posts: 9
Joined: Wed Dec 15, 2010 6:12 pm

PreviousNext

Return to Torrent Engines/Download Station Mods

Who is online

Users browsing this forum: No registered users and 3 guests