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

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

      }

      un mois plus tard

      Hello ! A nouveau, Rufy depuis ce matin me colle une erreur 500 lorsque je m'identifie.
      En passant en mode debug (comme indiqué plus haut), voici la sortie:

        <>
      ValueError at /rufy/connexion
          No JSON object could be decoded
          Request Method:	POST
          Request URL:	http://*******/rufy/connexion
          Django Version:	1.9.4
          Exception Type:	ValueError
          Exception Value:	
          No JSON object could be decoded
          Exception Location:	/usr/lib/python2.7/json/decoder.py in raw_decode, line 384
          Python Executable:	/var/www/RuFy/venv/bin/python2.7
          Python Version:	2.7.9
          Python Path:	
          ['/var/www/RuFy',
           '/var/www/RuFy/venv/bin',
           '/var/www/RuFy',
           '/var/www/RuFy/venv/lib/python2.7',
           '/var/www/RuFy/venv/lib/python2.7/plat-x86_64-linux-gnu',
           '/var/www/RuFy/venv/lib/python2.7/lib-tk',
           '/var/www/RuFy/venv/lib/python2.7/lib-old',
           '/var/www/RuFy/venv/lib/python2.7/lib-dynload',
           '/usr/lib/python2.7',
           '/usr/lib/python2.7/plat-x86_64-linux-gnu',
           '/usr/lib/python2.7/lib-tk',
           '/var/www/RuFy/venv/local/lib/python2.7/site-packages']
          Server time:	lun, 27 Mar 2017 15:37:49 +0000

      Comment réparer ?

      Yop all,
      moi aussi j'ai une 500 depuis ce matin, je pense que ça vient du fait que t411 est passé de ".li" à ".ai" du coup ça doit faire planer l'api.
      @Cyprien si jamais tu avais quelques minutes pour modifier les url de rufy ? 🙂
      Merci !

        Bonjour,
        Je viens d'installer RuFy (super appli en passant) et tout fonctionne correctement jusqu'au chargement dans ruTorrent.
        Le fichier .torrent est bien ajouté au répertoire watch, par contre j'ai un problème de droit d'accès a ce fichier:

        ls -l torrents/watch/Film/
        -rw-r--r-- 1 rufy web 15629 mars  28 ***********.torrent

        Le soucis vient du fait que mon user rutorrent n'a pas de droit en écriture sur ce fichier, il n'arrive donc pas à supprimer le torrent du watch en l'ajoutant. Il me renomme le fichier en .torrent.fail (sans droit en écriture pourtant) et ne lance rien.
        En changeant l'owner ou en rajoutant les droit d’écriture pour le groupe, le torrent se charge sans problème.

        C'est normal ? Est-ce que j'ai raté une étape ou est-ce un problème de conf rutorrent ?

        Merci d'avance,

        9 jours plus tard

        Yo all,
        Depuis peu je me confronte à un incident sur RUFY. Lorsque je me connecte avec un compte existant j'obtiens un "Server Error (500)" alors que lorsque je saisis de mauvais identifiant j'obtient bien l'indication que l'utilisateur inconnu. A côté de ça j'ai fait la modification du l'URL de l'API T411.

        Des petites idées ? Suis-je le seul dans ce cas ?

          Salut,
          J'ai exactement le même soucis, mais ca m'arrive aussi avec d'autres applis qui utilise l'API de T411.
          Il me semble qu'elle est un peu en vrac en ce moment, l'authentification ne renvoi plus de token.

          D'accord. Je vous remercie de me confirmer ce que je présentais, merci 😀

          17 jours plus tard

          lokiii
          C'est fait 😉
          Mais ce n'était pas ça le problème puisque la redirection fonctionne encore actuellement 😉

          8 jours plus tard

          Bonjour, comment est ce qu'on change le rutorrent.conf ? Il est situé où ?
          Je ne sais pas me servir de nginx..
          Merci 🙂

            werterhalimi1 Salut,

            C'est le fichier de conf Nginx qui vient avec le script MDD Bonobox, il se trouve dans /etc/nginx/sites-enabled.