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 ruppo » Thu Mar 24, 2011 8:28 pm

What I can see I haven't got any errormsgs during the install, but when I try "screen -list" after I have restarted rTorrent it says "No Sockets found in /tmp/screens/S-root." How come and what to do?

It seeems like I have got everything else to work except I also get the following in the Logger when I go to http://192.168.0.6:8081/rutorrent/
[24.03.2011 20:24:32] WebUI started.
[24.03.2011 20:24:32] Bad response from server: (500 [error,getplugins])
[24.03.2011 20:24:32] Bad response from server: (500 [error,getuisettings])

Hope anyone can help me out so I get it to work...
ruppo
I'm New!
I'm New!
 
Posts: 9
Joined: Wed Mar 02, 2011 1:33 pm

Re: rTorrent + ruTorrent

Postby SABRE » Fri Mar 25, 2011 10:02 pm

SchattenMann wrote:for those looking for a way to protect your ruTorrent here it is

edit lighttpd configure file /opt/etc/lighttpd/lighttpd.conf:

make sure mod_auth is enabled (not commented)

comment out # or add the following

Code: Select all
auth.debug = 2
auth.backend = "plain"
auth.backend.plain.userfile = "/opt/etc/lighttpd/lighttpd.user"

auth.require = ( "/rutorrent/" =>
(
"method" => "basic",
"realm" => "Password protected area",
"require" => "user=<username>"
)
)


create the password file

Code: Select all
nano /opt/etc/lighttpd/lighttpd.user


Add username:password

Code: Select all
<username>:<password>


Thank you, thank you very much :D

I'm a total noob in linux, but I managed to do this. :mrgreen:
SABRE
I'm New!
I'm New!
 
Posts: 5
Joined: Tue Dec 28, 2010 1:09 pm

Re: rTorrent + ruTorrent

Postby Kryx » Sat Mar 26, 2011 1:33 am

Ok so new user:

This guide is not working on my new DS211j. I set it up all the way through and couldn't get rtorrent to start so I redid it all.

I had issues with installing optware-devel both times, but after removing and installing wget and wget-ssl several times while trying to install it I finally got it to go through both times.

Everything works up until the point of:
You can check if rtorrent is running on screen by:
getting the screens list with:
screen -list
switching to the rtorrent screen. Return with ctrl+a+d.
screen -r

screen -list respond with "No Sockets found in /tmp/screens/S-root."
Which leads me to believe the d_start() function inside of S99rtorrent is not being run. It is not running the su command seemingly. I can create a screen and then it will show, but after restarting rtorrent no screen is shown.

I went ahead and finished the tutorial the first time around, but it didn't work in the end because of this error. Please help me resolve it.
Kryx
I'm New!
I'm New!
 
Posts: 4
Joined: Fri Mar 25, 2011 11:56 pm

Re: rTorrent + ruTorrent

Postby Paktas » Sat Mar 26, 2011 8:23 pm

Try runnin rtorrent manually without any screens. See what happens.

Code: Select all
rtorrent -n -o import=/opt/etc/rtorrent.conf
Synology DS409 + 4 x WD CAVIAR GREEN 2TB
Paktas
Experienced
Experienced
 
Posts: 113
Joined: Wed Feb 17, 2010 10:45 pm
Location: Vilnius, Lithuania

Re: rTorrent + ruTorrent

Postby ruppo » Sat Mar 26, 2011 10:52 pm

Paktas wrote:Try runnin rtorrent manually without any screens. See what happens.

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


I have the same problem as Kryx.

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


I get the following error:
Code: Select all
rtorrent: Fault occured while inserting xmlrpc call.


What can be wrong and how do I fix it?
ruppo
I'm New!
I'm New!
 
Posts: 9
Joined: Wed Mar 02, 2011 1:33 pm

Re: rTorrent + ruTorrent

Postby SchattenMann » Sat Mar 26, 2011 11:21 pm

doesn't seem to me you've read the wiki...

"rtorrent: Fault occured while inserting xmlrpc call." - (re)install XMLRPC


http://forum.synology.com/wiki/index.php/RTorrent_ruTorrent_HowTo#Troubleshooting
SchattenMann
Beginner
Beginner
 
Posts: 29
Joined: Mon Feb 07, 2011 11:22 am

Re: rTorrent + ruTorrent

Postby ruppo » Sat Mar 26, 2011 11:39 pm

SchattenMann wrote:doesn't seem to me you've read the wiki...

"rtorrent: Fault occured while inserting xmlrpc call." - (re)install XMLRPC


http://forum.synology.com/wiki/index.php/RTorrent_ruTorrent_HowTo#Troubleshooting


Ahh, my mistake. But now when I try to reinstall xmlrpc I get new erros, as follows:
Code: Select all
Synology> ipkg install gcc svn optware-devel libcurl-dev
Package gcc (4.2.3-1) installed in root is up to date.
Package svn (1.6.15-1) installed in root is up to date.
Installing optware-devel (6.8-10) to root...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/unstable/optware-devel_6.8-10_arm.ipk
Installing wget-ssl (1.12-2) to root...
Package libcurl-dev (7.21.3-1) installed in root is up to date.
Nothing to be done
Successfully terminated.
Collected errors:
ERROR: The following packages conflict with wget-ssl:
    wget


So now I don't know what to do instead. My unix skills ain't that good. :) How do I fix this?
ruppo
I'm New!
I'm New!
 
Posts: 9
Joined: Wed Mar 02, 2011 1:33 pm

Re: rTorrent + ruTorrent

Postby Kryx » Sun Mar 27, 2011 6:57 am

Ruppo I had the same issue. That's why I said this guide does not work with the new systems. to get it to install optware-devel you need to remove wget and install wget-ssl and then remove wget-ssl and install wget and then remove wget and install wget-ssl. each time in between trying to install optware-devel. It worked in the end.

Ok so the screen -list option shows choices after reinstalling xmlrpc-c AGAIN after doing all the torrent setup (up til lighttpd). I will update later after I finish the rest of the setup to see if it'll go all the way.
Kryx
I'm New!
I'm New!
 
Posts: 4
Joined: Fri Mar 25, 2011 11:56 pm

Re: rTorrent + ruTorrent

Postby Kryx » Sun Mar 27, 2011 7:48 am

Ok so it looks like everything works after I fixed what I posted above.

I install all of the plugins and would like to use many of them, but am now having the following issues when viewing rutorrent in my browser:
mediainfo: Plugin will not work. Web-server user can't access external program (mediainfo).
create: Some functionality will be unavailable. rTorrent's user can't access external program (pgrep).
Unpack plugin: rTorrent's user can't access unrar program.
Unpack plugin: rTorrent's user can't access unzip program.

I assume this is a permission's issue. How can I fix it?
Kryx
I'm New!
I'm New!
 
Posts: 4
Joined: Fri Mar 25, 2011 11:56 pm

Re: rTorrent + ruTorrent

Postby Kryx » Sun Mar 27, 2011 8:33 am

Blah this whole approval process is annoying. I can't edit old posts. If a moderator would like to combine these that would be lovely.

Ok so everything up and running. Shared folder works perfectly. Rss works great, scheduler, etc. All the features of uTorrent and more. So awesome!!

I fixed the errors as such:
Unzip/unrar: ipkg install unzip unrar
pgrep: ipkg install procps (Not essential - for creating torrents)
mediainfo: no fix yet - anyone?
Kryx
I'm New!
I'm New!
 
Posts: 4
Joined: Fri Mar 25, 2011 11:56 pm

Re: rTorrent + ruTorrent

Postby ruppo » Thu Mar 31, 2011 12:00 pm

SchattenMann wrote:for those looking for a way to protect your ruTorrent here it is

edit lighttpd configure file /opt/etc/lighttpd/lighttpd.conf:

make sure mod_auth is enabled (not commented)

comment out # or add the following

Code: Select all
auth.debug = 2
auth.backend = "plain"
auth.backend.plain.userfile = "/opt/etc/lighttpd/lighttpd.user"

auth.require = ( "/rutorrent/" =>
(
"method" => "basic",
"realm" => "Password protected area",
"require" => "user=<username>"
)
)


create the password file

Code: Select all
nano /opt/etc/lighttpd/lighttpd.user


Add username:password

Code: Select all
<username>:<password>

I don't get it to really work.

I think I'm doing wrong when I edit lighttpd.user.

My lighttpd.user now looks like (just en example):
Code: Select all
root:123456

is this right or should it be:
Code: Select all
<root>:<123456>

Because as it's now, I get the login screen, but when I try to login it just pops up again, like I have the wrong username or pwd.

//Robert
ruppo
I'm New!
I'm New!
 
Posts: 9
Joined: Wed Mar 02, 2011 1:33 pm

Re: rTorrent + ruTorrent

Postby molecule » Wed Apr 20, 2011 5:23 am

I have a DS1511+ and successfully installed rtorrent. My issue is that when I try to save the .torrent file after I create the torrent via the "Create Torrent..." button I get an error. "Error the server did not respond." Any ideas?

thanks
molecule
I'm New!
I'm New!
 
Posts: 7
Joined: Tue Mar 29, 2011 8:59 pm

Re: rTorrent + ruTorrent

Postby molecule » Wed Apr 20, 2011 4:03 pm

Ruppo,
I tried implementing this fix as well and am having the same issue you are: When I go to the web interface for rTorrent I get prompted for the username and password, but it does not accept the credentials I enter. I've tried both the "username:password" and "<username>:<password>" variations to no avail.

Anyone know of a way to do this? I can't leave my entire torrent list / setup wide open on the internet...

ruppo wrote:
SchattenMann wrote:for those looking for a way to protect your ruTorrent here it is

edit lighttpd configure file /opt/etc/lighttpd/lighttpd.conf:

make sure mod_auth is enabled (not commented)

comment out # or add the following

Code: Select all
auth.debug = 2
auth.backend = "plain"
auth.backend.plain.userfile = "/opt/etc/lighttpd/lighttpd.user"

auth.require = ( "/rutorrent/" =>
(
"method" => "basic",
"realm" => "Password protected area",
"require" => "user=<username>"
)
)


create the password file

Code: Select all
nano /opt/etc/lighttpd/lighttpd.user


Add username:password

Code: Select all
<username>:<password>

I don't get it to really work.

I think I'm doing wrong when I edit lighttpd.user.

My lighttpd.user now looks like (just en example):
Code: Select all
root:123456

is this right or should it be:
Code: Select all
<root>:<123456>

Because as it's now, I get the login screen, but when I try to login it just pops up again, like I have the wrong username or pwd.

//Robert
molecule
I'm New!
I'm New!
 
Posts: 7
Joined: Tue Mar 29, 2011 8:59 pm

Re: rTorrent + ruTorrent

Postby ruppo » Wed Apr 20, 2011 10:09 pm

Hi!

I have some questions about the settings of my rtorrent.conf, and could really need some help with that.
My biggest concern is the speed when seeding. I know I don't have problems with my router and ports not being open, because I have had the same port settings earlier on uTorrent on my computer, and then I didn't have any problems with speed.

I can add that I have a 100/100 Mbit connection, so low speeds shouldn't be any problem.

If I check under the settings in ruTorrent I can set some properties under "Other limitations" on the Connections tab. Should I change anything there, and what are the proper settings in the conf file in that case?

Hope that someone understands my problems and are able to help me out. I have pasted rtorrent.conf below, so you can see what settings I have atm.

Code: Select all
# Minumum and maximum amount of peers to connect per torrent, if available.
min_peers = 1
max_peers = 200

# Same as above but for seeding completed torrents (-1 = same as downloading)
min_peers_seed = 1
max_peers_seed = 1000

# Maximum number of simultanious uploads per torrent.
max_uploads = 40

# Global up- and download rate in KiB. "0" for unlimited.
download_rate = 0
upload_rate = 10000

# Default directory to save downloaded files. Note it doesn't support
# space yet.
directory = /volume1/Incoming/

# Watch a directory for new torrents, and stop those that have been deleted.
schedule = watch_directory,5,5,load_start=/opt/share/torrent/dl/*.torrent
schedule = untied_directory,5,5,stop_untied=

# Close torrents when diskspace is low.
#schedule = low_diskspace,5,60,close_low_diskspace=100M

# Default session directory. Make sure you don't run multiple instance
# of rtorrent using the same session directory. Perhaps using a
# relative path?
session = /opt/share/torrent/session

# The ip address reported to the tracker.
#ip = rakshasa

# The ip address the listening socket and outgoing connections is
# bound to.
#bind = rakshasa

# Port range to use for listening.
port_range = 25864-25864

# Start opening ports at a random position within the port range.
port_random = no

# Check hash for finished torrents. Might be usefull until the bug is       
# fixed that causes lack of diskspace not to be properly reported.           
check_hash = yes                                                             
                                                                             
# Set whetever the client should try to connect to UDP trackers.             
use_udp_trackers = yes                                                     
                                                                             
# Alternative calls to bind and ip that should handle dynamic ip's.         
#schedule = ip_tick,0,1800,ip=rakshasa                                       
#schedule = bind_tick,0,1800,bind=rakshasa                                   
                                                                             
#                                                                           
# Do not modify the following parameters unless you know what you're doing.
#                                                                           
                                                                           
# Hash read-ahead controls how many MB to request the kernel to read       
# ahead. If the value is too low the disk may not be fully utilized,       
# while if too high the kernel might not be able to keep the read           
# pages in memory thus end up trashing.                                     
#hash_read_ahead = 10                                                       
                                                                           
# Interval between attempts to check the hash, in milliseconds.             
#hash_interval = 100                                                       
                                                                           
# Number of attempts to check the hash while using the mincore status,     
# before forcing. Overworked systems might need lower values to get a       
# decent hash checking rate.                                               
#hash_max_tries = 10                                                       
                                                                           
# Max number of files to keep open simultaniously.                         
max_open_files = 512                                                     
                                                                           
# Number of sockets to simultaneously keep open.                           
#max_open_sockets = <no default>                                           
                                                                           
# Example of scheduling commands: Switch between two ip's every 5         
# seconds.                                                                 
#schedule = "ip_tick1,5,10,ip=torretta"                                   
#schedule = "ip_tick2,10,10,ip=lampedusa"                                 
                                                                           
# Remove a scheduled event.                                               
#schedule_remove = "ip_tick1"                                             
                                                                           
# Stop torrents when reaching upload ratio in percent,                     
# when also reaching total upload in bytes, or when                       
# reaching final upload ratio in percent.                                 
# example: stop at ratio 2.0 with at least 200 MB uploaded, or else ratio 20.0
#schedule = ratio,60,60,"stop_on_ratio=200,200M,2000"                         
#schedule = ratio,30,60,stop_on_ratio=200

# Encryption options, set to none (default) or any combination of the following:
# allow_incoming, try_outgoing, require, require_RC4, enable_retry, prefer_plaintext
#                                                                                   
# The example value allows incoming encrypted connections, starts unencrypted       
# outgoing connections but retries with encryption if they fail, preferring         
# plaintext to RC4 encryption after the encrypted handshake                         
#                                                                                   
# encryption = allow_incoming,enable_retry,prefer_plaintext                         
                                                                                   
# Enable DHT support for trackerless torrents or when all trackers are down.       
# May be set to "disable" (completely disable DHT), "off" (do not start DHT),       
# "auto" (start and stop DHT as needed), or "on" (start DHT immediately).           
# The default is "off". For DHT to work, a session directory must be defined.       
#                                                                                   
# dht = auto                                                                       
                                                                                   
# UDP port to use for DHT.                                                         
#                                                                                   
# dht_port = 6881                                                                   
                                                                                   
# Enable peer exchange (for torrents not marked private)                           
#                                                                                   
peer_exchange = no                                                                 
                                                                                   
#                                                                                   
# Do not modify the following parameters unless you know what you're doing.         
#                                                                                   
scgi_port = 127.0.0.1:5050                                                         
encoding_list = UTF-8
ruppo
I'm New!
I'm New!
 
Posts: 9
Joined: Wed Mar 02, 2011 1:33 pm

Re: rTorrent + ruTorrent - lighttpd password

Postby Paktas » Thu Apr 21, 2011 7:56 am

Regards to lighttpd passwords refer to manual of lighttpd at http://redmine.lighttpd.net/wiki/1/Docs:ModAuth

Not sure if this is the correct structure, but in it's simplest way, according to manual above, it should be something like this:

/opt/etc/lighttpd/lighttpd.conf
Code: Select all
auth.backend = "plain"
auth.backend.plain.userfile = "/opt/etc/lighttpd/lighttpd.user"

auth.require = ( "/rutorrent/" =>
(
"method" => "basic",
"realm" => "Password protected area",
"require" => "valid-user"
)
)


/opt/etc/lighttpd/lighttpd.user
Code: Select all
plaintextuser1:plaintextpassword1
plaintextuser2:plaintextpassword2


Be sure to restart lighttpd after the changes above. Would be great if someone posts if this works (or the working config).
Synology DS409 + 4 x WD CAVIAR GREEN 2TB
Paktas
Experienced
Experienced
 
Posts: 113
Joined: Wed Feb 17, 2010 10:45 pm
Location: Vilnius, Lithuania

PreviousNext

Return to Torrent Engines/Download Station Mods

Who is online

Users browsing this forum: No registered users and 0 guests