Bonjour
J'ai un rtorrent installé et (d'habitude) fonctionnel, ainsi que 2 interfaces graphiques, rutorrent et flood.
D'habitude aucun souci.
Ce matin, j'ai voulu configurer un dossier d'autowatch.
Voyant que cela ne fonctionnait pas lorsque j'ajoutais un .torrent dans le dossier surveillé, j'ai redémarré le service rtorrent, supposant que c'était nécessaire pour la prise en compte des modifs.
Mal m'en a pris;
Depuis, impossible de faire la connexion entre rtorrent et rutorrent ou flood.
Voici quelques infos qui pourront peut être vous aider à m'aider :
Config : Debian 10, Nginx
Installation de rutorrent et rtorrent via l'excellent tuto ici disponible
Seule différence : je n'ai pas créé d'user spécifique pour rutorrent. je l'ai fait avec mon user habituel ci dessous remplacé par "user"
Comme l'erreur a lieu avec rutorrent ET flood je suppose que l'erreur se situe du côté rtorrent.
J'ai quand même jeté un oeil sur /var/log/nginx/rutorrent-error.log
J'y ai trouvé cette erreur :
[error] 629#629: *902 user "logoff" was not found in "/etc/nginx/passwd/rutorrent_passwd"
Cela m'a paru bizarre, j'ai donc supprimé le dossier du plugin logoff dans /var/www/rutorrent/plugins
Contenu de /etc/init.d/user.rtorrent =
1 #!/usr/bin/env bash
2
3 # Dépendance : screen, killall et rtorrent
4 ### BEGIN INIT INFO
5 # Provides: user-rtorrent
6 # Required-Start: $syslog $network
7 # Required-Stop: $syslog $network
8 # Default-Start: 2 3 4 5
9 # Default-Stop: 0 1 6
10 # Short-Description: Start daemon at boot time
11 # Description: Start-Stop rtorrent user session
12 ### END INIT INFO
13
14 ## Début configuration ##
15 user="user"
16 ## Fin configuration ##
17
18 rt_start() {
19 su --command="screen -dmS ${user}-rtorrent rtorrent" "${user}"
20 }
21
22 rt_stop() {
23 killall --user "${user}" screen
24 }
25
26 case "$1" in
27 start) echo "Starting rtorrent..."; rt_start
28 ;;
29 stop) echo "Stopping rtorrent..."; rt_stop
30 ;;
31 restart) echo "Restart rtorrent..."; rt_stop; sleep 1; rt_start
32 ;;
33 *) echo "Usage: $0 {start|stop|restart}"; exit 1
34 ;;
35 esac
36 exit 0
Voici le vhost de rutorrent :
1 server {
2 if ($host = sousdomaine.domaine.ovh) {
3 return 301 https://$host$request_uri;
4 } # managed by Certbot
5
7 listen 80 default_server;
8 server_name sousdomaine.domaine.ovh;
9 return 301 https://$server_name$request_uri;
10
11
12 }
13 server {
14 listen 443 ssl;
15 server_name sousdomaine.domaine.ovh;
16 ssl_certificate /etc/letsencrypt/live/sousdomaine.domaine.ovh/fullchain.pem; # managed by Certbot
17 ssl_certificate_key /etc/letsencrypt/live/sousdomaine.domaine.ovh/privkey.pem; # managed by Certbot
18
19 ##etc
20 location / {
21 proxy_pass http://127.0.0.1/rutorrent;
22 proxy_set_header Host $host;
23 proxy_set_header X-Real-IP $remote_addr;
24 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
25
26 #upgrade to WebSocket protocol when requested
27 proxy_set_header Upgrade $http_upgrade;
28 proxy_set_header Connection "Upgrade";
29 }
30 charset utf-8;
31 index index.html index.php;
32 client_max_body_size 10M;
33
34 access_log /var/log/nginx/rutorrent-access.log combined;
35 error_log /var/log/nginx/rutorrent-error.log error;
36
37 error_page 500 502 503 504 /50x.html;
38
39 auth_basic "toctoc";
40 auth_basic_user_file "/etc/nginx/passwd/rutorrent_passwd";
41
42 root /var/www;
43
44 location = /50x.html {
45 root /usr/share/nginx/html;
46 }
47
48 location = /favicon.ico {
49 access_log off;
50 log_not_found off;
51 }
52
53 location /rutorrent {
54 try_files $uri $uri/ /index.html;
55 }
56
57 location ~ ^/rutorrent/(conf|share)/(.+)$ {
58 deny all;
59 }
60
61 location ~ \.php$ {
62 fastcgi_index index.php;
63 include /etc/nginx/fastcgi_params;
64 fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
65 fastcgi_pass unix:/run/php/php7.3-fpm.sock;
66 }
67
68 location ~* \.(jpg|jpeg|gif|css|png|js|map|woff|woff2|ttf|svg|eot)$ {
69 expires 30d;
70 access_log off;
71 }
72
73 location = /USER {
74 include scgi_params;
75 scgi_pass 127.0.0.1:5001;
76 auth_basic "toctoc";
77 auth_basic_user_file "/etc/nginx/passwd/rutorrent_passwd_user";
78 }
79
80
81 add_header Strict-Transport-Security "max-age=31536000" always; # managed by Certbot
82
83
84 ssl_trusted_certificate /etc/letsencrypt/live/sousdomaine.domaine.ovh/chain.pem; # managed by Certbot
85 ssl_stapling on; # managed by Certbot
86 ssl_stapling_verify on; # managed by Certbot
87 }
screen rutorrent :

screen flood :

droits d'accès :
getfacl /var/www/rutorrent
file: var/www/rutorrent
owner: www-data
group: www-data
user::rwx
user:user:rwx
group::r-x
mask::rwx
other::r-x
getfacl /home/user/.session
file: home/user/.session
owner: user
group: user
user::rwx
group::r-x
getfacl /home/user/torrents
file: home/user/torrents
owner: user
group: user
user::rwx
user:www-data:rwx #effective:r-x
user:medusa:rwx #effective:r-x
group::r-x
mask::r-x
other::r-x
Merci de votre aide 😢