si une âme charitable peux bien me trouver l'erreur car sa me rend fou de ne pas trouver grrrr
`
Rapport pour ruTorrent généré le 14-09-2021 à 13:08
Utilisateur ruTorrent --> ramutcho
Debian : 10.10
Kernel : 4.19.0-17-amd64
CPU : Intel(R) Xeon(R) CPU E3-1220 V2 @ 3.10GHz
nGinx : 1.14.2
ruTorrent : 3.10
rTorrent : 0.9.8
PHP : 8.0
--> Utilisateur ramutcho existant
Le programme pastebinit est installé
.......................................................................................................................................
Partitions & Droits
.......................................................................................................................................
Sys. de fichiers Taille Utilisé Dispo Uti% Monté sur
udev 16G 0 16G 0% /dev
tmpfs 3,2G 137M 3,1G 5% /run
/dev/md1 7,3T 1,8T 5,1T 26% /
tmpfs 16G 0 16G 0% /dev/shm
tmpfs 5,0M 0 5,0M 0% /run/lock
tmpfs 16G 0 16G 0% /sys/fs/cgroup
/dev/md0 999M 48M 883M 6% /boot
overlay 7,3T 1,8T 5,1T 26% /var/lib/docker/overlay2/399209a7b53d3f3e4bf0d790d6506d1e8a5a85910090ff6fd5debebebfa99969/merged
tmpfs 3,2G 0 3,2G 0% /run/user/0
755 root:ramutcho /home/ramutcho
644 ramutcho:ramutcho /home/ramutcho/.rtorrent.rc
755 ramutcho:ramutcho /home/ramutcho/.session
755 ramutcho:ramutcho /home/ramutcho/torrents
755 ramutcho:ramutcho /home/ramutcho/watch
.......................................................................................................................................
Test rTorrent & sgci
.......................................................................................................................................
rTorrent Up
Un socket écoute sur le port 5001
C'est bien rTorrent qui écoute sur le port 5001
Bon port SCGI renseigné dans le fichier config.php
Les ports nginx et celui indiqué correspondent
.......................................................................................................................................
rTorrent Activity
.......................................................................................................................................
ramutch+ 3148 0.0 0.0 8752 2440 ? Ss 13:07 0:00 SCREEN -dmS ramutcho-rtorrent rtorrent
ramutch+ 3149 0.0 0.0 257932 19252 pts/1 Ssl+ 13:07 0:00 rtorrent
.......................................................................................................................................
Irssi Activity
.......................................................................................................................................
--> Irssi non installé
.......................................................................................................................................
.rtorrent.rc
File : /home/ramutcho/.rtorrent.rc
.......................................................................................................................................
network.scgi.open_port = 127.0.0.1:5001
encoding.add = UTF-8
network.port_range.set = 45000-65000
network.port_random.set = no
pieces.hash.on_completion.set = no
directory.default.set = /home/ramutcho/torrents
session.path.set = /home/ramutcho/.session
protocol.encryption.set = allow_incoming, try_outgoing, enable_retry
schedule2 = watch_directory,1,1,load.start=/home/ramutcho/watch/.torrent
schedule2 = untied_directory,5,5,stop_untied=/home/ramutcho/watch/.torrent
schedule2 = espace_disque_insuffisant,1,30,close_low_diskspace=500M
trackers.use_udp.set = yes
dht.mode.set = off
protocol.pex.set = no
throttle.min_peers.normal.set = 40
throttle.max_peers.normal.set = 100
throttle.min_peers.seed.set = 10
throttle.max_peers.seed.set = 50
throttle.max_uploads.set = 15
execute2 = {sh,-c,/usr/bin/php /var/www/rutorrent/php/initplugins.php ramutcho &}
.......................................................................................................................................
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
if(empty($pathToExternals['rar'])) // May be path already defined?
{
$pathToExternals['rar'] = '/usr/bin/rar';
}
if(empty($pathToExternals['zip'])) // May be path already defined?
{
$pathToExternals['zip'] = '/usr/bin/zip';
}
if(empty($pathToExternals['unzip'])) // May be path already defined?
{
$pathToExternals['unzip'] = '/usr/bin/unzip';
}
if(empty($pathToExternals['tar'])) // May be path already defined?
{
$pathToExternals['tar'] = '/usr/bin/tar';
}
if(empty($pathToExternals['gzip'])) // May be path already defined?
{
$pathToExternals['gzip'] = '/usr/bin/gzip';
}
if(empty($pathToExternals['bzip2'])) // May be path already defined?
{
$pathToExternals['bzip2'] = '/usr/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)
// "torrenttools" - use program torrenttools (see http://github.com/fbdtemme/torrenttools)
$pathToCreatetorrent = '/usr/bin/mktorrent'; // Something like /bin/createtorrent, or /bin/transmissioncli. If empty, program will be found in PATH.
$recentTrackersMaxCount = 15;
.......................................................................................................................................
ruTorrent config.php ramutcho
File : /var/www/rutorrent/conf/users/ramutcho/config.php
.......................................................................................................................................
<?php
$pathToExternals = array(
"curl" => '/usr/bin/curl',
"stat" => '/usr/bin/stat',
"php" => '/usr/bin/php7.4',
"pgrep" => '/usr/bin/pgrep',
"python" => '/usr/bin/python3'
);
$topDirectory = '/home/ramutcho';
$scgi_port = 5001;
$scgi_host = '127.0.0.1';
$XMLRPCMountPoint = '/RAMUTCHO';
.......................................................................................................................................
ramutcho-rtorrent
File : /etc/init.d/ramutcho-rtorrent
.......................................................................................................................................
#!/usr/bin/env bash
Dépendance : screen, killall et rtorrent
BEGIN INIT INFO
Provides: ramutcho-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="ramutcho"
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 {
listen 80 default_server;
listen 443 default_server ssl http2;
server_name _;
index index.html index.php;
charset utf-8;
client_max_body_size 10M;
ssl_certificate /etc/nginx/ssl/server.crt;
ssl_certificate_key /etc/nginx/ssl/server.key;
include /etc/nginx/conf.d/ciphers.conf;
access_log /var/log/nginx/rutorrent-access.log combined if=$loggable;
error_log /var/log/nginx/rutorrent-error.log error;
error_page 500 502 503 504 /50x.html;
root /var/www;
location = /favicon.ico {
access_log off;
log_not_found off;
}
location = /50x.html {
root /usr/share/nginx/html;
}
## Config accueil serveur ##
location ^~ / {
root /var/www/base;
include /etc/nginx/conf.d/php.conf;
include /etc/nginx/conf.d/cache.conf;
satisfy any;
allow all;
}
## Config rutorrent ##
location /rutorrent {
auth_basic "Restricted";
auth_basic_user_file "/etc/nginx/passwd/rutorrent_passwd";
include /etc/nginx/conf.d/php.conf;
include /etc/nginx/conf.d/cache.conf;
try_files $uri $uri/ /index.html;
}
location ~ ^/rutorrent/(conf|share)/(.+)$ {
deny all;
}
## Config utilisateurs ##
location /RAMUTCHO {
include scgi_params;
scgi_pass 127.0.0.1:5001;
auth_basic "Restricted";
auth_basic_user_file "/etc/nginx/passwd/rutorrent_passwd_ramutcho";
}
}
.......................................................................................................................................
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;
}
.......................................................................................................................................
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 *;
}
.......................................................................................................................................
log_rutorrent.conf
File : /etc/nginx/conf.d/log_rutorrent.conf
.......................................................................................................................................
map $request_uri $loggable {
/RAMUTCHO 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:/run/php/php7.4-fpm.sock;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include /etc/nginx/fastcgi_params;
}
.......................................................................................................................................
fichier pass nginx
Dir : /etc/nginx/passwd
.......................................................................................................................................
640 www-data:www-data rutorrent_passwd
640 www-data:www-data rutorrent_passwd_ramutcho
.......................................................................................................................................
fichier ssl nginx
Dir : /etc/nginx/ssl
.......................................................................................................................................
dhparams.pem
server.crt
server.key
.......................................................................................................................................
nginx.log
File : /var/log/nginx/rutorrent-error.log
.......................................................................................................................................
2021/09/14 12:49:57 [crit] 2048#2048: *1 SSL_read() failed (SSL: error:14191044:SSL routines:tls1_enc:internal error) while processing HTTP/2 connection, client: 185.254.11.210, server: 0.0.0.0:443
2021/09/14 12:50:00 [crit] 2048#2048: *2 SSL_read() failed (SSL: error:14191044:SSL routines:tls1_enc:internal error) while processing HTTP/2 connection, client: 185.254.11.210, server: 0.0.0.0:443
2021/09/14 12:50:16 [crit] 2048#2048: *3 connect() to unix:/run/php/php7.4-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: 185.254.11.210, server: _, request: "GET /rutorrent/php/getplugins.php HTTP/2.0", upstream: "fastcgi://unix:/run/php/php7.4-fpm.sock:", host: "62.210.214.219", referrer: "https://62.210.214.219/rutorrent/"
2021/09/14 12:50:16 [error] 2048#2048: *3 open() "/usr/share/nginx/html/50x.html" failed (2: No such file or directory), client: 185.254.11.210, server: _, request: "GET /rutorrent/php/getplugins.php HTTP/2.0", upstream: "fastcgi://unix:/run/php/php7.4-fpm.sock", host: "62.210.214.219", referrer: "https://62.210.214.219/rutorrent/"
2021/09/14 12:52:09 [error] 2048#2048: *8 user "ramutcho" was not found in "/etc/nginx/passwd/rutorrent_passwd", client: 195.200.221.234, server: _, request: "GET /rutorrent/ HTTP/2.0", host: "62.210.214.219"
2021/09/14 12:52:11 [error] 2048#2048: *8 user "ramutcho" was not found in "/etc/nginx/passwd/rutorrent_passwd", client: 195.200.221.234, server: _, request: "GET /rutorrent/ HTTP/2.0", host: "62.210.214.219"
2021/09/14 13:05:12 [crit] 2048#2048: *9 SSL_read() failed (SSL: error:14191044:SSL routines:tls1_enc:internal error) while processing HTTP/2 connection, client: 185.254.11.210, server: 0.0.0.0:443
2021/09/14 13:05:12 [crit] 2048#2048: *10 connect() to unix:/run/php/php7.4-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: 185.254.11.210, server: _, request: "GET /rutorrent/php/getplugins.php HTTP/2.0", upstream: "fastcgi://unix:/run/php/php7.4-fpm.sock:", host: "62.210.214.219", referrer: "https://62.210.214.219/rutorrent/"
2021/09/14 13:05:12 [error] 2048#2048: *10 open() "/usr/share/nginx/html/50x.html" failed (2: No such file or directory), client: 185.254.11.210, server: _, request: "GET /rutorrent/php/getplugins.php HTTP/2.0", upstream: "fastcgi://unix:/run/php/php7.4-fpm.sock", host: "62.210.214.219", referrer: "https://62.210.214.219/rutorrent/"
2021/09/14 13:07:34 [crit] 3046#3046: *1 SSL_read() failed (SSL: error:14191044:SSL routines:tls1_enc:internal error) while processing HTTP/2 connection, client: 185.254.11.210, server: 0.0.0.0:443
2021/09/14 13:07:35 [crit] 3046#3046: *2 connect() to unix:/run/php/php7.4-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: 185.254.11.210, server: _, request: "GET /rutorrent/php/getplugins.php HTTP/2.0", upstream: "fastcgi://unix:/run/php/php7.4-fpm.sock:", host: "62.210.214.219", referrer: "https://62.210.214.219/rutorrent/"
2021/09/14 13:07:35 [error] 3046#3046: *2 open() "/usr/share/nginx/html/50x.html" failed (2: No such file or directory), client: 185.254.11.210, server: _, request: "GET /rutorrent/php/getplugins.php HTTP/2.0", upstream: "fastcgi://unix:/run/php/php7.4-fpm.sock", host: "62.210.214.219", referrer: "https://62.210.214.219/rutorrent/"
.......................................................................................................................................
fin
.......................................................................................................................................
`