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

C'est exact, il n'y a eu de retour... D'accord merci, je présumais un autre résultat.
Quelques temps plus tard, j'ai appris l'existence de ces deux fichiers. Ainsi, dans le fichier php-manager, cette ligne :
fastcgi_param SCRIPT_FILENAME $document_root/index.php;
Il faudrait la rectifié comme tel :
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
Hey guys,

thank you for your great work! I was very excited to try out this CP. Excuse me to write in english, I find it more reasonable than using google translator.

However, sadly I'm facing some trouble. My major problem is the rtorrent restart. I'm running a multi-user script which also is designed to restart rtorrent and irssi via rt stop/rt start/rt restart per user, ince my users don't have SSH access. I tried the restart method of your CP and ended up by rtorrent not being able to start until I reinstalled it. I checked all available files and ended up at /source-reboot-rtorrent/kill.c and reboot.c.
I have no clue of PHP tbh so I just tried editing it like a newb ending up at:
void rtorrent_kill (char nickname[])
    #snprintf(chaine, 100, "killall --user %s rtorrent\n", nickname);
    snprintf(chaine, 100, "rt stop --user %s\n");

#void screen_kill (char nickname[]) 
#commmented out

void reboot (char nickname[])
    #snprintf(chaine, 100, "service %s-rtorrent start\n", nickname);
    snprintf(chaine, 100, "rt start\n");
It didn't work ofc so I hope you're able to help me. Important is just that this command is run in the name of the user.

I also have some other issues which are just important when restart works. Like showing correct users space by quota limit and replacing Fileziilla with Cyberduck.

I hope you can enlighten me.
Thx in advance.
source-reboot-rtorrent/kill.c and reboot.c isn't write in php.
It's written in c, you need to compile your change with the script ./install.sh

something like that for compile
cd /var/www/seedbox-manager/source-reboot-rtorrent/
chmod +x install.sh && ./install.sh
You want restart irssi and rtorrent together??
Magicalex wrote:source-reboot-rtorrent/kill.c and reboot.c isn't write in php.
It's written in c, you need to compile your change with the script ./install.sh

something like that for compile
cd /var/www/seedbox-manager/source-reboot-rtorrent/
chmod +x install.sh && ./install.sh
You want restart irssi and rtorrent together??
Hey,

thank you for your respond. I already thought of the install.sh file and sorry for confusing C and PHP. My script restarts rtorrent and irssi each in it's own screen session. It only needs to run rt stop and then rt start. I'm just not sure what I need to change in the lines I've pasted before.

Thx again for responding.
Wagner wrote:C'est exact, il n'y a eu de retour... D'accord merci, je présumais un autre résultat.
Quelques temps plus tard, j'ai appris l'existence de ces deux fichiers. Ainsi, dans le fichier php-manager, cette ligne :
fastcgi_param SCRIPT_FILENAME $document_root/index.php;
Il faudrait la rectifié comme tel :
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
File not foud égalment

Du coup j'ai réinstaller la seedbox avec le script (après réinstall du serveur) et tout marche. Je pense que cela venait du fait que j'avais pas télécharger le script dans le dossier /tmp mais dans un autre.
Bref tout marche maintenant ! merci de ton aide !
AnonServes wrote:
Magicalex wrote:source-reboot-rtorrent/kill.c and reboot.c isn't write in php.
It's written in c, you need to compile your change with the script ./install.sh

something like that for compile
cd /var/www/seedbox-manager/source-reboot-rtorrent/
chmod +x install.sh && ./install.sh
You want restart irssi and rtorrent together??
Hey,

thank you for your respond. I already thought of the install.sh file and sorry for confusing C and PHP. My script restarts rtorrent and irssi each in it's own screen session. It only needs to run rt stop and then rt start. I'm just not sure what I need to change in the lines I've pasted before.

Thx again for responding.
Ahh i understand, your problem is when you restart rtorrent, irrsi is kill in the same time.
And irrsi isn't restart after that??

Ok maybe i have an idea. I don't know if this works.
Stay tuned

edit : please, can you try this branch? thx https://github.com/Magicalex/seedbox-manager/tree/improvement-reboot-rtorrent
Magicalex wrote:
AnonServes wrote:
Magicalex wrote:source-reboot-rtorrent/kill.c and reboot.c isn't write in php.
It's written in c, you need to compile your change with the script ./install.sh

something like that for compile
cd /var/www/seedbox-manager/source-reboot-rtorrent/
chmod +x install.sh && ./install.sh
You want restart irssi and rtorrent together??
Hey,

thank you for your respond. I already thought of the install.sh file and sorry for confusing C and PHP. My script restarts rtorrent and irssi each in it's own screen session. It only needs to run rt stop and then rt start. I'm just not sure what I need to change in the lines I've pasted before.

Thx again for responding.
Ahh i understand, your problem is when you restart rtorrent, irrsi is kill in the same time.
And irrsi isn't restart after that??

Ok maybe i have an idea. I don't know if this works.
Stay tuned

edit : please, can you try this branch? thx https://github.com/Magicalex/seedbox-manager/tree/improvement-reboot-rtorrent
No, you misunderstand me. I need your Restart button in the Manager to perform "rt stop" and "rt start" or simply "rt restart" instead of your configuration. I just don't know to what exactly I need to change these lines in kill.c and reboot.c to run these commands as the user which is logged in to the Manager.

Btw I accidently deleted my last post! Don't mind that.

Really thx again for helping.
2 mois plus tard
portnawak wrote:Bonsoir,

Tite question, surement bête, mais pour l'installation (l'ajout) de cakebox à rutorrent (le bouton), il y a possibilité d'ajouter l'option
$onglet = true;
Pour ouvrir les pages en forçant l'onglet. En est il de même pour seedbox-manager, dans la configuration de l’entête, peut on forcer l'ouverture en onglet et non dans la même page.

J'avais repéré ça dans le tuto de cakebox, je me demandais si c’était possible de faire de même.

Bonsoir,

Merci pour ce manager qui est vraiment super pratique, c'est top.
Par contre je me permet de relancer ce message de portnawak parce qu'effectivement j'aimerai bien faire de même, mais étant un vrai newbie je ne m'en sors pas tout seul.
Serait il possible de me donner le code pour que les liens de la barre de navigation s'ouvre automatiquement dans un nouvel onglet ?
Merci par avance !!
Salut
il me semble que c'est déjà le cas pour l'ouverture dans un nouvel onglet.
Le parametre est là pour $onglet = true; :
nano /var/www/rutorrent/plugins/linkseedboxmanager/conf.php
Ex.
Normal que l'application Seedbox-Manager n'a pas de favicon ?
spectre wrote:Normal que l'application Seedbox-Manager n'a pas de favicon ?
Ouais, pour l'instant y'a pas mais j'ai entendu il n'y a pas longtemps que c’était à l'étude.
Ex.
Merci pour ta réponse Ex.
ex_rat wrote:Salut
il me semble que c'est déjà le cas pour l'ouverture dans un nouvel onglet.
Le parametre est là pour $onglet = true; :
nano /var/www/rutorrent/plugins/linkseedboxmanager/conf.php
Ex.

Salut et merci pour ta réponse, par contre j'ai du rater un épisode car je n'ai pas ce fichier de config.
Pour me faire bien comprendre je cherche à ouvrir les liens rutorrent, cakebox etc... dans un nouvel onglet à partir de seedbox-manager
Je suppose que ça doit être plutôt dans nano /var/www/seedbox-manager/conf/users/{utilisateur}/config.ini que ça doit se jouer, non ?
Effectivement le fichier est celui du plugin ruTorrent, mais pour la page Seedbox-Manager je ne serais te dire comment faire.
Le config.ini permet d'éditer tes liens mais pas plus.
Ex.
12 jours plus tard
Bonjour,
je n'arrive plus, depuis peu de temps, à me connecter sur mon interface seedbox-manager. Après l'identification, un message m'indique "An error occurred. Sorry, the page you are looking for is currently unavailable. Please try again later...etc".
Ayant installé tout ça grâce au script, je ne sais pas vers quoi m'orienter pour trouver d'où ça vient. Mes connaissances très faibles dans ce domaine ne m'aident pas non plus
Si une âme charitable pouvait me filer un coup de main, ça serait vraiment sympa.
Bon dimanche en attendant.
++
8 jours plus tard
Bonsoir,

Je suis pas passé depuis un moment, mais en même temps c'est signe que tout va bien

Je viens de mettre à jour l'appli vers la version 2.4.4 (je crois, pas sûr de ça), et l'interface Seedbox-manager n'apparait plus: j'ai une page blanche, sans titre ni message d'erreur (rien dans la console non plus).
En revanche ruTorrent, le proxy etc... semblent bien fonctionner.

Quelqu'un pourrait-il m'orienter par hasard?

Merci !
à faire en root
cd /var/www
composer selfupdate
cp -r seedbox-manager/conf .
rm -Rf seedbox-manager
composer create-project magicalex/seedbox-manager
rm -R seedbox-manager/conf
mv conf seedbox-manager/
chown -R www-data:www-data seedbox-manager
cd seedbox-manager
bower install --allow-root
cd source-reboot-rtorrent
chmod +x install.sh
./install.sh
cd ~
clear
Bonsoir Magicalex,

Oui c'est effectivement ce que j'ai fait comme indiqué à la fin de ton tuto
Mais il semble y avoir un problème ailleurs, car le résultat est toujours le même.

J'ai mis à jour nginx (1.8.0) récemment, ça pourrait être ça? Ou une dépendance avec un autre paquet?

Merci de ton aide en tout cas !
Magicalex wrote:regardes dans les logs nginx
cat /var/log/nginx/rutorrent-error.log | tail -n 10

edit : message sur la shout
$ cat /var/log/nginx/rutorrent-error.log | tail -n 10
PHP Fatal error: Uncaught exception 'Twig_Error_Loader' with message 'The "themes/SpiritOfBonobo" directory does not exist.' in /var/www/seedbox-manager/vendor/twig/twig/lib/Twig/Loader/Filesystem.php:93
La solution :
rendez-vous dans le dossier de configuration de votre utilisateur
cd /var/www/seedbox-manager/conf/users/<username>
Et vous terminez par une commande sed
sed -r 's/SpiritOfBonobo/spiritofbonobo/g' config.ini > tmp && mv tmp config.ini
chown -R www-data:www-data /var/www/seedbox-manager/conf
Je confirme que ça fonctionne Merci beaucoup !