[résolu] Gladys voice error

#1

Bonjourà tous,

J’ai suivi à la lettre le tuto pour installer et configurer gladys voice. Malgrés plusieurs essais même depuis zéro j’ai toujours le même message d’erreur. je suis sur un RPI b3+ la dernière version de gladys.

Mes logs affichent cela :

┌──────────┬────┬──────┬───────┬────────┬─────────┬────────┬─────┬───────────┬──────┬──────────┐
│ App name │ id │ mode │ pid   │ status │ restart │ uptime │ cpu │ mem       │ user │ watching │
├──────────┼────┼──────┼───────┼────────┼─────────┼────────┼─────┼───────────┼──────┼──────────┤
│ “Gladys” │ 0  │ fork │ 23537 │ online │ 15      │ 13s    │ 0%  │ 73.1 MB   │ root │ disabled │
└──────────┴────┴──────┴───────┴────────┴─────────┴────────┴─────┴───────────┴──────┴──────────┘
Use `pm2 show <id|name>` to get more details about an app
[email protected]:~/gladys-voice $ pm2 logs
[TAILING] Tailing last 15 lines for [all] processes (change the value with --lines option)
/home/pi/.pm2/pm2.log last 15 lines:
PM2        | [2019-04-16 18:13:53] PM2 log: App name:gladys-voice id:0 online
PM2        | [2019-04-16 18:13:53] PM2 log: App [gladys-voice] with id [0] and pid [22495], exited with code [1] via signal [SIGINT]
PM2        | [2019-04-16 18:13:53] PM2 log: Starting execution sequence in -fork mode- for app name:gladys-voice id:0
PM2        | [2019-04-16 18:13:53] PM2 log: App name:gladys-voice id:0 online
PM2        | [2019-04-16 18:13:54] PM2 log: App [gladys-voice] with id [0] and pid [22522], exited with code [1] via signal [SIGINT]
PM2        | [2019-04-16 18:13:54] PM2 log: Starting execution sequence in -fork mode- for app name:gladys-voice id:0
PM2        | [2019-04-16 18:13:54] PM2 log: App name:gladys-voice id:0 online
PM2        | [2019-04-16 18:13:55] PM2 log: App [gladys-voice] with id [0] and pid [22549], exited with code [1] via signal [SIGINT]
PM2        | [2019-04-16 18:13:55] PM2 log: Starting execution sequence in -fork mode- for app name:gladys-voice id:0
PM2        | [2019-04-16 18:13:55] PM2 log: App name:gladys-voice id:0 online
PM2        | [2019-04-16 18:13:55] PM2 log: App [gladys-voice] with id [0] and pid [22576], exited with code [1] via signal [SIGINT]
PM2        | [2019-04-16 18:13:55] PM2 log: Starting execution sequence in -fork mode- for app name:gladys-voice id:0
PM2        | [2019-04-16 18:13:55] PM2 log: App name:gladys-voice id:0 online
PM2        | [2019-04-16 18:13:56] PM2 log: App [gladys-voice] with id [0] and pid [22603], exited with code [1] via signal [SIGINT]
PM2        | [2019-04-16 18:13:56] PM2 log: Script /home/pi/gladys-voice/app.js had too many unstable restarts (16). Stopped. "errored"

/home/pi/.pm2/logs/gladys-voice-out-0.log last 15 lines:
/home/pi/.pm2/logs/gladys-voice-error-0.log last 15 lines:
0|gladys-v |     at Object.Module._extensions..js (module.js:654:10)
0|gladys-v |     at Module.load (module.js:556:32)
0|gladys-v |     at tryModuleLoad (module.js:499:12)
0|gladys-v |     at Function.Module._load (module.js:491:3)
0|gladys-v | Error: Cannot find module '/home/pi/gladys-voice/node_modules/snowboy/lib/node/binding/Release/node-v57-linux-arm/snowboy.node'
0|gladys-v |     at Function.Module._resolveFilename (module.js:538:15)
0|gladys-v |     at Function.Module._load (module.js:468:25)
0|gladys-v |     at Module.require (module.js:587:17)
0|gladys-v |     at require (internal/module.js:11:18)
0|gladys-v |     at Object.<anonymous> (/home/pi/gladys-voice/node_modules/snowboy/lib/node/index.js:8:29)
0|gladys-v |     at Module._compile (module.js:643:30)
0|gladys-v |     at Object.Module._extensions..js (module.js:654:10)
0|gladys-v |     at Module.load (module.js:556:32)
0|gladys-v |     at tryModuleLoad (module.js:499:12)
0|gladys-v |     at Function.Module._load (module.js:491:3)

Avez vous eu ce genre de cas ? je ne trouve rien sur le forum… les seuls solmutions font plantés mon gladys …

#2

Tu peux ajouter --lines 100 a la commande car les 15 dernières lignes c’est pas suffisant, l’erreur est avant.

#3

Merci d’avoir réédité mon post c’ets plus propre.
Je réinstalle complétement gladys et je te redis tout cela. Par ocntre s’il y a une meilleur methode pour faire parler gladys et lui donner des commandes je suis preneur.

Je suis nouveau dans ce domaine en espérant évoluer dans le bon sens et aider les autres …

#4

Bon je repars à zéro. je flash l image. Je configure gladys.
Je mets gladys à jour => 3.8 à 3.13.

Done.
[PM2] Applying action restartProcessId on app [gladys](ids: 0)
[PM2] [gladys](0) ✓
[PM2] Process successfully started
┌────────┬──────┬────────┬───┬─────┬───────────┐
│ Name   │ mode │ status │ ↺ │ cpu │ memory    │
├────────┼──────┼────────┼───┼─────┼───────────┤
│ gladys │ fork │ online │ 0 │ 66% │ 13.6 MB   │

Je configure mon logement et je mets en Machines exécutant Gladys RPI et je coche Moi. Je ne coche pas le detecteur de présence.
Je créé un tokens nommé voice pour le config.js plus tard.

Je lance :

sudo apt-get install sox libsox-fmt-all libatlas-base-dev mpg321

Je lance alsamixer pour modifier les HP ou le mic je dois changer de carte avec F6. micro en USB et jack pour le HP.

Là l’enregistrement et la lecture se passe bien.

après je fais :

git clone https://github.com/GladysProject/gladys-voice > cd gladys-voice > npm install

[email protected]:~/gladys-voice $ npm install
npm WARN deprecated [email protected]: The google-cloud package has been deprecated. We strongly recommend installing individual API packages, such as @google-cloud/storage. For a list of Google Cloud Platform API specific packages please visit https://cloud.google.com/nodejs/docs/reference/libraries
npm WARN deprecated @google-cloud/[email protected]: The Prediction API is disabled, please use Google Cloud Machine Learning Engine instead.
npm WARN deprecated [email protected]: This version has been deprecated. Please upgrade to the latest version to get the best features, bug fixes, and security patches.
npm WARN notice [SECURITY] hoek has the following vulnerability: 1 moderate. Go here for more details: https://nodesecurity.io/advisories?search=hoek&version=2.16.3 - Run `npm i [email protected] -g` to upgrade your npm version, and then `npm audit` to get more info.
npm WARN deprecated [email protected]: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
npm WARN deprecated [email protected]: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
npm WARN deprecated [email protected]: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
npm WARN deprecated [email protected]: This version has been deprecated. Please upgrade to the latest version to get the best features, bug fixes, and security patches.
npm WARN notice [SECURITY] base64url has the following vulnerability: 1 moderate. Go here for more details: https://nodesecurity.io/advisories?search=base64url&version=2.0.0 - Run `npm i [email protected] -g` to upgrade your npm version, and then `npm audit` to get more info.
npm WARN notice [SECURITY] debug has the following vulnerability: 1 low. Go here for more details: https://nodesecurity.io/advisories?search=debug&version=2.6.0 - Run `npm i [email protected] -g` to upgrade your npm version, and then `npm audit` to get more info.
npm WARN deprecated [email protected]: catastrophic backtracking in regexes could potentially lead to REDOS attack, upgrade to 2.17.2 as soon as possible
npm WARN notice [SECURITY] lodash has the following vulnerability: 1 low. Go here for more details: https://nodesecurity.io/advisories?search=lodash&version=4.17.4 - Run `npm i [email protected] -g` to upgrade your npm version, and then `npm audit` to get more info.
npm WARN notice [SECURITY] mime has the following vulnerability: 1 moderate. Go here for more details: https://nodesecurity.io/advisories?search=mime&version=1.3.6 - Run `npm i [email protected] -g` to upgrade your npm version, and then `npm audit` to get more info.
npm WARN deprecated [email protected]: Use uuid module instead
npm WARN notice [SECURITY] sshpk has the following vulnerability: 1 high. Go here for more details: https://nodesecurity.io/advisories?search=sshpk&version=1.13.0 - Run `npm i [email protected] -g` to upgrade your npm version, and then `npm audit` to get more info.
npm WARN notice [SECURITY] debug has the following vulnerability: 1 low. Go here for more details: https://nodesecurity.io/advisories?search=debug&version=2.6.8 - Run `npm i [email protected] -g` to upgrade your npm version, and then `npm audit` to get more info.
npm WARN notice [SECURITY] tough-cookie has the following vulnerability: 1 high. Go here for more details: https://nodesecurity.io/advisories?search=tough-cookie&version=2.3.2 - Run `npm i [email protected] -g` to upgrade your npm version, and then `npm audit` to get more info.
npm WARN notice [SECURITY] protobufjs has the following vulnerability: 1 moderate. Go here for more details: https://nodesecurity.io/advisories?search=protobufjs&version=5.0.2 - Run `npm i [email protected] -g` to upgrade your npm version, and then `npm audit` to get more info.
npm WARN notice [SECURITY] is-my-json-valid has the following vulnerability: 1 low. Go here for more details: https://nodesecurity.io/advisories?search=is-my-json-valid&version=2.16.0 - Run `npm i [email protected] -g` to upgrade your npm version, and then `npm audit` to get more info.
npm WARN notice [SECURITY] tunnel-agent has the following vulnerability: 1 moderate. Go here for more details: https://nodesecurity.io/advisories?search=tunnel-agent&version=0.4.3 - Run `npm i [email protected] -g` to upgrade your npm version, and then `npm audit` to get more info.
npm WARN notice [SECURITY] stringstream has the following vulnerability: 1 moderate. Go here for more details: https://nodesecurity.io/advisories?search=stringstream&version=0.0.5 - Run `npm i [email protected] -g` to upgrade your npm version, and then `npm audit` to get more info.
npm WARN notice [SECURITY] growl has the following vulnerability: 1 critical. Go here for more details: https://nodesecurity.io/advisories?search=growl&version=1.9.2 - Run `npm i [email protected] -g` to upgrade your npm version, and then `npm audit` to get more info.
npm WARN notice [SECURITY] deep-extend has the following vulnerability: 1 low. Go here for more details: https://nodesecurity.io/advisories?search=deep-extend&version=0.4.2 - Run `npm i [email protected] -g` to upgrade your npm version, and then `npm audit` to get more info.

> [email protected] install /home/pi/gladys-voice/node_modules/google-cloud/node_modules/grpc
> node-pre-gyp install --fallback-to-build --library=static_library

node-pre-gyp ERR! Tried to download(403): https://storage.googleapis.com/grpc-precompiled-binaries/node/grpc/v1.3.7/node-v57-linux-arm.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for [email protected] and [email protected] (node-v57 ABI) (falling back to source compile with node-gyp)
make: Entering directory '/home/pi/gladys-voice/node_modules/google-cloud/node_modules/grpc/build'

et à la fin :

[email protected] install /home/pi/gladys-voice/node_modules/snowboy
node-pre-gyp install --fallback-to-build

[snowboy] Success: "/home/pi/gladys-voice/node_modules/snowboy/lib/node/binding/Release/node-v57-linux-arm/snowboy.node" is installed via remote

[email protected] install /home/pi/gladys-voice/node_modules/grpc
node-pre-gyp install --fallback-to-build --library=static_library

node-pre-gyp WARN Using request for node-pre-gyp https download
[grpc] Success: "/home/pi/gladys-voice/node_modules/grpc/src/node/extension_binary/node-v57-linux-arm-glibc/grpc_node.node" is installed via remote

[email protected] postinstall /home/pi/gladys-voice/node_modules/protobufjs
node scripts/postinstall

npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN [email protected] No repository field.

Comme je n’ai pas bien compris cette phrase : Sauf si vous êtes l’heureux propriétaire d’un Raspberry Pi de première génération Model B et B+ ou Pi Zero / Zero W : et que je ne l’ai pas fais avant je le lance.

je récup tout de google etc je modifie les fichiers config.js, index.js et je place le .json dans le dossier data.

je démarre gladys-voice : pm2 start app.js --name gladys-voice

[PM2] Starting /home/pi/gladys-voice/app.js in fork_mode (1 instance)
[PM2] Done.
┌──────────────┬────┬──────┬───────┬────────┬─────────┬────────┬─────┬───────────┬──────┬──────────┐
│ App name     │ id │ mode │ pid   │ status │ restart │ uptime │ cpu │ mem       │ user │ watching │
├──────────────┼────┼──────┼───────┼────────┼─────────┼────────┼─────┼───────────┼──────┼──────────┤
│ gladys       │ 0  │ fork │ 18068 │ online │ 1       │ 32m    │ 0%  │ 98.9 MB   │ pi   │ disabled │
│ gladys-voice │ 1  │ fork │ 6845  │ online │ 0       │ 0s     │ 88% │ 20.1 MB   │ pi   │ disabled │
└──────────────┴────┴──────┴───────┴────────┴─────────┴────────┴─────┴───────────┴──────┴──────────┘

et en lançant GV j’ai cela :

/home/pi/.pm2/logs/gladys-voice-out-1.log last 15 lines:
/home/pi/.pm2/logs/gladys-voice-error-1.log last 15 lines:
1|gladys-v | (node:6845) DeprecationWarning: grpc.load: Use the @grpc/proto-loader module with grpc.loadPackageDefinition instead

/home/pi/.pm2/logs/gladys-error-0.log last 15 lines:
0|gladys   | memory, and will not scale past a single process.
0|gladys   |
0|gladys   | =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=
0|gladys   | WARNING: You currently have your default CORS settings configured to allow
0|gladys   | all requests from all origins, with credentials.  This may leave your app
0|gladys   | open to attack by third-party sites!  Consider making your `origins` setting
0|gladys   | more restrictive or setting `credentials` to false, or else make certain that
0|gladys   | none of your routes perform sensitive actions or reveal secure information.
0|gladys   | =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=
0|gladys   |
0|gladys   | -------------------------------------------------------
0|gladys   | :: Tue Apr 16 2019 22:47:49 GMT+0000 (UTC)
0|gladys   | Environment : production
0|gladys   | Port        : 8080
0|gladys   | -------------------------------------------------------

/home/pi/.pm2/logs/gladys-out-0.log last 15 lines:
0|gladys   |                 `--'-------'
0|gladys   |    __---___--___---___--___---___--___
0|gladys   |  ____---___--___---___--___---___--___-__
0|gladys   |
0|gladys   | Server lifted in `/home/pi/gladys`
0|gladys   | To see your app, visit http://localhost:8080
0|gladys   | To shut down Sails, press <CTRL> + C at any time.
0|gladys   |
0|gladys   |
0|gladys   | Gladys Gateway: Not connected.
0|gladys   | Gladys is up to date !
0|gladys   | Event : create : new Event with code : gladys-launched
0|gladys   | Scenario : Trigger : New event : gladys-launched
0|gladys   | Scenario : Trigger : Found 0 launchers with code gladys-launched.
0|gladys   | New User connected : jeremy

/home/pi/.pm2/logs/gladys-voice-out-2.log last 15 lines:
/home/pi/.pm2/logs/gladys-voice-error-2.log last 15 lines:
2|gladys-v | (node:7356) DeprecationWarning: grpc.load: Use the @grpc/proto-loader module with grpc.loadPackageDefinition instead

PM2        | App [gladys-voice] with id [2] and pid [7356], exited with code [0] via signal [SIGINT]
PM2        | Starting execution sequence in -fork mode- for app name:gladys-voice id:2
PM2        | App name:gladys-voice id:2 online
2|gladys-v | (node:7409) DeprecationWarning: grpc.load: Use the @grpc/proto-loader module with grpc.loadPackageDefinition instead
PM2        | App [gladys-voice] with id [2] and pid [7409], exited with code [0] via signal [SIGINT]
PM2        | Starting execution sequence in -fork mode- for app name:gladys-voice id:2
PM2        | App name:gladys-voice id:2 online
2|gladys-v | (node:7464) DeprecationWarning: grpc.load: Use the @grpc/proto-loader module with grpc.loadPackageDefinition instead
PM2        | App [gladys-voice] with id [2] and pid [7464], exited with code [0] via signal [SIGINT]
PM2        | Starting execution sequence in -fork mode- for app name:gladys-voice id:2
PM2        | App name:gladys-voice id:2 online
2|gladys-v | (node:7539) DeprecationWarning: grpc.load: Use the @grpc/proto-loader module with grpc.loadPackageDefinition instead
PM2        | App [gladys-voice] with id [2] and pid [7539], exited with code [0] via signal [SIGINT]
PM2        | Starting execution sequence in -fork mode- for app name:gladys-voice id:2
PM2        | App name:gladys-voice id:2 online
2|gladys-v | (node:7582) DeprecationWarning: grpc.load: Use the @grpc/proto-loader module with grpc.loadPackageDefinition instead
PM2        | App [gladys-voice] with id [2] and pid [7582], exited with code [0] via signal [SIGINT]
PM2        | Starting execution sequence in -fork mode- for app name:gladys-voice id:2
PM2        | App name:gladys-voice id:2 online
2|gladys-v | (node:7657) DeprecationWarning: grpc.load: Use the @grpc/proto-loader module with grpc.loadPackageDefinition instead
PM2        | App [gladys-voice] with id [2] and pid [7657], exited with code [0] via signal [SIGINT]
PM2        | Starting execution sequence in -fork mode- for app name:gladys-voice id:2
PM2        | App name:gladys-voice id:2 online
2|gladys-v | (node:7700) DeprecationWarning: grpc.load: Use the @grpc/proto-loader module with grpc.loadPackageDefinition instead









/home/pi/.pm2/logs/gladys-voice-error-2.log last 100 lines:
2|gladys-v | (node:7356) DeprecationWarning: grpc.load: Use the @grpc/proto-loader module with grpc.loadPackageDefinition instead
2|gladys-v | (node:7409) DeprecationWarning: grpc.load: Use the @grpc/proto-loader module with grpc.loadPackageDefinition instead
2|gladys-v | (node:7464) DeprecationWarning: grpc.load: Use the @grpc/proto-loader module with grpc.loadPackageDefinition instead
2|gladys-v | (node:7539) DeprecationWarning: grpc.load: Use the @grpc/proto-loader module with grpc.loadPackageDefinition instead
2|gladys-v | (node:7582) DeprecationWarning: grpc.load: Use the @grpc/proto-loader module with grpc.loadPackageDefinition instead
2|gladys-v | (node:7657) DeprecationWarning: grpc.load: Use the @grpc/proto-loader module with grpc.loadPackageDefinition instead
2|gladys-v | (node:7700) DeprecationWarning: grpc.load: Use the @grpc/proto-loader module with grpc.loadPackageDefinition instead
2|gladys-v | (node:7755) DeprecationWarning: grpc.load: Use the @grpc/proto-loader module with grpc.loadPackageDefinition instead
2|gladys-v | (node:7830) DeprecationWarning: grpc.load: Use the @grpc/proto-loader module with grpc.loadPackageDefinition instead
2|gladys-v | (node:7885) DeprecationWarning: grpc.load: Use the @grpc/proto-loader module with grpc.loadPackageDefinition instead
2|gladys-v | (node:7960) DeprecationWarning: grpc.load: Use the @grpc/proto-loader module with grpc.loadPackageDefinition instead
2|gladys-v | (node:8003) DeprecationWarning: grpc.load: Use the @grpc/proto-loader module with grpc.loadPackageDefinition instead
2|gladys-v | (node:8046) DeprecationWarning: grpc.load: Use the @grpc/proto-loader module with grpc.loadPackageDefinition instead
2|gladys-v | (node:8133) DeprecationWarning: grpc.load: Use the @grpc/proto-loader module with grpc.loadPackageDefinition instead
2|gladys-v | (node:8176) DeprecationWarning: grpc.load: Use the @grpc/proto-loader module with grpc.loadPackageDefinition instead
2|gladys-v | (node:8263) DeprecationWarning: grpc.load: Use the @grpc/proto-loader module with grpc.loadPackageDefinition instead
2|gladys-v | (node:8306) DeprecationWarning: grpc.load: Use the @grpc/proto-loader module with grpc.loadPackageDefinition instead
2|gladys-v | (node:8381) DeprecationWarning: grpc.load: Use the @grpc/proto-loader module with grpc.loadPackageDefinition instead
2|gladys-v | (node:8424) DeprecationWarning: grpc.load: Use the @grpc/proto-loader module with grpc.loadPackageDefinition instead
2|gladys-v | (node:8467) DeprecationWarning: grpc.load: Use the @grpc/proto-loader module with grpc.loadPackageDefinition instead
2|gladys-v | (node:8554) DeprecationWarning: grpc.load: Use the @grpc/proto-loader module with grpc.loadPackageDefinition instead
2|gladys-v | (node:8597) DeprecationWarning: grpc.load: Use the @grpc/proto-loader module with grpc.loadPackageDefinition instead
2|gladys-v | (node:8672) DeprecationWarning: grpc.load: Use the @grpc/proto-loader module with grpc.loadPackageDefinition instead
2|gladys-v | (node:8715) DeprecationWarning: grpc.load: Use the @grpc/proto-loader module with grpc.loadPackageDefinition instead
2|gladys-v | (node:8770) DeprecationWarning: grpc.load: Use the @grpc/proto-loader module with grpc.loadPackageDefinition instead
2|gladys-v | (node:8845) DeprecationWarning: grpc.load: Use the @grpc/proto-loader module with grpc.loadPackageDefinition instead
2|gladys-v | (node:8889) DeprecationWarning: grpc.load: Use the @grpc/proto-loader module with grpc.loadPackageDefinition instead
2|gladys-v | (node:8976) DeprecationWarning: grpc.load: Use the @grpc/proto-loader module with grpc.loadPackageDefinition instead
2|gladys-v | (node:9020) DeprecationWarning: grpc.load: Use the @grpc/proto-loader module with grpc.loadPackageDefinition instead
2|gladys-v | (node:9075) DeprecationWarning: grpc.load: Use the @grpc/proto-loader module with grpc.loadPackageDefinition instead
2|gladys-v | (node:9150) DeprecationWarning: grpc.load: Use the @grpc/proto-loader module with grpc.loadPackageDefinition instead
2|gladys-v | (node:9194) DeprecationWarning: grpc.load: Use the @grpc/proto-loader module with grpc.loadPackageDefinition instead
2|gladys-v | (node:9269) DeprecationWarning: grpc.load: Use the @grpc/proto-loader module with grpc.loadPackageDefinition instead
2|gladys-v | (node:9324) DeprecationWarning: grpc.load: Use the @grpc/proto-loader module with grpc.loadPackageDefinition instead
2|gladys-v | (node:9367) DeprecationWarning: grpc.load: Use the @grpc/proto-loader module with grpc.loadPackageDefinition instead
2|gladys-v | (node:9442) DeprecationWarning: grpc.load: Use the @grpc/proto-loader module with grpc.loadPackageDefinition instead
2|gladys-v | (node:9485) DeprecationWarning: grpc.load: Use the @grpc/proto-loader module with grpc.loadPackageDefinition instead
2|gladys-v | (node:9572) DeprecationWarning: grpc.load: Use the @grpc/proto-loader module with grpc.loadPackageDefinition instead
2|gladys-v | (node:9615) DeprecationWarning: grpc.load: Use the @grpc/proto-loader module with grpc.loadPackageDefinition instead
2|gladys-v | (node:9690) DeprecationWarning: grpc.load: Use the @grpc/proto-loader module with grpc.loadPackageDefinition instead
2|gladys-v | (node:9745) DeprecationWarning: grpc.load: Use the @grpc/proto-loader module with grpc.loadPackageDefinition instead
2|gladys-v | (node:9788) DeprecationWarning: grpc.load: Use the @grpc/proto-loader module with grpc.loadPackageDefinition instead
2|gladys-v | (node:9863) DeprecationWarning: grpc.load: Use the @grpc/proto-loader module with grpc.loadPackageDefinition instead
2|gladys-v | 2019-04-16 22:58:8: (node:9937) DeprecationWarning: grpc.load: Use the @grpc/proto-loader module with grpc.loadPackageDefinition instead
2|gladys-v | 2019-04-16 22:58:23: (node:10061) DeprecationWarning: grpc.load: Use the @grpc/proto-loader module with grpc.loadPackageDefinition instead
2|gladys-v | 2019-04-16 22:58:36: (node:10104) DeprecationWarning: grpc.load: Use the @grpc/proto-loader module with grpc.loadPackageDefinition instead
2|gladys-v | 2019-04-16 22:58:48: (node:10157) DeprecationWarning: grpc.load: Use the @grpc/proto-loader module with grpc.loadPackageDefinition instead

2|gladys-v | 2019-04-16 22:59:1: (node:10254) DeprecationWarning: grpc.load: Use the @grpc/proto-loader module with grpc.loadPackageDefinition instead
2|gladys-v | 2019-04-16 22:59:13: (node:10297) DeprecationWarning: grpc.load: Use the @grpc/proto-loader module with grpc.loadPackageDefinition instead
2|gladys-v | 2019-04-16 22:59:25: (node:10372) DeprecationWarning: grpc.load: Use the @grpc/proto-loader module with grpc.loadPackageDefinition instead
2|gladys-v | 2019-04-16 22:59:37: (node:10415) DeprecationWarning: grpc.load: Use the @grpc/proto-loader module with grpc.loadPackageDefinition instead
2|gladys-v | 2019-04-16 22:59:50: (node:10470) DeprecationWarning: grpc.load: Use the @grpc/proto-loader module with grpc.loadPackageDefinition instead
2|gladys-v | 2019-04-16 23:00:2: (node:10546) DeprecationWarning: grpc.load: Use the @grpc/proto-loader module with grpc.loadPackageDefinition instead
2|gladys-v | 2019-04-16 23:00:15: (node:10589) DeprecationWarning: grpc.load: Use the @grpc/proto-loader module with grpc.loadPackageDefinition instead
2|gladys-v | 2019-04-16 23:00:27: (node:10676) DeprecationWarning: grpc.load: Use the @grpc/proto-loader module with grpc.loadPackageDefinition instead
2|gladys-v | 2019-04-16 23:00:39: (node:10719) DeprecationWarning: grpc.load: Use the @grpc/proto-loader module with grpc.loadPackageDefinition instead
2|gladys-v | 2019-04-16 23:00:52: (node:10762) DeprecationWarning: grpc.load: Use the @grpc/proto-loader module with grpc.loadPackageDefinition instead
2|gladys-v | 2019-04-16 23:01:4: (node:10839) DeprecationWarning: grpc.load: Use the @grpc/proto-loader module with grpc.loadPackageDefinition instead
2|gladys-v | 2019-04-16 23:01:16: (node:10894) DeprecationWarning: grpc.load: Use the @grpc/proto-loader module with grpc.loadPackageDefinition instead
2|gladys-v | 2019-04-16 23:01:28: (node:10969) DeprecationWarning: grpc.load: Use the @grpc/proto-loader module with grpc.loadPackageDefinition instead
2|gladys-v | 2019-04-16 23:01:40: (node:11012) DeprecationWarning: grpc.load: Use the @grpc/proto-loader module with grpc.loadPackageDefinition instead
2|gladys-v | 2019-04-16 23:01:53: (node:11087) DeprecationWarning: grpc.load: Use the @grpc/proto-loader module with grpc.loadPackageDefinition instead
2|gladys-v | 2019-04-16 23:02:5: (node:11142) DeprecationWarning: grpc.load: Use the @grpc/proto-loader module with grpc.loadPackageDefinition instead
2|gladys-v | 2019-04-16 23:02:17: (node:11185) DeprecationWarning: grpc.load: Use the @grpc/proto-loader module with grpc.loadPackageDefinition instead
2|gladys-v | 2019-04-16 23:02:29: (node:11260) DeprecationWarning: grpc.load: Use the @grpc/proto-loader module with grpc.loadPackageDefinition instead
2|gladys-v | 2019-04-16 23:02:42: (node:11316) DeprecationWarning: grpc.load: Use the @grpc/proto-loader module with grpc.loadPackageDefinition instead
2|gladys-v | 2019-04-16 23:02:54: (node:11391) DeprecationWarning: grpc.load: Use the @grpc/proto-loader module with grpc.loadPackageDefinition instead
#5
maintenant j'ai un autre souci : 

 [email protected]:~ $ pm2 start gladys-voice
[PM2] Applying action restartProcessId on app [gladys-voice](ids: 1)
[PM2] [gladys-voice](1) ✓
[PM2] Process successfully started
┌──────────────┬────┬──────┬───────┬────────┬─────────┬────────┬─────┬───────────┬──────┬──────────┐
│ App name     │ id │ mode │ pid   │ status │ restart │ uptime │ cpu │ mem       │ user │ watching │
├──────────────┼────┼──────┼───────┼────────┼─────────┼────────┼─────┼───────────┼──────┼──────────┤
│ gladys       │ 0  │ fork │ 12366 │ online │ 1       │ 15m    │ 0%  │ 59.2 MB   │ pi   │ disabled │
│ gladys-voice │ 1  │ fork │ 14053 │ online │ 75      │ 0s     │ 50% │ 15.8 MB   │ pi   │ disabled │
└──────────────┴────┴──────┴───────┴────────┴─────────┴────────┴─────┴───────────┴──────┴──────────┘
 Use `pm2 show <id|name>` to get more details about an app
[email protected]:~ $ pm2 logs
[TAILING] Tailing last 15 lines for [all] processes (change the value with --lines option)
/home/pi/.pm2/pm2.log last 15 lines:
PM2        | [2019-04-17 11:53:37] PM2 log: App [gladys-voice] with id [1] and pid [13945], exited with code [1] via signal [SIGINT]
PM2        | [2019-04-17 11:53:37] PM2 log: Script /home/pi/gladys-voice/app.js had too many unstable restarts (16). Stopped. "errored"
PM2        | [2019-04-17 11:54:36] PM2 log: Stopping app:gladys-voice id:1
PM2        | [2019-04-17 11:54:36] PM2 error: app=gladys-voice id=1 does not have a pid
PM2        | [2019-04-17 11:54:48] PM2 log: Starting execution sequence in -fork mode- for app name:gladys-voice id:1
PM2        | [2019-04-17 11:54:48] PM2 log: App name:gladys-voice id:1 online
PM2        | [2019-04-17 11:54:49] PM2 log: App [gladys-voice] with id [1] and pid [14053], exited with code [1] via signal [SIGINT]
PM2        | [2019-04-17 11:54:49] PM2 log: Starting execution sequence in -fork mode- for app name:gladys-voice id:1
PM2        | [2019-04-17 11:54:49] PM2 log: App name:gladys-voice id:1 online
PM2        | [2019-04-17 11:54:50] PM2 log: App [gladys-voice] with id [1] and pid [14077], exited with code [1] via signal [SIGINT]
PM2        | [2019-04-17 11:54:50] PM2 log: Starting execution sequence in -fork mode- for app name:gladys-voice id:1
PM2        | [2019-04-17 11:54:50] PM2 log: App name:gladys-voice id:1 online
PM2        | [2019-04-17 11:54:50] PM2 log: App [gladys-voice] with id [1] and pid [14089], exited with code [1] via signal [SIGINT]
PM2        | [2019-04-17 11:54:50] PM2 log: Starting execution sequence in -fork mode- for app name:gladys-voice id:1
PM2        | [2019-04-17 11:54:50] PM2 log: App name:gladys-voice id:1 online

/home/pi/.pm2/logs/gladys-out-0.log last 15 lines:
0|gladys   | Category : create : Inserting category Alarme
0|gladys   | Category : create : Inserting category Utilisateur
0|gladys   | Category : create : Inserting category Zone
0|gladys   | Category : create : Inserting category Système
0|gladys   | Category : create : Inserting category Maison
0|gladys   | StateType : create : Inserting stateType Maison vide
0|gladys   | StateType : create : Inserting stateType Maison non vide
0|gladys   | StateType : create : Inserting stateType Nuit
0|gladys   | StateType : create : Inserting stateType Jour
0|gladys   | StateType : create : Inserting stateType Utilisateur présent
0|gladys   | StateType : create : Inserting stateType Mode
0|gladys   | StateType : create : Inserting stateType Utilisateur endormi
0|gladys   | Brain trained with success ! Added 56 sentences.
0|gladys   | Brain file saved with success
0|gladys   | Gladys is up to date !

/home/pi/.pm2/logs/gladys-voice-out-1.log last 15 lines:
/home/pi/.pm2/logs/gladys-error-0.log last 15 lines:
0|gladys   |     at Module._compile (internal/modules/cjs/loader.js:701:30)
0|gladys   |     at Object.Module._extensions..js (internal/modules/cjs/loader.js:712:10)
0|gladys   |     at Module.load (internal/modules/cjs/loader.js:600:32)
0|gladys   |     at tryModuleLoad (internal/modules/cjs/loader.js:539:12)
0|gladys   |     at Function.Module._load (internal/modules/cjs/loader.js:531:3)
0|gladys   |     at Module.require (internal/modules/cjs/loader.js:637:17)
0|gladys   |     at require (internal/modules/cjs/helpers.js:22:18)
0|gladys   |     at Object.<anonymous> (/home/pi/gladys/api/models/User.js:17:14)
0|gladys   |     at Module._compile (internal/modules/cjs/loader.js:701:30)
0|gladys   |     at Object.Module._extensions..js (internal/modules/cjs/loader.js:712:10)
0|gladys   |     at Module.load (internal/modules/cjs/loader.js:600:32)
0|gladys   |     at tryModuleLoad (internal/modules/cjs/loader.js:539:12)
0|gladys   |     at Function.Module._load (internal/modules/cjs/loader.js:531:3)
0|gladys   |     at Module.require (internal/modules/cjs/loader.js:637:17)
0|gladys   |     at require (internal/modules/cjs/helpers.js:22:18)

/home/pi/.pm2/logs/gladys-voice-error-1.log last 15 lines:
1|gladys-v |     at Object.Module._extensions..js (internal/modules/cjs/loader.js:712:10)
1|gladys-v |     at Module.load (internal/modules/cjs/loader.js:600:32)
1|gladys-v |     at tryModuleLoad (internal/modules/cjs/loader.js:539:12)
1|gladys-v |     at Function.Module._load (internal/modules/cjs/loader.js:531:3)
1|gladys-v | Error: Cannot find module '/home/pi/gladys-voice/node_modules/snowboy/lib/node/binding/Release/node-v64-linux-arm/snowboy.node'
1|gladys-v |     at Function.Module._resolveFilename (internal/modules/cjs/loader.js:582:15)
1|gladys-v |     at Function.Module._load (internal/modules/cjs/loader.js:508:25)
1|gladys-v |     at Module.require (internal/modules/cjs/loader.js:637:17)
1|gladys-v |     at require (internal/modules/cjs/helpers.js:22:18)
1|gladys-v |     at Object.<anonymous> (/home/pi/gladys-voice/node_modules/snowboy/lib/node/index.js:8:29)
1|gladys-v |     at Module._compile (internal/modules/cjs/loader.js:701:30)
1|gladys-v |     at Object.Module._extensions..js (internal/modules/cjs/loader.js:712:10)
1|gladys-v |     at Module.load (internal/modules/cjs/loader.js:600:32)
1|gladys-v |     at tryModuleLoad (internal/modules/cjs/loader.js:539:12)
1|gladys-v |     at Function.Module._load (internal/modules/cjs/loader.js:531:3)

1|gladys-v | Error: Cannot find module '/home/pi/gladys-voice/node_modules/snowboy/lib/node/binding/Release/node-v64-linux-arm/snowboy.node'
1|gladys-v |     at Function.Module._resolveFilename (internal/modules/cjs/loader.js:582:15)
1|gladys-v |     at Function.Module._load (internal/modules/cjs/loader.js:508:25)
1|gladys-v |     at Module.require (internal/modules/cjs/loader.js:637:17)
1|gladys-v |     at require (internal/modules/cjs/helpers.js:22:18)
1|gladys-v |     at Object.<anonymous> (/home/pi/gladys-voice/node_modules/snowboy/lib/node/index.js:8:29)
1|gladys-v |     at Module._compile (internal/modules/cjs/loader.js:701:30)
1|gladys-v |     at Object.Module._extensions..js (internal/modules/cjs/loader.js:712:10)
1|gladys-v |     at Module.load (internal/modules/cjs/loader.js:600:32)
1|gladys-v |     at tryModuleLoad (internal/modules/cjs/loader.js:539:12)
1|gladys-v |     at Function.Module._load (internal/modules/cjs/loader.js:531:3)
PM2        | App [gladys-voice] with id [1] and pid [14108], exited with code [1] via signal [SIGINT]
PM2        | Starting execution sequence in -fork mode- for app name:gladys-voice id:1
PM2        | App name:gladys-voice id:1 online
1|gladys-v | Error: Cannot find module '/home/pi/gladys-voice/node_modules/snowboy/lib/node/binding/Release/node-v64-linux-arm/snowboy.node'
1|gladys-v |     at Function.Module._resolveFilename (internal/modules/cjs/loader.js:582:15)
1|gladys-v |     at Function.Module._load (internal/modules/cjs/loader.js:508:25)
1|gladys-v |     at Module.require (internal/modules/cjs/loader.js:637:17)
1|gladys-v |     at require (internal/modules/cjs/helpers.js:22:18)
1|gladys-v |     at Object.<anonymous> (/home/pi/gladys-voice/node_modules/snowboy/lib/node/index.js:8:29)
1|gladys-v |     at Module._compile (internal/modules/cjs/loader.js:701:30)
1|gladys-v |     at Object.Module._extensions..js (internal/modules/cjs/loader.js:712:10)
1|gladys-v |     at Module.load (internal/modules/cjs/loader.js:600:32)
1|gladys-v |     at tryModuleLoad (internal/modules/cjs/loader.js:539:12)
1|gladys-v |     at Function.Module._load (internal/modules/cjs/loader.js:531:3)
PM2        | App [gladys-voice] with id [1] and pid [14124], exited with code [1] via signal [SIGINT]
PM2        | Starting execution sequence in -fork mode- for app name:gladys-voice id:1
PM2        | App name:gladys-voice id:1 online
1|gladys-v | Error: Cannot find module '/home/pi/gladys-voice/node_modules/snowboy/lib/node/binding/Release/node-v64-linux-arm/snowboy.node'
1|gladys-v |     at Function.Module._resolveFilename (internal/modules/cjs/loader.js:582:15)
1|gladys-v |     at Function.Module._load (internal/modules/cjs/loader.js:508:25)
1|gladys-v |     at Module.require (internal/modules/cjs/loader.js:637:17)
1|gladys-v |     at require (internal/modules/cjs/helpers.js:22:18)
1|gladys-v |     at Object.<anonymous> (/home/pi/gladys-voice/node_modules/snowboy/lib/node/index.js:8:29)
1|gladys-v |     at Module._compile (internal/modules/cjs/loader.js:701:30)
1|gladys-v |     at Object.Module._extensions..js (internal/modules/cjs/loader.js:712:10)
1|gladys-v |     at Module.load (internal/modules/cjs/loader.js:600:32)
1|gladys-v |     at tryModuleLoad (internal/modules/cjs/loader.js:539:12)
1|gladys-v |     at Function.Module._load (internal/modules/cjs/loader.js:531:3)
PM2        | App [gladys-voice] with id [1] and pid [14136], exited with code [1] via signal [SIGINT]
PM2        | Starting execution sequence in -fork mode- for app name:gladys-voice id:1
PM2        | App name:gladys-voice id:1 online
1|gladys-v | Error: Cannot find module '/home/pi/gladys-voice/node_modules/snowboy/lib/node/binding/Release/node-v64-linux-arm/snowboy.node'
1|gladys-v |     at Function.Module._resolveFilename (internal/modules/cjs/loader.js:582:15)
1|gladys-v |     at Function.Module._load (internal/modules/cjs/loader.js:508:25)
1|gladys-v |     at Module.require (internal/modules/cjs/loader.js:637:17)
1|gladys-v |     at require (internal/modules/cjs/helpers.js:22:18)
1|gladys-v |     at Object.<anonymous> (/home/pi/gladys-voice/node_modules/snowboy/lib/node/index.js:8:29)
1|gladys-v |     at Module._compile (internal/modules/cjs/loader.js:701:30)
1|gladys-v |     at Object.Module._extensions..js (internal/modules/cjs/loader.js:712:10)
1|gladys-v |     at Module.load (internal/modules/cjs/loader.js:600:32)
1|gladys-v |     at tryModuleLoad (internal/modules/cjs/loader.js:539:12)
1|gladys-v |     at Function.Module._load (internal/modules/cjs/loader.js:531:3)
PM2        | App [gladys-voice] with id [1] and pid [14148], exited with code [1] via signal [SIGINT]
PM2        | Starting execution sequence in -fork mode- for app name:gladys-voice id:1
PM2        | App name:gladys-voice id:1 online
1|gladys-v | Error: Cannot find module '/home/pi/gladys-voice/node_modules/snowboy/lib/node/binding/Release/node-v64-linux-arm/snowboy.node'
1|gladys-v |     at Function.Module._resolveFilename (internal/modules/cjs/loader.js:582:15)
1|gladys-v |     at Function.Module._load (internal/modules/cjs/loader.js:508:25)
1|gladys-v |     at Module.require (internal/modules/cjs/loader.js:637:17)
1|gladys-v |     at require (internal/modules/cjs/helpers.js:22:18)
1|gladys-v |     at Object.<anonymous> (/home/pi/gladys-voice/node_modules/snowboy/lib/node/index.js:8:29)
1|gladys-v |     at Module._compile (internal/modules/cjs/loader.js:701:30)
1|gladys-v |     at Object.Module._extensions..js (internal/modules/cjs/loader.js:712:10)
1|gladys-v |     at Module.load (internal/modules/cjs/loader.js:600:32)
1|gladys-v |     at tryModuleLoad (internal/modules/cjs/loader.js:539:12)
1|gladys-v |     at Function.Module._load (internal/modules/cjs/loader.js:531:3)
PM2        | App [gladys-voice] with id [1] and pid [14160], exited with code [1] via signal [SIGINT]
PM2        | Starting execution sequence in -fork mode- for app name:gladys-voice id:1
PM2        | App name:gladys-voice id:1 online
1|gladys-v | Error: Cannot find module '/home/pi/gladys-voice/node_modules/snowboy/lib/node/binding/Release/node-v64-linux-arm/snowboy.node'
1|gladys-v |     at Function.Module._resolveFilename (internal/modules/cjs/loader.js:582:15)
1|gladys-v |     at Function.Module._load (internal/modules/cjs/loader.js:508:25)
1|gladys-v |     at Module.require (internal/modules/cjs/loader.js:637:17)
1|gladys-v |     at require (internal/modules/cjs/helpers.js:22:18)
1|gladys-v |     at Object.<anonymous> (/home/pi/gladys-voice/node_modules/snowboy/lib/node/index.js:8:29)
1|gladys-v |     at Module._compile (internal/modules/cjs/loader.js:701:30)
1|gladys-v |     at Object.Module._extensions..js (internal/modules/cjs/loader.js:712:10)
1|gladys-v |     at Module.load (internal/modules/cjs/loader.js:600:32)
1|gladys-v |     at tryModuleLoad (internal/modules/cjs/loader.js:539:12)
1|gladys-v |     at Function.Module._load (internal/modules/cjs/loader.js:531:3)
PM2        | App [gladys-voice] with id [1] and pid [14172], exited with code [1] via signal [SIGINT]
PM2        | Starting execution sequence in -fork mode- for app name:gladys-voice id:1
PM2        | App name:gladys-voice id:1 online
1|gladys-v | Error: Cannot find module '/home/pi/gladys-voice/node_modules/snowboy/lib/node/binding/Release/node-v64-linux-arm/snowboy.node'
1|gladys-v |     at Function.Module._resolveFilename (internal/modules/cjs/loader.js:582:15)
1|gladys-v |     at Function.Module._load (internal/modules/cjs/loader.js:508:25)
1|gladys-v |     at Module.require (internal/modules/cjs/loader.js:637:17)
1|gladys-v |     at require (internal/modules/cjs/helpers.js:22:18)
1|gladys-v |     at Object.<anonymous> (/home/pi/gladys-voice/node_modules/snowboy/lib/node/index.js:8:29)
1|gladys-v |     at Module._compile (internal/modules/cjs/loader.js:701:30)
1|gladys-v |     at Object.Module._extensions..js (internal/modules/cjs/loader.js:712:10)
1|gladys-v |     at Module.load (internal/modules/cjs/loader.js:600:32)
1|gladys-v |     at tryModuleLoad (internal/modules/cjs/loader.js:539:12)
1|gladys-v |     at Function.Module._load (internal/modules/cjs/loader.js:531:3)
PM2        | App [gladys-voice] with id [1] and pid [14184], exited with code [1] via signal [SIGINT]
PM2        | Starting execution sequence in -fork mode- for app name:gladys-voice id:1
PM2        | App name:gladys-voice id:1 online
1|gladys-v | Error: Cannot find module '/home/pi/gladys-voice/node_modules/snowboy/lib/node/binding/Release/node-v64-linux-arm/snowboy.node'
1|gladys-v |     at Function.Module._resolveFilename (internal/modules/cjs/loader.js:582:15)
1|gladys-v |     at Function.Module._load (internal/modules/cjs/loader.js:508:25)
1|gladys-v |     at Module.require (internal/modules/cjs/loader.js:637:17)
1|gladys-v |     at require (internal/modules/cjs/helpers.js:22:18)
1|gladys-v |     at Object.<anonymous> (/home/pi/gladys-voice/node_modules/snowboy/lib/node/index.js:8:29)
1|gladys-v |     at Module._compile (internal/modules/cjs/loader.js:701:30)
1|gladys-v |     at Object.Module._extensions..js (internal/modules/cjs/loader.js:712:10)
1|gladys-v |     at Module.load (internal/modules/cjs/loader.js:600:32)
1|gladys-v |     at tryModuleLoad (internal/modules/cjs/loader.js:539:12)
1|gladys-v |     at Function.Module._load (internal/modules/cjs/loader.js:531:3)
PM2        | App [gladys-voice] with id [1] and pid [14196], exited with code [1] via signal [SIGINT]
PM2        | Starting execution sequence in -fork mode- for app name:gladys-voice id:1
PM2        | App name:gladys-voice id:1 online
1|gladys-v | Error: Cannot find module '/home/pi/gladys-voice/node_modules/snowboy/lib/node/binding/Release/node-v64-linux-arm/snowboy.node'
1|gladys-v |     at Function.Module._resolveFilename (internal/modules/cjs/loader.js:582:15)
1|gladys-v |     at Function.Module._load (internal/modules/cjs/loader.js:508:25)
1|gladys-v |     at Module.require (internal/modules/cjs/loader.js:637:17)
1|gladys-v |     at require (internal/modules/cjs/helpers.js:22:18)
1|gladys-v |     at Object.<anonymous> (/home/pi/gladys-voice/node_modules/snowboy/lib/node/index.js:8:29)
1|gladys-v |     at Module._compile (internal/modules/cjs/loader.js:701:30)
1|gladys-v |     at Object.Module._extensions..js (internal/modules/cjs/loader.js:712:10)
1|gladys-v |     at Module.load (internal/modules/cjs/loader.js:600:32)
1|gladys-v |     at tryModuleLoad (internal/modules/cjs/loader.js:539:12)
1|gladys-v |     at Function.Module._load (internal/modules/cjs/loader.js:531:3)
PM2        | App [gladys-voice] with id [1] and pid [14208], exited with code [1] via signal [SIGINT]
PM2        | Starting execution sequence in -fork mode- for app name:gladys-voice id:1
PM2        | App name:gladys-voice id:1 online
1|gladys-v | Error: Cannot find module '/home/pi/gladys-voice/node_modules/snowboy/lib/node/binding/Release/node-v64-linux-arm/snowboy.node'
1|gladys-v |     at Function.Module._resolveFilename (internal/modules/cjs/loader.js:582:15)
1|gladys-v |     at Function.Module._load (internal/modules/cjs/loader.js:508:25)
1|gladys-v |     at Module.require (internal/modules/cjs/loader.js:637:17)
1|gladys-v |     at require (internal/modules/cjs/helpers.js:22:18)
1|gladys-v |     at Object.<anonymous> (/home/pi/gladys-voice/node_modules/snowboy/lib/node/index.js:8:29)
1|gladys-v |     at Module._compile (internal/modules/cjs/loader.js:701:30)
1|gladys-v |     at Object.Module._extensions..js (internal/modules/cjs/loader.js:712:10)
1|gladys-v |     at Module.load (internal/modules/cjs/loader.js:600:32)
1|gladys-v |     at tryModuleLoad (internal/modules/cjs/loader.js:539:12)
1|gladys-v |     at Function.Module._load (internal/modules/cjs/loader.js:531:3)
PM2        | App [gladys-voice] with id [1] and pid [14220], exited with code [1] via signal [SIGINT]
PM2        | Starting execution sequence in -fork mode- for app name:gladys-voice id:1
PM2        | App name:gladys-voice id:1 online
1|gladys-v | Error: Cannot find module '/home/pi/gladys-voice/node_modules/snowboy/lib/node/binding/Release/node-v64-linux-arm/snowboy.node'
1|gladys-v |     at Function.Module._resolveFilename (internal/modules/cjs/loader.js:582:15)
1|gladys-v |     at Function.Module._load (internal/modules/cjs/loader.js:508:25)
1|gladys-v |     at Module.require (internal/modules/cjs/loader.js:637:17)
1|gladys-v |     at require (internal/modules/cjs/helpers.js:22:18)
1|gladys-v |     at Object.<anonymous> (/home/pi/gladys-voice/node_modules/snowboy/lib/node/index.js:8:29)
1|gladys-v |     at Module._compile (internal/modules/cjs/loader.js:701:30)
1|gladys-v |     at Object.Module._extensions..js (internal/modules/cjs/loader.js:712:10)
1|gladys-v |     at Module.load (internal/modules/cjs/loader.js:600:32)
1|gladys-v |     at tryModuleLoad (internal/modules/cjs/loader.js:539:12)
1|gladys-v |     at Function.Module._load (internal/modules/cjs/loader.js:531:3)
PM2        | App [gladys-voice] with id [1] and pid [14232], exited with code [1] via signal [SIGINT]
PM2        | Starting execution sequence in -fork mode- for app name:gladys-voice id:1
PM2        | App name:gladys-voice id:1 online
1|gladys-v | Error: Cannot find module '/home/pi/gladys-voice/node_modules/snowboy/lib/node/binding/Release/node-v64-linux-arm/snowboy.node'
1|gladys-v |     at Function.Module._resolveFilename (internal/modules/cjs/loader.js:582:15)
1|gladys-v |     at Function.Module._load (internal/modules/cjs/loader.js:508:25)
1|gladys-v |     at Module.require (internal/modules/cjs/loader.js:637:17)
1|gladys-v |     at require (internal/modules/cjs/helpers.js:22:18)
1|gladys-v |     at Object.<anonymous> (/home/pi/gladys-voice/node_modules/snowboy/lib/node/index.js:8:29)
1|gladys-v |     at Module._compile (internal/modules/cjs/loader.js:701:30)
1|gladys-v |     at Object.Module._extensions..js (internal/modules/cjs/loader.js:712:10)
1|gladys-v |     at Module.load (internal/modules/cjs/loader.js:600:32)
1|gladys-v |     at tryModuleLoad (internal/modules/cjs/loader.js:539:12)
1|gladys-v |     at Function.Module._load (internal/modules/cjs/loader.js:531:3)
PM2        | App [gladys-voice] with id [1] and pid [14244], exited with code [1] via signal [SIGINT]
PM2        | Starting execution sequence in -fork mode- for app name:gladys-voice id:1
PM2        | App name:gladys-voice id:1 online
1|gladys-v | Error: Cannot find module '/home/pi/gladys-voice/node_modules/snowboy/lib/node/binding/Release/node-v64-linux-arm/snowboy.node'
1|gladys-v |     at Function.Module._resolveFilename (internal/modules/cjs/loader.js:582:15)
1|gladys-v |     at Function.Module._load (internal/modules/cjs/loader.js:508:25)
1|gladys-v |     at Module.require (internal/modules/cjs/loader.js:637:17)
1|gladys-v |     at require (internal/modules/cjs/helpers.js:22:18)
1|gladys-v |     at Object.<anonymous> (/home/pi/gladys-voice/node_modules/snowboy/lib/node/index.js:8:29)
1|gladys-v |     at Module._compile (internal/modules/cjs/loader.js:701:30)
1|gladys-v |     at Object.Module._extensions..js (internal/modules/cjs/loader.js:712:10)
1|gladys-v |     at Module.load (internal/modules/cjs/loader.js:600:32)
1|gladys-v |     at tryModuleLoad (internal/modules/cjs/loader.js:539:12)
1|gladys-v |     at Function.Module._load (internal/modules/cjs/loader.js:531:3)
PM2        | App [gladys-voice] with id [1] and pid [14256], exited with code [1] via signal [SIGINT]
PM2        | Script /home/pi/gladys-voice/app.js had too many unstable restarts (16). Stopped. "errored"
#6

Salut @jeremy37,

il ne faut pas continuer l’installation si tu as des erreurs depuis le début … Lances les commandes que je te donne 1 par 1 et à chaque fois copie/colle les logs si tu vois des erreurs :

donc va dans le dossier gladys-voice puis:

sudo npm i [email protected] -g

puis

npm install

tu as un raspberry pi 3 donc tu n’es pas concerné.

#7

Success: “/home/pi/gladys-voice/node_modules/snowboy/lib/node/binding/Release/node-v57-linux-arm/snowboy.node” is installed via remote

 Error: Cannot find module '/home/pi/gladys-voice/node_modules/snowboy/lib/node/binding/Release/node-v64-linux-arm/snowboy.node'

J’ai l’impression qu’il ne cherche pas la bonne version enfin ces lignes me paraissent louches

1 Like
#8

Exactement, d’où la commande à exécuter sudo npm i [email protected] -g avant de relancer l’install du module.

#9

D’accord merci étant en repos je m’y penche je reprend dès le début et je vous dit cela.

Par contre hôtez moi un doute, GV fonctionne sans installer de module avant ? car je test l’instal juste après avoir configuré Gladys.

#10

Voici :

[email protected]:~ $ git clone https://github.com/GladysProject/gladys-voice
Cloning into 'gladys-voice'...
remote: Enumerating objects: 44, done.
remote: Total 44 (delta 0), reused 0 (delta 0), pack-reused 44
Unpacking objects: 100% (44/44), done.
[email protected]:~ $ cd gladys-voice
[email protected]:~/gladys-voice $ sudo npm i [email protected] -g
/usr/local/bin/npm -> /usr/local/lib/node_modules/npm/bin/npm-cli.js
/usr/local/bin/npx -> /usr/local/lib/node_modules/npm/bin/npx-cli.js
+ [email protected]
added 314 packages, removed 364 packages and updated 52 packages in 40.239s

Pas d'erreur pour moi.


je continu : npm install : 


[email protected]:~/gladys-voice $ npm install
npm WARN deprecated [email protected]: The google-cloud package has been deprecated. We strongly recommend installing individual API packages, such as @google-cloud/storage. For a list of Google Cloud Platform API specific packages please visit https://cloud.google.com/nodejs/docs/reference/libraries
npm WARN deprecated @google-cloud/[email protected]: The Prediction API is disabled, please use Google Cloud Machine Learning Engine instead.
npm WARN deprecated [email protected]: This version has been deprecated. Please upgrade to the latest version to get the best features, bug fixes, and security patches.
npm WARN deprecated [email protected]: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
npm WARN deprecated [email protected]: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
npm WARN deprecated [email protected]: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
npm WARN deprecated [email protected]: This version has been deprecated. Please upgrade to the latest version to get the best features, bug fixes, and security patches.
npm WARN deprecated [email protected]: catastrophic backtracking in regexes could potentially lead to REDOS attack, upgrade to 2.17.2 as soon as possible
npm WARN deprecated [email protected]: Use uuid module instead

> [email protected] install /home/pi/gladys-voice/node_modules/google-cloud/node_modules/grpc
> node-pre-gyp install --fallback-to-build --library=static_library

**node-pre-gyp ERR! Tried to download(403): https://storage.googleapis.com/grpc-precompiled-binaries/node/grpc/v1.3.7/node-v57-linux-arm.tar.gz**

**node-pre-gyp ERR! Pre-built binaries not found for [email protected] and [email protected] (node-v57 ABI) (falling back to source compile with node-gyp)**

make: Entering directory '/home/pi/gladys-voice/node_modules/google-cloud/node_modules/grpc/build'
  CC(target) Release/obj.target/grpc/src/core/lib/surface/init.o
  CC(target) Release/obj.target/grpc/src/core/lib/channel/channel_args.o
  CC(target) Release/obj.target/grpc/src/core/lib/channel/channel_stack.o
  CC(target) Release/obj.target/grpc/src/core/lib/channel/channel_stack_builder.o
  CC(target) Release/obj.target/grpc/src/core/lib/channel/compress_filter.o
  CC(target) Release/obj.target/grpc/src/core/lib/channel/connected_channel.o
  CC(target) Release/obj.target/grpc/src/core/lib/channel/deadline_filter.o
  CC(target) Release/obj.target/grpc/src/core/lib/channel/handshaker.o
  CC(target) Release/obj.target/grpc/src/core/lib/channel/handshaker_factory.o
  CC(target) Release/obj.target/grpc/src/core/lib/channel/handshaker_registry.o
  CC(target) Release/obj.target/grpc/src/core/lib/channel/http_client_filter.o
  CC(target) Release/obj.target/grpc/src/core/lib/channel/http_server_filter.o
  CC(target) Release/obj.target/grpc/src/core/lib/channel/message_size_filter.o
  CC(target) Release/obj.target/grpc/src/core/lib/compression/compression.o
  CC(target) Release/obj.target/grpc/src/core/lib/compression/message_compress.o
  CC(target) Release/obj.target/grpc/src/core/lib/debug/trace.o
  CC(target) Release/obj.target/grpc/src/core/lib/http/format_request.o
  CC(target) Release/obj.target/grpc/src/core/lib/http/httpcli.o
  CC(target) Release/obj.target/grpc/src/core/lib/http/parser.o
  CC(target) Release/obj.target/grpc/src/core/lib/iomgr/closure.o
  CC(target) Release/obj.target/grpc/src/core/lib/iomgr/combiner.o
  CC(target) Release/obj.target/grpc/src/core/lib/iomgr/endpoint.o
  CC(target) Release/obj.target/grpc/src/core/lib/iomgr/endpoint_pair_posix.o
  CC(target) Release/obj.target/grpc/src/core/lib/iomgr/endpoint_pair_uv.o
  CC(target) Release/obj.target/grpc/src/core/lib/iomgr/endpoint_pair_windows.o
  CC(target) Release/obj.target/grpc/src/core/lib/iomgr/error.o
  CC(target) Release/obj.target/grpc/src/core/lib/iomgr/ev_epoll_linux.o
  CC(target) Release/obj.target/grpc/src/core/lib/iomgr/ev_poll_posix.o
  CC(target) Release/obj.target/grpc/src/core/lib/iomgr/ev_posix.o
  CC(target) Release/obj.target/grpc/src/core/lib/iomgr/exec_ctx.o
  CC(target) Release/obj.target/grpc/src/core/lib/iomgr/executor.o
  CC(target) Release/obj.target/grpc/src/core/lib/iomgr/iocp_windows.o
  CC(target) Release/obj.target/grpc/src/core/lib/iomgr/iomgr.o
  CC(target) Release/obj.target/grpc/src/core/lib/iomgr/iomgr_posix.o
  CC(target) Release/obj.target/grpc/src/core/lib/iomgr/iomgr_uv.o
  CC(target) Release/obj.target/grpc/src/core/lib/iomgr/iomgr_windows.o
  CC(target) Release/obj.target/grpc/src/core/lib/iomgr/load_file.o
  CC(target) Release/obj.target/grpc/src/core/lib/iomgr/lockfree_event.o
  CC(target) Release/obj.target/grpc/src/core/lib/iomgr/network_status_tracker.o
  CC(target) Release/obj.target/grpc/src/core/lib/iomgr/polling_entity.o
  CC(target) Release/obj.target/grpc/src/core/lib/iomgr/pollset_set_uv.o
  CC(target) Release/obj.target/grpc/src/core/lib/iomgr/pollset_set_windows.o
  CC(target) Release/obj.target/grpc/src/core/lib/iomgr/pollset_uv.o
  CC(target) Release/obj.target/grpc/src/core/lib/iomgr/pollset_windows.o
  CC(target) Release/obj.target/grpc/src/core/lib/iomgr/resolve_address_posix.o
  CC(target) Release/obj.target/grpc/src/core/lib/iomgr/resolve_address_uv.o
  CC(target) Release/obj.target/grpc/src/core/lib/iomgr/resolve_address_windows.o
  CC(target) Release/obj.target/grpc/src/core/lib/iomgr/resource_quota.o
  CC(target) Release/obj.target/grpc/src/core/lib/iomgr/sockaddr_utils.o
  CC(target) Release/obj.target/grpc/src/core/lib/iomgr/socket_factory_posix.o
  CC(target) Release/obj.target/grpc/src/core/lib/iomgr/socket_mutator.o
  CC(target) Release/obj.target/grpc/src/core/lib/iomgr/socket_utils_common_posix.o
  CC(target) Release/obj.target/grpc/src/core/lib/iomgr/socket_utils_linux.o
  CC(target) Release/obj.target/grpc/src/core/lib/iomgr/socket_utils_posix.o
  CC(target) Release/obj.target/grpc/src/core/lib/iomgr/socket_utils_uv.o
  CC(target) Release/obj.target/grpc/src/core/lib/iomgr/socket_utils_windows.o
  CC(target) Release/obj.target/grpc/src/core/lib/iomgr/socket_windows.o
  CC(target) Release/obj.target/grpc/src/core/lib/iomgr/tcp_client_posix.o
  CC(target) Release/obj.target/grpc/src/core/lib/iomgr/tcp_client_uv.o
  CC(target) Release/obj.target/grpc/src/core/lib/iomgr/tcp_client_windows.o
  CC(target) Release/obj.target/grpc/src/core/lib/iomgr/tcp_posix.o
  CC(target) Release/obj.target/grpc/src/core/lib/iomgr/tcp_server_posix.o
  CC(target) Release/obj.target/grpc/src/core/lib/iomgr/tcp_server_utils_posix_common.o
  CC(target) Release/obj.target/grpc/src/core/lib/iomgr/tcp_server_utils_posix_ifaddrs.o
  CC(target) Release/obj.target/grpc/src/core/lib/iomgr/tcp_server_utils_posix_noifaddrs.o
  CC(target) Release/obj.target/grpc/src/core/lib/iomgr/tcp_server_uv.o
  CC(target) Release/obj.target/grpc/src/core/lib/iomgr/tcp_server_windows.o
  CC(target) Release/obj.target/grpc/src/core/lib/iomgr/tcp_uv.o
  CC(target) Release/obj.target/grpc/src/core/lib/iomgr/tcp_windows.o
  CC(target) Release/obj.target/grpc/src/core/lib/iomgr/time_averaged_stats.o
  CC(target) Release/obj.target/grpc/src/core/lib/iomgr/timer_generic.o
  CC(target) Release/obj.target/grpc/src/core/lib/iomgr/timer_heap.o
  CC(target) Release/obj.target/grpc/src/core/lib/iomgr/timer_uv.o
  CC(target) Release/obj.target/grpc/src/core/lib/iomgr/udp_server.o
  CC(target) Release/obj.target/grpc/src/core/lib/iomgr/unix_sockets_posix.o
  CC(target) Release/obj.target/grpc/src/core/lib/iomgr/unix_sockets_posix_noop.o
  CC(target) Release/obj.target/grpc/src/core/lib/iomgr/wakeup_fd_cv.o
  CC(target) Release/obj.target/grpc/src/core/lib/iomgr/wakeup_fd_eventfd.o
  CC(target) Release/obj.target/grpc/src/core/lib/iomgr/wakeup_fd_nospecial.o
  CC(target) Release/obj.target/grpc/src/core/lib/iomgr/wakeup_fd_pipe.o
  CC(target) Release/obj.target/grpc/src/core/lib/iomgr/wakeup_fd_posix.o
  CC(target) Release/obj.target/grpc/src/core/lib/iomgr/workqueue_uv.o
  CC(target) Release/obj.target/grpc/src/core/lib/iomgr/workqueue_windows.o
  CC(target) Release/obj.target/grpc/src/core/lib/json/json.o
  CC(target) Release/obj.target/grpc/src/core/lib/json/json_reader.o
  CC(target) Release/obj.target/grpc/src/core/lib/json/json_string.o
  CC(target) Release/obj.target/grpc/src/core/lib/json/json_writer.o
  CC(target) Release/obj.target/grpc/src/core/lib/slice/b64.o
  CC(target) Release/obj.target/grpc/src/core/lib/slice/percent_encoding.o
  CC(target) Release/obj.target/grpc/src/core/lib/slice/slice.o
  CC(target) Release/obj.target/grpc/src/core/lib/slice/slice_buffer.o
  CC(target) Release/obj.target/grpc/src/core/lib/slice/slice_hash_table.o
  CC(target) Release/obj.target/grpc/src/core/lib/slice/slice_intern.o
  CC(target) Release/obj.target/grpc/src/core/lib/slice/slice_string_helpers.o
  CC(target) Release/obj.target/grpc/src/core/lib/surface/alarm.o
  CC(target) Release/obj.target/grpc/src/core/lib/surface/api_trace.o
  CC(target) Release/obj.target/grpc/src/core/lib/surface/byte_buffer.o
  CC(target) Release/obj.target/grpc/src/core/lib/surface/byte_buffer_reader.o
  CC(target) Release/obj.target/grpc/src/core/lib/surface/call.o
  CC(target) Release/obj.target/grpc/src/core/lib/surface/call_details.o
  CC(target) Release/obj.target/grpc/src/core/lib/surface/call_log_batch.o
  CC(target) Release/obj.target/grpc/src/core/lib/surface/channel.o
  CC(target) Release/obj.target/grpc/src/core/lib/surface/channel_init.o
  CC(target) Release/obj.target/grpc/src/core/lib/surface/channel_ping.o
  CC(target) Release/obj.target/grpc/src/core/lib/surface/channel_stack_type.o
  CC(target) Release/obj.target/grpc/src/core/lib/surface/completion_queue.o
  CC(target) Release/obj.target/grpc/src/core/lib/surface/completion_queue_factory.o
  CC(target) Release/obj.target/grpc/src/core/lib/surface/event_string.o
  CC(target) Release/obj.target/grpc/src/core/lib/surface/lame_client.o
  CC(target) Release/obj.target/grpc/src/core/lib/surface/metadata_array.o
  CC(target) Release/obj.target/grpc/src/core/lib/surface/server.o
  CC(target) Release/obj.target/grpc/src/core/lib/surface/validate_metadata.o
  CC(target) Release/obj.target/grpc/src/core/lib/surface/version.o
  CC(target) Release/obj.target/grpc/src/core/lib/transport/bdp_estimator.o
  CC(target) Release/obj.target/grpc/src/core/lib/transport/byte_stream.o
  CC(target) Release/obj.target/grpc/src/core/lib/transport/connectivity_state.o
  CC(target) Release/obj.target/grpc/src/core/lib/transport/error_utils.o
  CC(target) Release/obj.target/grpc/src/core/lib/transport/metadata.o
  CC(target) Release/obj.target/grpc/src/core/lib/transport/metadata_batch.o
  CC(target) Release/obj.target/grpc/src/core/lib/transport/pid_controller.o
  CC(target) Release/obj.target/grpc/src/core/lib/transport/service_config.o
  CC(target) Release/obj.target/grpc/src/core/lib/transport/static_metadata.o
  CC(target) Release/obj.target/grpc/src/core/lib/transport/status_conversion.o
  CC(target) Release/obj.target/grpc/src/core/lib/transport/timeout_encoding.o
  CC(target) Release/obj.target/grpc/src/core/lib/transport/transport.o
  CC(target) Release/obj.target/grpc/src/core/lib/transport/transport_op_string.o
  CC(target) Release/obj.target/grpc/src/core/ext/transport/chttp2/server/secure/server_secure_chttp2.o
  CC(target) Release/obj.target/grpc/src/core/ext/transport/chttp2/transport/bin_decoder.o
  CC(target) Release/obj.target/grpc/src/core/ext/transport/chttp2/transport/bin_encoder.o
  CC(target) Release/obj.target/grpc/src/core/ext/transport/chttp2/transport/chttp2_plugin.o
  CC(target) Release/obj.target/grpc/src/core/ext/transport/chttp2/transport/chttp2_transport.o
  CC(target) Release/obj.target/grpc/src/core/ext/transport/chttp2/transport/frame_data.o
  CC(target) Release/obj.target/grpc/src/core/ext/transport/chttp2/transport/frame_goaway.o
  CC(target) Release/obj.target/grpc/src/core/ext/transport/chttp2/transport/frame_ping.o
  CC(target) Release/obj.target/grpc/src/core/ext/transport/chttp2/transport/frame_rst_stream.o
  CC(target) Release/obj.target/grpc/src/core/ext/transport/chttp2/transport/frame_settings.o
  CC(target) Release/obj.target/grpc/src/core/ext/transport/chttp2/transport/frame_window_update.o
  CC(target) Release/obj.target/grpc/src/core/ext/transport/chttp2/transport/hpack_encoder.o
  CC(target) Release/obj.target/grpc/src/core/ext/transport/chttp2/transport/hpack_parser.o
  CC(target) Release/obj.target/grpc/src/core/ext/transport/chttp2/transport/hpack_table.o
  CC(target) Release/obj.target/grpc/src/core/ext/transport/chttp2/transport/http2_settings.o
  CC(target) Release/obj.target/grpc/src/core/ext/transport/chttp2/transport/huffsyms.o
  CC(target) Release/obj.target/grpc/src/core/ext/transport/chttp2/transport/incoming_metadata.o
  CC(target) Release/obj.target/grpc/src/core/ext/transport/chttp2/transport/parsing.o
  CC(target) Release/obj.target/grpc/src/core/ext/transport/chttp2/transport/stream_lists.o
  CC(target) Release/obj.target/grpc/src/core/ext/transport/chttp2/transport/stream_map.o
  CC(target) Release/obj.target/grpc/src/core/ext/transport/chttp2/transport/varint.o
  CC(target) Release/obj.target/grpc/src/core/ext/transport/chttp2/transport/writing.o
  CC(target) Release/obj.target/grpc/src/core/ext/transport/chttp2/alpn/alpn.o
  CC(target) Release/obj.target/grpc/src/core/lib/http/httpcli_security_connector.o
  CC(target) Release/obj.target/grpc/src/core/lib/security/context/security_context.o
  CC(target) Release/obj.target/grpc/src/core/lib/security/credentials/composite/composite_credentials.o
  CC(target) Release/obj.target/grpc/src/core/lib/security/credentials/credentials.o
  CC(target) Release/obj.target/grpc/src/core/lib/security/credentials/credentials_metadata.o
  CC(target) Release/obj.target/grpc/src/core/lib/security/credentials/fake/fake_credentials.o
  CC(target) Release/obj.target/grpc/src/core/lib/security/credentials/google_default/credentials_generic.o
  CC(target) Release/obj.target/grpc/src/core/lib/security/credentials/google_default/google_default_credentials.o
  CC(target) Release/obj.target/grpc/src/core/lib/security/credentials/iam/iam_credentials.o
  CC(target) Release/obj.target/grpc/src/core/lib/security/credentials/jwt/json_token.o
  CC(target) Release/obj.target/grpc/src/core/lib/security/credentials/jwt/jwt_credentials.o
  CC(target) Release/obj.target/grpc/src/core/lib/security/credentials/jwt/jwt_verifier.o
  CC(target) Release/obj.target/grpc/src/core/lib/security/credentials/oauth2/oauth2_credentials.o
  CC(target) Release/obj.target/grpc/src/core/lib/security/credentials/plugin/plugin_credentials.o
  CC(target) Release/obj.target/grpc/src/core/lib/security/credentials/ssl/ssl_credentials.o
  CC(target) Release/obj.target/grpc/src/core/lib/security/transport/client_auth_filter.o
  CC(target) Release/obj.target/grpc/src/core/lib/security/transport/lb_targets_info.o
  CC(target) Release/obj.target/grpc/src/core/lib/security/transport/secure_endpoint.o
  CC(target) Release/obj.target/grpc/src/core/lib/security/transport/security_connector.o
  CC(target) Release/obj.target/grpc/src/core/lib/security/transport/security_handshaker.o
  CC(target) Release/obj.target/grpc/src/core/lib/security/transport/server_auth_filter.o
  CC(target) Release/obj.target/grpc/src/core/lib/security/transport/tsi_error.o
  CC(target) Release/obj.target/grpc/src/core/lib/security/util/json_util.o
  CC(target) Release/obj.target/grpc/src/core/lib/surface/init_secure.o
  CC(target) Release/obj.target/grpc/src/core/tsi/fake_transport_security.o
  CC(target) Release/obj.target/grpc/src/core/tsi/ssl_transport_security.o
  CC(target) Release/obj.target/grpc/src/core/tsi/transport_security.o
  CC(target) Release/obj.target/grpc/src/core/ext/transport/chttp2/server/chttp2_server.o
  CC(target) Release/obj.target/grpc/src/core/ext/transport/chttp2/client/secure/secure_channel_create.o
  CC(target) Release/obj.target/grpc/src/core/ext/filters/client_channel/channel_connectivity.o
  CC(target) Release/obj.target/grpc/src/core/ext/filters/client_channel/client_channel.o
  CC(target) Release/obj.target/grpc/src/core/ext/filters/client_channel/client_channel_factory.o
  CC(target) Release/obj.target/grpc/src/core/ext/filters/client_channel/client_channel_plugin.o
  CC(target) Release/obj.target/grpc/src/core/ext/filters/client_channel/connector.o
  CC(target) Release/obj.target/grpc/src/core/ext/filters/client_channel/http_connect_handshaker.o
  CC(target) Release/obj.target/grpc/src/core/ext/filters/client_channel/http_proxy.o
  CC(target) Release/obj.target/grpc/src/core/ext/filters/client_channel/lb_policy.o
  CC(target) Release/obj.target/grpc/src/core/ext/filters/client_channel/lb_policy_factory.o
  CC(target) Release/obj.target/grpc/src/core/ext/filters/client_channel/lb_policy_registry.o
  CC(target) Release/obj.target/grpc/src/core/ext/filters/client_channel/parse_address.o
  CC(target) Release/obj.target/grpc/src/core/ext/filters/client_channel/proxy_mapper.o
  CC(target) Release/obj.target/grpc/src/core/ext/filters/client_channel/proxy_mapper_registry.o
  CC(target) Release/obj.target/grpc/src/core/ext/filters/client_channel/resolver.o
  CC(target) Release/obj.target/grpc/src/core/ext/filters/client_channel/resolver_factory.o
  CC(target) Release/obj.target/grpc/src/core/ext/filters/client_channel/resolver_registry.o
  CC(target) Release/obj.target/grpc/src/core/ext/filters/client_channel/retry_throttle.o
  CC(target) Release/obj.target/grpc/src/core/ext/filters/client_channel/subchannel.o
  CC(target) Release/obj.target/grpc/src/core/ext/filters/client_channel/subchannel_index.o
  CC(target) Release/obj.target/grpc/src/core/ext/filters/client_channel/uri_parser.o
  CC(target) Release/obj.target/grpc/src/core/ext/transport/chttp2/client/chttp2_connector.o
  CC(target) Release/obj.target/grpc/src/core/ext/transport/chttp2/server/insecure/server_chttp2.o
  CC(target) Release/obj.target/grpc/src/core/ext/transport/chttp2/server/insecure/server_chttp2_posix.o
  CC(target) Release/obj.target/grpc/src/core/ext/transport/chttp2/client/insecure/channel_create.o
  CC(target) Release/obj.target/grpc/src/core/ext/transport/chttp2/client/insecure/channel_create_posix.o
  CC(target) Release/obj.target/grpc/src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb.o
  CC(target) Release/obj.target/grpc/src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb_channel_secure.o
  CC(target) Release/obj.target/grpc/src/core/ext/filters/client_channel/lb_policy/grpclb/load_balancer_api.o
  CC(target) Release/obj.target/grpc/src/core/ext/filters/client_channel/lb_policy/grpclb/proto/grpc/lb/v1/load_balancer.pb.o
  CC(target) Release/obj.target/grpc/third_party/nanopb/pb_common.o
  CC(target) Release/obj.target/grpc/third_party/nanopb/pb_decode.o
  CC(target) Release/obj.target/grpc/third_party/nanopb/pb_encode.o
  CC(target) Release/obj.target/grpc/src/core/ext/filters/client_channel/lb_policy/pick_first/pick_first.o
  CC(target) Release/obj.target/grpc/src/core/ext/filters/client_channel/lb_policy/round_robin/round_robin.o
  CC(target) Release/obj.target/grpc/src/core/ext/filters/client_channel/resolver/dns/c_ares/dns_resolver_ares.o
  CC(target) Release/obj.target/grpc/src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_ev_driver_posix.o
  CC(target) Release/obj.target/grpc/src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_wrapper.o
  CC(target) Release/obj.target/grpc/src/core/ext/filters/client_channel/resolver/dns/native/dns_resolver.o
  CC(target) Release/obj.target/grpc/src/core/ext/filters/client_channel/resolver/sockaddr/sockaddr_resolver.o
  CC(target) Release/obj.target/grpc/src/core/ext/filters/load_reporting/load_reporting.o
  CC(target) Release/obj.target/grpc/src/core/ext/filters/load_reporting/load_reporting_filter.o
  CC(target) Release/obj.target/grpc/src/core/ext/census/base_resources.o
  CC(target) Release/obj.target/grpc/src/core/ext/census/context.o
  CC(target) Release/obj.target/grpc/src/core/ext/census/gen/census.pb.o
  CC(target) Release/obj.target/grpc/src/core/ext/census/gen/trace_context.pb.o
  CC(target) Release/obj.target/grpc/src/core/ext/census/grpc_context.o
  CC(target) Release/obj.target/grpc/src/core/ext/census/grpc_filter.o
  CC(target) Release/obj.target/grpc/src/core/ext/census/grpc_plugin.o
  CC(target) Release/obj.target/grpc/src/core/ext/census/initialize.o
  CC(target) Release/obj.target/grpc/src/core/ext/census/mlog.o
  CC(target) Release/obj.target/grpc/src/core/ext/census/operation.o
  CC(target) Release/obj.target/grpc/src/core/ext/census/placeholders.o
  CC(target) Release/obj.target/grpc/src/core/ext/census/resource.o
  CC(target) Release/obj.target/grpc/src/core/ext/census/trace_context.o
  CC(target) Release/obj.target/grpc/src/core/ext/census/tracing.o
  CC(target) Release/obj.target/grpc/src/core/ext/filters/max_age/max_age_filter.o
  CC(target) Release/obj.target/grpc/src/core/plugin_registry/grpc_plugin_registry.o
  AR(target) Release/obj.target/libgrpc.a
  COPY Release/libgrpc.a
  CC(target) Release/obj.target/gpr/src/core/lib/profiling/basic_timers.o
  CC(target) Release/obj.target/gpr/src/core/lib/profiling/stap_timers.o
  CC(target) Release/obj.target/gpr/src/core/lib/support/alloc.o
  CC(target) Release/obj.target/gpr/src/core/lib/support/arena.o
  CC(target) Release/obj.target/gpr/src/core/lib/support/atm.o
  ....
c/node/ext/channel.o
  CXX(target) Release/obj.target/grpc_node/src/node/ext/channel_credentials.o
  CXX(target) Release/obj.target/grpc_node/src/node/ext/completion_queue.o
  CXX(target) Release/obj.target/grpc_node/src/node/ext/node_grpc.o
  CXX(target) Release/obj.target/grpc_node/src/node/ext/server.o
  CXX(target) Release/obj.target/grpc_node/src/node/ext/server_credentials.o
  CXX(target) Release/obj.target/grpc_node/src/node/ext/slice.o
  CXX(target) Release/obj.target/grpc_node/src/node/ext/timeval.o
  SOLINK_MODULE(target) Release/obj.target/grpc_node.node
  COPY Release/grpc_node.node
  COPY /home/pi/gladys-voice/node_modules/google-cloud/node_modules/grpc/src/node/extension_binary/grpc_node.node
  TOUCH Release/obj.target/action_after_build.stamp
make: Leaving directory '/home/pi/gladys-voice/node_modules/google-cloud/node_modules/grpc/build'

> [email protected] install /home/pi/gladys-voice/node_modules/snowboy
> node-pre-gyp install --fallback-to-build

[snowboy] Success: "/home/pi/gladys-voice/node_modules/snowboy/lib/node/binding/Release/node-v57-linux-arm/snowboy.node" is installed via remote

> [email protected] install /home/pi/gladys-voice/node_modules/grpc
> node-pre-gyp install --fallback-to-build --library=static_library

node-pre-gyp WARN Using request for node-pre-gyp https download
[grpc] Success: "/home/pi/gladys-voice/node_modules/grpc/src/node/extension_binary/node-v57-linux-arm-glibc/grpc_node.node" is installed via remote

> [email protected] postinstall /home/pi/gladys-voice/node_modules/protobufjs
> node scripts/postinstall

npm notice created a lockfile as package-lock.json. You should commit this file.
npm **WARN** [email protected] No repository field.

added 586 packages from 507 contributors and audited 22624 packages in 332.553s
found 1944 vulnerabilities (124 low, 1384 moderate, 436 high)
  run `npm audit fix` to fix them, or `npm audit` for details

**puis je lance :** 


[PM2] Process successfully started
┌──────────────┬────┬──────┬───────┬────────┬─────────┬────────┬─────┬───────────┬──────┬──────────┐
│ App name     │ id │ mode │ pid   │ status │ restart │ uptime │ cpu │ mem       │ user │ watching │
├──────────────┼────┼──────┼───────┼────────┼─────────┼────────┼─────┼───────────┼──────┼──────────┤
│ gladys       │ 0  │ fork │ 29394 │ online │ 0       │ 0s     │ 33% │ 15.1 MB   │ pi   │ disabled │
│ gladys-voice │ 1  │ fork │ 28317 │ online │ 0       │ 14m    │ 0%  │ 47.0 MB   │ pi   │ disabled │
└──────────────┴────┴──────┴───────┴────────┴─────────┴────────┴─────┴───────────┴──────┴──────────┘
 Use `pm2 show <id|name>` to get more details about an app
[email protected]:~ $ pm2 logs
[TAILING] Tailing last 15 lines for [all] processes (change the value with --lines option)
/home/pi/.pm2/pm2.log last 15 lines:
PM2        | [2019-04-17 13:32:42] PM2 log: Stopping app:gladys-voice id:1
PM2        | [2019-04-17 13:32:42] PM2 log: App [gladys-voice] with id [1] and pid [27940], exited with code [0] via signal [SIGINT]
PM2        | [2019-04-17 13:32:42] PM2 log: pid=27940 msg=process killed
PM2        | [2019-04-17 13:32:46] PM2 log: Starting execution sequence in -fork mode- for app name:gladys-voice id:1
PM2        | [2019-04-17 13:32:46] PM2 log: App name:gladys-voice id:1 online
PM2        | [2019-04-17 13:34:34] PM2 log: Stopping app:gladys id:0
PM2        | [2019-04-17 13:34:34] PM2 log: App [gladys] with id [0] and pid [626], exited with code [0] via signal [SIGINT]
PM2        | [2019-04-17 13:34:34] PM2 log: pid=626 msg=process killed
PM2        | [2019-04-17 13:38:27] PM2 log: Starting execution sequence in -fork mode- for app name:gladys id:0
PM2        | [2019-04-17 13:38:27] PM2 log: App name:gladys id:0 online
PM2        | [2019-04-17 13:46:33] PM2 log: Stopping app:gladys id:0
PM2        | [2019-04-17 13:46:33] PM2 log: App [gladys] with id [0] and pid [28818], exited with code [0] via signal [SIGINT]
PM2        | [2019-04-17 13:46:33] PM2 log: pid=28818 msg=process killed
PM2        | [2019-04-17 13:47:33] PM2 log: Starting execution sequence in -fork mode- for app name:gladys id:0
PM2        | [2019-04-17 13:47:33] PM2 log: App name:gladys id:0 online

/home/pi/.pm2/logs/gladys-voice-out-1.log last 15 lines:
/home/pi/.pm2/logs/gladys-voice-error-1.log last 15 lines:

**1|gladys-v | (node:27940) DeprecationWarning: grpc.load: Use the @grpc/proto-loader module with grpc.loadPackageDefinition instead**
**1|gladys-v | (node:28317) DeprecationWarning: grpc.load: Use the @grpc/proto-loader module with grpc.loadPackageDefinition instead**

/home/pi/.pm2/logs/gladys-error-0.log last 15 lines:
0|gladys   | memory, and will not scale past a single process.
0|gladys   |
0|gladys   | =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=
0|gladys   | WARNING: You currently have your default CORS settings configured to allow
0|gladys   | all requests from all origins, with credentials.  This may leave your app
0|gladys   | open to attack by third-party sites!  Consider making your `origins` setting
0|gladys   | more restrictive or setting `credentials` to false, or else make certain that
0|gladys   | none of your routes perform sensitive actions or reveal secure information.
0|gladys   | =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=
0|gladys   |
0|gladys   | -------------------------------------------------------
0|gladys   | :: Wed Apr 17 2019 13:47:48 GMT+0000 (UTC)
0|gladys   | Environment : production
0|gladys   | Port        : 8080
0|gladys   | -------------------------------------------------------

/home/pi/.pm2/logs/gladys-out-0.log last 15 lines:
0|gladys   |                 `--'-------'
0|gladys   |    __---___--___---___--___---___--___
0|gladys   |  ____---___--___---___--___---___--___-__
0|gladys   |
0|gladys   | Server lifted in `/home/pi/gladys`
0|gladys   | To see your app, visit http://localhost:8080
0|gladys   | To shut down Sails, press <CTRL> + C at any time.
0|gladys   |
0|gladys   |
0|gladys   | Gladys Gateway: Not connected.
0|gladys   | Gladys is up to date !
0|gladys   | Event : create : new Event with code : gladys-launched
0|gladys   | Scenario : Trigger : New event : gladys-launched
0|gladys   | Scenario : Trigger : Found 0 launchers with code gladys-launched.
0|gladys   | House : checkUsersPresence
#11

maintenant j’ai ce la :

/home/pi/.pm2/logs/gladys-voice-out-1.log last 100 lines:
/home/pi/.pm2/logs/gladys-error-0.log last 100 lines:
0|gladys   | memory, and will not scale past a single process.
0|gladys   | Warning: connect.session() MemoryStore is not
0|gladys   | designed for a production environment, as it will leak
0|gladys   | memory, and will not scale past a single process.
0|gladys   |
0|gladys   | =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=
0|gladys   | WARNING: You currently have your default CORS settings configured to allow
0|gladys   | all requests from all origins, with credentials.  This may leave your app
0|gladys   | open to attack by third-party sites!  Consider making your `origins` setting
0|gladys   | more restrictive or setting `credentials` to false, or else make certain that
0|gladys   | none of your routes perform sensitive actions or reveal secure information.
0|gladys   | =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=
0|gladys   |
0|gladys   | -------------------------------------------------------
0|gladys   | :: Wed Apr 17 2019 15:37:00 GMT+0000 (UTC)
0|gladys   | Environment : production
0|gladys   | Port        : 8080
0|gladys   | -------------------------------------------------------
0|gladys   | Getting conversation undefined, found 0 messages.
0|gladys   | Brain : answer : Found 2 possible.
0|gladys   | brain : classify : Answered in 0s, 376.523 ms
0|gladys   | Getting conversation undefined, found 0 messages.
0|gladys   | Brain : answer : Found 2 possible.
0|gladys   | brain : classify : Answered in 0s, 151.097 ms
0|gladys   | Getting conversation undefined, found 0 messages.
0|gladys   | Brain : answer : Found 2 possible.
0|gladys   | brain : classify : Answered in 0s, 248.840 ms
0|gladys   | Getting conversation undefined, found 0 messages.
0|gladys   | Brain : answer : Found 2 possible.
0|gladys   | brain : classify : Answered in 0s, 275.398 ms
0|gladys   | Getting conversation undefined, found 0 messages.
0|gladys   | Brain : answer : Found 2 possible.
0|gladys   | brain : classify : Answered in 0s, 145.505 ms
0|gladys   | Getting conversation undefined, found 0 messages.
0|gladys   | Brain : answer : Found 2 possible.
0|gladys   | brain : classify : Answered in 0s, 122.834 ms
0|gladys   | Getting conversation undefined, found 0 messages.
0|gladys   | Brain : answer : Found 2 possible.
0|gladys   | brain : classify : Answered in 0s, 243.588 ms
0|gladys   | Getting conversation undefined, found 0 messages.
0|gladys   | Brain : answer : Found 2 possible.
0|gladys   | brain : classify : Answered in 0s, 234.597 ms
0|gladys   | Getting conversation undefined, found 0 messages.
0|gladys   | Brain : answer : Found 2 possible.
0|gladys   | brain : classify : Answered in 0s, 135.357 ms
0|gladys   | Getting conversation undefined, found 0 messages.
0|gladys   | Brain : answer : Found 2 possible.
0|gladys   | brain : classify : Answered in 0s, 118.226 ms
0|gladys   | Getting conversation undefined, found 0 messages.
0|gladys   | Brain : answer : Found 2 possible.
0|gladys   | brain : classify : Answered in 0s, 104.057 ms
0|gladys   | Getting conversation undefined, found 0 messages.
0|gladys   | Brain : answer : Found 3 possible.
0|gladys   | brain : classify : Answered in 0s, 124.735 ms
0|gladys   | Getting conversation undefined, found 0 messages.
0|gladys   | Brain : answer : Found 2 possible.
0|gladys   | brain : classify : Answered in 0s, 85.928 ms
0|gladys   | Getting conversation undefined, found 0 messages.
0|gladys   | Brain : answer : Found 2 possible.
0|gladys   | brain : classify : Answered in 0s, 84.811 ms
0|gladys   | Warning: connect.session() MemoryStore is not
0|gladys   | designed for a production environment, as it will leak
0|gladys   | memory, and will not scale past a single process.
0|gladys   | Warning: connect.session() MemoryStore is not
0|gladys   | designed for a production environment, as it will leak
0|gladys   | memory, and will not scale past a single process.
0|gladys   |
0|gladys   | =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=
0|gladys   | WARNING: You currently have your default CORS settings configured to allow
0|gladys   | all requests from all origins, with credentials.  This may leave your app
0|gladys   | open to attack by third-party sites!  Consider making your `origins` setting
0|gladys   | more restrictive or setting `credentials` to false, or else make certain that
0|gladys   | none of your routes perform sensitive actions or reveal secure information.
0|gladys   | =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=
0|gladys   |
0|gladys   | -------------------------------------------------------
0|gladys   | :: Wed Apr 17 2019 15:48:15 GMT+0000 (UTC)
0|gladys   | Environment : production
0|gladys   | Port        : 8080
0|gladys   | -------------------------------------------------------
0|gladys   | Warning: connect.session() MemoryStore is not
0|gladys   | designed for a production environment, as it will leak
0|gladys   | memory, and will not scale past a single process.
0|gladys   | Warning: connect.session() MemoryStore is not
0|gladys   | designed for a production environment, as it will leak
0|gladys   | memory, and will not scale past a single process.
0|gladys   |
0|gladys   | =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=
0|gladys   | WARNING: You currently have your default CORS settings configured to allow
0|gladys   | all requests from all origins, with credentials.  This may leave your app
0|gladys   | open to attack by third-party sites!  Consider making your `origins` setting
0|gladys   | more restrictive or setting `credentials` to false, or else make certain that
0|gladys   | none of your routes perform sensitive actions or reveal secure information.
0|gladys   | =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=
0|gladys   |
0|gladys   | -------------------------------------------------------
0|gladys   | :: Wed Apr 17 2019 16:12:32 GMT+0000 (UTC)
0|gladys   | Environment : production
0|gladys   | Port        : 8080
0|gladys   | -------------------------------------------------------

/home/pi/.pm2/logs/gladys-out-0.log last 100 lines:
0|gladys   | User is not available on any service. Cannot contact him.
0|gladys   | brain : classify : Identified label event;back-at-home
0|gladys   | Event : create : new Event with code : back-at-home
0|gladys   | Scenario : Trigger : New event : back-at-home
0|gladys   | Brain : answer : Answering with label user-back-at-home in language fr-FR
0|gladys   | Scenario : Trigger : Found 0 launchers with code back-at-home.
0|gladys   | Brain : answer : Trying to contact socket
0|gladys   | Message sent with success with socket.
0|gladys   | User is not available on any service. Cannot contact him.
0|gladys   | House : checkUsersPresence
0|gladys   | House : checkUsersPresence
0|gladys   | Gladys version : 3.13.0
0|gladys   | Gladys Gateway: Init Procedure : Getting keys from database
0|gladys   | Bootstrap is taking unusually long to execute its callback (2000 milliseconds).
0|gladys   | Perhaps you forgot to call it?  The callback is the first argument of the function, `cb`.
0|gladys   | Gladys brain loaded with success !
0|gladys   | Gladys database schema/data is up to date. No migration required. ( DB = 3.13.0 )
0|gladys   | Successfully checked DB version.
0|gladys   | Scheduled sunrise to 2019-4-17 04:47:20.
0|gladys   | Scheduled sunset to 2019-4-17 18:25:37.
0|gladys   |
0|gladys   |                .-..-.
0|gladys   |
0|gladys   |    Sails              <|    .-..-.
0|gladys   |    v0.12.14            |\
0|gladys   |                       /|.\
0|gladys   |                      / || \
0|gladys   |                    ,'  |'  \
0|gladys   |                 .-'.-==|/_--'
0|gladys   |                 `--'-------'
0|gladys   |    __---___--___---___--___---___--___
0|gladys   |  ____---___--___---___--___---___--___-__
0|gladys   |
0|gladys   | Server lifted in `/home/pi/gladys`
0|gladys   | To see your app, visit http://localhost:8080
0|gladys   | To shut down Sails, press <CTRL> + C at any time.
0|gladys   |
0|gladys   |
0|gladys   | Gladys Gateway: Not connected.
0|gladys   | Gladys is up to date !
0|gladys   | Event : create : new Event with code : gladys-launched
0|gladys   | Scenario : Trigger : New event : gladys-launched
0|gladys   | Scenario : Trigger : Found 0 launchers with code gladys-launched.
0|gladys   | House : checkUsersPresence
0|gladys   | House : checkUsersPresence
0|gladys   | House : checkUserPresence : Putting user 1 as left house : 1
0|gladys   | Event : create : new Event with code : left-home
0|gladys   | Scenario : Trigger : New event : left-home
0|gladys   | Scenario : Trigger : Found 0 launchers with code left-home.
0|gladys   | House : checkUsersPresence
0|gladys   | House : checkUsersPresence
0|gladys   | Socket disconnected, but session could not be loaded to pass to configured disconnect handler: `sails.config.sockets.afterDisconnect()`.  Will pass a fake, empty session as argument to li                                     fecycle callback.  Details:
0|gladys   |  Error: Could not parse session id from cookie of connecting socket, and then failed again when trying to use a generated cookie. Something has probably gone wrong with your session store                                      configuration.
0|gladys   |     at _createError (/home/pi/gladys/node_modules/sails-hook-sockets/lib/load-session-from-socket.js:44:17)
0|gladys   |     at loadSessionFromSocket (/home/pi/gladys/node_modules/sails-hook-sockets/lib/load-session-from-socket.js:47:7)
0|gladys   |     at Socket.onSocketDisconnect (/home/pi/gladys/node_modules/sails-hook-sockets/lib/on-connect.js:43:7)
0|gladys   |     at emitOne (events.js:116:13)
0|gladys   |     at Socket.emit (events.js:211:7)
0|gladys   |     at Socket.emit (/home/pi/gladys/node_modules/socket.io/lib/socket.js:141:10)
0|gladys   |     at Socket.onclose (/home/pi/gladys/node_modules/socket.io/lib/socket.js:441:8)
0|gladys   |     at Server.close (/home/pi/gladys/node_modules/socket.io/lib/index.js:402:34)
0|gladys   |     at shutdownHTTP (/home/pi/gladys/node_modules/sails/lib/app/lower.js:130:22)
0|gladys   |     at /home/pi/gladys/node_modules/sails/node_modules/async/lib/async.js:713:13
0|gladys   |     at Immediate.iterate (/home/pi/gladys/node_modules/sails/node_modules/async/lib/async.js:262:13)
0|gladys   |     at runCallback (timers.js:789:20)
0|gladys   |     at tryOnImmediate (timers.js:751:5)
0|gladys   |     at processImmediate [as _immediateCallback] (timers.js:722:5)
0|gladys   | Gladys version : 3.13.0
0|gladys   | Gladys Gateway: Init Procedure : Getting keys from database
0|gladys   | Bootstrap is taking unusually long to execute its callback (2000 milliseconds).
0|gladys   | Perhaps you forgot to call it?  The callback is the first argument of the function, `cb`.
0|gladys   | Gladys brain loaded with success !
0|gladys   | Gladys database schema/data is up to date. No migration required. ( DB = 3.13.0 )
0|gladys   | Successfully checked DB version.
0|gladys   | Scheduled sunrise to 2019-4-17 04:47:20.
0|gladys   | Scheduled sunset to 2019-4-17 18:25:37.
0|gladys   |
0|gladys   |                .-..-.
0|gladys   |
0|gladys   |    Sails              <|    .-..-.
0|gladys   |    v0.12.14            |\
0|gladys   |                       /|.\
0|gladys   |                      / || \
0|gladys   |                    ,'  |'  \
0|gladys   |                 .-'.-==|/_--'
0|gladys   |                 `--'-------'
0|gladys   |    __---___--___---___--___---___--___
0|gladys   |  ____---___--___---___--___---___--___-__
0|gladys   |
0|gladys   | Server lifted in `/home/pi/gladys`
0|gladys   | To see your app, visit http://localhost:8080
0|gladys   | To shut down Sails, press <CTRL> + C at any time.
0|gladys   |
0|gladys   |
0|gladys   | Gladys Gateway: Not connected.
0|gladys   | Gladys is up to date !
0|gladys   | Event : create : new Event with code : gladys-launched
0|gladys   | Scenario : Trigger : New event : gladys-launched
0|gladys   | Scenario : Trigger : Found 0 launchers with code gladys-launched.
0|gladys   | House : checkUsersPresence

/home/pi/.pm2/logs/gladys-voice-error-1.log last 100 lines:
1|gladys-v |     at HotwordModels.add (/home/pi/gladys-voice/node_modules/snowboy/lib/node/index.js:28:19)
1|gladys-v |     at opts.hotwords.forEach.model (/home/pi/gladys-voice/node_modules/sonus/index.js:93:12)
1|gladys-v |     at Array.forEach (<anonymous>)
1|gladys-v |     at Object.Sonus.init (/home/pi/gladys-voice/node_modules/sonus/index.js:92:17)
1|gladys-v |     at Object.<anonymous> (/home/pi/gladys-voice/core/voice.js:9:21)
1|gladys-v |     at Module._compile (module.js:643:30)
1|gladys-v |     at Object.Module._extensions..js (module.js:654:10)
1|gladys-v |     at Module.load (module.js:556:32)
1|gladys-v |     at tryModuleLoad (module.js:499:12)
1|gladys-v |     at Function.Module._load (module.js:491:3)
1|gladys-v | Error: Model ./data/gladys.pmdl does not exists.
1|gladys-v |     at HotwordModels.add (/home/pi/gladys-voice/node_modules/snowboy/lib/node/index.js:28:19)
1|gladys-v |     at opts.hotwords.forEach.model (/home/pi/gladys-voice/node_modules/sonus/index.js:93:12)
1|gladys-v |     at Array.forEach (<anonymous>)
1|gladys-v |     at Object.Sonus.init (/home/pi/gladys-voice/node_modules/sonus/index.js:92:17)
1|gladys-v |     at Object.<anonymous> (/home/pi/gladys-voice/core/voice.js:9:21)
1|gladys-v |     at Module._compile (module.js:643:30)
1|gladys-v |     at Object.Module._extensions..js (module.js:654:10)
1|gladys-v |     at Module.load (module.js:556:32)
1|gladys-v |     at tryModuleLoad (module.js:499:12)
1|gladys-v |     at Function.Module._load (module.js:491:3)
1|gladys-v | Error: Model ./data/gladys.pmdl does not exists.
1|gladys-v |     at HotwordModels.add (/home/pi/gladys-voice/node_modules/snowboy/lib/node/index.js:28:19)
1|gladys-v |     at opts.hotwords.forEach.model (/home/pi/gladys-voice/node_modules/sonus/index.js:93:12)
1|gladys-v |     at Array.forEach (<anonymous>)
1|gladys-v |     at Object.Sonus.init (/home/pi/gladys-voice/node_modules/sonus/index.js:92:17)
1|gladys-v |     at Object.<anonymous> (/home/pi/gladys-voice/core/voice.js:9:21)
1|gladys-v |     at Module._compile (module.js:643:30)
1|gladys-v |     at Object.Module._extensions..js (module.js:654:10)
1|gladys-v |     at Module.load (module.js:556:32)
1|gladys-v |     at tryModuleLoad (module.js:499:12)
1|gladys-v |     at Function.Module._load (module.js:491:3)
1|gladys-v | Error: Model ./data/gladys.pmdl does not exists.
1|gladys-v |     at HotwordModels.add (/home/pi/gladys-voice/node_modules/snowboy/lib/node/index.js:28:19)
1|gladys-v |     at opts.hotwords.forEach.model (/home/pi/gladys-voice/node_modules/sonus/index.js:93:12)
1|gladys-v |     at Array.forEach (<anonymous>)
1|gladys-v |     at Object.Sonus.init (/home/pi/gladys-voice/node_modules/sonus/index.js:92:17)
1|gladys-v |     at Object.<anonymous> (/home/pi/gladys-voice/core/voice.js:9:21)
1|gladys-v |     at Module._compile (module.js:643:30)
1|gladys-v |     at Object.Module._extensions..js (module.js:654:10)
1|gladys-v |     at Module.load (module.js:556:32)
1|gladys-v |     at tryModuleLoad (module.js:499:12)
1|gladys-v |     at Function.Module._load (module.js:491:3)
1|gladys-v | Error: Model ./data/gladys.pmdl does not exists.
1|gladys-v |     at HotwordModels.add (/home/pi/gladys-voice/node_modules/snowboy/lib/node/index.js:28:19)
1|gladys-v |     at opts.hotwords.forEach.model (/home/pi/gladys-voice/node_modules/sonus/index.js:93:12)
1|gladys-v |     at Array.forEach (<anonymous>)
1|gladys-v |     at Object.Sonus.init (/home/pi/gladys-voice/node_modules/sonus/index.js:92:17)
1|gladys-v |     at Object.<anonymous> (/home/pi/gladys-voice/core/voice.js:9:21)
1|gladys-v |     at Module._compile (module.js:643:30)
1|gladys-v |     at Object.Module._extensions..js (module.js:654:10)
1|gladys-v |     at Module.load (module.js:556:32)
1|gladys-v |     at tryModuleLoad (module.js:499:12)
1|gladys-v |     at Function.Module._load (module.js:491:3)
1|gladys-v | Error: Model ./data/gladys.pmdl does not exists.
1|gladys-v |     at HotwordModels.add (/home/pi/gladys-voice/node_modules/snowboy/lib/node/index.js:28:19)
1|gladys-v |     at opts.hotwords.forEach.model (/home/pi/gladys-voice/node_modules/sonus/index.js:93:12)
1|gladys-v |     at Array.forEach (<anonymous>)
1|gladys-v |     at Object.Sonus.init (/home/pi/gladys-voice/node_modules/sonus/index.js:92:17)
1|gladys-v |     at Object.<anonymous> (/home/pi/gladys-voice/core/voice.js:9:21)
1|gladys-v |     at Module._compile (module.js:643:30)
1|gladys-v |     at Object.Module._extensions..js (module.js:654:10)
1|gladys-v |     at Module.load (module.js:556:32)
1|gladys-v |     at tryModuleLoad (module.js:499:12)
1|gladys-v |     at Function.Module._load (module.js:491:3)
1|gladys-v | Error: Model ./data/gladys.pmdl does not exists.
1|gladys-v |     at HotwordModels.add (/home/pi/gladys-voice/node_modules/snowboy/lib/node/index.js:28:19)
1|gladys-v |     at opts.hotwords.forEach.model (/home/pi/gladys-voice/node_modules/sonus/index.js:93:12)
1|gladys-v |     at Array.forEach (<anonymous>)
1|gladys-v |     at Object.Sonus.init (/home/pi/gladys-voice/node_modules/sonus/index.js:92:17)
1|gladys-v |     at Object.<anonymous> (/home/pi/gladys-voice/core/voice.js:9:21)
1|gladys-v |     at Module._compile (module.js:643:30)
1|gladys-v |     at Object.Module._extensions..js (module.js:654:10)
1|gladys-v |     at Module.load (module.js:556:32)
1|gladys-v |     at tryModuleLoad (module.js:499:12)
1|gladys-v |     at Function.Module._load (module.js:491:3)
1|gladys-v | Error: Model ./data/gladys.pmdl does not exists.
1|gladys-v |     at HotwordModels.add (/home/pi/gladys-voice/node_modules/snowboy/lib/node/index.js:28:19)
1|gladys-v |     at opts.hotwords.forEach.model (/home/pi/gladys-voice/node_modules/sonus/index.js:93:12)
1|gladys-v |     at Array.forEach (<anonymous>)
1|gladys-v |     at Object.Sonus.init (/home/pi/gladys-voice/node_modules/sonus/index.js:92:17)
1|gladys-v |     at Object.<anonymous> (/home/pi/gladys-voice/core/voice.js:9:21)
1|gladys-v |     at Module._compile (module.js:643:30)
1|gladys-v |     at Object.Module._extensions..js (module.js:654:10)
1|gladys-v |     at Module.load (module.js:556:32)
1|gladys-v |     at tryModuleLoad (module.js:499:12)
1|gladys-v |     at Function.Module._load (module.js:491:3)
1|gladys-v | Error: Model ./data/gladys.pmdl does not exists.
1|gladys-v |     at HotwordModels.add (/home/pi/gladys-voice/node_modules/snowboy/lib/node/index.js:28:19)
1|gladys-v |     at opts.hotwords.forEach.model (/home/pi/gladys-voice/node_modules/sonus/index.js:93:12)
1|gladys-v |     at Array.forEach (<anonymous>)
1|gladys-v |     at Object.Sonus.init (/home/pi/gladys-voice/node_modules/sonus/index.js:92:17)
1|gladys-v |     at Object.<anonymous> (/home/pi/gladys-voice/core/voice.js:9:21)
1|gladys-v |     at Module._compile (module.js:643:30)
1|gladys-v |     at Object.Module._extensions..js (module.js:654:10)
1|gladys-v |     at Module.load (module.js:556:32)
1|gladys-v |     at tryModuleLoad (module.js:499:12)
1|gladys-v |     at Function.Module._load (module.js:491:3)
1|gladys-v | (node:890) DeprecationWarning: grpc.load: Use the @grpc/proto-loader module with grpc.loadPackageDefinition instead
1|gladys-v | (node:1562) DeprecationWarning: grpc.load: Use the @grpc/proto-loader module with grpc.loadPackageDefinition instead
#12

Oui, pas besoin d’avoir de module pour faire tourner Gladys-voice avec Gladys :wink:

L’installation s’est certes bien passé cette fois :slight_smile: mais tes logs disent que tu as des vulnérabilités (1944 vulnerabilities ). Comme écrit en anglais, il faut que tu exécutes en ligne de commande npm audit fix pour corrigé tout ça.

Bah il faut continuer de suivre le tutoriel ensuite :wink: l’erreur dit que gladys.pmdl n’existe pas.

#14

le problème c’est que je l’avais fini et le fichier est bien présent.

j’ai essayé de modifier le chemin au fichier config.js :

’/home/pi/gladys-voice/data/gladys.pmdl’,
’./home/pi/gladys-voice/data/gladys.pmdl’,

‘/data/gladys.pmdl’,
‘./data/gladys.pmdl’,

mais rien y fait

#15

C’est juste un warning :wink:

Edit : tu as éditer ton message quand j’ai posté le mien.

Du coup t’as quoi dans les logs ( Gladys-voice, Gladys on s’en fou pour l’instant)

#16

Mince désolé je suis perdu dans toutes ces lignes ^^

voici les logs :

**/home/pi/.pm2/logs/gladys-voice-error-1.log last 100 lines:**
**1|gladys-v |     at HotwordModels.add (/home/pi/gladys-voice/node_modules/snowboy/lib/node/index.js:28:19)**
**1|gladys-v |     at opts.hotwords.forEach.model (/home/pi/gladys-voice/node_modules/sonus/index.js:93:12)**
**1|gladys-v |     at Array.forEach (<anonymous>)**
**1|gladys-v |     at Object.Sonus.init (/home/pi/gladys-voice/node_modules/sonus/index.js:92:17)**
**1|gladys-v |     at Object.<anonymous> (/home/pi/gladys-voice/core/voice.js:9:21)**
**1|gladys-v |     at Module._compile (module.js:643:30)**
**1|gladys-v |     at Object.Module._extensions..js (module.js:654:10)**
**1|gladys-v |     at Module.load (module.js:556:32)**
**1|gladys-v |     at tryModuleLoad (module.js:499:12)**
**1|gladys-v |     at Function.Module._load (module.js:491:3)**
**1|gladys-v | Error: Model /data/gladys.pmdl does not exists.**
**1|gladys-v |     at HotwordModels.add (/home/pi/gladys-voice/node_modules/snowboy/lib/node/index.js:28:19)**
**1|gladys-v |     at opts.hotwords.forEach.model (/home/pi/gladys-voice/node_modules/sonus/index.js:93:12)**
**1|gladys-v |     at Array.forEach (<anonymous>)**
**1|gladys-v |     at Object.Sonus.init (/home/pi/gladys-voice/node_modules/sonus/index.js:92:17)**
**1|gladys-v |     at Object.<anonymous> (/home/pi/gladys-voice/core/voice.js:9:21)**
**1|gladys-v |     at Module._compile (module.js:643:30)**
**1|gladys-v |     at Object.Module._extensions..js (module.js:654:10)**
**1|gladys-v |     at Module.load (module.js:556:32)**
**1|gladys-v |     at tryModuleLoad (module.js:499:12)**
**1|gladys-v |     at Function.Module._load (module.js:491:3)**
**1|gladys-v | Error: Model /data/gladys.pmdl does not exists.**
**1|gladys-v |     at HotwordModels.add (/home/pi/gladys-voice/node_modules/snowboy/lib/node/index.js:28:19)**
**1|gladys-v |     at opts.hotwords.forEach.model (/home/pi/gladys-voice/node_modules/sonus/index.js:93:12)**
**1|gladys-v |     at Array.forEach (<anonymous>)**
**1|gladys-v |     at Object.Sonus.init (/home/pi/gladys-voice/node_modules/sonus/index.js:92:17)**
**1|gladys-v |     at Object.<anonymous> (/home/pi/gladys-voice/core/voice.js:9:21)**
**1|gladys-v |     at Module._compile (module.js:643:30)**
**1|gladys-v |     at Object.Module._extensions..js (module.js:654:10)**
**1|gladys-v |     at Module.load (module.js:556:32)**
**1|gladys-v |     at tryModuleLoad (module.js:499:12)**
**1|gladys-v |     at Function.Module._load (module.js:491:3)**
**1|gladys-v | Error: Model /data/gladys.pmdl does not exists.**
**1|gladys-v |     at HotwordModels.add (/home/pi/gladys-voice/node_modules/snowboy/lib/node/index.js:28:19)**
**1|gladys-v |     at opts.hotwords.forEach.model (/home/pi/gladys-voice/node_modules/sonus/index.js:93:12)**
**1|gladys-v |     at Array.forEach (<anonymous>)**
**1|gladys-v |     at Object.Sonus.init (/home/pi/gladys-voice/node_modules/sonus/index.js:92:17)**
**1|gladys-v |     at Object.<anonymous> (/home/pi/gladys-voice/core/voice.js:9:21)**
**1|gladys-v |     at Module._compile (module.js:643:30)**
**1|gladys-v |     at Object.Module._extensions..js (module.js:654:10)**
**1|gladys-v |     at Module.load (module.js:556:32)**
**1|gladys-v |     at tryModuleLoad (module.js:499:12)**
**1|gladys-v |     at Function.Module._load (module.js:491:3)**
**1|gladys-v | Error: Model /data/gladys.pmdl does not exists.**
**1|gladys-v |     at HotwordModels.add (/home/pi/gladys-voice/node_modules/snowboy/lib/node/index.js:28:19)**
**1|gladys-v |     at opts.hotwords.forEach.model (/home/pi/gladys-voice/node_modules/sonus/index.js:93:12)**
**1|gladys-v |     at Array.forEach (<anonymous>)**
**1|gladys-v |     at Object.Sonus.init (/home/pi/gladys-voice/node_modules/sonus/index.js:92:17)**
**1|gladys-v |     at Object.<anonymous> (/home/pi/gladys-voice/core/voice.js:9:21)**
**1|gladys-v |     at Module._compile (module.js:643:30)**
**1|gladys-v |     at Object.Module._extensions..js (module.js:654:10)**
**1|gladys-v |     at Module.load (module.js:556:32)**
**1|gladys-v |     at tryModuleLoad (module.js:499:12)**
**1|gladys-v |     at Function.Module._load (module.js:491:3)**
**1|gladys-v | Error: Model /data/gladys.pmdl does not exists.**
**1|gladys-v |     at HotwordModels.add (/home/pi/gladys-voice/node_modules/snowboy/lib/node/index.js:28:19)**
**1|gladys-v |     at opts.hotwords.forEach.model (/home/pi/gladys-voice/node_modules/sonus/index.js:93:12)**
**1|gladys-v |     at Array.forEach (<anonymous>)**
**1|gladys-v |     at Object.Sonus.init (/home/pi/gladys-voice/node_modules/sonus/index.js:92:17)**
**1|gladys-v |     at Object.<anonymous> (/home/pi/gladys-voice/core/voice.js:9:21)**
**1|gladys-v |     at Module._compile (module.js:643:30)**
**1|gladys-v |     at Object.Module._extensions..js (module.js:654:10)**
**1|gladys-v |     at Module.load (module.js:556:32)**
**1|gladys-v |     at tryModuleLoad (module.js:499:12)**
**1|gladys-v |     at Function.Module._load (module.js:491:3)**
**1|gladys-v | Error: Model /data/gladys.pmdl does not exists.**
**1|gladys-v |     at HotwordModels.add (/home/pi/gladys-voice/node_modules/snowboy/lib/node/index.js:28:19)**
**1|gladys-v |     at opts.hotwords.forEach.model (/home/pi/gladys-voice/node_modules/sonus/index.js:93:12)**
**1|gladys-v |     at Array.forEach (<anonymous>)**
**1|gladys-v |     at Object.Sonus.init (/home/pi/gladys-voice/node_modules/sonus/index.js:92:17)**
**1|gladys-v |     at Object.<anonymous> (/home/pi/gladys-voice/core/voice.js:9:21)**
**1|gladys-v |     at Module._compile (module.js:643:30)**
**1|gladys-v |     at Object.Module._extensions..js (module.js:654:10)**
**1|gladys-v |     at Module.load (module.js:556:32)**
**1|gladys-v |     at tryModuleLoad (module.js:499:12)**
**1|gladys-v |     at Function.Module._load (module.js:491:3)**
**1|gladys-v | Error: Model /data/gladys.pmdl does not exists.**
**1|gladys-v |     at HotwordModels.add (/home/pi/gladys-voice/node_modules/snowboy/lib/node/index.js:28:19)**
**1|gladys-v |     at opts.hotwords.forEach.model (/home/pi/gladys-voice/node_modules/sonus/index.js:93:12)**
**1|gladys-v |     at Array.forEach (<anonymous>)**
**1|gladys-v |     at Object.Sonus.init (/home/pi/gladys-voice/node_modules/sonus/index.js:92:17)**
**1|gladys-v |     at Object.<anonymous> (/home/pi/gladys-voice/core/voice.js:9:21)**
**1|gladys-v |     at Module._compile (module.js:643:30)**
**1|gladys-v |     at Object.Module._extensions..js (module.js:654:10)**
**1|gladys-v |     at Module.load (module.js:556:32)**
**1|gladys-v |     at tryModuleLoad (module.js:499:12)**
**1|gladys-v |     at Function.Module._load (module.js:491:3)**
**1|gladys-v | Error: Model /data/gladys.pmdl does not exists.**
**1|gladys-v |     at HotwordModels.add (/home/pi/gladys-voice/node_modules/snowboy/lib/node/index.js:28:19)**
**1|gladys-v |     at opts.hotwords.forEach.model (/home/pi/gladys-voice/node_modules/sonus/index.js:93:12)**
**1|gladys-v |     at Array.forEach (<anonymous>)**
**1|gladys-v |     at Object.Sonus.init (/home/pi/gladys-voice/node_modules/sonus/index.js:92:17)**
**1|gladys-v |     at Object.<anonymous> (/home/pi/gladys-voice/core/voice.js:9:21)**
**1|gladys-v |     at Module._compile (module.js:643:30)**
**1|gladys-v |     at Object.Module._extensions..js (module.js:654:10)**
**1|gladys-v |     at Module.load (module.js:556:32)**
**1|gladys-v |     at tryModuleLoad (module.js:499:12)**
**1|gladys-v |     at Function.Module._load (module.js:491:3)**
**1|gladys-v | (node:2435) DeprecationWarning: grpc.load: Use the @grpc/proto-loader module with grpc.loadPackageDefinition instead**
**1|gladys-v | (node:2505) DeprecationWarning: grpc.load: Use the @grpc/proto-loader module with grpc.loadPackageDefinition instead**
#17

Bon l’erreur est clair

‘./data/gladys.pmdl’ il manque le point pour indiquer le chemin relatif.

Le fichier est il présent ?

#18

oui alors j’ai continué mes recherches et dans les coms du tuto ceux qui ont eu le problème ont mis le chemin complet.

Du coup mes logs ont changé :

/home/pi/.pm2/logs/gladys-voice-error-1.log last 100 lines:
1|gladys-v |     at Array.forEach (<anonymous>)
1|gladys-v |     at Object.Sonus.init (/home/pi/gladys-voice/node_modules/sonus/index.js:92:17)
1|gladys-v |     at Object.<anonymous> (/home/pi/gladys-voice/core/voice.js:9:21)
1|gladys-v |     at Module._compile (module.js:643:30)
1|gladys-v |     at Object.Module._extensions..js (module.js:654:10)
1|gladys-v |     at Module.load (module.js:556:32)
1|gladys-v |     at tryModuleLoad (module.js:499:12)
1|gladys-v |     at Function.Module._load (module.js:491:3)
1|gladys-v | (node:2435) DeprecationWarning: grpc.load: Use the @grpc/proto-loader module with grpc.loadPackageDefinition instead
1|gladys-v | (node:2505) DeprecationWarning: grpc.load: Use the @grpc/proto-loader module with grpc.loadPackageDefinition instead
1|gladys-v | /home/pi/gladys-voice/config.js:6
1|gladys-v | resource: process.env.RECOGNITION_RESOURCE || �/home/pi/gladys-voice/data/gladys.pmdl�,
1|gladys-v |                                               ^
1|gladys-v |
1|gladys-v | SyntaxError: Invalid or unexpected token
1|gladys-v |     at createScript (vm.js:80:10)
1|gladys-v |     at Object.runInThisContext (vm.js:139:10)
1|gladys-v |     at Module._compile (module.js:607:28)
1|gladys-v |     at Object.Module._extensions..js (module.js:654:10)
1|gladys-v |     at Module.load (module.js:556:32)
1|gladys-v |     at tryModuleLoad (module.js:499:12)
1|gladys-v |     at Function.Module._load (module.js:491:3)
1|gladys-v |     at Module.require (module.js:587:17)
1|gladys-v |     at require (internal/module.js:11:18)
1|gladys-v |     at Object.<anonymous> (/home/pi/gladys-voice/core/voice.js:1:78)
1|gladys-v | /home/pi/gladys-voice/config.js:6
1|gladys-v | resource: process.env.RECOGNITION_RESOURCE || �/home/pi/gladys-voice/data/gladys.pmdl�,
1|gladys-v |                                               ^
1|gladys-v |
1|gladys-v | SyntaxError: Invalid or unexpected token
1|gladys-v |     at createScript (vm.js:80:10)
1|gladys-v |     at Object.runInThisContext (vm.js:139:10)
1|gladys-v |     at Module._compile (module.js:607:28)
1|gladys-v |     at Object.Module._extensions..js (module.js:654:10)
1|gladys-v |     at Module.load (module.js:556:32)
1|gladys-v |     at tryModuleLoad (module.js:499:12)
1|gladys-v |     at Function.Module._load (module.js:491:3)
1|gladys-v |     at Module.require (module.js:587:17)
1|gladys-v |     at require (internal/module.js:11:18)
1|gladys-v |     at Object.<anonymous> (/home/pi/gladys-voice/core/voice.js:1:78)
1|gladys-v | /home/pi/gladys-voice/config.js:6
1|gladys-v | resource: process.env.RECOGNITION_RESOURCE || �/home/pi/gladys-voice/data/gladys.pmdl�,
1|gladys-v |                                               ^
1|gladys-v |
1|gladys-v | SyntaxError: Invalid or unexpected token
1|gladys-v |     at createScript (vm.js:80:10)
1|gladys-v |     at Object.runInThisContext (vm.js:139:10)
1|gladys-v |     at Module._compile (module.js:607:28)
1|gladys-v |     at Object.Module._extensions..js (module.js:654:10)
1|gladys-v |     at Module.load (module.js:556:32)
1|gladys-v |     at tryModuleLoad (module.js:499:12)
1|gladys-v |     at Function.Module._load (module.js:491:3)
1|gladys-v |     at Module.require (module.js:587:17)
1|gladys-v |     at require (internal/module.js:11:18)
1|gladys-v |     at Object.<anonymous> (/home/pi/gladys-voice/core/voice.js:1:78)
1|gladys-v | /home/pi/gladys-voice/config.js:6
1|gladys-v | resource: process.env.RECOGNITION_RESOURCE || �/home/pi/gladys-voice/data/gladys.pmdl�,
1|gladys-v |                                               ^
1|gladys-v |
1|gladys-v | SyntaxError: Invalid or unexpected token
1|gladys-v |     at createScript (vm.js:80:10)
1|gladys-v |     at Object.runInThisContext (vm.js:139:10)
1|gladys-v |     at Module._compile (module.js:607:28)
1|gladys-v |     at Object.Module._extensions..js (module.js:654:10)
1|gladys-v |     at Module.load (module.js:556:32)
1|gladys-v |     at tryModuleLoad (module.js:499:12)
1|gladys-v |     at Function.Module._load (module.js:491:3)
1|gladys-v |     at Module.require (module.js:587:17)
1|gladys-v |     at require (internal/module.js:11:18)
1|gladys-v |     at Object.<anonymous> (/home/pi/gladys-voice/core/voice.js:1:78)
1|gladys-v | /home/pi/gladys-voice/config.js:6
1|gladys-v | resource: process.env.RECOGNITION_RESOURCE || �/home/pi/gladys-voice/data/gladys.pmdl�,
1|gladys-v |                                               ^
1|gladys-v |
1|gladys-v | SyntaxError: Invalid or unexpected token
1|gladys-v |     at createScript (vm.js:80:10)
1|gladys-v |     at Object.runInThisContext (vm.js:139:10)
1|gladys-v |     at Module._compile (module.js:607:28)
1|gladys-v |     at Object.Module._extensions..js (module.js:654:10)
1|gladys-v |     at Module.load (module.js:556:32)
1|gladys-v |     at tryModuleLoad (module.js:499:12)
1|gladys-v |     at Function.Module._load (module.js:491:3)
1|gladys-v |     at Module.require (module.js:587:17)
1|gladys-v |     at require (internal/module.js:11:18)
1|gladys-v |     at Object.<anonymous> (/home/pi/gladys-voice/core/voice.js:1:78)
1|gladys-v | /home/pi/gladys-voice/config.js:6
1|gladys-v | resource: process.env.RECOGNITION_RESOURCE || �/home/pi/gladys-voice/data/gladys.pmdl�,
1|gladys-v |                                               ^
1|gladys-v |
1|gladys-v | SyntaxError: Invalid or unexpected token
1|gladys-v |     at createScript (vm.js:80:10)
1|gladys-v |     at Object.runInThisContext (vm.js:139:10)
1|gladys-v |     at Module._compile (module.js:607:28)
1|gladys-v |     at Object.Module._extensions..js (module.js:654:10)
1|gladys-v |     at Module.load (module.js:556:32)
1|gladys-v |     at tryModuleLoad (module.js:499:12)
1|gladys-v |     at Function.Module._load (module.js:491:3)
1|gladys-v |     at Module.require (module.js:587:17)
1|gladys-v |     at require (internal/module.js:11:18)
1|gladys-v |     at Object.<anonymous> (/home/pi/gladys-voice/core/voice.js:1:78)

1|gladys-v | /home/pi/gladys-voice/config.js:6
1|gladys-v | resource: process.env.RECOGNITION_RESOURCE || �/home/pi/gladys-voice/data/gladys.pmdl�,
1|gladys-v |                                               ^
1|gladys-v | SyntaxError: Invalid or unexpected token
1|gladys-v |     at createScript (vm.js:80:10)
1|gladys-v |     at Object.runInThisContext (vm.js:139:10)
1|gladys-v |     at Module._compile (module.js:607:28)
1|gladys-v |     at Object.Module._extensions..js (module.js:654:10)
1|gladys-v |     at Module.load (module.js:556:32)
1|gladys-v |     at tryModuleLoad (module.js:499:12)
1|gladys-v |     at Function.Module._load (module.js:491:3)
1|gladys-v |     at Module.require (module.js:587:17)
1|gladys-v |     at require (internal/module.js:11:18)
1|gladys-v |     at Object.<anonymous> (/home/pi/gladys-voice/core/voice.js:1:78)
PM2        | App [gladys-voice] with id [1] and pid [1020], exited with code [1] via signal [SIGINT]
PM2        | Starting execution sequence in -fork mode- for app name:gladys-voice id:1
PM2        | App name:gladys-voice id:1 online
1|gladys-v | /home/pi/gladys-voice/config.js:6
1|gladys-v | resource: process.env.RECOGNITION_RESOURCE || �/home/pi/gladys-voice/data/gladys.pmdl�,
1|gladys-v |                                               ^
1|gladys-v | SyntaxError: Invalid or unexpected token
1|gladys-v |     at createScript (vm.js:80:10)
1|gladys-v |     at Object.runInThisContext (vm.js:139:10)
1|gladys-v |     at Module._compile (module.js:607:28)
1|gladys-v |     at Object.Module._extensions..js (module.js:654:10)
1|gladys-v |     at Module.load (module.js:556:32)
1|gladys-v |     at tryModuleLoad (module.js:499:12)
1|gladys-v |     at Function.Module._load (module.js:491:3)
1|gladys-v |     at Module.require (module.js:587:17)
1|gladys-v |     at require (internal/module.js:11:18)
1|gladys-v |     at Object.<anonymous> (/home/pi/gladys-voice/core/voice.js:1:78)
PM2        | App [gladys-voice] with id [1] and pid [1050], exited with code [1] via signal [SIGINT]
PM2        | Starting execution sequence in -fork mode- for app name:gladys-voice id:1
PM2        | App name:gladys-voice id:1 online
1|gladys-v | /home/pi/gladys-voice/config.js:6
1|gladys-v | resource: process.env.RECOGNITION_RESOURCE || �/home/pi/gladys-voice/data/gladys.pmdl�,
1|gladys-v |                                               ^
1|gladys-v | SyntaxError: Invalid or unexpected token
1|gladys-v |     at createScript (vm.js:80:10)
1|gladys-v |     at Object.runInThisContext (vm.js:139:10)
1|gladys-v |     at Module._compile (module.js:607:28)
1|gladys-v |     at Object.Module._extensions..js (module.js:654:10)
1|gladys-v |     at Module.load (module.js:556:32)
1|gladys-v |     at tryModuleLoad (module.js:499:12)
1|gladys-v |     at Function.Module._load (module.js:491:3)
1|gladys-v |     at Module.require (module.js:587:17)
1|gladys-v |     at require (internal/module.js:11:18)
1|gladys-v |     at Object.<anonymous> (/home/pi/gladys-voice/core/voice.js:1:78)
PM2        | App [gladys-voice] with id [1] and pid [1076], exited with code [1] via signal [SIGINT]
PM2        | Starting execution sequence in -fork mode- for app name:gladys-voice id:1
PM2        | App name:gladys-voice id:1 online
1|gladys-v | /home/pi/gladys-voice/config.js:6
1|gladys-v | resource: process.env.RECOGNITION_RESOURCE || �/home/pi/gladys-voice/data/gladys.pmdl�,
1|gladys-v |                                               ^
1|gladys-v | SyntaxError: Invalid or unexpected token
1|gladys-v |     at createScript (vm.js:80:10)
1|gladys-v |     at Object.runInThisContext (vm.js:139:10)
1|gladys-v |     at Module._compile (module.js:607:28)
1|gladys-v |     at Object.Module._extensions..js (module.js:654:10)
1|gladys-v |     at Module.load (module.js:556:32)
1|gladys-v |     at tryModuleLoad (module.js:499:12)
1|gladys-v |     at Function.Module._load (module.js:491:3)
1|gladys-v |     at Module.require (module.js:587:17)
1|gladys-v |     at require (internal/module.js:11:18)
1|gladys-v |     at Object.<anonymous> (/home/pi/gladys-voice/core/voice.js:1:78)
PM2        | App [gladys-voice] with id [1] and pid [1102], exited with code [1] via signal [SIGINT]
PM2        | Starting execution sequence in -fork mode- for app name:gladys-voice id:1
PM2        | App name:gladys-voice id:1 online
1|gladys-v | /home/pi/gladys-voice/config.js:6
1|gladys-v | resource: process.env.RECOGNITION_RESOURCE || �/home/pi/gladys-voice/data/gladys.pmdl�,
1|gladys-v |                                               ^
1|gladys-v | SyntaxError: Invalid or unexpected token
1|gladys-v |     at createScript (vm.js:80:10)
1|gladys-v |     at Object.runInThisContext (vm.js:139:10)
1|gladys-v |     at Module._compile (module.js:607:28)
1|gladys-v |     at Object.Module._extensions..js (module.js:654:10)
1|gladys-v |     at Module.load (module.js:556:32)
1|gladys-v |     at tryModuleLoad (module.js:499:12)
1|gladys-v |     at Function.Module._load (module.js:491:3)
1|gladys-v |     at Module.require (module.js:587:17)
1|gladys-v |     at require (internal/module.js:11:18)
1|gladys-v |     at Object.<anonymous> (/home/pi/gladys-voice/core/voice.js:1:78)
PM2        | App [gladys-voice] with id [1] and pid [1128], exited with code [1] via signal [SIGINT]
PM2        | Starting execution sequence in -fork mode- for app name:gladys-voice id:1
PM2        | App name:gladys-voice id:1 online
1|gladys-v | /home/pi/gladys-voice/config.js:6
1|gladys-v | resource: process.env.RECOGNITION_RESOURCE || �/home/pi/gladys-voice/data/gladys.pmdl�,
1|gladys-v |                                               ^
1|gladys-v | SyntaxError: Invalid or unexpected token
1|gladys-v |     at createScript (vm.js:80:10)
1|gladys-v |     at Object.runInThisContext (vm.js:139:10)
1|gladys-v |     at Module._compile (module.js:607:28)
1|gladys-v |     at Object.Module._extensions..js (module.js:654:10)
1|gladys-v |     at Module.load (module.js:556:32)
1|gladys-v |     at tryModuleLoad (module.js:499:12)
1|gladys-v |     at Function.Module._load (module.js:491:3)
1|gladys-v |     at Module.require (module.js:587:17)
1|gladys-v |     at require (internal/module.js:11:18)
1|gladys-v |     at Object.<anonymous> (/home/pi/gladys-voice/core/voice.js:1:78)
PM2        | App [gladys-voice] with id [1] and pid [1154], exited with code [1] via signal [SIGINT]
PM2        | Starting execution sequence in -fork mode- for app name:gladys-voice id:1
PM2        | App name:gladys-voice id:1 online
1|gladys-v | /home/pi/gladys-voice/config.js:6
1|gladys-v | resource: process.env.RECOGNITION_RESOURCE || �/home/pi/gladys-voice/data/gladys.pmdl�,
1|gladys-v |                                               ^
1|gladys-v | SyntaxError: Invalid or unexpected token
1|gladys-v |     at createScript (vm.js:80:10)
1|gladys-v |     at Object.runInThisContext (vm.js:139:10)
1|gladys-v |     at Module._compile (module.js:607:28)
1|gladys-v |     at Object.Module._extensions..js (module.js:654:10)
1|gladys-v |     at Module.load (module.js:556:32)
1|gladys-v |     at tryModuleLoad (module.js:499:12)
1|gladys-v |     at Function.Module._load (module.js:491:3)
1|gladys-v |     at Module.require (module.js:587:17)
1|gladys-v |     at require (internal/module.js:11:18)
1|gladys-v |     at Object.<anonymous> (/home/pi/gladys-voice/core/voice.js:1:78)
PM2        | App [gladys-voice] with id [1] and pid [1180], exited with code [1] via signal [SIGINT]
PM2        | Starting execution sequence in -fork mode- for app name:gladys-voice id:1
PM2        | App name:gladys-voice id:1 online
1|gladys-v | /home/pi/gladys-voice/config.js:6
1|gladys-v | resource: process.env.RECOGNITION_RESOURCE || �/home/pi/gladys-voice/data/gladys.pmdl�,
1|gladys-v |                                               ^
1|gladys-v | SyntaxError: Invalid or unexpected token
1|gladys-v |     at createScript (vm.js:80:10)
1|gladys-v |     at Object.runInThisContext (vm.js:139:10)
1|gladys-v |     at Module._compile (module.js:607:28)
1|gladys-v |     at Object.Module._extensions..js (module.js:654:10)
1|gladys-v |     at Module.load (module.js:556:32)
1|gladys-v |     at tryModuleLoad (module.js:499:12)
1|gladys-v |     at Function.Module._load (module.js:491:3)
1|gladys-v |     at Module.require (module.js:587:17)
1|gladys-v |     at require (internal/module.js:11:18)
1|gladys-v |     at Object.<anonymous> (/home/pi/gladys-voice/core/voice.js:1:78)
PM2        | App [gladys-voice] with id [1] and pid [1206], exited with code [1] via signal [SIGINT]
PM2        | Starting execution sequence in -fork mode- for app name:gladys-voice id:1
PM2        | App name:gladys-voice id:1 online
1|gladys-v | /home/pi/gladys-voice/config.js:6
1|gladys-v | resource: process.env.RECOGNITION_RESOURCE || �/home/pi/gladys-voice/data/gladys.pmdl�,
1|gladys-v |                                               ^
1|gladys-v | SyntaxError: Invalid or unexpected token
1|gladys-v |     at createScript (vm.js:80:10)
1|gladys-v |     at Object.runInThisContext (vm.js:139:10)
1|gladys-v |     at Module._compile (module.js:607:28)
1|gladys-v |     at Object.Module._extensions..js (module.js:654:10)
1|gladys-v |     at Module.load (module.js:556:32)
1|gladys-v |     at tryModuleLoad (module.js:499:12)
1|gladys-v |     at Function.Module._load (module.js:491:3)
1|gladys-v |     at Module.require (module.js:587:17)
1|gladys-v |     at require (internal/module.js:11:18)
1|gladys-v |     at Object.<anonymous> (/home/pi/gladys-voice/core/voice.js:1:78)
PM2        | App [gladys-voice] with id [1] and pid [1232], exited with code [1] via signal [SIGINT]
PM2        | Starting execution sequence in -fork mode- for app name:gladys-voice id:1
PM2        | App name:gladys-voice id:1 online
1|gladys-v | /home/pi/gladys-voice/config.js:6
1|gladys-v | resource: process.env.RECOGNITION_RESOURCE || �/home/pi/gladys-voice/data/gladys.pmdl�,
1|gladys-v |                                               ^
1|gladys-v | SyntaxError: Invalid or unexpected token
1|gladys-v |     at createScript (vm.js:80:10)
1|gladys-v |     at Object.runInThisContext (vm.js:139:10)
1|gladys-v |     at Module._compile (module.js:607:28)
1|gladys-v |     at Object.Module._extensions..js (module.js:654:10)
1|gladys-v |     at Module.load (module.js:556:32)
1|gladys-v |     at tryModuleLoad (module.js:499:12)
1|gladys-v |     at Function.Module._load (module.js:491:3)
1|gladys-v |     at Module.require (module.js:587:17)
1|gladys-v |     at require (internal/module.js:11:18)
1|gladys-v |     at Object.<anonymous> (/home/pi/gladys-voice/core/voice.js:1:78)
PM2        | App [gladys-voice] with id [1] and pid [1258], exited with code [1] via signal [SIGINT]
PM2        | Script /home/pi/gladys-voice/app.js had too many unstable restarts (16). Stopped. "errored"

Y a un mauvais token je vais eesayer de le résoudre.

mon token est bon et activé voici mon config.js :

module.exports = {
snowboy: {
hotword: process.env.RECOGNITION_HOTWORD || ‘gladys’,

resource: process.env.RECOGNITION_RESOURCE || ‘/home/pi/gladys-voice/data/gladys.pmdl’,

    sensitivity: process.env.RECOGNITION_SENSITIVITY || '0.5'
},
google: {
    projectId: process.env.GOOGLE_PROJECT_ID || 'XXXXX-236513',
    keyFilename: process.env.GOOGLE_KEY_FILENAME || './data/gladys-speech.json'
},
language: process.env.RECOGNITION_LANGUAGE ||'fr-FR',
gladys: {
    gladysUrl: process.env.GLADYS_URL || 'http://192.168.1.41:8080',
    token: process.env.GLADYS_TOKEN || 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'

},
sound: process.env.RECOGNITION_SOUND || './data/affirmative.mp3'

};

#19

Tu as un problème d’encodage ou de copier collé dans ton fichier de config

Remplace les � par ’

L’ erreur de token n’est pas lié au token de Gladys

#20

je ne vois pas comment tu veux faire car mon config.js est bon lui il l’interprête comme ça mais je ne trouve pas pourquoi.

Juste pour info il faut lancer Gv dans son dossier ou sur le home ?

Et la commande faut mieux pm2 start gladys-voice ou pm2 start app.js --name gladys-voice

#21

C’est bon !!!

Donc j’ai refais complétement la partie google en selectionnant Cloud Text-to-Speech API

et le config.js comme marqué en haut

En tout cas merci pour le temps accordé vraiment. Plus qu’a faire parler gladys :slight_smile:

1 Like