Installation Gladys sur Raspbian


#69

De rien :slight_smile:
Pour pouvoir se connecter à ta base de donnée, Gladys doit connaitre différents éléments, qu’elle trouve selon comment tu la lances, soit dans un fichier .env, à la racine, soit dans le fichier config.js. (si je ne dis pas de bêtise :wink: )
Du coup, je pense qu’elle n’arrive pas à se connecter, enfin, j’espère que c’est le pb !
Tu auras un peu plus d’info sur ce dont je parle ici :
https://developer.gladysproject.com/fr/documentation/install-gladys


#70

OK, merci pour ces infos, je vais aller voir (la je suis au taf ;))
Je reviendrais vers toi, si il y de nouveaux problèmes !
Merci :wink:


#71

Moi j’avais fait des essais également en voulant mettre l’user que je voulais pour la base et pas moyen…
Du coup, j’avais mis root / root (user / password) et ça roulait. J’ai pas compris pourquoi…


#72

ça reste une supposition mais vu qu’il n’est pas nécessaire d’indiquer les identifiants de connexion mysql lors de l’installation de Gladys, ces derniers doivent être indiqués quelque part dans un fichier de configuration.

Du coup, si il ne sont pas identiques, Gladys ne s’installe pas (ou pas bien). Idem pour le répertoire d’installation de base /home/pi/ quand on fait une installation “from scratch” (sans prendre l’image).


#73

Hello !
Donc après avoir bidouiller de longues heures, j’ai enfin réussi à lancer Gladys !

Voici ce que j’ai du faire pour que cela fonctionne (je pense que j’ai tout ! Enfin j’espere :wink: ) :

sudo apt-get update
sudo apt-get upgrade -y
curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
sudo apt-get install -y nodejs
sudo apt-get install mysql-server --fix-missing

mysql -u root -pMOTDEPASSE -e "create database gladys"
sudo apt-get install build-essential
cd /home/pi
git clone https://github.com/GladysProject/Gladys.git gladys
cd gladys
sudo npm install && sudo npm install -g sails && sudo npm install -g grunt-cli
chmod 777 -R node_modules/
npm install bcrypt
npm install bluebird
npm install uuid
npm install moment
npm install clone
npm i bootstrap
npm rebuild node-webcrypto-ossl

sudo apt-get install -y libasound2-dev 
sudo npm install -g pm2 
node init.js && grunt buildProd 
pm2 startup 
pm2 start /home/pi/gladys/app.js --name gladys 
pm2 save

En revanche, elle ne se lance pas au démarrage !
Je cherche une solution…


#74

Hello

Quel sont cette fois les logs de démarrage ? :slight_smile:

pm2 log --lines 100


#75

Salut :wink:
Alors j’ai çà :

[PM2] Spawning PM2 daemon with pm2_home=/home/pi/.pm2
[PM2] PM2 Successfully daemonized
[TAILING] Tailing last 100 lines for [all] processes (change the value with --lines option)
/home/pi/.pm2/pm2.log last 100 lines:
PM2 | 2018-10-26T10:48:37: PM2 log: PM2 PID file : /home/pi/.pm2/pm2.pid
PM2 | 2018-10-26T10:48:37: PM2 log: RPC socket file : /home/pi/.pm2/rpc.sock
PM2 | 2018-10-26T10:48:37: PM2 log: BUS socket file : /home/pi/.pm2/pub.sock
PM2 | 2018-10-26T10:48:37: PM2 log: Application log path : /home/pi/.pm2/logs
PM2 | 2018-10-26T10:48:37: PM2 log: Process dump file : /home/pi/.pm2/dump.pm2
PM2 | 2018-10-26T10:48:37: PM2 log: Concurrent actions : 2
PM2 | 2018-10-26T10:48:37: PM2 log: SIGTERM timeout : 1600
PM2 | 2018-10-26T10:48:37: PM2 log: ==================================================================
=============
PM2 | 2018-10-26T10:48:37: PM2 log: App [app:0] starting in -fork mode-
PM2 | 2018-10-26T10:48:37: PM2 log: App [app:0] online
PM2 | 2018-10-26T10:48:49: PM2 log: App [app:0] exited with code [1] via signal [SIGINT]
PM2 | 2018-10-26T10:49:03: PM2 log: App [app:0] starting in -fork mode-
PM2 | 2018-10-26T10:49:03: PM2 log: App [app:0] online
PM2 | 2018-10-26T10:49:15: PM2 log: App [app:0] exited with code [1] via signal [SIGINT]
PM2 | 2018-10-26T10:49:15: PM2 log: App [app:0] starting in -fork mode-
PM2 | 2018-10-26T10:49:15: PM2 log: App [app:0] online
PM2 | 2018-10-26T10:49:28: PM2 log: App [app:0] exited with code [1] via signal [SIGINT]
PM2 | 2018-10-26T10:49:28: PM2 log: App [app:0] starting in -fork mode-
PM2 | 2018-10-26T10:49:28: PM2 log: App [app:0] online
PM2 | 2018-10-26T10:49:42: PM2 log: App [app:0] exited with code [1] via signal [SIGINT]
PM2 | 2018-10-26T10:49:42: PM2 log: App [app:0] starting in -fork mode-
PM2 | 2018-10-26T10:49:42: PM2 log: App [app:0] online
PM2 | 2018-10-26T10:49:55: PM2 log: App [app:0] exited with code [1] via signal [SIGINT]
PM2 | 2018-10-26T10:49:55: PM2 log: App [app:0] starting in -fork mode-
PM2 | 2018-10-26T10:49:55: PM2 log: App [app:0] online
PM2 | 2018-10-26T10:50:07: PM2 log: App [app:0] exited with code [1] via signal [SIGINT]
PM2 | 2018-10-26T10:50:07: PM2 log: App [app:0] starting in -fork mode-
PM2 | 2018-10-26T10:50:07: PM2 log: App [app:0] online
PM2 | 2018-10-26T10:50:19: PM2 log: App [app:0] exited with code [1] via signal [SIGINT]
PM2 | 2018-10-26T10:50:19: PM2 log: App [app:0] starting in -fork mode-
PM2 | 2018-10-26T10:50:19: PM2 log: App [app:0] online
PM2 | 2018-10-26T10:50:31: PM2 log: App [app:0] exited with code [1] via signal [SIGINT]
PM2 | 2018-10-26T10:50:31: PM2 log: App [app:0] starting in -fork mode-
PM2 | 2018-10-26T10:50:32: PM2 log: App [app:0] online
PM2 | 2018-10-26T10:50:44: PM2 log: App [app:0] exited with code [1] via signal [SIGINT]
PM2 | 2018-10-26T10:50:44: PM2 log: App [app:0] starting in -fork mode-
PM2 | 2018-10-26T10:50:44: PM2 log: App [app:0] online
PM2 | 2018-10-26T10:50:56: PM2 log: App [app:0] exited with code [1] via signal [SIGINT]
PM2 | 2018-10-26T10:50:56: PM2 log: App [app:0] starting in -fork mode-
PM2 | 2018-10-26T10:50:56: PM2 log: App [app:0] online
PM2 | 2018-10-26T10:51:08: PM2 log: App [app:0] exited with code [1] via signal [SIGINT]
PM2 | 2018-10-26T10:51:08: PM2 log: App [app:0] starting in -fork mode-
PM2 | 2018-10-26T10:51:08: PM2 log: App [app:0] online
PM2 | 2018-10-26T10:51:21: PM2 log: App [app:0] exited with code [1] via signal [SIGINT]
PM2 | 2018-10-26T10:51:21: PM2 log: App [app:0] starting in -fork mode-
PM2 | 2018-10-26T10:51:21: PM2 log: App [app:0] online
PM2 | 2018-10-26T10:51:34: PM2 log: App [app:0] exited with code [1] via signal [SIGINT]
PM2 | 2018-10-26T10:51:34: PM2 log: App [app:0] starting in -fork mode-
PM2 | 2018-10-26T10:51:34: PM2 log: App [app:0] online
PM2 | 2018-10-26T10:51:48: PM2 log: App [app:0] exited with code [1] via signal [SIGINT]
PM2 | 2018-10-26T10:51:48: PM2 log: App [app:0] starting in -fork mode-
PM2 | 2018-10-26T10:51:48: PM2 log: App [app:0] online
PM2 | 2018-10-26T10:52:02: PM2 log: App [app:0] exited with code [1] via signal [SIGINT]
PM2 | 2018-10-26T10:52:02: PM2 log: App [app:0] starting in -fork mode-
PM2 | 2018-10-26T10:52:02: PM2 log: App [app:0] online
PM2 | 2018-10-26T10:52:18: PM2 log: App [app:0] exited with code [1] via signal [SIGINT]
PM2 | 2018-10-26T10:52:18: PM2 log: App [app:0] starting in -fork mode-
PM2 | 2018-10-26T10:52:18: PM2 log: App [app:0] online
PM2 | 2018-10-26T10:52:33: PM2 log: App [app:0] exited with code [1] via signal [SIGINT]
PM2 | 2018-10-26T10:52:33: PM2 log: App [app:0] starting in -fork mode-
PM2 | 2018-10-26T10:52:33: PM2 log: App [app:0] online
PM2 | 2018-10-26T10:52:47: PM2 log: App [app:0] exited with code [1] via signal [SIGINT]
PM2 | 2018-10-26T10:52:47: PM2 log: App [app:0] starting in -fork mode-
PM2 | 2018-10-26T10:52:47: PM2 log: App [app:0] online
PM2 | 2018-10-26T10:53:02: PM2 log: App [app:0] exited with code [1] via signal [SIGINT]
PM2 | 2018-10-26T10:53:02: PM2 log: App [app:0] starting in -fork mode-
PM2 | 2018-10-26T10:53:02: PM2 log: App [app:0] online
PM2 | 2018-10-26T10:53:16: PM2 log: App [app:0] exited with code [1] via signal [SIGINT]
PM2 | 2018-10-26T10:53:16: PM2 log: App [app:0] starting in -fork mode-
PM2 | 2018-10-26T10:53:16: PM2 log: App [app:0] online
PM2 | 2018-10-26T10:53:28: PM2 log: App [app:0] exited with code [1] via signal [SIGINT]
PM2 | 2018-10-26T10:53:29: PM2 log: App [app:0] starting in -fork mode-
PM2 | 2018-10-26T10:53:29: PM2 log: App [app:0] online
PM2 | 2018-10-26T10:53:41: PM2 log: App [app:0] exited with code [1] via signal [SIGINT]
PM2 | 2018-10-26T10:53:41: PM2 log: App [app:0] starting in -fork mode-
PM2 | 2018-10-26T10:53:41: PM2 log: App [app:0] online
PM2 | 2018-10-26T10:53:54: PM2 log: App [app:0] exited with code [1] via signal [SIGINT]
PM2 | 2018-10-26T10:53:54: PM2 log: App [app:0] starting in -fork mode-
PM2 | 2018-10-26T10:53:54: PM2 log: App [app:0] online
PM2 | 2018-10-26T10:54:04: PM2 log: pm2 has been killed by signal, dumping process list before exit…
PM2 | 2018-10-26T10:54:05: PM2 log: Deleting process 0
PM2 | 2018-10-26T10:54:05: PM2 log: Stopping app:app id:0
PM2 | 2018-10-26T10:54:05: PM2 log: App [app:0] exited with code [0] via signal [SIGTERM]
PM2 | 2018-10-26T10:54:06: PM2 log: pid=8723 msg=process killed
PM2 | 2018-10-26T10:54:06: PM2 log: Exited peacefully
PM2 | 2018-10-26T14:25:10: PM2 log: ==================================================================
=============
PM2 | 2018-10-26T14:25:10: PM2 log: — New PM2 Daemon started ---------------------------------------
-------------
PM2 | 2018-10-26T14:25:10: PM2 log: Time : Fri Oct 26 2018 14:25:10 GMT+0200 (CEST)
PM2 | 2018-10-26T14:25:10: PM2 log: PM2 version : 3.2.2
PM2 | 2018-10-26T14:25:10: PM2 log: Node.js version : 8.12.0
PM2 | 2018-10-26T14:25:10: PM2 log: Current arch : arm
PM2 | 2018-10-26T14:25:10: PM2 log: PM2 home : /home/pi/.pm2
PM2 | 2018-10-26T14:25:10: PM2 log: PM2 PID file : /home/pi/.pm2/pm2.pid
PM2 | 2018-10-26T14:25:10: PM2 log: RPC socket file : /home/pi/.pm2/rpc.sock
PM2 | 2018-10-26T14:25:10: PM2 log: BUS socket file : /home/pi/.pm2/pub.sock
PM2 | 2018-10-26T14:25:10: PM2 log: Application log path : /home/pi/.pm2/logs
PM2 | 2018-10-26T14:25:10: PM2 log: Process dump file : /home/pi/.pm2/dump.pm2
PM2 | 2018-10-26T14:25:10: PM2 log: Concurrent actions : 2
PM2 | 2018-10-26T14:25:10: PM2 log: SIGTERM timeout : 1600
PM2 | 2018-10-26T14:25:10: PM2 log: ==================================================================

Et mon curseur clignote ! je n’ai pas la main (Je suis au taf, et je ne peux pas accéder a mon RPI, car les ports sont bloqués !)


#76

J’ai installé différents modules (pour le fun) !
Je crois, après recherche, que le module de reconnaissance vocale ne se lance pas car il n’y a pas de micro ! Comment faire pour désinstaller un module (ou les modules) pour que Gladys puisse reprendre vie :wink: ?

J’ai trouvé pour supprimer, je tente de relancer Gladys !


#77

En fait je me réponds a moi même, mais si ca peut aider qq !
Donc j’ai supprimé le module, en supprimant le dossier qui correspond au module dans :slight_smile:

/home/pi/gladys/api/hooks

puis :

node init.js && grunt buildProd 
pm2 startup 
pm2 start /home/pi/gladys/app.js --name gladys

Pour info : Gladys se lance au démarrage de mon PI :slight_smile:


#78

Bonjour, utilise ce tutoriel pour ajouter une interface graphique au raspbian fourni pas Gladys.