Open ruf147 opened 6 years ago
Quand je fais
ls -l /var/www/yana-server/plugins/radioRelay/radioEmission
Ca me donne
-rwsr-sr-x 1 root www-data 13331 janv. 15 20:23 radioEmission
J'ai utilisé cette commande pour les droits
sudo chown root:www-data /var/www/yana-server/plugins/radioRelay/radioEmission
sudo chmod +s /var/www/yana-server/plugins/radioRelay/radioEmission
Yana a des logs ici :
/yana-server/log/.log.txt
Pour l'erreur dans apache, radioemission utilise pas la commande /usr/bin/gpio donc je pense pas que ce soit lié. C'est l'affichage des gpios dans l'interface web qui provoque cette erreur je pense. Ca peut valoir le coup de réinstaller wiringPi pour vérifier si tout va bien de ce coté là (il y a la commande gpio dedans)
sudo git clone git://git.drogon.net/wiringPi /opt/wiringPi
cd /opt/wiringPi
sudo ./build
Merci de ta réponse rapide.
Moi quand je fais
ls -l /var/www/plugins/radioRelay/radioEmission
Me retourne
-rwsrwsrwx 1 root www-data 13331 janv. 15 17:41 /var/www/plugins/radioRelay/radioEmission
Quand je tape
cat /var/www/log/.log.txt
Me retourne
15-01-2018 21:35:03 - [notice] :Launch system command : /var/www/plugins/radioRelay/radioEmission 0 12325261 12325261 1on
15-01-2018 21:35:13 - [notice] :Launch system command : /var/www/plugins/radioRelay/radioEmission 0 12325261 12325261 0off
15-01-2018 21:35:41 - [notice] :Launch system command : /var/www/plugins/radioRelay/radioEmission 0 12325261 12325261 1on
15-01-2018 21:35:48 - [notice] :Launch system command : /var/www/plugins/radioRelay/radioEmission 0 12325261 12325261 0off
J' ai recompiler wiringPi
Et quand je tape
/usr/bin/gpio -v
Me donne
gpio version: 2.44
Copyright (c) 2012-2017 Gordon Henderson
This is free software with ABSOLUTELY NO WARRANTY.
For details type: /usr/bin/gpio -warranty
Raspberry Pi Details:
Type: Pi 2, Revision: 01, Memory: 1024MB, Maker: Sony
* Device tree is enabled.
*--> Raspberry Pi 2 Model B Rev 1.1
* This Raspberry Pi supports user-level GPIO access.
/usr/local/bin/gpio -v
Me donne
gpio version: 2.44
Copyright (c) 2012-2017 Gordon Henderson
This is free software with ABSOLUTELY NO WARRANTY.
For details type: /usr/local/bin/gpio -warranty
Raspberry Pi Details:
Type: Pi 2, Revision: 01, Memory: 1024MB, Maker: Sony
* Device tree is enabled.
*--> Raspberry Pi 2 Model B Rev 1.1
* This Raspberry Pi supports user-level GPIO access.
Du coup, la je suis un peu perdue, mais je reste dans l' idée que c' est un problème de droits, car ils ne sont pas les mème que les tiens..
EDIT: Je tiens juste à préciser, que l' erreur
/usr/bin/gpio: Unknown command: /usr/local/bin/gpio.
Arrive uniquement quand je suis l' installation et que l' ont me demande de changer dans classes/Gpio.class.php
'/usr/bin/gpio'
par
'/usr/bin/gpio /usr/local/bin/gpio'
Toujours dans mes investigation, à changer les droits... Maintenant j ai cette erreur dans les logs d' apache2
Segmentation fault
Bon j' avance doucement mais surement, j' ai réussi à avoir les mêmes droit que toi tu as
-rwsr-sr-x 1 root www-data 13376 janv. 15 22:41 /var/www/plugins/radioRelay/radioEmission
Par contre, dans le dashboard, pour le widget de la prise chacon, il y est maintenant écris
Attention, les droits vers le fichier
radioEmission sont mal réglés.
Référez vous à la doc pour les régler
Et j' ai toujours cette erreur dans les logs d' apache
Segmentation fault
Bonsoir a tous,
J' ai décider depuis peu de ressortir mon raspberry pour recommencer a m' amuser avec Yana. A l' install, pas de problème, que ce soit serveur ou client, mais la ou je bloque, c' est au niveau des relais radio via l' interface web... Je pense un soucis de droit que je n' arrive malheureusement pas à résoudre...
Pour faire simple quand je crée un relais radio via le plugin, que je le déclenche, rien ne ce passe.. Alors qu' en ligne de commande pas de soucis.. Que ce soit avec le plugin d' Idle ou de maditnerd.. Le seul hic, c est seulement via la page web...
Dans : /var/log/apache2/eror.log j' ai cela
Pour ce qui est des droits avec ls -l
Voili voilou, si une âme charitable ou même le big boss pouvait passer me donner un coup de main, cela serait bien apprécier :)
EDIT: Je tiens à préciser que j' ai déplacer le dossier web dans
/var/www/