- Modifié
Bonjour, je suis un peu nouveau dans le milieu et j'ai essayé de suivre le tutoriel à cette URL : https://mondedie.fr/d/11708-tuto-installer-rutorrent-sur-debian-11-nginx-php-fpm
Une fois finalisé, j'ai réussi à accéder à ma seedbox et RTorrent par contre au lancement j'ai cette erreur :
J'ai donc fait la commande afin d'avoir un rapport complet:
### Rapport pour ruTorrent généré le 28-10-2024 à 12:33 ###
Utilisateur ruTorrent --> jerome
Debian : 11.11
Kernel : 5.10.0-33-amd64
CPU : Intel(R) Atom(TM) CPU C2338 @ 1.74GHz
nGinx : 1.26.2
ruTorrent : 5.1
rTorrent :
PHP : 7.4
--> Utilisateur jerome existant
.......................................................................................................................................
## Partitions & Droits
.......................................................................................................................................
Filesystem Size Used Avail Use% Mounted on
udev 1.9G 0 1.9G 0% /dev
tmpfs 392M 384K 392M 1% /run
/dev/sda2 915G 2.5G 866G 1% /
tmpfs 2.0G 0 2.0G 0% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
/dev/sda1 485M 81M 375M 18% /boot
755 root:root /home/jerome
644 jerome:jerome /home/jerome/.rtorrent.rc
755 jerome:jerome /home/jerome/.session
755 jerome:jerome /home/jerome/torrents
755 jerome:jerome /home/jerome/watch
.......................................................................................................................................
## Test rTorrent & sgci
.......................................................................................................................................
rTorrent down
Aucun programme n'écoute sur le port 5001
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/jerome/.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/jerome/torrents
session.path.set = /home/jerome/.session
protocol.encryption.set = allow_incoming, try_outgoing, enable_retry
schedule2 = watch_directory,1,1,load.start=/home/jerome/watch/*.torrent
schedule2 = untied_directory,5,5,stop_untied=/home/jerome/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 jerome &}
.......................................................................................................................................
## 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['7zip'] = '/usr/bin/7z';
$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'];
$config['archive']['type']['unzip'] = $config['archive']['type']['tar'];
$config['archive']['type']['gzip'] = $config['archive']['type']['tar'];
$config['archive']['type']['bzip2'] = $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;
// Sets wether to use internal realization, when the external program doesn't support hybrid torrents.
// This option is slower, but adds compatibility for hybrid torrents, where the external program lacks support.
// It's recommended to enable with option and use an external program such as "mktorrent" to accelerate torrent creation.
$useInternalHybrid = true;
.......................................................................................................................................
## ruTorrent config.php jerome
## File : /var/www/rutorrent/conf/users/jerome/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/jerome';
$scgi_port = 5001;
$scgi_host = '127.0.0.1';
$XMLRPCMountPoint = '/JEROME';
.......................................................................................................................................
## jerome-rtorrent
## File : /etc/init.d/jerome-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 = /JEROME {
include scgi_params;
scgi_pass 127.0.0.1:5001;
auth_basic "seedbox";
auth_basic_user_file "/etc/nginx/passwd/rutorrent_passwd_jerome";
}
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;
}
}
.......................................................................................................................................
## 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
.......................................................................................................................................
## fichier ssl nginx
## Dir : /etc/nginx/ssl
.......................................................................................................................................
.......................................................................................................................................
## nginx.log
## File : /var/log/nginx/rutorrent-error.log
.......................................................................................................................................
2024/10/28 08:33:40 [error] 35554#35554: *179 user "jerome" was not found in "/etc/nginx/passwd/rutorrent_passwd", client: 92.158.184.103, server: _, request: "GET /rutorrent HTTP/1.1", host: "51.159.55.42"
2024/10/28 08:34:01 [error] 35554#35554: *180 user "jerome" was not found in "/etc/nginx/passwd/rutorrent_passwd", client: 92.158.184.103, server: _, request: "GET /rutorrent HTTP/1.1", host: "51.159.55.42"
2024/10/28 12:01:40 [error] 420#420: *2 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(521): require_once()
#1 {main}
thrown in /var/www/rutorrent/plugins/logoff/init.php on line 2" while reading response header from upstream, client: 92.158.184.103, server: _, request: "GET /rutorrent/php/getplugins.php HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.4-fpm.sock:", host: "51.159.55.42", referrer: "http://51.159.55.42/rutorrent/"
2024/10/28 12:09:50 [error] 419#419: *12 open() "/var/www/rutorrent/js/bootstrap.bundle.min.js.map" failed (2: No such file or directory), client: 92.158.184.103, server: _, request: "GET /rutorrent/js/bootstrap.bundle.min.js.map HTTP/1.1", host: "51.159.55.42"
2024/10/28 12:09:50 [error] 419#419: *13 open() "/var/www/rutorrent/css/bootstrap.min.css.map" failed (2: No such file or directory), client: 92.158.184.103, server: _, request: "GET /rutorrent/css/bootstrap.min.css.map HTTP/1.1", host: "51.159.55.42"
2024/10/28 12:10:01 [error] 419#419: *14 open() "/var/www/rutorrent/css/bootstrap.min.css.map" failed (2: No such file or directory), client: 92.158.184.103, server: _, request: "GET /rutorrent/css/bootstrap.min.css.map HTTP/1.1", host: "51.159.55.42"
2024/10/28 12:10:01 [error] 420#420: *15 open() "/var/www/rutorrent/js/bootstrap.bundle.min.js.map" failed (2: No such file or directory), client: 92.158.184.103, server: _, request: "GET /rutorrent/js/bootstrap.bundle.min.js.map HTTP/1.1", host: "51.159.55.42"
2024/10/28 12:10:01 [error] 419#419: *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(521): require_once()
#1 {main}
thrown in /var/www/rutorrent/plugins/logoff/init.php on line 2" while reading response header from upstream, client: 92.158.184.103, server: _, request: "GET /rutorrent/php/getplugins.php HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.4-fpm.sock:", host: "51.159.55.42", referrer: "http://51.159.55.42/rutorrent/"
2024/10/28 12:19:39 [error] 428#428: *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(521): require_once()
#1 {main}
thrown in /var/www/rutorrent/plugins/logoff/init.php on line 2" while reading response header from upstream, client: 92.158.184.103, server: _, request: "GET /rutorrent/php/getplugins.php HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.4-fpm.sock:", host: "51.159.55.42", referrer: "http://51.159.55.42/rutorrent/"
.......................................................................................................................................
## fin
Avez vous une idée d'ou provient le souci ? Merci d'avance.