[RESOLU]
Bonjour tout le monde,
Merci pour votre contribution.
J’ai installé rtorrent en utilisant ce tuto :
https://mondedie.fr/d/5399
Puis j’ai installé cakebox avec ce tuto :
https://mondedie.fr/d/5314
Tout d’abord j’ai rencontré ce problème lors du téléchargement du composer.phar, ca me l’a fait plus d’une fois.
Quelqu’un aurait une explication ?
root@xxxx:~# cd /tmp/
root@xxxx:/tmp# curl -s http://getcomposer.org/installer | php
All settings correct for using Composer
Downloading...
Download failed: file_get_contents(https://getcomposer.org/composer.phar.sig): failed to open stream: Connection timed out
Download failed: file_get_contents(https://getcomposer.org/composer.phar.sig): failed to open stream: Connection timed out
file_get_contents(https://getcomposer.org/composer.phar): failed to open stream: Connection timed out
Downloading...
Download failed: file_get_contents(https://getcomposer.org/composer.phar.sig): failed to open stream: Connection timed out
Download failed: file_get_contents(https://getcomposer.org/composer.phar.sig): failed to open stream: Connection timed out
file_get_contents(https://getcomposer.org/composer.phar): failed to open stream: Connection timed out
Downloading...
Download failed: file_get_contents(https://getcomposer.org/composer.phar.sig): failed to open stream: Connection timed out
Download failed: file_get_contents(https://getcomposer.org/composer.phar.sig): failed to open stream: Connection timed out
file_get_contents(https://getcomposer.org/composer.phar): failed to open stream: Connection timed out
The download failed repeatedly, aborting.
root@xxxx:/tmp# curl -s http://getcomposer.org/installer | php
All settings correct for using Composer
Downloading...
Composer successfully installed to: /tmp/composer.phar
Use it: php composer.phar
root@xxxx:/tmp# mv /tmp/composer.phar /usr/bin/composer
Une fois le tuto fini j’arrive à accéder à la cakebox (URL:
http://x.x.x.x/cakebox/index.html#/), je vois bien mes fichiers et dossiers. Une fois que je clique sur un fichier vidéo, je vois bien le lecteur, mais impossible de le visionner. (URL:
http://x.x.x.x/cakebox/index.html#/play/Invisible.Boy.2015.FRENCH.1080p.WEB-DL.H264-AMY.mkv).
Et impossible de la télécharger j’ai une erreur 404 Not Found nginx (URL :
http://x.x.x.x/cakebox/maelys09/Invisible.Boy.2015.FRENCH.1080p.WEB-DL.H264-AMY.mkv).
J'ai fait quelques vérifications :
Fichier user.php
cat /var/www/cakebox/config/maelys09.php
<?php
/*
General configuration of Cakebox
*/
$app["cakebox.root"] = "/home/maelys09/torrents/"; // Root directory Cakebox have to scan
$app["cakebox.access"] = "/cakebox/maelys09/"; // 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"] = "html5"; // html5 or divx or vlc
$app["player.auto_play"] = "false";
/*
Betaseries account
NB: Ask API key here http://www.betaseries.com/api/
*/
$app["bs.login"] = "";
$app["bs.passwd"] = "";
$app["bs.apikey"] = "";
$app["rights.canPlayMedia"] = true;
$app["rights.canDownloadFile"] = true;
$app["rights.canArchiveDirectory"] = true;
$app["rights.canDelete"] = true;
Fichier file_torrent.sh
cat /home/maelys09/.session/file_torrent.sh
#!/bin/bash
# mise à jour des chmod et du groupe.
# chmod 775 pour les dossiers et chmod 664 pour les fichiers (obligatoire)
find /home/$USER/torrents ! -group web -type f -exec chmod 664 {} \;
find /home/$USER/torrents ! -group web -type d -exec chmod 775 {} \;
find /home/$USER/torrents ! -group web -exec chown $USER:web {} \;
exit 0
Fichier .rtorrent.rc
cat /home/maelys09/.rtorrent.rc
scgi_port = 127.0.0.1:5001
encoding_list = UTF-8
port_range = 45000-65000
port_random = no
check_hash = no
directory = /home/maelys09/torrents
session = /home/maelys09/.session
encryption = allow_incoming, try_outgoing, enable_retry
schedule = watch_directory,1,1,"load_start=/home/maelys09/watch/*.torrent"
schedule = untied_directory,5,5,"stop_untied=/home/maelys09/watch/*.torrent"
schedule = espace_disque_insuffisant,1,30,close_low_diskspace=500M
use_udp_trackers = yes
dht = off
peer_exchange = no
min_peers = 40
max_peers = 100
min_peers_seed = 10
max_peers_seed = 50
max_uploads = 15
execute = {sh,-c,/usr/bin/php /var/www/rutorrent/php/initplugins.php maelys09 &}
system.method.set_key = event.download.finished,update_file,"execute=/home/maelys09/.session/file_torrent.sh"
system.method.set_key = event.download.finished,update_file,"execute=/home/maelys09/.session/file_torrent.sh"
system.method.set_key = event.download.finished,update_file,"execute=/home/maelys09/.session/file_torrent.sh"
system.method.set_key = event.download.finished,update_file,"execute=/home/maelys09/.session/file_torrent.sh"
Fichier cakebox-error.log
cat /var/log/nginx/cakebox-error.log
vide
Fichier cakebox-access.log
cat /var/log/nginx/cakebox-access.log
127.0.0.1 - maelys09 [22/Jan/2016:19:50:33 +0100] "GET /api/directories?path= HTTP/1.0" 200 1641 "http://x.x.x.x/cakebox/index.html" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:43.0) Gecko/20100101 Firefox/43.0"
127.0.0.1 - maelys09 [22/Jan/2016:19:50:35 +0100] "GET /api/player HTTP/1.0" 200 209 "http://x.x.x.x/cakebox/index.html" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:43.0) Gecko/20100101 Firefox/43.0"
127.0.0.1 - maelys09 [22/Jan/2016:19:50:35 +0100] "GET /api/betaseries/config HTTP/1.0" 200 45 "http://x.x.x.x/cakebox/index.html" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:43.0) Gecko/20100101 Firefox/43.0"
127.0.0.1 - maelys09 [22/Jan/2016:19:50:35 +0100] "GET /api/files?path=Seul.Sur.Mars.The.Martian.2015.1080p.Truefrench.DTS.H264~Xantar.mkv HTTP/1.0" 200 305 "http://x.x.x.x/cakebox/index.html" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:43.0) Gecko/20100101 Firefox/43.0"
Toutes les commandes ont été réalisé en root.
Merci d'avance pour votre aide.
Edit pour nadrelaxe :
Fichier rutorrent-error.log :
cat /var/log/nginx/rutorrent-error.log
2016/01/22 08:57:38 [error] 15775#15775: *339 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 187.189.195.40, server: _, request: "HEAD /a2billing/customer/iridium_threed.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "x.x.x.x"
2016/01/22 09:05:11 [error] 15775#15775: *343 open() "/var/www/base/script" failed (2: No such file or directory), client: x.x.x.x, server: _, request: "GET /script HTTP/1.1", host: "x.x.x.x:80"
2016/01/22 09:05:19 [error] 15775#15775: *345 open() "/var/www/base/jenkins/script" failed (2: No such file or directory), client: x.x.x.x, server: _, request: "GET /jenkins/script HTTP/1.1", host: "x.x.x.x:80"
2016/01/22 09:05:26 [error] 15775#15775: *347 open() "/var/www/base/login" failed (2: No such file or directory), client: x.x.x.x, server: _, request: "GET /login HTTP/1.1", host: "x.x.x.x:80"
2016/01/22 09:05:35 [error] 15775#15775: *349 open() "/var/www/base/jmx-console" failed (2: No such file or directory), client: x.x.x.x, server: _, request: "GET /jmx-console HTTP/1.1", host: "x.x.x.x:80"
2016/01/22 09:05:42 [error] 15775#15775: *351 open() "/var/www/base/manager/html" failed (2: No such file or directory), client: x.x.x.x, server: _, request: "GET /manager/html HTTP/1.1", host: "x.x.x.x:80"
2016/01/22 09:05:50 [error] 15775#15775: *353 open() "/var/www/base/msd" failed (2: No such file or directory), client: x.x.x.x, server: _, request: "GET /msd HTTP/1.1", host: "x.x.x.x:80"
2016/01/22 09:05:56 [error] 15775#15775: *355 open() "/var/www/base/mySqlDumper" failed (2: No such file or directory), client: x.x.x.x, server: _, request: "GET /mySqlDumper HTTP/1.1", host: "x.x.x.x:80"
2016/01/22 09:06:05 [error] 15775#15775: *357 open() "/var/www/base/msd1.24stable" failed (2: No such file or directory), client: x.x.x.x, server: _, request: "GET /msd1.24stable HTTP/1.1", host: "x.x.x.x:80"
2016/01/22 09:06:12 [error] 15775#15775: *359 open() "/var/www/base/msd1.24.4" failed (2: No such file or directory), client: x.x.x.x, server: _, request: "GET /msd1.24.4 HTTP/1.1", host: "x.x.x.x:80"
2016/01/22 09:06:18 [error] 15775#15775: *361 open() "/var/www/base/mysqldumper" failed (2: No such file or directory), client: x.x.x.x, server: _, request: "GET /mysqldumper HTTP/1.1", host: "x.x.x.x:80"
2016/01/22 09:06:24 [error] 15775#15775: *363 open() "/var/www/base/MySQLDumper" failed (2: No such file or directory), client: x.x.x.x, server: _, request: "GET /MySQLDumper HTTP/1.1", host: "x.x.x.x:80"
2016/01/22 09:06:30 [error] 15775#15775: *365 open() "/var/www/base/mysql" failed (2: No such file or directory), client: x.x.x.x, server: _, request: "GET /mysql HTTP/1.1", host: "x.x.x.x:80"
2016/01/22 09:06:37 [error] 15775#15775: *367 open() "/var/www/base/sql" failed (2: No such file or directory), client: x.x.x.x, server: _, request: "GET /sql HTTP/1.1", host: "x.x.x.x:80"
2016/01/22 09:06:43 [error] 15775#15775: *369 open() "/var/www/base/phpmyadmin" failed (2: No such file or directory), client: x.x.x.x, server: _, request: "GET /phpmyadmin HTTP/1.1", host: "x.x.x.x:80"
2016/01/22 09:06:49 [error] 15775#15775: *371 open() "/var/www/base/phpMyAdmin" failed (2: No such file or directory), client: x.x.x.x, server: _, request: "GET /phpMyAdmin HTTP/1.1", host: "x.x.x.x:80"
2016/01/22 10:39:33 [error] 15775#15775: *389 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 95.213.177.122, server: _, request: "POST http://check.proxyradar.com/azenv.php?auth=145345556969&a=PSCMN&i=86465884&p=80 HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "check.proxyradar.com", referrer: "https://proxyradar.com/"
2016/01/22 14:44:43 [error] 15775#15775: *394 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: x.x.x.x, server: _, request: "POST http://check.proxyradar.com/azenv.php?auth=145347027941&a=PSCMN&i=86465884&p=80 HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "check.proxyradar.com", referrer: "https://proxyradar.com/"
2016/01/22 18:16:05 [error] 15775#15775: *396 open() "/var/www/base/manager/html" failed (2: No such file or directory), client: x.x.x.x, server: _, request: "GET /manager/html HTTP/1.1", host: "x.x.x.x"
2016/01/22 19:01:06 [error] 15775#15775: *449 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: x.x.x.x, server: _, request: "POST http://check.proxyradar.com/azenv.php?auth=145348566265&a=PSCMN&i=86465884&p=80 HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "check.proxyradar.com", referrer: "https://proxyradar.com/"
2016/01/22 19:13:56 [error] 15775#15775: *521 open() "/home/maelys009/torrents/Invisible.Boy.2015.FRENCH.1080p.WEB-DL.H264-AMY.mkv" failed (2: No such file or directory), client: x.x.x.x, server: _, request: "GET /cakebox/maelys09/Invisible.Boy.2015.FRENCH.1080p.WEB-DL.H264-AMY.mkv HTTP/1.1", host: "x.x.x.x", referrer: "http://x.x.x.x/cakebox/index.html"
2016/01/22 19:13:57 [error] 15775#15775: *521 open() "/home/maelys009/torrents/Invisible.Boy.2015.FRENCH.1080p.WEB-DL.H264-AMY.mkv" failed (2: No such file or directory), client: x.x.x.x, server: _, request: "GET /cakebox/maelys09/Invisible.Boy.2015.FRENCH.1080p.WEB-DL.H264-AMY.mkv HTTP/1.1", host: "x.x.x.x", referrer: "http://x.x.x.x/cakebox/index.html"
2016/01/22 19:39:36 [error] 15775#15775: *626 open() "/home/maelys009/torrents/Invisible.Boy.2015.FRENCH.1080p.WEB-DL.H264-AMY.mkv" failed (2: No such file or directory), client: x.x.x.x, server: _, request: "GET /cakebox/maelys09/Invisible.Boy.2015.FRENCH.1080p.WEB-DL.H264-AMY.mkv HTTP/1.1", host: "x.x.x.x", referrer: "http://x.x.x.x/cakebox/index.html"
2016/01/22 19:39:37 [error] 15775#15775: *626 open() "/home/maelys009/torrents/Invisible.Boy.2015.FRENCH.1080p.WEB-DL.H264-AMY.mkv" failed (2: No such file or directory), client: x.x.x.x, server: _, request: "GET /cakebox/maelys09/Invisible.Boy.2015.FRENCH.1080p.WEB-DL.H264-AMY.mkv HTTP/1.1", host: "x.x.x.x", referrer: "http://x.x.x.x/cakebox/index.html"
2016/01/22 19:45:07 [error] 15775#15775: *742 open() "/home/maelys009/torrents/Invisible.Boy.2015.FRENCH.1080p.WEB-DL.H264-AMY.mkv" failed (2: No such file or directory), client: x.x.x.x, server: _, request: "GET /cakebox/maelys09/Invisible.Boy.2015.FRENCH.1080p.WEB-DL.H264-AMY.mkv HTTP/1.1", host: "x.x.x.x", referrer: "http://x.x.x.x/cakebox/index.html"
2016/01/22 19:45:09 [error] 15775#15775: *742 open() "/home/maelys009/torrents/Invisible.Boy.2015.FRENCH.1080p.WEB-DL.H264-AMY.mkv" failed (2: No such file or directory), client: x.x.x.x, server: _, request: "GET /cakebox/maelys09/Invisible.Boy.2015.FRENCH.1080p.WEB-DL.H264-AMY.mkv HTTP/1.1", host: "x.x.x.x", referrer: "http://x.x.x.x/cakebox/index.html"
2016/01/22 19:49:59 [error] 15775#15775: *742 open() "/home/maelys009/torrents/Invisible.Boy.2015.FRENCH.1080p.WEB-DL.H264-AMY.mkv" failed (2: No such file or directory), client: x.x.x.x, server: _, request: "GET /cakebox/maelys09/Invisible.Boy.2015.FRENCH.1080p.WEB-DL.H264-AMY.mkv HTTP/1.1", host: "x.x.x.x", referrer: http://x.x.x.x/cakebox/index.html
2016/01/22 19:50:35 [error] 15775#15775: *742 open() "/home/maelys009/torrents/Seul.Sur.Mars.The.Martian.2015.1080p.Truefrench.DTS.H264~Xantar.mkv" failed (2: No such file or directory), client: x.x.x.x, server: _, request: "GET /cakebox/maelys09/Seul.Sur.Mars.The.Martian.2015.1080p.Truefrench.DTS.H264~Xantar.mkv HTTP/1.1", host: "x.x.x.x", referrer: "http://x.x.x.x/cakebox/index.html"
2016/01/22 19:50:37 [error] 15775#15775: *742 open() "/home/maelys009/torrents/Seul.Sur.Mars.The.Martian.2015.1080p.Truefrench.DTS.H264~Xantar.mkv" failed (2: No such file or directory), client: x.x.x.x, server: _, request: "GET /cakebox/maelys09/Seul.Sur.Mars.The.Martian.2015.1080p.Truefrench.DTS.H264~Xantar.mkv HTTP/1.1", host: "x.x.x.x", referrer: "http://x.x.x.x/cakebox/index.html"
2016/01/22 21:38:11 [error] 15776#15776: *1454 open() "/var/www/base/clientaccesspolicy.xml" failed (2: No such file or directory), client: x.x.x.x, server: _, request: "GET /clientaccesspolicy.xml HTTP/1.1", host: "x.x.x.x"
J'ai pu remarquer une erreur de frappe "maelys009" au lieu de "maelys09":
2016/01/22 19:50:37 [error] 15775#15775: *742 open() "/home/maelys009/torrents/Seul.Sur.Mars.The.Martian.2015.1080p.Truefrench.DTS.H264~Xantar.mkv" failed (2: No such file or directory), client: x.x.x.x, server: _, request: "GET /cakebox/maelys09/Seul.Sur.Mars.The.Martian.2015.1080p.Truefrench.DTS.H264~Xantar.mkv HTTP/1.1", host: "x.x.x.x", referrer: "http://x.x.x.x/cakebox/index.html"
Mais je ne sais pas quel fichier il faut modifier.
[SOLUTION]
Edit : faute de frappe dans le fichier rutorrent.conf (Un grand merci à Jedediah).
nano /etc/nginx/sites-enabled/rutorrent.conf