Haha, this only gets better: the torrents get saved in random folders! For example, a torrent
user1 adds into his watch folder appears in his rutorrent interface, but ends up in
user2 torrents folder and gets unpacked into
user5 unpack folder!
This is the plugins playing up and getting the users messed up (autotools & unpack), because if I check the individual rtorrent instances, everything is fine within them.
wonslung, I have set up rtorrent + libtorrent & rutorrent + the entire stack via Chef on a brand new Lucid Lynx 64bit.
rutorrent is from SVN, it's set up in
/var/www/rutorrent. All users have their own folders in
/var/www/rutorrent/conf/users/user1 etc. This is the apache config:
Code:
<IfModule mod_ssl.c>
<VirtualHost _default_:443>
ServerAdmin webmaster@localhost
DocumentRoot /var/www
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /rutorrent>
Options FollowSymLinks
AllowOverride None
</Directory>
<Location /rutorrent>
AuthType Digest
AuthName "Authorized"
AuthDigestDomain /var/www/rutorrent/ http://<%= @node[:ipaddress] %>/rutorrent
AuthDigestProvider file
AuthUserFile /etc/apache2/.passwds
Require valid-user
SetEnv R_ENV "/var/www/rutorrent"
</Location>
ErrorLog /var/log/apache2/error.log
LogLevel warn
CustomLog /var/log/apache2/ssl_access.log combined
SSLEngine on
SSLCertificateFile /etc/ssl/certs/ssl-cert-snakeoil.pem
SSLCertificateKeyFile /etc/ssl/private/ssl-cert-snakeoil.key
<FilesMatch "\.(cgi|html|shtml|phtml|php)$">
SSLOptions +StdEnvVars
</FilesMatch>
BrowserMatch "MSIE [2-6]" \
nokeepalive ssl-unclean-shutdown \
downgrade-1.0 force-response-1.0
# MSIE 7 and newer should be able to use keepalive
BrowserMatch "MSIE [17-9]" ssl-unclean-shutdown
</VirtualHost>
</IfModule>
Of course, all SCGI mounts (RPC0, RPC1 etc.) are correct and config.ini is correct for each user. The SCGI mounts are also configured in Apache.
Plugins have been installed from here:
http://rutorrent.googlecode.com/files/plugins-3.1.tar.gz.
What I would like to know, is how does rutorrent know which user is logged in? I am asking this, because if I log in with
user1, and I check rutorrent settings, I can see that the Autotools plugin is using the following path for finished downloads
/home/user2/torrents, but as soon as I try to select a different path, it automatically gets corrected to
/home/user1/torrents. Same for the "AutoWatch" feature.
If I go to the Unpack plugin settings (I'm still logged in as
user1), I get the following path:
/home/user5/unpack.