Ba oui mais bower faut l'exécuter dans le dossier cakebox
cd /var/www/cakebox/
bower update --allow-root
Magicalex wrote:Ba oui mais bower faut l'exécuter dans le dossier cakebox
cd /var/www/cakebox/
bower update --allow-root
Oui c'est bien ce que je fais mais il n'y a aucun changement.

root@ns327638:/var/www/cakebox# bower update --allow-root
bower cached        git://github.com/twbs/bootstrap.git#3.2.0
bower validate      3.2.0 against git://github.com/twbs/bootstrap.git#~3.2.0
bower cached        git://github.com/angular/bower-angular.git#1.2.24
bower validate      1.2.24 against git://github.com/angular/bower-angular.git#~1.2.19
bower cached        git://github.com/angular/bower-angular-i18n.git#1.2.24
bower validate      1.2.24 against git://github.com/angular/bower-angular-i18n.git#~1.2.19
bower cached        git://github.com/angular/bower-angular-resource.git#1.2.24
bower validate      1.2.24 against git://github.com/angular/bower-angular-resource.git#~1.2.19
bower cached        git://github.com/angular/bower-angular-route.git#1.2.24
bower validate      1.2.24 against git://github.com/angular/bower-angular-route.git#~1.2.19
bower cached        git://github.com/angular-ui/bootstrap-bower.git#0.11.0
bower validate      0.11.0 against git://github.com/angular-ui/bootstrap-bower.git#~0.11.0
bower cached        git://github.com/fabien-d/alertify.js-shim.git#0.3.10
bower validate      0.3.10 against git://github.com/fabien-d/alertify.js-shim.git#~0.3.10
bower cached        git://github.com/asafdav/ng-clip.git#0.2.1
bower validate      0.2.1 against git://github.com/asafdav/ng-clip.git#0.2.1
bower cached        git://github.com/PascalPrecht/bower-angular-translate.git#2.2.0
bower validate      2.2.0 against git://github.com/PascalPrecht/bower-angular-translate.git#~2.2.0
bower cached        git://github.com/PascalPrecht/bower-angular-translate-loader-static-files.git#2.2.0
bower validate      2.2.0 against git://github.com/PascalPrecht/bower-angular-translate-loader-static-files.git#~2.2.0
bower cached        git://github.com/jquery/jquery.git#2.1.1
bower validate      2.1.1 against git://github.com/jquery/jquery.git#>= 1.9.0
bower cached        git://github.com/zeroclipboard/zeroclipboard.git#2.1.6
bower validate      2.1.6 against git://github.com/zeroclipboard/zeroclipboard.git#~2.1.0
Magicalex wrote:Ba oui mais bower faut l'exécuter dans le dossier cakebox
cd /var/www/cakebox/
bower update --allow-root
Ca ne change rien ...




Je sais plus quoi faire j'ai recommencer le tuto je bien vérifier que tout soit bon mais rien a faire toujours la même chose.
Si il y a besoin de plus info me demander
je vais regarder, donne moi tes accès par mp
J'ai le même problème si ta besoin d'acces magicalex ta juste a demandé ^^
le problème vient bien de bower.

tu fais en root précisément cela.
cd /var/www/cakebox/
bower update --allow-root
envoie les mots de passe par mp si tu veux
Bonjour,
je viens me greffer, j'ai un problème similaire.
J'ai beau effectuer la mise à jour (automatique et manuelle), ma version ne change pas, elle reste à 1.6.1.
Et je ne peux plus choisir mon lecteur ni streamer...
Donc si vous avez une réponse, je suis preneur
Un très grand merci a toi Magicalex tout fonctionne parfaitement et 2e serveur configurer avec succès sans aucun problème
Magicalex wrote:@winz
vérifie ton fichier conf de ton utilisateur il doit être incomplet.
Fichier conf de mon user mis à jour mais toujours le même soucis
Bonjour,

Pour commencer, merci de vos efforts et de nous faire bénéficier de votre savoir !

Grace à vous j'ai peu deployer sur mon serveur kimsufi en debian 64 bits rutorrent (light via ce tuto http://mondedie.fr/d/5399) ainsi que cakebox light. Tout est parfait, vraiment !

Je precise que je suis un debutant dans l'utilisation de nginx, la logique m'échappe encore un peu. Je souhaiterai pouvoir utiliser des sous domaines pour rutorrent ainsi que cakebox. Apres plusieurs tentatives, je peux contacter rutorrent via seedbox.domaine.ltd mais, meme si j'arrive à mes fins en utilisant cakebox.domaine.ltd, j'obtiens une erreur 401 si je tente de lire une video.

Je suis à present revenu à la configuration par défaut et à nouveau tout fonctionne parfaitement. Je precise que le nécessaire a été fait au niveau de mes dns.

Quelqu'un pourrait-il m'éclairer s'il vous plait ?

Cordialement,

Julien !
Bonsoir tout le monde !

Euh comment dire...j'ai encore merdé.....j'ai bien suivi le tuto de Magicalex pour l'installation de la Cakebox-Light et j'obtiens cette erreur :
"listen" directive is not allowed here in /etc/nginx/sites-enabled/rutorrent.conf:35
Voici mon rutorrent.conf :

    location /cakebox/<username2>/ {
        alias /home/<user2>/torrents/;
        add_header Content-Disposition "attachment";
        satisfy any;
        allow all;
    }

    ## etc si d'autre utilisateur ##

    ## fin config cakebox-light ##

    
 }
        listen 80 default_server;
        listen 443 default_server ssl;
        server_name _;

        index index.html index.php;
Bon ben la ligne 35 c'est : listen 80 default_server;...mais alors, j'ai vraiment aucune idée pourquoi cela ne marche pas.

Un coup de main serait plus que bienvenu, merci bien, en attendant bonne soirée et bon week end à tous
oula oula.

Le mieux dans ce cas là c'est de prendre du recule et surtout de COMPRENDRE CE QUE TU FAIS.

Nginx c'est simple BEAUCOUP plus simple que apache

Il y a un fichier principale nginx.conf.

dans ce fichier il y a le serveur en tant que telle. à savoir symbolisé par http {}
http {

    server  {
      #vhost 1
      listen 80;
    }

    server  {
      #vhost 2
      listen 80;
    }

    server  {
      #vhost 3
      listen 80;

        location /monsite/ {
        
        }
    }

    ## etc

}

y a que ça à retenir le reste y a que à regarder dans la doc d'abord http ensuite server et pour finir location.
Si vous avez pas cette cohérence alors c'est pas la peine de nous voir, vous connaissez déjà votre erreur.

Donc en conclusion arrêtez de faire n'importe quoi, parce que vous pouvez être sûr à 99% que ça va pas fonctionner.
Je vous remercie pour votre retour. J'espère y voir plus clair prochainement !

Bon courage à vous
On n'est jamais, finalement, mieux servi que par soi-même...c'était une erreur de balise mal placée

J'ai fait tourner l'huile de matière grise et Eurêka !

Merci encore pour tes tutos Magicalex
8 jours plus tard
Bonjour,

Tout d'abord, merci à Magicalex pour ce tuto, je suis tombé dessus par hasard et il m'a bien servi.
L'installation que j'ai faite est néanmoins un peu différente, car je n'installe pas rutorrent, j'ai déjà deluge d'installé.

J'ai donc réussi à installer les pré-requis, puis cakebox light.
J'arrive sur la page http://192.168.0.5:81/cakebox/motok/
Le seul problème est que je ne vois aucun fichier.
Cela est peux-être du au fait que mon cakebox.root pointe sur un disque dur USB qui contient un système de fichier en NTFS.

Je vois aussi des erreurs dans la console java (liées ?).

Je vous colle donc le contenu des fichiers :

/etc/nginx/sites-enabled/cakebox.conf
# You may add here your
# server {
#	...
# }
# statements for each of your virtual hosts to this file

##
# You should look at the following URL's in order to grasp a solid understanding
# of Nginx configuration files in order to fully unleash the power of Nginx.
# http://wiki.nginx.org/Pitfalls
# http://wiki.nginx.org/QuickStart
# http://wiki.nginx.org/Configuration
#
# Generally, you will want to move this file somewhere, and start with a clean
# file but keep this around for reference. Or just disable in sites-enabled.
#
# Please see /usr/share/doc/nginx-doc/examples/ for more detailed examples.
##

server {
	listen   81 default_server; ## listen for ipv4; this line is default and implied
	#listen   [::]:80 default_server ipv6only=on; ## listen for ipv6

	root /var/www/cakebox/public;
	index  index.php;

	# Make site accessible from http://localhost/
	server_name CakeBox;

	location / {
		# First attempt to serve request as file, then
		# as directory, then fall back to displaying a 404.
		try_files $uri $uri/ /index.html;
		# Uncomment to enable naxsi on this location
		# include /etc/nginx/naxsi.rules
	}

        location /cakebox/ {
        rewrite ^/cakebox(/.*)$ $1 break;
        proxy_pass http://127.0.0.1:81;
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto https;
        proxy_redirect    off;
        }

	location /cakebox/motok/ {
        alias /media/USBHDD1/shares/Web/;
        add_header Content-Disposition "attachment";
        satisfy any;
        allow all;
        autoindex on;
	}

	location /doc/ {
		alias /usr/share/doc/;
		autoindex on;
		allow 127.0.0.1;
		allow ::1;
		deny all;
	}

	# Only for nginx-naxsi used with nginx-naxsi-ui : process denied requests
	#location /RequestDenied {
	#	proxy_pass http://127.0.0.1:8080;    
	#}

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

	# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
	#
	location ~ \.php$ {
		fastcgi_split_path_info ^(.+\.php)(/.+)$;
	#	# NOTE: You should have "cgi.fix_pathinfo = 0;" in php.ini
	#
	#	# With php5-cgi alone:
	#	fastcgi_pass 127.0.0.1:9000;
	#	# With php5-fpm:
		fastcgi_pass unix:/var/run/php5-fpm.sock;
		fastcgi_index index.php;
		include fastcgi_params;
	}

	# deny access to .htaccess files, if Apache's document root
	# concurs with nginx's one
	#
	#location ~ /\.ht {
	#	deny all;
	#}
}


# another virtual host using mix of IP-, name-, and port-based configuration
#
#server {
#	listen 8000;
#	listen somename:8080;
#	server_name somename alias another.alias;
#	root html;
#	index index.html index.htm;
#
#	location / {
#		try_files $uri $uri/ =404;
#	}
#}


# HTTPS server
#
#server {
#	listen 443;
#	server_name localhost;
#
#	root html;
#	index index.html index.htm;
#
#	ssl on;
#	ssl_certificate cert.pem;
#	ssl_certificate_key cert.key;
#
#	ssl_session_timeout 5m;
#
#	ssl_protocols SSLv3 TLSv1;
#	ssl_ciphers ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv3:+EXP;
#	ssl_prefer_server_ciphers on;
#
#	location / {
#		try_files $uri $uri/ =404;
#	}
#}
/var/www/cakebox/config/motok.php
<?php

/*
  General configuration of Cakebox
*/
$app["cakebox.root"] = "/media/USBHDD1/shares/Web/"; // Root directory Cakebox have to scan
$app["cakebox.access"] = "/cakebox/motok/"; // Alias used in web server for direct access
$app["cakebox.language"] = "fr"; //Language of Cakebox. Could be : fr, en

/*
  Directory settings
*/
$app["directory.ignoreDotFiles"] = false;
$app["directory.ignore"] = "//"; // Regex for files exclusion. For exemple : "/(\.nfo|\.test)$/"

/*
  Web player settings
*/
$app["player.default_type"] = "vlc"; // html5 or divx or vlc
$app["player.auto_play"] = "false";

/*
  User rights
*/
$app["rights.canPlayMedia"] = true;
$app["rights.canDownloadFile"] = true;
$app["rights.canArchiveDirectory"] = false;
$app["rights.canDelete"] = false;

/*
  Betaseries account
  NB: Ask API key here http://www.betaseries.com/api/
*/
$app["bs.login"] = "";
$app["bs.passwd"] = "";
$app["bs.apikey"] = "";
access.log
192.168.0.3 - - [29/Sep/2014:17:10:22 +0200] "GET /cakebox/motok/ HTTP/1.1" 200 204 "-" "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.124 Safari/537.36"
192.168.0.3 - - [29/Sep/2014:17:10:24 +0200] "GET /cakebox/motok/ HTTP/1.1" 200 204 "-" "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.124 Safari/537.36"
192.168.0.3 - - [29/Sep/2014:17:10:26 +0200] "GET /cakebox/motok HTTP/1.1" 304 0 "-" "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.124 Safari/537.36"
127.0.0.1 - - [29/Sep/2014:17:10:26 +0200] "GET /motok HTTP/1.0" 304 0 "-" "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.124 Safari/537.36"
192.168.0.3 - - [29/Sep/2014:17:10:27 +0200] "GET /cakebox/ressources/languages/locale-fr.json HTTP/1.1" 304 0 "http://192.168.0.5:81/cakebox/motok" "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.124 Safari/537.36"
127.0.0.1 - - [29/Sep/2014:17:10:27 +0200] "GET /ressources/languages/locale-fr.json HTTP/1.0" 304 0 "http://192.168.0.5:81/cakebox/motok" "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.124 Safari/537.36"
192.168.0.3 - - [29/Sep/2014:17:10:27 +0200] "GET /cakebox/api/app HTTP/1.1" 304 0 "http://192.168.0.5:81/cakebox/motok" "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.124 Safari/537.36"
192.168.0.3 - - [29/Sep/2014:17:10:27 +0200] "GET /cakebox/api/rights HTTP/1.1" 304 0 "http://192.168.0.5:81/cakebox/motok" "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.124 Safari/537.36"
127.0.0.1 - - [29/Sep/2014:17:10:27 +0200] "GET /api/app HTTP/1.0" 304 0 "http://192.168.0.5:81/cakebox/motok" "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.124 Safari/537.36"
127.0.0.1 - - [29/Sep/2014:17:10:27 +0200] "GET /api/rights HTTP/1.0" 304 0 "http://192.168.0.5:81/cakebox/motok" "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.124 Safari/537.36"
192.168.0.3 - - [29/Sep/2014:17:10:27 +0200] "GET /cakebox/partials/browse.html HTTP/1.1" 304 0 "http://192.168.0.5:81/cakebox/motok" "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.124 Safari/537.36"
127.0.0.1 - - [29/Sep/2014:17:10:27 +0200] "GET /partials/browse.html HTTP/1.0" 304 0 "http://192.168.0.5:81/cakebox/motok" "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.124 Safari/537.36"
192.168.0.3 - - [29/Sep/2014:17:10:27 +0200] "GET /cakebox/components/jquery/dist/jquery.min.map HTTP/1.1" 304 0 "http://192.168.0.5:81/cakebox/motok" "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.124 Safari/537.36"
127.0.0.1 - - [29/Sep/2014:17:10:27 +0200] "GET /components/jquery/dist/jquery.min.map HTTP/1.0" 304 0 "http://192.168.0.5:81/cakebox/motok" "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.124 Safari/537.36"
192.168.0.3 - - [29/Sep/2014:17:10:27 +0200] "GET /cakebox/components/angular/angular.min.js.map HTTP/1.1" 304 0 "http://192.168.0.5:81/cakebox/motok" "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.124 Safari/537.36"
127.0.0.1 - - [29/Sep/2014:17:10:27 +0200] "GET /components/angular/angular.min.js.map HTTP/1.0" 304 0 "http://192.168.0.5:81/cakebox/motok" "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.124 Safari/537.36"
192.168.0.3 - - [29/Sep/2014:17:10:27 +0200] "GET /cakebox/components/angular-resource/angular-resource.min.js.map HTTP/1.1" 304 0 "http://192.168.0.5:81/cakebox/motok" "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.124 Safari/537.36"
127.0.0.1 - - [29/Sep/2014:17:10:27 +0200] "GET /components/angular-resource/angular-resource.min.js.map HTTP/1.0" 304 0 "http://192.168.0.5:81/cakebox/motok" "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.124 Safari/537.36"
192.168.0.3 - - [29/Sep/2014:17:10:27 +0200] "GET /cakebox/components/angular-route/angular-route.min.js.map HTTP/1.1" 304 0 "http://192.168.0.5:81/cakebox/motok" "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.124 Safari/537.36"
127.0.0.1 - - [29/Sep/2014:17:10:27 +0200] "GET /components/angular-route/angular-route.min.js.map HTTP/1.0" 304 0 "http://192.168.0.5:81/cakebox/motok" "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.124 Safari/537.36"
192.168.0.3 - - [29/Sep/2014:17:10:34 +0200] "-" 400 0 "-" "-"
192.168.0.3 - - [29/Sep/2014:17:10:34 +0200] "-" 400 0 "-" "-"
Le fichier error.log est vide.

Et enfin, ce que la console javascript me donne :
TypeError: Cannot read property 'local' of undefined
    at http://192.168.0.5:81/cakebox/app/controller/AppCtrl.js:14:39
    at http://192.168.0.5:81/cakebox/components/angular-resource/angular-resource.min.js:9:303
    at E (http://192.168.0.5:81/cakebox/components/angular/angular.min.js:100:187)
    at http://192.168.0.5:81/cakebox/components/angular/angular.min.js:101:350
    at k.$eval (http://192.168.0.5:81/cakebox/components/angular/angular.min.js:112:68)
    at k.$digest (http://192.168.0.5:81/cakebox/components/angular/angular.min.js:109:168)
    at k.$apply (http://192.168.0.5:81/cakebox/components/angular/angular.min.js:112:398)
    at h (http://192.168.0.5:81/cakebox/components/angular/angular.min.js:72:454)
    at u (http://192.168.0.5:81/cakebox/components/angular/angular.min.js:77:463)
    at XMLHttpRequest.w.onreadystatechange (http://192.168.0.5:81/cakebox/components/angular/angular.min.js:79:24) angular.js:10071
4Error: [$resource:badcfg] http://errors.angularjs.org/1.2.25/$resource/badcfg?p0=array&p1=object
    at Error (native)
    at http://192.168.0.5:81/cakebox/components/angular/angular.min.js:6:450
    at p.then.m.$resolved (http://192.168.0.5:81/cakebox/components/angular-resource/angular-resource.min.js:8:517)
    at E (http://192.168.0.5:81/cakebox/components/angular/angular.min.js:100:187)
    at E (http://192.168.0.5:81/cakebox/components/angular/angular.min.js:100:187)
    at http://192.168.0.5:81/cakebox/components/angular/angular.min.js:101:350
    at k.$eval (http://192.168.0.5:81/cakebox/components/angular/angular.min.js:112:68)
    at k.$digest (http://192.168.0.5:81/cakebox/components/angular/angular.min.js:109:168)
    at k.$apply (http://192.168.0.5:81/cakebox/components/angular/angular.min.js:112:398)
    at h (http://192.168.0.5:81/cakebox/components/angular/angular.min.js:72:454) 
Ok, je dois t'avouer que j'ai essayé tellement de trucs que je ne sais plus où j'ai trouvé ce fichier, je viens de le remplacer par le tien.
Du coup, j'ai bien une arborescence quand je vais sur http://192.168.0.5/cakebox/

Par contre, après avoir indiqué le chemin /media/USBHDD1/shares/Web/ en lieu et place de /YOUR/PATH , j'ai maintenant cette erreur
{"status_code":404,"message":"No route found for \u0022GET \/motok\u0022"}
quand je veux aller sur http://192.168.0.5/cakebox/motok

Merci de tes précieuses indications et de ta réactivité !