How to speak to Gladys with Snips assistant


#143

Non malheureusement je l’ai édité :confused:


#144

Salut @VonOx

Pourtant j’ai bien mis les 4 apostrophes bizzare devant et derrière le code et quand je le réédite je les voie
j’aurais pas vu quelque chose ?

@phoenix3472


#145

Bonjour tout le monde,
j’ai un petit problème avec le MQTT, je n’arrive pas à aller dans le fichier /etc/snips.toml, du coup il ne se connecte pas à snips (dsl je ne suis vraiment pas bon en anglais ni en codage du coup je comprends pas trop la marche à suivre).

voici le sam status

        Connected to device 

        OS version ................... Raspbian GNU/Linux 9 (stretch)
        Installed assistant .......... Gladys
        Language ..................... fr
        Hotword ...................... personal_hotword
        ASR engine ................... snips
        Status ....................... Live

        Service status:

        snips-analytics .............. 0.60.10 (not running)
        snips-asr .................... 0.60.10 (not running)
        snips-audio-server ........... 0.60.10 (not running)
        snips-dialogue ............... 0.60.10 (not running)
        snips-hotword ................ 0.60.10 (not running)
        snips-nlu .................... 0.60.10 (not running)
        snips-skill-server ........... 0.60.10 (running)
        snips-tts .................... 0.60.10 (not running)

#146

Pas besoin de modifier le fichier, tu peux le faire depuis le module Snips -> Configuration et là tu renseignes ton url


#147

Je le vois pas dans les module
Je me demande si je les installer dans le bon dosier du coup :confused:


#148

Il faut l’installer via l’onglet “avancé”


#149

Ha ok merci ba je recommence tout demain
Merci :wink:


#150

Salut,

D’après tes logs de sam watch, on voit que snips a mal démarré, donc c’est indépendant de Gladys.
Peux-tu faire :

sudo tail -200 /var/log/syslog | grep -i snips 

Afin de voir les erreurs qui font que snips démarrent mal.


#151

salut @Jean-Philippe,

j avais quelle que erreur avec gladys depuis l’installation, du coup je remet la sauvegarde faite avant l’installation et recommence.
je te tien au courent après :wink:

merci


#152

salut @Jean-Philippe,
après réinstallation j’ai toujours un problème:
(je n’arrive pas a rentre le SQTT dans la comfig)

dans pm2 logs:

    0|gladys   | You have triggered an unhandledRejection, you may have forgotten to catch a Promise rejection:
    0|gladys   | Error: Param SNIPS_MQTT_URL not found
    0|gladys   |     at /home/pi/gladys/api/core/param/param.getValue.js:32:31
    0|gladys   |     at tryCatcher (/home/pi/gladys/node_modules/bluebird/js/release/util.js:16:23)
    0|gladys   |     at Promise._settlePromiseFromHandler (/home/pi/gladys/node_modules/bluebird/js/release/promise.js:512:31)
    0|gladys   |     at Promise._settlePromise (/home/pi/gladys/node_modules/bluebird/js/release/promise.js:569:18)
    0|gladys   |     at Promise._settlePromise0 (/home/pi/gladys/node_modules/bluebird/js/release/promise.js:614:10)
    0|gladys   |     at Promise._settlePromises (/home/pi/gladys/node_modules/bluebird/js/release/promise.js:693:18)
    0|gladys   |     at Promise._fulfill (/home/pi/gladys/node_modules/bluebird/js/release/promise.js:638:18)
    0|gladys   |     at /home/pi/gladys/node_modules/bluebird/js/release/nodeback.js:42:21
    0|gladys   |     at /home/pi/gladys/node_modules/sails-mysql/lib/connections/spawn.js:120:16
    0|gladys   |     at Object.poolfully [as releaseConnection] (/home/pi/gladys/node_modules/sails-mysql/lib/connections/release.js:28:12)
    0|gladys   |     at Query._callback (/home/pi/gladys/node_modules/sails-mysql/lib/connections/spawn.js:105:35)
    0|gladys   |     at Query.Sequence.end (/home/pi/gladys/node_modules/mysql/lib/protocol/sequences/Sequence.js:96:24)
    0|gladys   |     at Query._handleFinalResultPacket (/home/pi/gladys/node_modules/mysql/lib/protocol/sequences/Query.js:144:8)
    0|gladys   |     at Query.EofPacket (/home/pi/gladys/node_modules/mysql/lib/protocol/sequences/Query.js:128:8)
    0|gladys   |     at Protocol._parsePacket (/home/pi/gladys/node_modules/mysql/lib/protocol/Protocol.js:280:23)
    0|gladys   |     at Parser.write (/home/pi/gladys/node_modules/mysql/lib/protocol/Parser.js:73:12)
    0|gladys   |     at Protocol.write (/home/pi/gladys/node_modules/mysql/lib/protocol/Protocol.js:39:16)
    0|gladys   |     at Socket.<anonymous> (/home/pi/gladys/node_modules/mysql/lib/Connection.js:96:28)
    0|gladys   |     at emitOne (events.js:116:13)
    0|gladys   |     at Socket.emit (events.js:211:7)
    0|gladys   |     at addChunk (_stream_readable.js:263:12)
    0|gladys   |     at readableAddChunk (_stream_readable.js:250:11)
    0|gladys   |     at Socket.Readable.push (_stream_readable.js:208:10)
    0|gladys   |     at TCP.onread (net.js:594:20) 

sam status:

OS version ................... Raspbian GNU/Linux 9 (stretch)
Installed assistant .......... Gladys
Language ..................... fr
Hotword ...................... personal_hotword
ASR engine ................... snips
Status ....................... Live

Service status:

    snips-analytics .............. 0.60.10 (running)
    snips-asr .................... 0.60.10 (running)
    snips-audio-server ........... 0.60.10 (not running)
    snips-dialogue ............... 0.60.10 (running)
    snips-hotword ................ 0.60.10 (running)
    snips-nlu .................... 0.60.10 (running)
    snips-skill-server ........... 0.60.10 (running)
    snips-tts .................... 0.60.10 (running)
 
et sudo tail -200 /var/log/syslog | grep -i snips:
Jan 25 16:40:54 gladys snips-audio-server[28835]: INFO:snips_audio_server            : Starting audio server on mqtt for site default
Jan 25 16:40:54 gladys snips-audio-server[28835]: INFO:snips_audio_server            : Capture enabled: true, Playback enabled: true
Jan 25 16:40:54 gladys snips-audio-server[28835]: INFO:snips_broadcast_mqtt_server   : Starting broadcasting audio on hermes as site "default"
Jan 25 16:40:54 gladys snips-audio-server[28835]: Failed to create secure directory (/var/empty/.config/pulse): No such file or directory
Jan 25 16:40:55 gladys snips-audio-server[28835]: ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.bcm2835.pcm.front.0:CARD=0'
Jan 25 16:40:55 gladys snips-audio-server[28835]: ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
Jan 25 16:40:55 gladys snips-audio-server[28835]: ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No such file or directory
Jan 25 16:40:55 gladys snips-audio-server[28835]: ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM front
Jan 25 16:40:55 gladys snips-audio-server[28835]: ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
Jan 25 16:40:55 gladys snips-audio-server[28835]: ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
Jan 25 16:40:55 gladys snips-audio-server[28835]: ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
Jan 25 16:40:55 gladys snips-audio-server[28835]: ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.bcm2835.pcm.surround51.0:CARD=0'
Jan 25 16:40:55 gladys snips-audio-server[28835]: ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
Jan 25 16:40:55 gladys snips-audio-server[28835]: ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No such file or directory
Jan 25 16:40:55 gladys snips-audio-server[28835]: ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM surround21
Jan 25 16:40:55 gladys snips-audio-server[28835]: ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.bcm2835.pcm.surround51.0:CARD=0'
Jan 25 16:40:55 gladys snips-audio-server[28835]: ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
Jan 25 16:40:55 gladys snips-audio-server[28835]: ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No such file or directory
Jan 25 16:40:55 gladys snips-audio-server[28835]: ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM surround21
Jan 25 16:40:55 gladys snips-audio-server[28835]: ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.bcm2835.pcm.surround40.0:CARD=0'
Jan 25 16:40:55 gladys snips-audio-server[28835]: ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
Jan 25 16:40:55 gladys snips-audio-server[28835]: ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No such file or directory
Jan 25 16:40:55 gladys snips-audio-server[28835]: ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM surround40
Jan 25 16:40:55 gladys snips-audio-server[28835]: ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.bcm2835.pcm.surround51.0:CARD=0'
Jan 25 16:40:55 gladys snips-audio-server[28835]: ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
Jan 25 16:40:55 gladys snips-audio-server[28835]: ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No such file or directory
Jan 25 16:40:55 gladys snips-audio-server[28835]: ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM surround41
Jan 25 16:40:55 gladys snips-audio-server[28835]: ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.bcm2835.pcm.surround51.0:CARD=0'
Jan 25 16:40:55 gladys snips-audio-server[28835]: ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
Jan 25 16:40:55 gladys snips-audio-server[28835]: ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No such file or directory
Jan 25 16:40:55 gladys snips-audio-server[28835]: ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM surround50
Jan 25 16:40:55 gladys snips-audio-server[28835]: ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.bcm2835.pcm.surround51.0:CARD=0'
Jan 25 16:40:55 gladys snips-audio-server[28835]: ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
Jan 25 16:40:55 gladys snips-audio-server[28835]: ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No such file or directory
Jan 25 16:40:55 gladys snips-audio-server[28835]: ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM surround51
Jan 25 16:40:55 gladys snips-audio-server[28835]: ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.bcm2835.pcm.surround71.0:CARD=0'
Jan 25 16:40:55 gladys snips-audio-server[28835]: ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
Jan 25 16:40:55 gladys snips-audio-server[28835]: ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No such file or directory
Jan 25 16:40:55 gladys snips-audio-server[28835]: ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM surround71
Jan 25 16:40:55 gladys snips-audio-server[28835]: ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.bcm2835.pcm.iec958.0:CARD=0,AES0=4,AES1=130,AES2=0,AES3=2'
Jan 25 16:40:55 gladys snips-audio-server[28835]: ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
Jan 25 16:40:55 gladys snips-audio-server[28835]: ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No such file or directory
Jan 25 16:40:55 gladys snips-audio-server[28835]: ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM iec958
Jan 25 16:40:55 gladys snips-audio-server[28835]: ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.bcm2835.pcm.iec958.0:CARD=0,AES0=4,AES1=130,AES2=0,AES3=2'
Jan 25 16:40:55 gladys snips-audio-server[28835]: ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
Jan 25 16:40:55 gladys snips-audio-server[28835]: ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No such file or directory
Jan 25 16:40:55 gladys snips-audio-server[28835]: ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM spdif
Jan 25 16:40:55 gladys snips-audio-server[28835]: ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.bcm2835.pcm.iec958.0:CARD=0,AES0=4,AES1=130,AES2=0,AES3=2'
Jan 25 16:40:55 gladys snips-audio-server[28835]: ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
Jan 25 16:40:55 gladys snips-audio-server[28835]: ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No such file or directory
Jan 25 16:40:55 gladys snips-audio-server[28835]: ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM spdif
Jan 25 16:40:55 gladys snips-audio-server[28835]: ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
Jan 25 16:40:55 gladys snips-audio-server[28835]: ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
Jan 25 16:40:55 gladys snips-audio-server[28835]: ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
Jan 25 16:40:55 gladys snips-audio-server[28835]: ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
Jan 25 16:40:55 gladys snips-audio-server[28835]: ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
Jan 25 16:40:55 gladys snips-audio-server[28835]: ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
Jan 25 16:40:55 gladys snips-audio-server[28835]: ERROR:snips_audio_server            : NoDevice
Jan 25 16:40:55 gladys systemd[1]: snips-audio-server.service: Main process exited, code=exited, status=1/FAILURE
Jan 25 16:40:55 gladys systemd[1]: snips-audio-server.service: Unit entered failed state.
Jan 25 16:40:55 gladys systemd[1]: snips-audio-server.service: Failed with result 'exit-code'.
Jan 25 16:41:00 gladys systemd[1]: snips-audio-server.service: Service hold-off time over, scheduling restart.
Jan 25 16:41:00 gladys systemd[1]: Stopped Snips Audio Server.
Jan 25 16:41:00 gladys systemd[1]: Started Snips Audio Server.
Jan 25 16:41:00 gladys snips-audio-server[28843]: INFO:snips_heartbeat::cliconfig_ext: Heartbeat enabled
Jan 25 16:41:00 gladys snips-audio-server[28843]: INFO:snips_audio_server            : Starting audio server on mqtt for site default
Jan 25 16:41:00 gladys snips-audio-server[28843]: INFO:snips_audio_server            : Capture enabled: true, Playback enabled: true
Jan 25 16:41:00 gladys snips-audio-server[28843]: INFO:snips_broadcast_mqtt_server   : Starting broadcasting audio on hermes as site "default"
Jan 25 16:41:00 gladys snips-audio-server[28843]: Failed to create secure directory (/var/empty/.config/pulse): No such file or directory
Jan 25 16:41:00 gladys snips-audio-server[28843]: ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.bcm2835.pcm.front.0:CARD=0'
Jan 25 16:41:00 gladys snips-audio-server[28843]: ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
Jan 25 16:41:00 gladys snips-audio-server[28843]: ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No such file or directory
Jan 25 16:41:00 gladys snips-audio-server[28843]: ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM front
Jan 25 16:41:00 gladys snips-audio-server[28843]: ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
Jan 25 16:41:00 gladys snips-audio-server[28843]: ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
Jan 25 16:41:00 gladys snips-audio-server[28843]: ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
Jan 25 16:41:00 gladys snips-audio-server[28843]: ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.bcm2835.pcm.surround51.0:CARD=0'
Jan 25 16:41:00 gladys snips-audio-server[28843]: ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
Jan 25 16:41:00 gladys snips-audio-server[28843]: ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No such file or directory
Jan 25 16:41:00 gladys snips-audio-server[28843]: ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM surround21
Jan 25 16:41:00 gladys snips-audio-server[28843]: ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.bcm2835.pcm.surround51.0:CARD=0'
Jan 25 16:41:00 gladys snips-audio-server[28843]: ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
Jan 25 16:41:00 gladys snips-audio-server[28843]: ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No such file or directory
Jan 25 16:41:00 gladys snips-audio-server[28843]: ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM surround21
Jan 25 16:41:00 gladys snips-audio-server[28843]: ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.bcm2835.pcm.surround40.0:CARD=0'
Jan 25 16:41:00 gladys snips-audio-server[28843]: ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
Jan 25 16:41:00 gladys snips-audio-server[28843]: ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No such file or directory
Jan 25 16:41:00 gladys snips-audio-server[28843]: ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM surround40
Jan 25 16:41:00 gladys snips-audio-server[28843]: ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.bcm2835.pcm.surround51.0:CARD=0'
Jan 25 16:41:00 gladys snips-audio-server[28843]: ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
Jan 25 16:41:00 gladys snips-audio-server[28843]: ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No such file or directory
Jan 25 16:41:00 gladys snips-audio-server[28843]: ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM surround41
Jan 25 16:41:00 gladys snips-audio-server[28843]: ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.bcm2835.pcm.surround51.0:CARD=0'
Jan 25 16:41:00 gladys snips-audio-server[28843]: ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
Jan 25 16:41:00 gladys snips-audio-server[28843]: ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No such file or directory
Jan 25 16:41:00 gladys snips-audio-server[28843]: ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM surround50
Jan 25 16:41:00 gladys snips-audio-server[28843]: ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.bcm2835.pcm.surround51.0:CARD=0'
Jan 25 16:41:00 gladys snips-audio-server[28843]: ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
Jan 25 16:41:00 gladys snips-audio-server[28843]: ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No such file or directory
Jan 25 16:41:00 gladys snips-audio-server[28843]: ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM surround51
Jan 25 16:41:00 gladys snips-audio-server[28843]: ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.bcm2835.pcm.surround71.0:CARD=0'
Jan 25 16:41:00 gladys snips-audio-server[28843]: ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
Jan 25 16:41:00 gladys snips-audio-server[28843]: ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No such file or directory
Jan 25 16:41:00 gladys snips-audio-server[28843]: ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM surround71
Jan 25 16:41:00 gladys snips-audio-server[28843]: ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.bcm2835.pcm.iec958.0:CARD=0,AES0=4,AES1=130,AES2=0,AES3=2'
Jan 25 16:41:00 gladys snips-audio-server[28843]: ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
Jan 25 16:41:00 gladys snips-audio-server[28843]: ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No such file or directory
Jan 25 16:41:00 gladys snips-audio-server[28843]: ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM iec958
Jan 25 16:41:00 gladys snips-audio-server[28843]: ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.bcm2835.pcm.iec958.0:CARD=0,AES0=4,AES1=130,AES2=0,AES3=2'
Jan 25 16:41:00 gladys snips-audio-server[28843]: ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
Jan 25 16:41:00 gladys snips-audio-server[28843]: ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No such file or directory
Jan 25 16:41:00 gladys snips-audio-server[28843]: ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM spdif
Jan 25 16:41:00 gladys snips-audio-server[28843]: ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.bcm2835.pcm.iec958.0:CARD=0,AES0=4,AES1=130,AES2=0,AES3=2'
Jan 25 16:41:00 gladys snips-audio-server[28843]: ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
Jan 25 16:41:00 gladys snips-audio-server[28843]: ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No such file or directory
Jan 25 16:41:00 gladys snips-audio-server[28843]: ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM spdif
Jan 25 16:41:00 gladys snips-audio-server[28843]: ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
Jan 25 16:41:00 gladys snips-audio-server[28843]: ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
Jan 25 16:41:00 gladys snips-audio-server[28843]: ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
Jan 25 16:41:00 gladys snips-audio-server[28843]: ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
Jan 25 16:41:00 gladys snips-audio-server[28843]: ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
Jan 25 16:41:00 gladys snips-audio-server[28843]: ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
Jan 25 16:41:00 gladys snips-audio-server[28843]: ERROR:snips_audio_server            : NoDevice
Jan 25 16:41:00 gladys systemd[1]: snips-audio-server.service: Main process exited, code=exited, status=1/FAILURE
Jan 25 16:41:00 gladys systemd[1]: snips-audio-server.service: Unit entered failed state.
Jan 25 16:41:00 gladys systemd[1]: snips-audio-server.service: Failed with result 'exit-code'.
Jan 25 16:41:05 gladys systemd[1]: snips-audio-server.service: Service hold-off time over, scheduling restart.
Jan 25 16:41:05 gladys systemd[1]: Stopped Snips Audio Server.
Jan 25 16:41:05 gladys systemd[1]: Started Snips Audio Server.
Jan 25 16:41:05 gladys snips-audio-server[28863]: INFO:snips_heartbeat::cliconfig_ext: Heartbeat enabled
Jan 25 16:41:05 gladys snips-audio-server[28863]: INFO:snips_audio_server            : Starting audio server on mqtt for site default
Jan 25 16:41:05 gladys snips-audio-server[28863]: INFO:snips_audio_server            : Capture enabled: true, Playback enabled: true
Jan 25 16:41:05 gladys snips-audio-server[28863]: INFO:snips_broadcast_mqtt_server   : Starting broadcasting audio on hermes as site "default"
Jan 25 16:41:05 gladys snips-audio-server[28863]: Failed to create secure directory (/var/empty/.config/pulse): No such file or directory
Jan 25 16:41:05 gladys snips-audio-server[28863]: ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.bcm2835.pcm.front.0:CARD=0'
Jan 25 16:41:05 gladys snips-audio-server[28863]: ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
Jan 25 16:41:05 gladys snips-audio-server[28863]: ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No such file or directory
Jan 25 16:41:05 gladys snips-audio-server[28863]: ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM front
Jan 25 16:41:05 gladys snips-audio-server[28863]: ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
Jan 25 16:41:05 gladys snips-audio-server[28863]: ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
Jan 25 16:41:05 gladys snips-audio-server[28863]: ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
Jan 25 16:41:05 gladys snips-audio-server[28863]: ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.bcm2835.pcm.surround51.0:CARD=0'
Jan 25 16:41:05 gladys snips-audio-server[28863]: ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
Jan 25 16:41:05 gladys snips-audio-server[28863]: ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No such file or directory
Jan 25 16:41:05 gladys snips-audio-server[28863]: ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM surround21
Jan 25 16:41:05 gladys snips-audio-server[28863]: ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.bcm2835.pcm.surround51.0:CARD=0'
Jan 25 16:41:05 gladys snips-audio-server[28863]: ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
Jan 25 16:41:05 gladys snips-audio-server[28863]: ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No such file or directory
Jan 25 16:41:05 gladys snips-audio-server[28863]: ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM surround21
Jan 25 16:41:05 gladys snips-audio-server[28863]: ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.bcm2835.pcm.surround40.0:CARD=0'
Jan 25 16:41:05 gladys snips-audio-server[28863]: ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
Jan 25 16:41:05 gladys snips-audio-server[28863]: ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No such file or directory
Jan 25 16:41:05 gladys snips-audio-server[28863]: ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM surround40
Jan 25 16:41:05 gladys snips-audio-server[28863]: ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.bcm2835.pcm.surround51.0:CARD=0'
Jan 25 16:41:05 gladys snips-audio-server[28863]: ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
Jan 25 16:41:05 gladys snips-audio-server[28863]: ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No such file or directory
Jan 25 16:41:05 gladys snips-audio-server[28863]: ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM surround41
Jan 25 16:41:05 gladys snips-audio-server[28863]: ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.bcm2835.pcm.surround51.0:CARD=0'
Jan 25 16:41:05 gladys snips-audio-server[28863]: ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
Jan 25 16:41:05 gladys snips-audio-server[28863]: ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No such file or directory
Jan 25 16:41:05 gladys snips-audio-server[28863]: ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM surround50
Jan 25 16:41:05 gladys snips-audio-server[28863]: ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.bcm2835.pcm.surround51.0:CARD=0'
Jan 25 16:41:05 gladys snips-audio-server[28863]: ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
Jan 25 16:41:05 gladys snips-audio-server[28863]: ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No such file or directory
Jan 25 16:41:05 gladys snips-audio-server[28863]: ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM surround51
Jan 25 16:41:05 gladys snips-audio-server[28863]: ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.bcm2835.pcm.surround71.0:CARD=0'
Jan 25 16:41:05 gladys snips-audio-server[28863]: ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
Jan 25 16:41:05 gladys snips-audio-server[28863]: ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No such file or directory
Jan 25 16:41:05 gladys snips-audio-server[28863]: ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM surround71
Jan 25 16:41:05 gladys snips-audio-server[28863]: ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.bcm2835.pcm.iec958.0:CARD=0,AES0=4,AES1=130,AES2=0,AES3=2'
Jan 25 16:41:05 gladys snips-audio-server[28863]: ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
Jan 25 16:41:05 gladys snips-audio-server[28863]: ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No such file or directory
Jan 25 16:41:05 gladys snips-audio-server[28863]: ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM iec958
Jan 25 16:41:05 gladys snips-audio-server[28863]: ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.bcm2835.pcm.iec958.0:CARD=0,AES0=4,AES1=130,AES2=0,AES3=2'
Jan 25 16:41:05 gladys snips-audio-server[28863]: ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
Jan 25 16:41:05 gladys snips-audio-server[28863]: ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No such file or directory
Jan 25 16:41:05 gladys snips-audio-server[28863]: ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM spdif
Jan 25 16:41:05 gladys snips-audio-server[28863]: ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.bcm2835.pcm.iec958.0:CARD=0,AES0=4,AES1=130,AES2=0,AES3=2'
Jan 25 16:41:05 gladys snips-audio-server[28863]: ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
Jan 25 16:41:05 gladys snips-audio-server[28863]: ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No such file or directory
Jan 25 16:41:05 gladys snips-audio-server[28863]: ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM spdif
Jan 25 16:41:05 gladys snips-audio-server[28863]: ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
Jan 25 16:41:05 gladys snips-audio-server[28863]: ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
Jan 25 16:41:05 gladys snips-audio-server[28863]: ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
Jan 25 16:41:05 gladys snips-audio-server[28863]: ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
Jan 25 16:41:05 gladys snips-audio-server[28863]: ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
Jan 25 16:41:05 gladys snips-audio-server[28863]: ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
Jan 25 16:41:05 gladys snips-audio-server[28863]: ERROR:snips_audio_server            : NoDevice
Jan 25 16:41:05 gladys systemd[1]: snips-audio-server.service: Main process exited, code=exited, status=1/FAILURE
Jan 25 16:41:05 gladys systemd[1]: snips-audio-server.service: Unit entered failed state.
Jan 25 16:41:05 gladys systemd[1]: snips-audio-server.service: Failed with result 'exit-code'.

Merci pour ton aide, ou tout autre personne :wink:


#153

Salut @Razer

Concernant snips, on voit que l’audio-server est pas démarré, à cause de ta config alsa.
Essaye unsam setup audio et laisse toi guider.

Concernant Gladys, il faut que tu renseigner l’url du broker MQTT utilisé par snips, si tout est sur le même host, c’est donc en localhost (j’ai plus le port en tête)


#154

merci @Jean-Philippe
le pb c’est que je n’arrive pas a renseigner l’url du broker MQTT

( si c’est bien ici)


#155

c’est bon j’ai trouver dans paramètre/paramètre:
SNIPS_MQTT_URL : mqtt://localhost:1883


#156

En fait, il faut que lances la commande suivante depuis le home de Gladys en console:

grunt buildProd

puis:

pm2 restart gladys

#157

quant je fait :

grunt buildProd

j’ai un un message erreur:

grunt-cli: The grunt command line interface (v1.2.0)

Fatal error: Unable to find local grunt.

If you're seeing this message, grunt hasn't been installed locally to
your project. For more information about installing and configuring grunt,
please see the Getting Started guide:

#158

Ce message dit que grunt n’est pas installé …

Lance npm install -g grunt


#159

Merci @Jean34

quant j’ai lance la commende sa ma mis une erreur :

npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules
npm ERR! path /usr/local/lib/node_modules
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! syscall access
npm ERR! Error: EACCES: permission denied, access ‘/usr/local/lib/node_modules’
npm ERR! { Error: EACCES: permission denied, access ‘/usr/local/lib/node_modules’
npm ERR! stack: ‘Error: EACCES: permission denied, access ‘/usr/local/lib/node_modules’’,
npm ERR! errno: -13,
npm ERR! code: ‘EACCES’,
npm ERR! syscall: ‘access’,
npm ERR! path: ‘/usr/local/lib/node_modules’ }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.

npm ERR! A complete log of this run can be found in:
npm ERR! /home/pi/.npm/_logs/2019-01-26T08_31_45_815Z-debug.log

je doit bien l’installer dans cd /home/pi ?


#160

les message indiquent que tu n’a pas les droits d’effectuer cette commande, donc un ptit sudo devant :wink:


#161

bon après installation il me remet le même message d’errer

grunt-cli: The grunt command line interface (v1.2.0)

Fatal error: Unable to find local grunt.

If you're seeing this message, grunt hasn't been installed locally to
your project. For more information about installing and configuring grunt,
please see the Getting Started guide:

:cry:

encore merci pour ton aide :slight_smile:


#162

tu es bien dans le répertoire de snips ?