Bonjour tout le monde,
je rencontre un problème incompréhensible suite à un reboot de mon serveur...
rTorrent ne se lance plus correctement
j'ai bien vérifier les droits sur le fichier .rtorrent.rc, ainsi que sur le dossier home de mon user, relancer rtorrent avec les commandes classique mais en vain.
voila le résultat du script du diagnostique, j'ai l’impression qu'il n'arrive plus à ouvrir le port 5001 🙁 mais je ne trouve pas comment faire, j'ai déjà essayer de changer le port mais sans succès.
### Rapport pour ruTorrent généré le 14-04-2018 à 11:25 ###
Utilisateur ruTorrent --> dogecoin
Debian : 9.4
Kernel : 4.9.0-4-amd64
CPU : Intel(R) Xeon(R) CPU E3-1240 v3 @ 3.40GHz
nGinx : 1.12.2
ruTorrent : 3.8
rTorrent : 0.9.6
PHP : 7.2
--> Utilisateur dogecoin existant
Le programme pastebinit est installé
.......................................................................................................................................
## Partitions & Droits
.......................................................................................................................................
Filesystem Size Used Avail Use% Mounted on
udev 16G 0 16G 0% /dev
tmpfs 3.2G 8.6M 3.2G 1% /run
/dev/sda4 5.5T 585G 4.6T 12% /
tmpfs 16G 8.0K 16G 1% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 16G 0 16G 0% /sys/fs/cgroup
/dev/sda2 190M 35M 142M 20% /boot
tmpfs 3.2G 0 3.2G 0% /run/user/1002
tmpfs 3.2G 0 3.2G 0% /run/user/1001
755 root:dogecoin /home/dogecoin
755 dogecoin:dogecoin /home/dogecoin/.backup-session
700 dogecoin:dogecoin /home/dogecoin/.irssi
755 dogecoin:dogecoin /home/dogecoin/.rtorrent.rc
755 dogecoin:dogecoin /home/dogecoin/.session
755 dogecoin:dogecoin /home/dogecoin/torrents
.......................................................................................................................................
## Test rTorrent & sgci
.......................................................................................................................................
rTorrent Up
Aucun programme n'écoute sur le port 5001
Mauvais port SCGI renseigné dans le fichier config.php
Les ports nginx et celui indiqué ne correspondent pas
.......................................................................................................................................
## rTorrent Activity
.......................................................................................................................................
dogecoin 693 0.0 0.0 27836 2436 ? Ss 11:18 0:00 SCREEN -dmS dogecoin-rtorrent rtorrent
dogecoin 705 0.0 0.0 264876 13380 pts/1 Ssl+ 11:18 0:00 rtorrent
.......................................................................................................................................
## Irssi Activity
.......................................................................................................................................
dogecoin 696 0.0 0.0 27836 2428 ? Ss 11:18 0:00 SCREEN -dmS irc_logger irssi
dogecoin 704 0.0 0.0 41012 8360 pts/3 Ss+ 11:18 0:00 irssi
.......................................................................................................................................
## .rtorrent.rc
## File : /home/dogecoin/.rtorrent.rc
.......................................................................................................................................
scgi_port = 127.0.0.1:5001
encoding_list = UTF-8
port_range = 45000-65000
port_random = no
check_hash = no
directory = /home/dogecoin/torrents/dl
session = /home/dogecoin/.session
encryption = allow_incoming, try_outgoing, enable_retry
use_udp_trackers = yes
dht = off
peer_exchange = no
min_peers = 40
max_peers = 100
min_peers_seed = 10
max_peers_seed = 50
set_max_file_size = 4000G
execute = {sh,-c,/usr/bin/php /var/www/rutorrent/php/initplugins.php dogecoin &}
# Add new method to get finished dir
method.insert = d.get_finished_dir,simple,"cat=/home/dogecoin/torrents/seed/,$d.get_custom1="
# Move Completed
method.set_key = event.download.finished,move_complete,"d.set_directory=$d.get_finished_dir=;execute=mkdir,-p,$d.get_finished_dir=;execute=mv,-u,$d.get_base_path=,$d.get_finished_dir="
# Filebot Processing
method.set_key=event.download.finished,filebot_amc,"execute={/home/django/script/rtorrent-postprocess,$d.get_finished_dir=,$d.get_name=,$d.get_custom1=}"
.......................................................................................................................................
## ruTorrent /filemanager/conf.php
## File : /var/www/rutorrent/plugins/filemanager/conf.php
.......................................................................................................................................
<?php
$fm['tempdir'] = '/tmp'; // path were to store temporary data ; must be writable
$fm['mkdperm'] = 755; // default permission to set to new created directories
// set with fullpath to binary or leave empty
$pathToExternals['rar'] = '/usr/bin/rar';
$pathToExternals['zip'] = '/usr/bin/zip';
$pathToExternals['unzip'] = '/usr/bin/unzip';
$pathToExternals['tar'] = '/bin/tar';
$pathToExternals['gzip'] = '/bin/gzip';
$pathToExternals['bzip2'] = '/bin/bzip2';
// archive mangling, see archiver man page before editing
$fm['archive']['types'] = array('rar', 'zip', 'tar', 'gzip', 'bzip2');
$fm['archive']['compress'][0] = range(0, 5);
$fm['archive']['compress'][1] = array('-0', '-1', '-9');
$fm['archive']['compress'][2] = $fm['archive']['compress'][3] = $fm['archive']['compress'][4] = array(0);
?>
.......................................................................................................................................
## ruTorrent /create/conf.php
## File : /var/www/rutorrent/plugins/create/conf.php
.......................................................................................................................................
<?php
// configuration parameters
$useExternal = 'mktorrent'; // Valid choices:
// false - use internal realization (may be too slow for large files)
// "transmissioncli" - use program transmissioncli (see http://www.transmissionbt.com/)
// "transmissioncreate" - use program transmissioncreate (see http://www.transmissionbt.com/)
// "createtorrent" - use program createtorrent (see http://www.createtorrent.com)
// "mktorrent" - use program mktorrent (see http://mktorrent.sourceforge.net)
// "buildtorrent" - use program buildtorrent (see http://claudiusmaximus.goto10.org/cm/torrent.html)
$pathToCreatetorrent = '/usr/bin/mktorrent'; // Something like /bin/createtorrent, or /bin/transmissioncli. If empty, program will be found in PATH.
$recentTrackersMaxCount = 15;
.......................................................................................................................................
## ruTorrent config.php dogecoin
## File : /var/www/rutorrent/conf/users/dogecoin/config.php
.......................................................................................................................................
<?php
$pathToExternals = array(
"curl" => '/usr/bin/curl',
"stat" => '/usr/bin/stat',
);
$topDirectory = '/home/dogecoin';
$scgi_port = 5001;
$scgi_host = '127.0.0.1';
$XMLRPCMountPoint = '/DOGECOIN';
.......................................................................................................................................
## dogecoin-rtorrent
## File : /etc/init.d/dogecoin-rtorrent
.......................................................................................................................................
#!/usr/bin/env bash
# Dépendance : screen, killall et rtorrent
### BEGIN INIT INFO
# Provides: dogecoin-rtorrent
# Required-Start: $syslog $network
# Required-Stop: $syslog $network
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start daemon at boot time
# Description: Start-Stop rtorrent user session
### END INIT INFO
## Début configuration ##
user="dogecoin"
## Fin configuration ##
rt_start() {
su --command="screen -dmS ${user}-rtorrent rtorrent" "${user}"
}
rt_stop() {
killall --user "${user}" screen
}
case "$1" in
start) echo "Starting rtorrent..."; rt_start
;;
stop) echo "Stopping rtorrent..."; rt_stop
;;
restart) echo "Restart rtorrent..."; rt_stop; sleep 1; rt_start
;;
*) echo "Usage: $0 {start|stop|restart}"; exit 1
;;
esac
exit 0
.......................................................................................................................................
## rutorrent.conf
## File : /etc/nginx/sites-enabled/rutorrent.conf
.......................................................................................................................................
include /etc/nginx/conf.d/log_rutorrent.conf;
server {
# SSL configuration
listen 443 ssl;
ssl on;
server_name domain.tld;
index index.html index.php;
charset utf-8;
client_max_body_size 10M;
ssl_certificate /etc/letsencrypt/live/domain.tld/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/domain.tld/privkey.pem;
ssl_trusted_certificate /etc/letsencrypt/live/domain.tld/fullchain.pem;
include /etc/nginx/conf.d/ciphers.conf;
access_log /var/log/nginx/rtorrent-access.log combined;
error_log /var/log/nginx/rtorrent-error.log error;
error_page 500 502 503 504 /50x.html;
auth_basic "seedbox";
auth_basic_user_file "/etc/nginx/passwd/rutorrent_passwd";
root /var/www;
location = /favicon.ico {
access_log off;
log_not_found off;
}
location = /50x.html {
root /usr/share/nginx/html;
}
location ~ \.php$ {
fastcgi_index index.php;
include /etc/nginx/fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass unix:/run/php/php7.2-fpm.sock;
}
location ~* \.(jpg|jpeg|gif|css|png|js|map|woff|woff2|ttf|svg|eot)$ {
expires 30d;
access_log off;
}
location ~* \.(eot|ttf|woff|svg)$ {
add_header Acccess-Control-Allow-Origin *;
}
## début config accueil serveur ##
location ^~ / {
root /var/www/tardistart;
include /etc/nginx/conf.d/php.conf;
include /etc/nginx/conf.d/cache.conf;
satisfy any;
deny all;
location ~ /admin {
auth_basic "TARDIStart Admin Page";
auth_basic_user_file "/etc/nginx/passwd/rutorrent_passwd";
deny all;
}
}
## fin config accueil serveur ##
## début config rutorrent ##
location ^~ /rutorrent {
root /var/www;
include /etc/nginx/conf.d/php.conf;
include /etc/nginx/conf.d/cache.conf;
location ~ /\.svn {
deny all;
}
location ~ /\.ht {
deny all;
}
}
location ^~ /rutorrent/conf/ {
deny all;
}
location ^~ /rutorrent/share/ {
deny all;
}
## fin config rutorrent ##
## début config seedbox-manager ##
location /seedbox-manager {
try_files /seedbox-manager/$uri /seedbox-manager/index.php$is_args$args;
}
## fin config seedbox-manager ##
## Config utilisateurs ##
location /MASTER {
include scgi_params;
scgi_pass 127.0.0.1:5001;
auth_basic "seedbox";
auth_basic_user_file "/etc/nginx/passwd/rutorrent_passwd_master";
}
location /DOGECOIN {
include scgi_params;
scgi_pass 127.0.0.1:5005;
auth_basic "seedbox";
auth_basic_user_file "/etc/nginx/passwd/rutorrent_passwd_dogecoin";
}
location /DOGE {
include scgi_params;
scgi_pass 127.0.0.1:5004;
auth_basic "seedbox";
auth_basic_user_file "/etc/nginx/passwd/rutorrent_passwd_doge";
}
}
.......................................................................................................................................
## nginx.conf
## File : /etc/nginx/nginx.conf
.......................................................................................................................................
user www-data;
worker_processes auto;
pid /var/run/nginx.pid;
events {
worker_connections 1024;
use epoll; # gestionnaire d'évènements epoll (kernel 2.6+)
}
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
access_log /var/log/nginx/access.log combined;
error_log /var/log/nginx/error.log error;
sendfile on;
keepalive_timeout 15;
keepalive_disable msie6;
keepalive_requests 100;
tcp_nopush on;
tcp_nodelay off;
server_tokens off;
gzip on;
gzip_comp_level 5;
gzip_min_length 512;
gzip_buffers 4 8k;
gzip_proxied any;
gzip_vary on;
gzip_disable "msie6";
gzip_types
text/css
text/javascript
text/xml
text/plain
text/x-component
application/javascript
application/x-javascript
application/json
application/xml
application/rss+xml
application/vnd.ms-fontobject
font/truetype
font/opentype
image/svg+xml;
include /etc/nginx/sites-enabled/*.conf;
include /etc/nginx/ssl/params.conf;
}
.......................................................................................................................................
## cache.conf
## File : /etc/nginx/conf.d/cache.conf
.......................................................................................................................................
location ~* \.(jpg|jpeg|gif|css|png|js|woff|ttf|svg|eot)$ {
expires 30d;
access_log off;
}
location ~* \.(eot|ttf|woff|svg)$ {
add_header Acccess-Control-Allow-Origin *;
}
.......................................................................................................................................
## ciphers.conf
## File : /etc/nginx/conf.d/ciphers.conf
.......................................................................................................................................
ssl_ciphers 'ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-DSS-AES128-GCM-SHA256:kEDH+AESGCM:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA:ECDHE-ECDSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-DSS-AES128-SHA256:DHE-RSA-AES256-SHA256:DHE-DSS-AES256-SHA:DHE-RSA-AES256-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:AES:CAMELLIA:DES-CBC3-SHA:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!MD5:!PSK:!aECDH:!EDH-DSS-DES-CBC3-SHA:!EDH-RSA-DES-CBC3-SHA:!KRB5-DES-CBC3-SHA';
ssl_prefer_server_ciphers on;
ssl_dhparam /etc/nginx/ssl/dhparams.pem;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
.......................................................................................................................................
## default.conf
## File : /etc/nginx/conf.d/default.conf
.......................................................................................................................................
server {
listen 80;
server_name localhost;
#charset koi8-r;
#access_log /var/log/nginx/host.access.log main;
location / {
root /usr/share/nginx/html;
index index.html index.htm;
}
#error_page 404 /404.html;
# redirect server error pages to the static page /50x.html
#
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}
# proxy the PHP scripts to Apache listening on 127.0.0.1:80
#
#location ~ \.php$ {
# proxy_pass http://127.0.0.1;
#}
# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
#
#location ~ \.php$ {
# root html;
# fastcgi_pass 127.0.0.1:9000;
# fastcgi_index index.php;
# fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
# include fastcgi_params;
#}
# deny access to .htaccess files, if Apache's document root
# concurs with nginx's one
#
#location ~ /\.ht {
# deny all;
#}
}
.......................................................................................................................................
## log_rutorrent.conf
## File : /etc/nginx/conf.d/log_rutorrent.conf
.......................................................................................................................................
map $request_uri $loggable {
/DOGECOIN 0;
/MASTER 0;
/rutorrent/ 0;
/rutorrent/plugins/history/action.php 0;
/rutorrent/plugins/check_port/action.php 0;
/rutorrent/images/favicon.ico 0;
/rutorrent/php/getsettings.php 0;
/rutorrent/plugins/trafic/action.php 0;
/rutorrent/plugins/fileshare/settings.js.php 0;
/rutorrent/plugins/fileshare/fsh.php 0;
/rutorrent/plugins/filemanager/flm.php 0;
/rutorrent/plugins/filemanager/settings.js.php 0;
/rutorrent/php/setsettings.php 0;
/rutorrent/plugins/rss/action.php 0;
/rutorrent/plugins/_task/action.php 0;
/rutorrent/php/getplugins.php 0;
/rutorrent/plugins/create/action.php 0;
~/rutorrent/plugins/diskspace/action.php? 0;
~/rutorrent/plugins/cpuload/action.php? 0;
~/rutorrent/plugins/tracklabels/action.php? 0;
default 1;
}
.......................................................................................................................................
## php.conf
## File : /etc/nginx/conf.d/php.conf
.......................................................................................................................................
location ~ \.php$ {
fastcgi_index index.php;
fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include /etc/nginx/fastcgi_params;
}
.......................................................................................................................................
## php-manager.conf
## File : /etc/nginx/conf.d/php-manager.conf
.......................................................................................................................................
location ~ \.php$ {
root /var/www/seedbox-manager/public;
include /etc/nginx/fastcgi_params;
fastcgi_index index.php;
fastcgi_pass unix:/run/php/php7.2-fpm.sock;
fastcgi_param SCRIPT_FILENAME $document_root/index.php;
}
.......................................................................................................................................
## fichier pass nginx
## Dir : /etc/nginx/passwd
.......................................................................................................................................
640 www-data:www-data rutorrent_passwd
640 www-data:www-data rutorrent_passwd_dogecoin
640 www-data:www-data rutorrent_passwd_master
.......................................................................................................................................
## fichier ssl nginx
## Dir : /etc/nginx/ssl
.......................................................................................................................................
dhparams.pem
params.conf
server.crt
server.key
.......................................................................................................................................
## nginx.log
## File : /var/log/nginx/rutorrent-error.log
.......................................................................................................................................
--> Fichier Invalide
.......................................................................................................................................
## fin
.......................................................................................................................................
Merci de votre aide