• Seedbox
  • [Résolu] Ajout d'un utilisateur Rtorrent, problème sur Rutorrent

Bonjour,

Je suis nouveau et j'ai suivis le tuto de Magicalex (http://mondedie.fr/d/5302)
Tout fonctionnais super bien (Rutorrent, CakeboxLight, Seedbox Manager) jusqu'a ce que j'ajoute un nouvel utilisateur (un deuxième donc) en suivant la partie 4 de son tuto.
Je précise que cakebox light et Seedbox Manager fonctionne avec le nouvel utilisateur mais lorsque je me rends sur Rutorrent avec soit le premier user ou celui que je viens de créer, Rutorrent ne trouve pas la connexion avec rtorrent ...

D'ou pourrai venir le problème ?
Le problème ne viendrait pas de la Crontab ? j'ai simplement ajouté la ligne pour le nouvel user à la fin de l'autre. ( je ne m'y connais pas torp là dessus).
j'ai aussi supprimé les deux fichier lock qui c'était créé dans les dossiers .session ...

Je ne suis pas un expert en Linux donc soyez indulgent ^^

ps:
j'ai ceci dans le journal de Rutorrent
" [13.06.2014 12:55:27] WebUI started.
[13.06.2014 12:55:27] Bad response from server: (500 [error,getplugins])
[13.06.2014 12:55:27] Bad response from server: (500 [error,getuisettings]) "
tu as ajouté à la suite de ta ligne déjà existente sur ta crontab ? Tu pourrais faire un crontab -l (En prenant soin de cacher les noms & co) afin de voir comment est faite ta crontab. Mais je comprens ce que tu as dis, il se pourrait qu'elle soit mal configurée. Normalement c'est une ligne par action/user, pour faire simple et propre.

Logiquement tu devrais voir sur ta crontab :
* * * * * if ! ( ps -U USER1 | grep rtorrent > /dev/null ); then /etc/init.d/USER1-rtorrent start; fi
* * * * * if ! ( ps -U USER2 | grep rtorrent > /dev/null ); then /etc/init.d/USER2-rtorrent start; fi
* * * * * if ! ( ps -U USER3 | grep rtorrent > /dev/null ); then /etc/init.d/USER3-rtorrent start; fi
... Et ainsi de suite.
Merci de ta réponse

Voici le résultat de la crontab -l:
# Edit this file to introduce tasks to be run by cron.
#
# Each task to run has to be defined through a single line
# indicating with different fields when the task will be run
# and what command to run for the task
#
# To define the time you can provide concrete values for
# minute (m), hour (h), day of month (dom), month (mon),
# and day of week (dow) or use '*' in these fields (for 'any').#
# Notice that tasks will be started based on the cron's system
# daemon's notion of time and timezones.
#
# Output of the crontab jobs (including errors) is sent through
# email to the user the crontab file belongs to (unless redirected).
#
# For example, you can run a backup of all your user accounts
# at 5 a.m every week with:
# 0 5 * * 1 tar -zcf /var/backups/home.tgz /home/
#
# For more information see the manual pages of crontab(5) and cron(8)
#
# m h  dom mon dow   command
* * * * * if ! ( ps -U user1| grep rtorrent > /dev/null ); then /etc/init.d/user1-rtorrent start; fi
* * * * * if ! ( ps -U user2| grep rtorrent > /dev/null ); then /etc/init.d/user2-rtorrent start; fi

Donc je ne pense pas que se soit
Qu'est ce qui pourrai ne pas aller ?
Il faudrait que tu ailles voir dans tes logs rutorrent / apache qui se trouvent dans le dossier /var/log/nginx/error...log , dedans tu devrais voir si tu as un soucis. Sinon tu as bien rajouté dans ta conf nginx la partie /TONUSER avec les informations en dessous liés à ton nouvel utilisateur ?
dans le log erreur j'ai ceci qui s'affiche :
2014/06/13 12:55:30 [error] 27502#0: *93 FastCGI sent in stderr: "PHP message: PHP Parse error:  syntax error, unexpected '{' in /var/www/rutorrent/conf/users/user1/config.php on line 3" while reading response header from upstream, client: xxx.xxx.xx.xxx, server: _, request: "POST /rutorrent/php/getsettings.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "xxx.xxx.xx.xxx", referrer: "http://xxx.xxx.xx.xxx/rutorrent/"
kézako ?

EDIT:
L'erreur parle d'elle meme, j'avais oublié de renseigner le numero du port, fonctionne parfaitement

A classer !
Répondre…