• Seedbox
  • [Discussion] Installation de l'application seedbox-manager

voilà corrigé mais je tombes sur une erreur 404 maintenant
Je viens de voir qu'il y a un petit soucis avec le tuto seedbox-manager par rapport à php.

Pour les conf, un coup on a:
location ^~ / {
root /var/www/seedbox-manager/public;
include /etc/nginx/conf.d/php.conf;
include /etc/nginx/conf.d/cache.conf;
}
ou en URI:
location ^~ /seedbox-manager {
alias /var/www/seedbox-manager/public;
include /etc/nginx/conf.d/php-manager.conf;
include /etc/nginx/conf.d/cache.conf;
}
Et pour le php-manager.conf, on est sur du php5 alors que le tuto rutorrent installe maintenant du php7
location ~ \.php$ {
root /var/www/seedbox-manager/public;
include /etc/nginx/fastcgi_params;
fastcgi_index index.php;
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_param SCRIPT_FILENAME $document_root/index.php;
}
Donc par rapport à ce que j'ai posté au dessus comme rutorrent.conf, commences par vérifier ta version de php:
php -v
Si tu as du 7, php-manager.conf devrait plutot être comme ça sinon c'est ok:
location ~ \.php$ {
    root /var/www/seedbox-manager/public;
    include /etc/nginx/fastcgi_params;
    fastcgi_index index.php;
    fastcgi_pass unix:/run/php/php7.0-fpm.sock;
    fastcgi_param SCRIPT_FILENAME $document_root/index.php;
}
Bon courage !
Ex.
Merci ex_rat une fois le php manager corrigé et redémarrage de nginx tout est ok j'ai bien le seedbox manager à l'endroit où je le veux.
ex_rat wrote:[...]Pour ton histoire de plugin dans rutorrent, regardes ici ça doit être ce que tu cherches :
https://mondedie.fr/d/5395/44
Ex.
J'ai bien fait d'attendre car celui-là était perdu... Alors merci Ex_rat.

is it possible to show disk space per-user? not all hdd show in the seedbox manager?

9 jours plus tard
Bonjour à tous,

J'ai essayer d'installer seedbox-manager mais lors du redémarrage de nains j'ai une erreur :

Job for nginx.service failed. See 'systemctl status nginx.service' and 'journalctl -xn' for details.

J'ai remove et purger nginx remis les fichiers que j'avais sauvegarder mais toujours la meme erreur...
Salut,

Que disent les logs justement ?
Aerya wrote:Salut,

Que disent les logs justement ?
Comment je peux faire pour voir ça ? dsl je suis novice j'ai suivi les tuto pour faire la seedbox...
juluan wrote: Job for nginx.service failed. See 'systemctl status nginx.service' and 'journalctl -xn' for details.
=> See 'systemctl status nginx.service' and 'journalctl -xn' for details
systemctl status nginx.service 
journalctl -xn
alors voici ce que ça donne : (pour moi je suis perdu...)

● nginx.service - A high performance web server and a reverse proxy server
Loaded: loaded (/lib/systemd/system/nginx.service; enabled)
Active: failed (Result: exit-code) since sam. 2016-07-23 19:07:54 CEST; 3h 45min ago
Docs: man:nginx(8)
Process: 25925 ExecStop=/sbin/start-stop-daemon --quiet --stop --retry QUIT/5 --pidfile /run/nginx.pid (code=exited, status=0/SUCCESS)
Process: 25929 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=1/FAILURE)
Main PID: 25412 (code=exited, status=0/SUCCESS)

juil. 23 19:07:54 SeedBox nginx[25929]: nginx: [emerg] "location" directive ...1
juil. 23 19:07:54 SeedBox nginx[25929]: nginx: configuration file /etc/nginx...d
juil. 23 19:07:54 SeedBox systemd[1]: nginx.service: control process exited...=1
juil. 23 19:07:54 SeedBox systemd[1]: Failed to start A high performance we...r.
juil. 23 19:07:54 SeedBox systemd[1]: Unit nginx.service entered failed state.
Hint: Some lines were ellipsized, use -l to show in full.
root@SeedBox:~# journalctl -xn
-- Logs begin at ven. 2016-07-22 18:13:58 CEST, end at sam. 2016-07-23 22:54:01
juil. 23 22:52:01 SeedBox CRON[11503]: pam_unix(cron:session): session closed fo
juil. 23 22:53:00 SeedBox sshd[11582]: Accepted password for root from 86.201.1.
juil. 23 22:53:00 SeedBox sshd[11582]: pam_unix(sshd:session): session opened fo
juil. 23 22:53:01 SeedBox CRON[11722]: pam_unix(cron:session): session opened fo
juil. 23 22:53:01 SeedBox CRON[11723]: (root) CMD (/usr/local/rtm/bin/rtm 53 > /
juil. 23 22:53:02 SeedBox CRON[11722]: pam_unix(cron:session): session closed fo
juil. 23 22:53:20 SeedBox sshd[11816]: Connection closed by 115.28.80.80 [preaut
juil. 23 22:54:01 SeedBox CRON[11835]: pam_unix(cron:session): session opened fo
juil. 23 22:54:01 SeedBox CRON[11836]: (root) CMD (/usr/local/rtm/bin/rtm 53 > /
juil. 23 22:54:01 SeedBox CRON[11835]: pam_unix(cron:session): session closed fo
Utilise les balises code stp, c'est plus lisible
Et c'est moi ou il manque la fin des lignes ?
juil. 23 19:07:54 SeedBox nginx[25929]: nginx: [emerg] "location" directive ...1
juil. 23 19:07:54 SeedBox nginx[25929]: nginx: configuration file /etc/nginx...d
juil. 23 19:07:54 SeedBox systemd[1]: nginx.service: control process exited...=1
juil. 23 19:07:54 SeedBox systemd[1]: Failed to start A high performance we...r.
juil. 23 19:07:54 SeedBox systemd[1]: Unit nginx.service entered failed state.
Hint: Some lines were ellipsized, use -l to show in full.
J'ai refait ce que tu m'as demandé, voici ce que ça donne (merci pour ton aide ) :
● nginx.service - A high performance web server and a reverse proxy server
   Loaded: loaded (/lib/systemd/system/nginx.service; enabled)
   Active: failed (Result: exit-code) since sam. 2016-07-23 19:07:54 CEST; 14h ago
     Docs: man:nginx(8)
  Process: 25925 ExecStop=/sbin/start-stop-daemon --quiet --stop --retry QUIT/5 --pidfile /run/nginx.pid (code=exited, status=0/SUCCESS)
  Process: 25929 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=1/FAILURE)
 Main PID: 25412 (code=exited, status=0/SUCCESS)

juil. 23 19:07:54 SeedBox nginx[25929]: nginx: [emerg] "location" directive ...1
juil. 23 19:07:54 SeedBox nginx[25929]: nginx: configuration file /etc/nginx...d
juil. 23 19:07:54 SeedBox systemd[1]: nginx.service: control process exited...=1
juil. 23 19:07:54 SeedBox systemd[1]: Failed to start A high performance we...r.
juil. 23 19:07:54 SeedBox systemd[1]: Unit nginx.service entered failed state.
Hint: Some lines were ellipsized, use -l to show in full.
root@SeedBox:~# journalctl -xn
-- Logs begin at ven. 2016-07-22 18:13:58 CEST, end at dim. 2016-07-24 09:56:01 CEST. --
juil. 24 09:55:27 SeedBox sshd[32285]: Failed password for invalid user gitlab from xx.xxx.xx.xxx port xxxxx ssh2
juil. 24 09:55:27 SeedBox sshd[32285]: pam_unix(sshd:auth): check pass; user unknown
juil. 24 09:55:29 SeedBox sshd[32285]: Failed password for invalid user gitlab from xx.xxx.xx.xxx port xxxxx ssh2
juil. 24 09:55:29 SeedBox sshd[32285]: Connection closed by xx.xxx.xx.xxx [preauth]
juil. 24 09:55:29 SeedBox sshd[32285]: PAM 2 more authentication failures; logname= uid=0 euid=0 tty=ssh ruser= rho
juil. 24 09:55:58 SeedBox sshd[32297]: Accepted password for root from xxx.xxx.xx.xx port xxxxx ssh2
juil. 24 09:55:58 SeedBox sshd[32297]: pam_unix(sshd:session): session opened for user root by (uid=0)
juil. 24 09:56:01 SeedBox CRON[32445]: pam_unix(cron:session): session opened for user root by (uid=0)
juil. 24 09:56:01 SeedBox CRON[32446]: (root) CMD (/usr/local/rtm/bin/rtm 53 > /dev/null 2> /dev/null)
juil. 24 09:56:01 SeedBox CRON[32445]: pam_unix(cron:session): session closed for user root
lines 1-11/11 (END)
Mieux, mais pas encore ça 😛
A la suite des "lignes qui semblent tronquées", il y a justement un message qui l'indique, avec la commande à faire pour que ce ne soit plus le cas. Vois-tu de quoi je parle ?


PS : laisse tomber journalctl -xn, pas utile finalement.
PS1 : édite ton message et retire tes IP. Masque-les par XXX.XXX.XXX.XXX. En règle générale il faut éviter de poster ses IP (perso/serveurs), surtout à la vue de tous (le forum est en accès lecture libre).
PS2 : même chose avec ton port SSH.
c'est un problème de mot de passe ou d'utilisateur ?

Je vois cette commande
CRON[32446]: (root) CMD (/usr/local/rtm/bin/rtm 53 > /dev/null 2> /dev/null)

mais je ne sais pas à quoi ça correspond.
Du tout. On parle de lignes tronquées, donc de leur affichage.
juil. 23 19:07:54 SeedBox nginx[25929]: nginx: [emerg] "location" directive ...1
juil. 23 19:07:54 SeedBox nginx[25929]: nginx: configuration file /etc/nginx...d
juil. 23 19:07:54 SeedBox systemd[1]: nginx.service: control process exited...=1
juil. 23 19:07:54 SeedBox systemd[1]: Failed to start A high performance we...r.
juil. 23 19:07:54 SeedBox systemd[1]: Unit nginx.service entered failed state.
Hint: Some lines were ellipsized, use -l to show in full.
=> Hint: Some lines were ellipsized, use -l to show in full.

Donc faire
systemctl -l status nginx.service
Ha ! je coule lol
root@SeedBox:~# systemctl -l status nginx.service
● nginx.service - A high performance web server and a reverse proxy server
   Loaded: loaded (/lib/systemd/system/nginx.service; enabled)
   Active: failed (Result: exit-code) since sam. 2016-07-23 19:07:54 CEST; 15h ago
     Docs: man:nginx(8)
  Process: 25925 ExecStop=/sbin/start-stop-daemon --quiet --stop --retry QUIT/5 --pidfile /run/nginx.pid (code=exited, status=0/SUCCESS)
  Process: 25929 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=1/FAILURE)
 Main PID: 25412 (code=exited, status=0/SUCCESS)

juil. 23 19:07:54 SeedBox nginx[25929]: nginx: [emerg] "location" directive is not allowed here in /etc/nginx/conf.d/cache.conf:1
juil. 23 19:07:54 SeedBox nginx[25929]: nginx: configuration file /etc/nginx/nginx.conf test failed
juil. 23 19:07:54 SeedBox systemd[1]: nginx.service: control process exited, code=exited status=1
juil. 23 19:07:54 SeedBox systemd[1]: Failed to start A high performance web server and a reverse proxy server.
juil. 23 19:07:54 SeedBox systemd[1]: Unit nginx.service entered failed state.
root@SeedBox:~# 
Ok. Donc il te dit quoi le Nginx là.

Ça c'est l'erreur
juil. 23 19:07:54 SeedBox nginx[25929]: nginx: [emerg] "location" directive is not allowed here in /etc/nginx/conf.d/cache.conf:1
Puisqu'il y a une erreur, le test de cette configuration a échoué
juil. 23 19:07:54 SeedBox nginx[25929]: nginx: configuration file /etc/nginx/nginx.conf test failed
Donc le service Nginx, qui s'est lancé pour tester, s'est refermé
juil. 23 19:07:54 SeedBox systemd[1]: nginx.service: control process exited, code=exited status=1
Et il te dit qu'il n'a pas pu démarrer
juil. 23 19:07:54 SeedBox systemd[1]: Failed to start A high performance web server and a reverse proxy server.
Et ce met en mode d'échec (donc te donne ces logs d'erreur)
juil. 23 19:07:54 SeedBox systemd[1]: Unit nginx.service entered failed state.
Ce que tu dois faire maintenant, fort de l'information claire sur l'erreur Nginx, c'est aller ouvrir ce fichier de configuration et voir pourquoi ça plante (au niveau de "location".
"location" directive is not allowed here in /etc/nginx/conf.d/cache.conf
Si tu peux le poster ici, merci
Merci pour les explications je comprends un peu mieux

donc voici ce que donne le fichier /etc/nginx/conf.d/cache.conf
location ~* \.(jpg|jpeg|gif|css|png|js|map|woff|woff2|ttf|svg|eot)$ {
    expires 30d;
    access_log off;
}


Si je prends le fichier de conf du script, il faudrait ajouter ceci à ce fichier (après ce que tu as déjà)
location ~* \.(eot|ttf|woff|svg)$ {
        add_header Acccess-Control-Allow-Origin *;
}