• Serveurs
  • Problème installation rutorrent sur Debian 11 (avec script-debug à l'appui)

Salut tout le monde,
Voilà je vais faire simple, j'utilise rutorrent depuis plusieurs années, j'ai jamais eu de problème (installation, màj, restart etc) mais là impossible de le faire marcher sur Debian 11.

J'espère que des yeux éclairés verront la/les erreurs.
Par rappoort au tuto mondedie sur Debian 11, j'au juste installé le plugin Mediainfo en plus, et pour le plugin Filemanager, la ligne git clone du tuto demande les identifiants et password, que je n'ai pas du coup j'ai choisi ce dépot à la place https://github.com/Micdu70/rutorrent-filemanager . Je ne sais pas si ça change grand chose.

Voici le script debug -

`### Rapport pour ruTorrent généré le 11-12-2022 à 22:21 ###

Utilisateur ruTorrent --> ovnishare

Debian    : 11.5
Kernel    : 5.10.0-19-amd64
CPU       : Intel(R) Atom(TM) CPU N2800   @ 1.86GHz
nGinx     : .
.
28
ruTorrent : 4.0
rTorrent  : 0.9.8
PHP       : 7.4

--> Utilisateur ovnishare existant

.......................................................................................................................................
## Partitions & Droits
.......................................................................................................................................

Filesystem      Size  Used Avail Use% Mounted on
udev            1.9G     0  1.9G   0% /dev
tmpfs           392M  624K  391M   1% /run
/dev/sda2       1.8T  2.4G  1.7T   1% /
tmpfs           2.0G     0  2.0G   0% /dev/shm
tmpfs           5.0M     0  5.0M   0% /run/lock
tmpfs           392M     0  392M   0% /run/user/0

755 root:root /home/ovnishare
644 ovnishare:ovnishare /home/ovnishare/.rtorrent.rc
755 ovnishare:ovnishare /home/ovnishare/.session
755 ovnishare:ovnishare /home/ovnishare/torrents
755 ovnishare:ovnishare /home/ovnishare/watch

.......................................................................................................................................
## Test rTorrent & sgci
.......................................................................................................................................

rTorrent down
Aucun programme n'écoute sur le port 5002
Bon port SCGI renseigné dans le fichier config.php
Les ports nginx et celui indiqué correspondent

.......................................................................................................................................
## rTorrent Activity
.......................................................................................................................................



.......................................................................................................................................
## Irssi Activity
.......................................................................................................................................

--> Irssi non installé

.......................................................................................................................................
## .rtorrent.rc
## File : /home/ovnishare/.rtorrent.rc
.......................................................................................................................................

network.scgi.open_port = 127.0.0.1:5002
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/ovnishare/torrents
session.path.set = /home/ovnishare/.session
protocol.encryption.set = allow_incoming, try_outgoing, enable_retry
schedule2 = watch_directory,1,1,load.start=/home/ovnishare/watch/*.torrent
schedule2 = untied_directory,5,5,stop_untied=/home/ovnishare/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 ovnishare &}

.......................................................................................................................................
## ruTorrent /filemanager/conf.php
## File : /var/www/rutorrent/plugins/filemanager/conf.php
.......................................................................................................................................

<?php

global $pathToExternals;
// 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'] = '/usr/bin/tar';
$pathToExternals['gzip'] = '/usr/bin/gzip';
$pathToExternals['bzip2'] = '/usr/bin/bzip2';

$config['mkdperm'] = 755; // default permission to set to new created directories
$config['show_fullpaths'] = false; // wheter to show userpaths or full system paths in the UI

$config['textExtensions'] = 'log|txt|nfo|sfv|xml|html';

// see what 7zip extraction supports as type by file extension
$config['fileExtractExtensions'] = '(7z|bzip2|t?bz2|tgz|gz(ip)?|iso|img|lzma|rar|tar|t?xz|zip|z01|wim)(\.[0-9]+)?';

// archive creation, see archiver man page before editing
// archive.fileExt -> config
$config['archive']['type'] = [
    '7z' => [
        'bin' => '7zip',
        'compression' => [1, 5, 9],
    ],
    'rar' => [
        'bin' => 'rar',
        'compression' => [0, 3, 5],
    ]];

$config['archive']['type']['zip'] = $config['archive']['type']['7z'];
$config['archive']['type']['tar'] = $config['archive']['type']['7z'];
$config['archive']['type']['tar']['has_password'] = false;
$config['archive']['type']['bz2'] = $config['archive']['type']['tar'];
$config['archive']['type']['gz'] = $config['archive']['type']['tar'];
$config['archive']['type']['tar.7z'] = $config['archive']['type']['tar'];
$config['archive']['type']['tar.bz2'] = $config['archive']['type']['tar'];
$config['archive']['type']['tar.gz'] = $config['archive']['type']['tar'];
$config['archive']['type']['tar.xz'] = $config['archive']['type']['tar'];


// multiple passes for archiving and compression
$config['archive']['type']['tar.gz']['multipass'] = ['tar', 'gzip'];
$config['archive']['type']['tar.bz2']['multipass'] = ['tar', 'bzip2'];
$config['archive']['type']['tar.7z']['multipass'] = ['tar', '7z'];
$config['archive']['type']['tar.xz']['multipass'] = ['tar', 'xz'];

.......................................................................................................................................
## 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 ovnishare
## File : /var/www/rutorrent/conf/users/ovnishare/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/ovnishare';
$scgi_port = 5002;
$scgi_host = '127.0.0.1';
$XMLRPCMountPoint = '/OVNISHARE';

.......................................................................................................................................
## ovnishare-rtorrent
## File : /etc/init.d/ovnishare-rtorrent
.......................................................................................................................................

#!/usr/bin/env bash

# Dépendance : screen, killall et rtorrent
### BEGIN INIT INFO
# Provides:          <username>-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="<username>"
## 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

.......................................................................................................................................
## seedbox.conf
## File : /etc/nginx/sites-enabled/seedbox.conf
.......................................................................................................................................

server {
    listen 80 default_server;
    server_name _;

charset utf-8;
index index.html index.php;
client_max_body_size 10M;

access_log /var/log/nginx/rutorrent-access.log combined;
error_log /var/log/nginx/rutorrent-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 = /50x.html {
    root /usr/share/nginx/html;
}

location = /favicon.ico {
    access_log off;
    log_not_found off;
}

location /rutorrent {
    try_files $uri $uri/ /index.html;
}

location ~ ^/rutorrent/(conf|share)/(.+)$ {
    deny all;
}

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.4-fpm.sock;
}

location ~* \.(jpg|jpeg|gif|css|png|js|map|woff|woff2|ttf|svg|eot)$ {
    expires 30d;
    access_log off;
}

location = /<OVNISHARE> {
    include scgi_params;
    scgi_pass 127.0.0.1:5002;
    auth_basic "seedbox";
    auth_basic_user_file "/etc/nginx/passwd/rutorrent_passwd_ovnishare";
}
location = /OVNISHARE {
        include scgi_params;
        scgi_pass 127.0.0.1:5002;
        auth_basic "seedbox";
        auth_basic_user_file "/etc/nginx/passwd/rutorrent_passwd_ovnishare";
    }

}

.......................................................................................................................................
## 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;
}

.......................................................................................................................................
## default.conf
## File : /etc/nginx/conf.d/default.conf
.......................................................................................................................................

server {
    listen       80;
    server_name  localhost;

#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;
#}
}

.......................................................................................................................................
## fichier pass nginx
## Dir : /etc/nginx/passwd
.......................................................................................................................................

640 www-data:www-data rutorrent_passwd
640 www-data:www-data rutorrent_passwd_ovnishare

.......................................................................................................................................
## fichier ssl nginx
## Dir : /etc/nginx/ssl
.......................................................................................................................................


.......................................................................................................................................
## nginx.log
## File : /var/log/nginx/rutorrent-error.log
.......................................................................................................................................

2022/12/11 19:28:09 [error] 891#891: *1 user "ovnishare": password mismatch, client: 86.242.109.229, server: _, request: "GET /rutorrent/images/header.gif HTTP/1.1", host: "5.196.68.210", referrer: "http://5.196.68.210/rutorrent/css/stable.css"
2022/12/11 19:29:03 [error] 889#889: *4 FastCGI sent in stderr: "PHP message: PHP Parse error:  syntax error, unexpected 'x' (T_STRING) in /var/www/rutorrent/conf/users/ovnishare/config.php on line 12" while reading response header from upstream, client: 86.242.109.229, server: _, request: "GET /rutorrent/php/getplugins.php HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.4-fpm.sock:", host: "5.196.68.210", referrer: "http://5.196.68.210/rutorrent/"
2022/12/11 19:29:03 [error] 889#889: *4 FastCGI sent in stderr: "PHP message: PHP Parse error:  syntax error, unexpected 'x' (T_STRING) in /var/www/rutorrent/conf/users/ovnishare/config.php on line 12" while reading response header from upstream, client: 86.242.109.229, server: _, request: "POST /rutorrent/php/getsettings.php HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.4-fpm.sock:", host: "5.196.68.210", referrer: "http://5.196.68.210/rutorrent/"
2022/12/11 19:31:03 [error] 891#891: *8 FastCGI sent in stderr: "PHP message: PHP Parse error:  syntax error, unexpected 'x' (T_STRING) in /var/www/rutorrent/conf/users/ovnishare/config.php on line 12" while reading response header from upstream, client: 86.242.109.229, server: _, request: "GET /rutorrent/php/getplugins.php HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.4-fpm.sock:", host: "5.196.68.210", referrer: "http://5.196.68.210/rutorrent/"
2022/12/11 19:31:03 [error] 891#891: *8 FastCGI sent in stderr: "PHP message: PHP Parse error:  syntax error, unexpected 'x' (T_STRING) in /var/www/rutorrent/conf/users/ovnishare/config.php on line 12" while reading response header from upstream, client: 86.242.109.229, server: _, request: "POST /rutorrent/php/getsettings.php HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.4-fpm.sock:", host: "5.196.68.210", referrer: "http://5.196.68.210/rutorrent/"
2022/12/11 19:31:49 [error] 891#891: *11 FastCGI sent in stderr: "PHP message: PHP Parse error:  syntax error, unexpected 'x' (T_STRING) in /var/www/rutorrent/conf/users/ovnishare/config.php on line 12" while reading response header from upstream, client: 86.242.109.229, server: _, request: "GET /rutorrent/php/getplugins.php HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.4-fpm.sock:", host: "5.196.68.210", referrer: "http://5.196.68.210/rutorrent/"
2022/12/11 19:31:49 [error] 891#891: *11 FastCGI sent in stderr: "PHP message: PHP Parse error:  syntax error, unexpected 'x' (T_STRING) in /var/www/rutorrent/conf/users/ovnishare/config.php on line 12" while reading response header from upstream, client: 86.242.109.229, server: _, request: "POST /rutorrent/php/getsettings.php HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.4-fpm.sock:", host: "5.196.68.210", referrer: "http://5.196.68.210/rutorrent/"
2022/12/11 19:32:03 [error] 891#891: *11 FastCGI sent in stderr: "PHP message: PHP Parse error:  syntax error, unexpected 'x' (T_STRING) in /var/www/rutorrent/conf/users/ovnishare/config.php on line 12" while reading response header from upstream, client: 86.242.109.229, server: _, request: "GET /rutorrent/php/getplugins.php HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.4-fpm.sock:", host: "5.196.68.210", referrer: "http://5.196.68.210/rutorrent/"
2022/12/11 19:32:03 [error] 891#891: *11 FastCGI sent in stderr: "PHP message: PHP Parse error:  syntax error, unexpected 'x' (T_STRING) in /var/www/rutorrent/conf/users/ovnishare/config.php on line 12" while reading response header from upstream, client: 86.242.109.229, server: _, request: "POST /rutorrent/php/getsettings.php HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.4-fpm.sock:", host: "5.196.68.210", referrer: "http://5.196.68.210/rutorrent/"
2022/12/11 19:34:39 [error] 891#891: *16 FastCGI sent in stderr: "PHP message: PHP Parse error:  syntax error, unexpected 'x' (T_STRING) in /var/www/rutorrent/conf/users/ovnishare/config.php on line 12" while reading response header from upstream, client: 86.242.109.229, server: _, request: "GET /rutorrent/php/getplugins.php HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.4-fpm.sock:", host: "5.196.68.210", referrer: "http://5.196.68.210/rutorrent/"
2022/12/11 19:34:39 [error] 891#891: *16 FastCGI sent in stderr: "PHP message: PHP Parse error:  syntax error, unexpected 'x' (T_STRING) in /var/www/rutorrent/conf/users/ovnishare/config.php on line 12" while reading response header from upstream, client: 86.242.109.229, server: _, request: "POST /rutorrent/php/getsettings.php HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.4-fpm.sock:", host: "5.196.68.210", referrer: "http://5.196.68.210/rutorrent/"
2022/12/11 19:35:30 [error] 1295#1295: *1 FastCGI sent in stderr: "PHP message: PHP Parse error:  syntax error, unexpected 'x' (T_STRING) in /var/www/rutorrent/conf/users/ovnishare/config.php on line 12" while reading response header from upstream, client: 86.242.109.229, server: _, request: "GET /rutorrent/php/getplugins.php HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.4-fpm.sock:", host: "5.196.68.210", referrer: "http://5.196.68.210/rutorrent/"
2022/12/11 19:35:30 [error] 1295#1295: *1 FastCGI sent in stderr: "PHP message: PHP Parse error:  syntax error, unexpected 'x' (T_STRING) in /var/www/rutorrent/conf/users/ovnishare/config.php on line 12" while reading response header from upstream, client: 86.242.109.229, server: _, request: "POST /rutorrent/php/getsettings.php HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.4-fpm.sock:", host: "5.196.68.210", referrer: "http://5.196.68.210/rutorrent/"
2022/12/11 19:35:49 [error] 1297#1297: *5 FastCGI sent in stderr: "PHP message: PHP Parse error:  syntax error, unexpected 'x' (T_STRING) in /var/www/rutorrent/conf/users/ovnishare/config.php on line 12" while reading response header from upstream, client: 86.242.109.229, server: _, request: "GET /rutorrent/php/getplugins.php HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.4-fpm.sock:", host: "5.196.68.210", referrer: "http://5.196.68.210/rutorrent/"
2022/12/11 19:35:49 [error] 1297#1297: *5 FastCGI sent in stderr: "PHP message: PHP Parse error:  syntax error, unexpected 'x' (T_STRING) in /var/www/rutorrent/conf/users/ovnishare/config.php on line 12" while reading response header from upstream, client: 86.242.109.229, server: _, request: "POST /rutorrent/php/getsettings.php HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.4-fpm.sock:", host: "5.196.68.210", referrer: "http://5.196.68.210/rutorrent/"
2022/12/11 19:37:14 [error] 1298#1298: *8 FastCGI sent in stderr: "PHP message: PHP Parse error:  syntax error, unexpected 'x' (T_STRING) in /var/www/rutorrent/conf/users/ovnishare/config.php on line 12" while reading response header from upstream, client: 86.242.109.229, server: _, request: "GET /rutorrent/php/getplugins.php HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.4-fpm.sock:", host: "5.196.68.210", referrer: "http://5.196.68.210/rutorrent/"
2022/12/11 19:37:15 [error] 1298#1298: *8 FastCGI sent in stderr: "PHP message: PHP Parse error:  syntax error, unexpected 'x' (T_STRING) in /var/www/rutorrent/conf/users/ovnishare/config.php on line 12" while reading response header from upstream, client: 86.242.109.229, server: _, request: "POST /rutorrent/php/getsettings.php HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.4-fpm.sock:", host: "5.196.68.210", referrer: "http://5.196.68.210/rutorrent/"
2022/12/11 20:30:50 [error] 1295#1295: *12 FastCGI sent in stderr: "PHP message: PHP Parse error:  syntax error, unexpected 'x' (T_STRING) in /var/www/rutorrent/conf/users/ovnishare/config.php on line 12" while reading response header from upstream, client: 86.242.109.229, server: _, request: "GET /rutorrent/php/getplugins.php HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.4-fpm.sock:", host: "5.196.68.210", referrer: "http://5.196.68.210/rutorrent/"
2022/12/11 20:30:50 [error] 1295#1295: *12 FastCGI sent in stderr: "PHP message: PHP Parse error:  syntax error, unexpected 'x' (T_STRING) in /var/www/rutorrent/conf/users/ovnishare/config.php on line 12" while reading response header from upstream, client: 86.242.109.229, server: _, request: "POST /rutorrent/php/getsettings.php HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.4-fpm.sock:", host: "5.196.68.210", referrer: "http://5.196.68.210/rutorrent/"
2022/12/11 20:31:51 [error] 1295#1295: *15 FastCGI sent in stderr: "PHP message: PHP Parse error:  syntax error, unexpected 'x' (T_STRING) in /var/www/rutorrent/conf/users/ovnishare/config.php on line 12" while reading response header from upstream, client: 86.242.109.229, server: _, request: "GET /rutorrent/php/getplugins.php HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.4-fpm.sock:", host: "5.196.68.210", referrer: "http://5.196.68.210/rutorrent/"
2022/12/11 20:31:51 [error] 1295#1295: *17 FastCGI sent in stderr: "PHP message: PHP Parse error:  syntax error, unexpected 'x' (T_STRING) in /var/www/rutorrent/conf/users/ovnishare/config.php on line 12" while reading response header from upstream, client: 86.242.109.229, server: _, request: "POST /rutorrent/php/getsettings.php HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.4-fpm.sock:", host: "5.196.68.210", referrer: "http://5.196.68.210/rutorrent/"
2022/12/11 20:35:47 [error] 1295#1295: *19 FastCGI sent in stderr: "PHP message: PHP Parse error:  syntax error, unexpected 'x' (T_STRING) in /var/www/rutorrent/conf/users/ovnishare/config.php on line 12" while reading response header from upstream, client: 86.242.109.229, server: _, request: "GET /rutorrent/php/getplugins.php HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.4-fpm.sock:", host: "5.196.68.210", referrer: "http://5.196.68.210/rutorrent/"
2022/12/11 20:35:47 [error] 1295#1295: *19 FastCGI sent in stderr: "PHP message: PHP Parse error:  syntax error, unexpected 'x' (T_STRING) in /var/www/rutorrent/conf/users/ovnishare/config.php on line 12" while reading response header from upstream, client: 86.242.109.229, server: _, request: "POST /rutorrent/php/getsettings.php HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.4-fpm.sock:", host: "5.196.68.210", referrer: "http://5.196.68.210/rutorrent/"
2022/12/11 20:35:51 [error] 1295#1295: *19 FastCGI sent in stderr: "PHP message: PHP Parse error:  syntax error, unexpected 'x' (T_STRING) in /var/www/rutorrent/conf/users/ovnishare/config.php on line 12" while reading response header from upstream, client: 86.242.109.229, server: _, request: "GET /rutorrent/php/getplugins.php HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.4-fpm.sock:", host: "5.196.68.210", referrer: "http://5.196.68.210/rutorrent/"
2022/12/11 20:35:51 [error] 1295#1295: *19 FastCGI sent in stderr: "PHP message: PHP Parse error:  syntax error, unexpected 'x' (T_STRING) in /var/www/rutorrent/conf/users/ovnishare/config.php on line 12" while reading response header from upstream, client: 86.242.109.229, server: _, request: "POST /rutorrent/php/getsettings.php HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.4-fpm.sock:", host: "5.196.68.210", referrer: "http://5.196.68.210/rutorrent/"
2022/12/11 20:49:35 [error] 1295#1295: *26 FastCGI sent in stderr: "PHP message: PHP Parse error:  syntax error, unexpected 'x' (T_STRING) in /var/www/rutorrent/conf/users/ovnishare/config.php on line 12" while reading response header from upstream, client: 86.242.109.229, server: _, request: "GET /rutorrent/php/getplugins.php HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.4-fpm.sock:", host: "5.196.68.210", referrer: "http://5.196.68.210/rutorrent/"
2022/12/11 20:49:35 [error] 1295#1295: *26 FastCGI sent in stderr: "PHP message: PHP Parse error:  syntax error, unexpected 'x' (T_STRING) in /var/www/rutorrent/conf/users/ovnishare/config.php on line 12" while reading response header from upstream, client: 86.242.109.229, server: _, request: "POST /rutorrent/php/getsettings.php HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.4-fpm.sock:", host: "5.196.68.210", referrer: "http://5.196.68.210/rutorrent/"
2022/12/11 21:58:43 [error] 912#912: *1 user "ovnishare": password mismatch, client: 86.242.109.229, server: _, request: "GET /rutorrent/ HTTP/1.1", host: "5.196.68.210"
2022/12/11 21:58:43 [error] 912#912: *1 user "ovnishare": password mismatch, client: 86.242.109.229, server: _, request: "GET /rutorrent/ HTTP/1.1", host: "5.196.68.210"
2022/12/11 21:59:05 [error] 914#914: *3 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Uncaught Error: Call to undefined function getPluginConf() in /var/www/rutorrent/plugins/logoff/init.php:2
Stack trace:
#0 /var/www/rutorrent/php/getplugins.php(495): require_once()
#1 {main}
  thrown in /var/www/rutorrent/plugins/logoff/init.php on line 2" while reading response header from upstream, client: 86.242.109.229, server: _, request: "GET /rutorrent/php/getplugins.php HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.4-fpm.sock:", host: "5.196.68.210", referrer: "http://5.196.68.210/rutorrent/"
2022/12/11 22:00:19 [error] 913#913: *6 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Uncaught Error: Call to undefined function getPluginConf() in /var/www/rutorrent/plugins/logoff/init.php:2
Stack trace:
#0 /var/www/rutorrent/php/getplugins.php(495): require_once()
#1 {main}
  thrown in /var/www/rutorrent/plugins/logoff/init.php on line 2" while reading response header from upstream, client: 86.242.109.229, server: _, request: "GET /rutorrent/php/getplugins.php HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.4-fpm.sock:", host: "5.196.68.210", referrer: "http://5.196.68.210/rutorrent/"
2022/12/11 22:00:25 [error] 913#913: *6 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Uncaught Error: Call to undefined function getPluginConf() in /var/www/rutorrent/plugins/logoff/init.php:2
Stack trace:
#0 /var/www/rutorrent/php/getplugins.php(495): require_once()
#1 {main}
  thrown in /var/www/rutorrent/plugins/logoff/init.php on line 2" while reading response header from upstream, client: 86.242.109.229, server: _, request: "GET /rutorrent/php/getplugins.php HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.4-fpm.sock:", host: "5.196.68.210", referrer: "http://5.196.68.210/rutorrent/"
2022/12/11 22:06:45 [error] 912#912: *11 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Uncaught Error: Call to undefined function getPluginConf() in /var/www/rutorrent/plugins/logoff/init.php:2
Stack trace:
#0 /var/www/rutorrent/php/getplugins.php(495): require_once()
#1 {main}
  thrown in /var/www/rutorrent/plugins/logoff/init.php on line 2" while reading response header from upstream, client: 86.242.109.229, server: _, request: "GET /rutorrent/php/getplugins.php HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.4-fpm.sock:", host: "5.196.68.210", referrer: "http://5.196.68.210/rutorrent/"
2022/12/11 22:11:35 [error] 2534#2534: *1 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Uncaught Error: Call to undefined function getPluginConf() in /var/www/rutorrent/plugins/logoff/init.php:2
Stack trace:
#0 /var/www/rutorrent/php/getplugins.php(495): require_once()
#1 {main}
  thrown in /var/www/rutorrent/plugins/logoff/init.php on line 2" while reading response header from upstream, client: 86.242.109.229, server: _, request: "GET /rutorrent/php/getplugins.php HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.4-fpm.sock:", host: "5.196.68.210", referrer: "http://5.196.68.210/rutorrent/"
2022/12/11 22:12:42 [error] 2536#2536: *5 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Uncaught Error: Call to undefined function getPluginConf() in /var/www/rutorrent/plugins/logoff/init.php:2
Stack trace:
#0 /var/www/rutorrent/php/getplugins.php(495): require_once()
#1 {main}
  thrown in /var/www/rutorrent/plugins/logoff/init.php on line 2" while reading response header from upstream, client: 86.242.109.229, server: _, request: "GET /rutorrent/php/getplugins.php HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.4-fpm.sock:", host: "5.196.68.210", referrer: "http://5.196.68.210/rutorrent/"
2022/12/11 22:13:21 [error] 2534#2534: *14 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Uncaught Error: Call to undefined function getPluginConf() in /var/www/rutorrent/plugins/logoff/init.php:2
Stack trace:
#0 /var/www/rutorrent/php/getplugins.php(495): require_once()
#1 {main}
  thrown in /var/www/rutorrent/plugins/logoff/init.php on line 2" while reading response header from upstream, client: 86.242.109.229, server: _, request: "GET /rutorrent/php/getplugins.php HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.4-fpm.sock:", host: "5.196.68.210", referrer: "http://5.196.68.210/rutorrent/"
2022/12/11 22:17:24 [error] 2534#2534: *20 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Uncaught Error: Call to undefined function getPluginConf() in /var/www/rutorrent/plugins/logoff/init.php:2
Stack trace:
#0 /var/www/rutorrent/php/getplugins.php(495): require_once()
#1 {main}
  thrown in /var/www/rutorrent/plugins/logoff/init.php on line 2" while reading response header from upstream, client: 86.242.109.229, server: _, request: "GET /rutorrent/php/getplugins.php HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.4-fpm.sock:", host: "5.196.68.210", referrer: "http://5.196.68.210/rutorrent/"
2022/12/11 22:18:39 [error] 2534#2534: *31 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Uncaught Error: Call to undefined function getPluginConf() in /var/www/rutorrent/plugins/logoff/init.php:2
Stack trace:
#0 /var/www/rutorrent/php/getplugins.php(495): require_once()
#1 {main}
  thrown in /var/www/rutorrent/plugins/logoff/init.php on line 2" while reading response header from upstream, client: 86.242.109.229, server: _, request: "GET /rutorrent/php/getplugins.php HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.4-fpm.sock:", host: "5.196.68.210", referrer: "http://5.196.68.210/rutorrent/"
2022/12/11 22:19:24 [error] 2534#2534: *35 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Uncaught Error: Call to undefined function getPluginConf() in /var/www/rutorrent/plugins/logoff/init.php:2
Stack trace:
#0 /var/www/rutorrent/php/getplugins.php(495): require_once()
#1 {main}
  thrown in /var/www/rutorrent/plugins/logoff/init.php on line 2" while reading response header from upstream, client: 86.242.109.229, server: _, request: "GET /rutorrent/php/getplugins.php HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.4-fpm.sock:", host: "5.196.68.210", referrer: "http://5.196.68.210/rutorrent/"

.......................................................................................................................................
## fin
.......................................................................................................................................`

Merci par avance 🙂

    ovnishare pour filemanager il faut prendre celui de Nelu.
    Le plugin logoff est à supprimer.
    Pour le reste de la lecture je suis sur téléphone mais à vue de nez : y a une double section dans le vhost et y a un soucis avec php-fpm.

    systemctl status php7.4-fpm
    

      MattProd OK merci, effectivement j'ai corrigé le vhost. Au niveau du php-fpm, c'est quoi le problème? j'ai regardé les différents fichiers .conf, je vois rien.
      Sur rutorrent, ça marque "Vérifiez la configuration de $scgi_port et de $scgi_host dans config.php et de scgi_port dans le fichier de configuration de rTorrent."
      Pourtant j'ai bien mis le port et l'host.

      J'avais pas vu ta commande, ça à l'air OK

      systemctl status php7.4-fpm
       php7.4-fpm.service - The PHP 7.4 FastCGI Process Manager
           Loaded: loaded (/lib/systemd/system/php7.4-fpm.service; enabled; vendor preset: enabled)
           Active: active (running) since Sun 2022-12-11 23:16:03 UTC; 11min ago
             Docs: man:php-fpm7.4(8)
          Process: 3716 ExecStartPost=/usr/lib/php/php-fpm-socket-helper install /run/php/php-fpm.sock /etc/php/7.4/fpm/pool.d/www.conf 74 (code=exited, status=0/SUCCESS)
         Main PID: 3712 (php-fpm7.4)
           Status: "Processes active: 0, idle: 2, Requests: 72, slow: 0, Traffic: 0.1req/sec"
            Tasks: 3 (limit: 4651)
           Memory: 14.2M
              CPU: 1.446s
           CGroup: /system.slice/php7.4-fpm.service
                   ├─3712 php-fpm: master process (/etc/php/7.4/fpm/php-fpm.conf)
                   ├─3714 php-fpm: pool www
                   └─3715 php-fpm: pool www
      

      Salut

      Je sais pas si cela va aider mais la solution pour les plugins apporté par @MattProd sur discord

      cd /var/www/rutorrent/plugins/
      rm logoff-*.tar.gz
      rm -R logoff

      Que donne le fichier ? /var/www/rutorrent/conf/users/ovnishare/config.php

      Je crois que l'erreur viens du fichier /etc/nginx/sites-enabled/seedbox.conf ta un doublon sur

      location = /<OVNISHARE> {
          include scgi_params;
          scgi_pass 127.0.0.1:5002;
          auth_basic "seedbox";
          auth_basic_user_file "/etc/nginx/passwd/rutorrent_passwd_ovnishare";
      }
      
      
      location = /OVNISHARE {
              include scgi_params;
              scgi_pass 127.0.0.1:5002;
              auth_basic "seedbox";
              auth_basic_user_file "/etc/nginx/passwd/rutorrent_passwd_ovnishare";
          }

      suprime un bloc puis tu restart le tout ^^

        Hello 🙂

        La section avec /<OVNISHARE> est à supprimer.

        Concernant ton erreur, je suis passé à côté en lisant sur le téléphone cette nuit : Aucun programme rtorrent ne tourne.
        regarde :

        systemctl status ovnishare-rtorrent

        tanguy Merci. J'avais déjà supprimer Logoff.

         
        /var/www/rutorrent/conf/users/ovnishare/config.php
        

        donne ça

        <?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/ovnishare';
        $scgi_port = 5002;
        $scgi_host = '127.0.0.1';
        $XMLRPCMountPoint = '/OVNISHARE';
        

        Pour le doublon dans /etc/nginx/sites-enabled/seedbox.conf j'avais du le supprimer aussi car je viens de regarder et je ne le vois plus ^^

        Merci en tout cas

        Hello

        Quand tu dis "La section avec /<OVNISHARE> est à supprimer." , tu parles de la section dans /etc/nginx/sites-enabled/seedbox.conf ? Si je vire la section ça doit donné ça:

        location = {
        include scgi_params;
        scgi_pass 127.0.0.1:5002;
        auth_basic "seedbox";
        auth_basic_user_file "/etc/nginx/passwd/rutorrent_passwd_ovnishare";
        }

        C'est bon comme ça?

          ovnishare

          location = /<OVNISHARE> {
          include scgi_params;
          scgi_pass 127.0.0.1:5002;
          auth_basic "seedbox";
          auth_basic_user_file "/etc/nginx/passwd/rutorrent_passwd_ovnishare";
          }

          location = /OVNISHARE {
                  include scgi_params;
                  scgi_pass 127.0.0.1:5002;
                  auth_basic "seedbox";
                  auth_basic_user_file "/etc/nginx/passwd/rutorrent_passwd_ovnishare";
          }

            Que te retourne cette commande :

            systemctl status ovnishare-rtorrent
            

              MattProd

              Ah oui mais quelle tourte d'avoir laisser les <>

              Sinon le systemctl status ovnishare-rtorrent me donne ça:

              ovnishare-rtorrent.service - LSB: Start daemon at boot time
                   Loaded: loaded (/etc/init.d/ovnishare-rtorrent; generated)
                   Active: active (exited) since Mon 2022-12-12 15:34:56 UTC; 6min ago
                     Docs: man:systemd-sysv-generator(8)
                  Process: 18728 ExecStart=/etc/init.d/ovnishare-rtorrent start (code=exited, status=0/SUCCESS)
                      CPU: 35ms
              
              Dec 12 15:34:56 ns378360 systemd[1]: Starting LSB: Start daemon at boot time...
              Dec 12 15:34:56 ns378360 ovnishare-rtorrent[18728]: Starting rtorrent...
              Dec 12 15:34:56 ns378360 su[18729]: (to ovnishare) root on none
              Dec 12 15:34:56 ns378360 su[18729]: pam_unix(su:session): session opened for user ovnishare(uid=1001) by (uid=0)
              Dec 12 15:34:56 ns378360 su[18729]: pam_unix(su:session): session closed for user ovnishare
              Dec 12 15:34:56 ns378360 systemd[1]: Started LSB: Start daemon at boot time.
              

              MattProd

              Si le Colonel passe par là, le sergent lui passe bien le bonjour et aurait une question à lui poser au passage 😉

              J'ai réussi à le faire marcher, il y avait un saut de ligne inutile sur le fichier conf de nginx. (en fin de fichier)

              Répondre…