• Applications
  • [App RuFy 2.0] Téléchargement des torrents T411 depuis une interface

Fenrir Effectivement, n'utilisant pas Rufy, je ne sais te dire comment il fonctionne.
Peut-être que :
- Tu peux cliquer sur un .torrent pour le charger dans ton ruTorrent ? Et donc passer par exemple par Remote Torrent Adder
- Tu peux tout DL dans un dossier unique et te faire un petit script BASH en CRON pour trier et dispatcher tes DL selon des règles regex dans les bons dossiers dans /watch

Petite erreur pour moi, impossible de démarrer RuFy avec supervisorctl :

# supervisorctl start rufy
rufy: ERROR (abnormal termination)

Les logs sous /var/www/RuFy/log/gunicorn_supervisor.log :

Starting RuFy as rufy
/var/www/RuFy/gunicorn_start: ligne 32: /var/www/RuFy/venv/bin/gunicorn: Aucun fichier ou dossier de ce type

Quelqu'un aurait une idée ... ?

    Voici : install.log

    C'est dommage qu'il n'y ai aucune gestion des erreurs dans le script d'install.. Je vais essayer de m'y pencher quand j'aurai le temps. Mais pour ce qui est de ces erreurs, je ne comprends pas.

    martinbouillaud Humm, je ne vois pas trop, on dirait que l'installe ne s'est pas faite correctement ^^

    Je trouve la ligne suivante bizarre :

    
    ./RuFy/install.sh: 124: ./RuFy/install.sh: source: not found
    
    

    Quand tu vas dans le dossier "RuFy" et que tu lances le script "./install.sh", ça donne la même chose ?

      martinbouillaud Humm, si tu essais de lancer les commandes du script une par une :

      apt-get install -y aptitude
      aptitude install -y python2.7
      aptitude install -y python-virtualenv
      aptitude install -y python-dev
      aptitude install -y supervisor

      As-tu des erreurs lors de l'installation de ces paquets ?

        LuffyyffuL Merci pour ton aide !!

        Aucune erreur lors du passage des commandes à la main :

        command manu

        Je commence à avoir une erreur pour la commande pip install -r requirements.txt :

        pip install

        Bon ! J'ai réussi à tout installer a la mano, supervisorctl start rufy fonctionne correctement, mais je n'ai pas le fichier /var/www/RuFy/run/gunicorn.sock. J'ai vérifié le script gunicorn_start mais je ne vois pas d'ou peut venir le problème..

          martinbouillaud Dans ma config nginx je n'utilise pas le fichier "gunicorn.sock" :

          
          ##########
          ## RuFy ##
          
          location ^~ /rufy/static {
          
          	satisfy any;
          	allow all;
          	alias /var/www/RuFy/static/;
          }
          
          location ^~ /rufy/media {
          
          	satisfy any;
          	allow all;
          	alias /var/www/RuFy/media/;
          }
          
          location ^~ /rufy {
          
          	access_log /var/log/nginx/NGINX_SITE_ACCESS--RuFy.log;
          	error_log /var/log/nginx/NGINX_SITE_ERROR--RuFy.log;
          
          	include /etc/nginx/conf.d/php.conf;
          	include /etc/nginx/conf.d/cache_utilisateurs.conf;
          
          	satisfy any;
          	allow all;
          
          	proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
          	proxy_set_header Host $http_host;
          	proxy_redirect off;
          
          	if (!-f $request_filename) {
          
          		proxy_pass http:/127.0.0.1:9999;
          		break;
          	}  
          
          }
          
          

            martinbouillaud Je ne sais pas, si tu veux tu peux comparer avec ma config nginx pour rutorrent :

            
            ###############
            ## rutorrent ##
            
            location ^~ /rutorrent {
            	
            	root /var/www;
            	
            	auth_basic "seedbox";
            	auth_basic_user_file "/etc/nginx/passwd/antho";
            
            	access_log /var/log/nginx/NGINX_SITE_ACCESS--rutorrent.log;
            	error_log /var/log/nginx/NGINX_SITE_ERROR--rutorrent.log;
            	
            	include /etc/nginx/conf.d/php.conf;
            	include /etc/nginx/conf.d/cache_utilisateurs.conf;
            	
            	location ~ /\.svn {
            	
            		deny all;
            	}
            
            	location ~ /\.ht {
            	
            		deny all;
            	}
            }
            
            location /rutorrent/RPC2 {
            
             	include scgi_params;
             	scgi_pass 127.0.0.1:5000;
             	auth_basic "seedbox";
             	auth_basic_user_file "/etc/nginx/passwd/antho";
             }
            
            location ^~ /rutorrent/conf/ {
            
            	deny all;
            }
            
            location ^~ /rutorrent/share/ {
            
            	deny all;
            }
            
            

            Cyprien

            Merci Cyprien, je vais me pencher dessus ce soir!

            Terrible!

            Bonjour à tous ,
            J'ai installé RUFY, j'accède a l interface, je lance le téléchargement du fichier. Tout à l'air de fonctioner correctement sauf que le fichier demandé sur t411 ne se télécharge pas.

            Dans le dossier de destination du téléchargement , je vois uniquement un fichier .torrent apparaitre.
            Pouvez-vous me dire ou je me suis planté
            Merci pour votre aide,
            Mickael

              mikydouky je pense que par défaut il faut que tu lui indiques ton dossier /watch de ton /home si je ne m'abuse. J'avais rencontré le même problème a l'époque et en plaçant le chemin ainsi, Rutorrent téléchargait correctement ce que je souhaitais.

              9 jours plus tard

              Je n arrive toujours pas a faire démarrer mon téléchargement.
              Le fichier torrent se télécharge bien dans mon dossier watch pourtant.
              Je n ai aucun erreur sur l interface RUFY .

              j ai fais :
              chown bitoflan59:web /home/bitoflan59/watch
              chmod g+w /home/bitoflan59/watch
              Pouvez-vous me dire ou y a une erreur dans mon fichier ngninx ?

              Merci pour votre aide.

              Mickael

              upstream rufy_server {
              server unix:/var/www/RuFy/run/gunicorn.sock fail_timeout=0;
              }

              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;
              error_log /var/log/nginx/rutorrent-error.log error;
              
              error_page 500 502 503 504 /50x.html;
              location = /50x.html { root /usr/share/nginx/html; }
              
              auth_basic "seedbox";
              auth_basic_user_file "/etc/nginx/passwd/rutorrent_passwd";
              
              location = /favicon.ico {
              	access_log off;
              	log_not_found off;
              }
              
              ## début 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;
              }
              
              ## 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 rufy

                  location ^~/rufy/static {
                  satisfy any;
                  allow all;
                  alias /var/www/RuFy/static/;
                   }
              
                   location ^~/rufy/media {
                  satisfy any;
                  allow all;
                  alias    /var/www/RuFy/media/;
                    }
              
                   location ^~/rufy {
                  satisfy any;
                  allow all;
              
                  proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
                  proxy_set_header Host $http_host;
                  proxy_redirect off;
                  if (!-f $request_filename) {
                      proxy_pass http://127.0.0.1:8000;
                      break;
                  }
              }
              
                  ## fin config rufy ##
              
              
              ## début config munin ##
              
              location ^~ /graph {
              	root /var/www;
              	include /etc/nginx/conf.d/php.conf;
              	include /etc/nginx/conf.d/cache.conf;
              }
              
              location ^~ /graph/img {
              	root /var/www;
              	include /etc/nginx/conf.d/php.conf;
              	include /etc/nginx/conf.d/cache.conf;
              	error_log /dev/null crit;
              }
              
              location ^~ /monitoring {
              	root /var/www;
              	include /etc/nginx/conf.d/php.conf;
              	include /etc/nginx/conf.d/cache.conf;
              	auth_basic "Monitoring";
              	auth_basic_user_file "/etc/nginx/passwd/rutorrent_passwd_bitoflan59";
              }
              
              location ^~ /nginx_status {
              	stub_status on;
              	access_log off;
              	satisfy any;
              	allow 127.0.0.1;
              	deny all;
              }
              
              ## fin config munin ##
              
              ## début config seedbox-manager ##
              
              location ^~ /seedbox-manager {
              	alias /var/www/seedbox-manager/public;
              	include /etc/nginx/conf.d/php-manager.conf;
              	include /etc/nginx/conf.d/cache.conf;
              }
              
              ## fin config seedbox-manager ##
              
              ## config utilisateurs ##
              
                  location /BITOFLAN59 {
                          include scgi_params;
                          scgi_pass 127.0.0.1:5001;
                          auth_basic "seedbox";
                          auth_basic_user_file "/etc/nginx/passwd/rutorrent_passwd_bitoflan59";
                  }

              }