You are not logged in.
I am getting errors in rutorrent. I believe the major error here is rutorrent, and rtorrent need to have access to a common tmp directory, but I am doing something wrong. Please help.
[10.01.2014 15:31:15] WebUI started.
[10.01.2014 15:31:20] Webserver user doesn't have read/write/execute access to the tmp directory. ruTorrent will not work. (/tmp/rtorrent/)
[10.01.2014 15:31:20] Webserver user can't access 'stat' program. Some functionality will be unavailable.
[10.01.2014 15:31:20] rTorrent user must have read/execute access to the tmp directory. ruTorrent will not work. (/tmp/rtorrent/)
[10.01.2014 15:31:20] rss: Some functionality will be unavailable. Webserver user can't access external program (curl).
[10.01.2014 15:31:20] rutracker_check: Plugin will not work. Webserver user must have execute access to the rtorrent session directory ().
[10.01.2014 15:31:20] mediainfo: Plugin will not work. rTorrent user can't access external program (mediainfo).
[10.01.2014 15:31:20] screenshots: Plugin will not work. rTorrent user can't access external program (ffmpeg).
I mostly followed the nginx setup instructions for rutorrent.
I set up a directory in /tmp/ called /tmp/rtorrent per the comments in the AUR to fix the tmp directory error, but it did not fix it.
/etc/nginx/nginx.conf
#user html;
worker_processes 1;
error_log /usr/share/nginx/html/error.log;
#error_log logs/error.log notice;
#error_log logs/error.log info;
#pid logs/nginx.pid;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
#log_format main '$remote_addr - $remote_user [$time_local] "$request" '
# '$status $body_bytes_sent "$http_referer" '
# '"$http_user_agent" "$http_x_forwarded_for"';
#access_log logs/access.log main;
sendfile on;
#tcp_nopush on;
#keepalive_timeout 0;
keepalive_timeout 65;
#gzip on;
server {
listen 80;
server_name localhost;
#charset koi8-r;
#access_log logs/host.access.log main;
location / {
root /usr/share/webapps/rutorrent/;
index index.html index.htm index.php;
}
location /RPC2 {
include scgi_params;
scgi_pass localhost:5000;
}
location ~ \.php$ {
fastcgi_pass unix:/var/run/php-fpm/php-fpm.sock;
fastcgi_index index.php;
root /usr/share/webapps/rutorrent/;
include fastcgi.conf;
}
}
}
/etc/php/php.ini
...
open_basedir = /srv/http/:/home/:/tmp/rtorrent/:/usr/share/pear/:/usr/share/webapps/:/etc/webapps/rutorrent/conf/:/usr/share/webapps/rutorrent/php/:/usr/share/webapps/rutorrent/
...
/usr/share/webapp/rutorrent/conf/config.php
...
$tempDirectory = '/tmp/rtorrent/'; // Temp directory. Absolute path with trail slash. If null, then autodetect will be used.
/home/rtorrentuser/.rtorrent.rc
...
scgi_port = localhost:5000
This is what I am using to start rtorrent at boot.
/etc/systemd/system/rt@.service
[Unit]
Description=rTorrent
Requires=network.target local-fs.target
[Service]
Type=oneshot
RemainAfterExit=yes
KillMode=none
User=%I
ExecStart=/usr/bin/tmux new-session -s rt -n rtorrent -d rtorrent
ExecStop=/usr/bin/tmux send-keys -t rt:rtorrent C-q
WorkingDirectory=/home/%I/
[Install]
WantedBy=multi-user.target
Offline
For security reasons nginx uses PrivateTmp, meaning you cannot use /tmp to share stuff with rtorrent.
The easiest 'fix' would be to use a different directory for this; for example /usr/share/webapps/rutorrent/tmp
Offline