Unfortunately I'm stuck with error message "Bad link to rTorrent. Check if it is really running. Check $scgi_port and $scgi_host settings in config.php and scgi_port in rTorrent configuration file."
Yes, rtorrent is running and restarted, I've had similar problem before and after I changed plugins.ini [rpc] part, Rutorrent miracuously started. Not this time, I'm out of ideas, so I'm asking for help.
For example only plugins _getdir, cpuload, diskspace and rss can be seen on rutorrent page, although all plugins are enabled.
My quess is that this has something to do with Arch Linux rolling release, something changed but what and how to debug this issue?
Code:
// configuration parameters
// for snoopy client
@define('HTTP_USER_AGENT', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; pl; rv:1.9) Gecko/2008052906 Firefox/3.0', true);
@define('HTTP_TIME_OUT', 30, true); // in seconds
@define('HTTP_USE_GZIP', true, true);
@define('RPC_TIME_OUT', 5, true); // in seconds
@define('LOG_RPC_CALLS', false, true);
@define('LOG_RPC_FAULTS', true, true);
// for php
@define('PHP_USE_GZIP', false, true);
@define('PHP_GZIP_LEVEL', 2, true);
$do_diagnostic = true;
$log_file = '/var/tmp/errors.log'; // path to log file (comment or make empty to disable logging)
$saveUploadedTorrents = true;
$topDirectory = '/'; // Upper available directory. Absolute path with trail slash.
$forbidUserSettings = false;
$scgi_port = 0;
$scgi_host = "unix:///home/dot/rtorrent/.socket/rpc.socket";
$XMLRPCMountPoint = "/RPC2"; // DO NOT DELETE THIS LINE!!! DO NOT COMMENT THIS LINE!!!
$pathToExternals = array(
"php" => '/usr/bin/php', // Something like /usr/bin/php. If empty, will be founded in PATH.
"curl" => '/usr/bin/curl', // Something like /usr/bin/curl. If empty, will be founded in PATH.
"gzip" => '/bin/gzip', // Something like /usr/bin/gzip. If empty, will be founded in PATH.
"id" => '/usr/bin/id', // Something like /usr/bin/id. If empty, will be founded in PATH.
"stat" => '/usr/bin/stat', // Something like /usr/bin/stat. If empty, will be founded in PATH.
);
snippet of .rtorrent.rc
Code:
schedule = chmod,0,0,"execute=chmod,777,/home/dot/rtorrent/.socket/rpc.socket"
scgi_local = /home/dot/rtorrent/.socket/rpc.socket
Php version is 5.3.4
I'm using Cherokee 1.0.15
Code: [Select]
vserver!2!collector!enabled = 1
vserver!2!directory_index = index.html,index.php
vserver!2!document_root = /srv/http/rutorrent/
vserver!2!error_writer!filename = /var/tmp/rutorrent-error.log
vserver!2!error_writer!type = file
vserver!2!nick = rutorrent
vserver!2!rule!50!document_root = /srv/http/rutorrent/
vserver!2!rule!50!handler = scgi
vserver!2!rule!50!handler!balancer = round_robin
vserver!2!rule!50!handler!balancer!source!10 = 11
vserver!2!rule!50!handler!balancer!source!20 = 1
vserver!2!rule!50!match = request
vserver!2!rule!50!match!request = /RPC2
vserver!2!rule!40!encoder!gzip = allow
vserver!2!rule!40!handler = fcgi
vserver!2!rule!40!handler!balancer = round_robin
vserver!2!rule!40!handler!balancer!source!10 = 1
vserver!2!rule!40!handler!balancer!source!20 = 11
vserver!2!rule!40!handler!error_handler = 1
vserver!2!rule!40!match = extensions
vserver!2!rule!40!match!extensions = php,html
vserver!2!rule!40!match!final = 1
vserver!2!rule!40!timeout = 20
vserver!2!rule!20!document_root = /usr/share/cherokee/icons
vserver!2!rule!20!handler = file
vserver!2!rule!20!match = directory
vserver!2!rule!20!match!directory = /icons
vserver!2!rule!10!document_root = /srv/http/rutorrent/
vserver!2!rule!10!handler = common
vserver!2!rule!10!handler!allow_dirlist = 1
vserver!2!rule!10!handler!allow_pathinfo = 1
vserver!2!rule!10!match = default
source!1!env!PHP_FCGI_CHILDREN = 5
source!1!env!PHP_FCGI_MAX_REQUESTS = 490
source!1!env_inherited = 1
source!1!group = http
source!1!host = 127.0.0.1:47990
source!1!interpreter = /usr/bin/php-cgi -b 127.0.0.1:47990
source!1!nick = PHP Interpreter
source!1!type = interpreter
source!1!user = dot
source!11!env_inherited = 1
source!11!group = http
source!11!host = /home/dot/rtorrent/.socket/rpc.socket
source!11!interpreter = /bin/sh
source!11!nick = rTorrent XMLRPC
source!11!type = interpreter
source!11!user = dot
Any ideas appreciated, thanks for reading!
Yes, rtorrent is running and restarted, I've had similar problem before and after I changed plugins.ini [rpc] part, Rutorrent miracuously started. Not this time, I'm out of ideas, so I'm asking for help.
For example only plugins _getdir, cpuload, diskspace and rss can be seen on rutorrent page, although all plugins are enabled.
My quess is that this has something to do with Arch Linux rolling release, something changed but what and how to debug this issue?
Code:
// configuration parameters
// for snoopy client
@define('HTTP_USER_AGENT', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; pl; rv:1.9) Gecko/2008052906 Firefox/3.0', true);
@define('HTTP_TIME_OUT', 30, true); // in seconds
@define('HTTP_USE_GZIP', true, true);
@define('RPC_TIME_OUT', 5, true); // in seconds
@define('LOG_RPC_CALLS', false, true);
@define('LOG_RPC_FAULTS', true, true);
// for php
@define('PHP_USE_GZIP', false, true);
@define('PHP_GZIP_LEVEL', 2, true);
$do_diagnostic = true;
$log_file = '/var/tmp/errors.log'; // path to log file (comment or make empty to disable logging)
$saveUploadedTorrents = true;
$topDirectory = '/'; // Upper available directory. Absolute path with trail slash.
$forbidUserSettings = false;
$scgi_port = 0;
$scgi_host = "unix:///home/dot/rtorrent/.socket/rpc.socket";
$XMLRPCMountPoint = "/RPC2"; // DO NOT DELETE THIS LINE!!! DO NOT COMMENT THIS LINE!!!
$pathToExternals = array(
"php" => '/usr/bin/php', // Something like /usr/bin/php. If empty, will be founded in PATH.
"curl" => '/usr/bin/curl', // Something like /usr/bin/curl. If empty, will be founded in PATH.
"gzip" => '/bin/gzip', // Something like /usr/bin/gzip. If empty, will be founded in PATH.
"id" => '/usr/bin/id', // Something like /usr/bin/id. If empty, will be founded in PATH.
"stat" => '/usr/bin/stat', // Something like /usr/bin/stat. If empty, will be founded in PATH.
);
snippet of .rtorrent.rc
Code:
schedule = chmod,0,0,"execute=chmod,777,/home/dot/rtorrent/.socket/rpc.socket"
scgi_local = /home/dot/rtorrent/.socket/rpc.socket
Php version is 5.3.4
I'm using Cherokee 1.0.15
Code: [Select]
vserver!2!collector!enabled = 1
vserver!2!directory_index = index.html,index.php
vserver!2!document_root = /srv/http/rutorrent/
vserver!2!error_writer!filename = /var/tmp/rutorrent-error.log
vserver!2!error_writer!type = file
vserver!2!nick = rutorrent
vserver!2!rule!50!document_root = /srv/http/rutorrent/
vserver!2!rule!50!handler = scgi
vserver!2!rule!50!handler!balancer = round_robin
vserver!2!rule!50!handler!balancer!source!10 = 11
vserver!2!rule!50!handler!balancer!source!20 = 1
vserver!2!rule!50!match = request
vserver!2!rule!50!match!request = /RPC2
vserver!2!rule!40!encoder!gzip = allow
vserver!2!rule!40!handler = fcgi
vserver!2!rule!40!handler!balancer = round_robin
vserver!2!rule!40!handler!balancer!source!10 = 1
vserver!2!rule!40!handler!balancer!source!20 = 11
vserver!2!rule!40!handler!error_handler = 1
vserver!2!rule!40!match = extensions
vserver!2!rule!40!match!extensions = php,html
vserver!2!rule!40!match!final = 1
vserver!2!rule!40!timeout = 20
vserver!2!rule!20!document_root = /usr/share/cherokee/icons
vserver!2!rule!20!handler = file
vserver!2!rule!20!match = directory
vserver!2!rule!20!match!directory = /icons
vserver!2!rule!10!document_root = /srv/http/rutorrent/
vserver!2!rule!10!handler = common
vserver!2!rule!10!handler!allow_dirlist = 1
vserver!2!rule!10!handler!allow_pathinfo = 1
vserver!2!rule!10!match = default
source!1!env!PHP_FCGI_CHILDREN = 5
source!1!env!PHP_FCGI_MAX_REQUESTS = 490
source!1!env_inherited = 1
source!1!group = http
source!1!host = 127.0.0.1:47990
source!1!interpreter = /usr/bin/php-cgi -b 127.0.0.1:47990
source!1!nick = PHP Interpreter
source!1!type = interpreter
source!1!user = dot
source!11!env_inherited = 1
source!11!group = http
source!11!host = /home/dot/rtorrent/.socket/rpc.socket
source!11!interpreter = /bin/sh
source!11!nick = rTorrent XMLRPC
source!11!type = interpreter
source!11!user = dot
Any ideas appreciated, thanks for reading!