Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

[Platform][snips-hotword] Missing erroneous path in log when a file is not found. #158

Open
Psychokiller1888 opened this issue Jun 26, 2019 · 8 comments
Assignees
Labels
sub: wakeword Something about the wakeword type: enhancement Enhancement of an existing feature

Comments

@Psychokiller1888
Copy link

Yes, I'm still on stretch, on a pi 3b+, I have more problems on the pi 4 with buster

The hotword keeps failing with

pi@ProjectAliceDev:~/ProjectAlice $ snips-hotword -vvvvvvvvvvvvvvv
[15:39:38.326186] DEBUG:snips_common_cli::cli: conf lookup: snips-hotword.bus -> Ok(None)
[15:39:38.326713] DEBUG:snips_common_cli::cli: conf lookup: snips-common.bus -> Ok(None)
[15:39:38.326817] DEBUG:snips_common_cli::cli: conf lookup: snips-hotword.mqtt -> Ok(None)
[15:39:38.326895] DEBUG:snips_common_cli::cli: conf lookup: snips-common.mqtt -> Ok(None)
[15:39:38.327103] DEBUG:snips_common_cli::cli: conf lookup: snips-hotword.mqtt_username -> Ok(None)
[15:39:38.327192] DEBUG:snips_common_cli::cli: conf lookup: snips-common.mqtt_username -> Ok(None)
[15:39:38.327278] DEBUG:snips_common_cli::cli: conf lookup: snips-hotword.mqtt_password -> Ok(None)
[15:39:38.327359] DEBUG:snips_common_cli::cli: conf lookup: snips-common.mqtt_password -> Ok(None)
[15:39:38.327446] DEBUG:snips_common_cli::cli: conf lookup: snips-hotword.mqtt_tls_hostname -> Ok(None)
[15:39:38.327530] DEBUG:snips_common_cli::cli: conf lookup: snips-common.mqtt_tls_hostname -> Ok(None)
[15:39:38.327726] DEBUG:rumqtt::client       : snips-hotword|3663-ProjectAliceDev-1: Client start
[15:39:38.327807] INFO :rumqtt::connection   : snips-hotword|3663-ProjectAliceDev-1: Connection start
[15:39:38.327886] DEBUG:rumqtt::connection   : snips-hotword|3663-ProjectAliceDev-1 new connection
[15:39:38.330319] DEBUG:rumqtt::connection   : Send: Connect(Connect { protocol: MQTT(4), keep_alive: 10, client_id: "snips-hotword|3663-ProjectAliceDev-1", clean_session: false, last_will: None, username: None, password: None })
[15:39:38.330922] DEBUG:rumqtt::connection   : snips-hotword|3663-ProjectAliceDev-1 Received control message Connack(Connack { session_present: false, code: Accepted })
[15:39:38.331114] INFO :rumqtt::connection   : snips-hotword|3663-ProjectAliceDev-1: Connection established
[15:39:38.331179] DEBUG:rumqtt::client       : snips-hotword|3663-ProjectAliceDev-1: Spawning client thread
[15:39:38.331603] DEBUG:snips_common_cli::cli: conf lookup: snips-hotword.hotword_id -> Ok(None)
[15:39:38.331748] DEBUG:snips_common_cli::cli: conf lookup: snips-common.hotword_id -> Ok(None)
[15:39:38.331811] DEBUG:rumqtt::client       : snips-hotword|3663-ProjectAliceDev-1: Entering normal operation loop
[15:39:38.332100] DEBUG:snips_common_cli::cli: conf lookup: snips-hotword.sensitivity -> Ok(None)
[15:39:38.332125] DEBUG:rumqtt::connection   : Send: Subscribe(Subscribe { pid: PacketIdentifier(1), topics: [SubscribeTopic { topic_path: "hermes/hotword/toggleOn", qos: AtMostOnce }] })
[15:39:38.332194] DEBUG:snips_common_cli::cli: conf lookup: snips-common.sensitivity -> Ok(None)
[15:39:38.332289] DEBUG:snips_common_cli::cli: conf lookup: snips-hotword.model -> Ok(None)
[15:39:38.332370] DEBUG:snips_common_cli::cli: conf lookup: snips-common.model -> Ok(None)
[15:39:38.332459] DEBUG:snips_common_cli::cli: conf lookup: snips-hotword.assistant -> Ok(None)
[15:39:38.332515] DEBUG:rumqtt::connection   : Send: Subscribe(Subscribe { pid: PacketIdentifier(2), topics: [SubscribeTopic { topic_path: "hermes/hotword/toggleOff", qos: AtMostOnce }] })
[15:39:38.332540] DEBUG:snips_common_cli::cli: conf lookup: snips-common.assistant -> Ok(Some("/home/pi/ProjectAlice/assistant"))
[15:39:38.332837] DEBUG:rumqtt::connection   : snips-hotword|3663-ProjectAliceDev-1 Received control message Suback(Suback { pid: PacketIdentifier(1), return_codes: [Success(AtMostOnce)] })
[15:39:38.333179] DEBUG:rumqtt::connection   : snips-hotword|3663-ProjectAliceDev-1 Received control message Suback(Suback { pid: PacketIdentifier(2), return_codes: [Success(AtMostOnce)] })
[15:39:38.333232] ERROR:snips_hotword        : No such file or directory (os error 2)

[15:39:38.333411] ERROR:rumqtt::client       : snips-hotword|3663-ProjectAliceDev-1 Disconnected: (Error(SyncMpsc(Disconnected), State { next_error: None, backtrace: None }))
[15:39:38.333543] DEBUG:rumqtt::client       : snips-hotword|3663-ProjectAliceDev-1: Entering reconnecting loop
[15:39:38.333634] INFO :rumqtt::client       : not seeking reconnection

No such file or directory.... Would be nice to know what it is missing?

@Psychokiller1888 Psychokiller1888 added the type: bug Not working as expected label Jun 26, 2019
@cpoisson cpoisson added the sub: wakeword Something about the wakeword label Jun 27, 2019
@cpoisson cpoisson added type: enhancement Enhancement of an existing feature and removed type: bug Not working as expected labels Jun 27, 2019
@cpoisson cpoisson changed the title snips-hotword fails [Platform][snips-hotword] Missing erroneous path in log when a file is not found. Jun 27, 2019
@cpoisson
Copy link
Contributor

That's a lot '-vvvvvvvv' :)

Sure, we have improvement on going related to giving more useful debug information.

It is looking for the hotword subfolder in "/home/pi/ProjectAlice/assistant"

@Psychokiller1888
Copy link
Author

Apparently not, becaues the folder is valid. Somethng else is wrong

@Psychokiller1888
Copy link
Author

https://puu.sh/DLw7B.png

@cpoisson
Copy link
Contributor

cpoisson commented Jun 27, 2019

Weird,
I'm doing some test, it seems that the first file loaded is config.json, then the model.pb in the same subfolder.

e.g. the default hey_snips is shipped with 3 files:

pi@snips-home-base:~ $ ls /usr/share/snips/assistant/custom_hotword/
config.json  model.pb  thresholds_curve.json

Do you have them all?

@Psychokiller1888
Copy link
Author

Yep, got them all

@Psychokiller1888
Copy link
Author

Tbh, bored not finding a solution since yesterday (been trying almost the entire today), I just flashed a working image. Anyway, close this ticket, but please, make the logs tell us what's missing :)

@cpoisson
Copy link
Contributor

yeah, I do agree. I need them for debug too :)

@Psychokiller1888
Copy link
Author

@cpoisson

No idea what this one is missing....

Jun 29 20:48:08 ProjectAliceDev snips-asr[1738]: INFO:snips_asr_lib::asr        : decoded: [Recognition { decoded_string: "what time is it", likelihood: 0.95658696, tokens: Some([Token { value: "what", confidence: 1.0, time: (0.0, 1.1999999), range: 0..4 }, Token { value: "time", confidence: 1.0, time: (1.1999999, 1.5899999), range: 5..9 }, Token { value: "is", confidence: 1.0, time: (1.5899999, 1.7099999), range: 10..12 }, Token { value: "it", confidence: 0.8373322, time: (1.7099999, 2.52), range: 13..15 }]) }]
Jun 29 20:48:08 ProjectAliceDev snips-asr[1738]: INFO:snips_asr_hermes::handler : Publishing the recognition
Jun 29 20:48:08 ProjectAliceDev snips-asr[1738]: INFO:snips_asr_hermes::handler : Preparing decoder
Jun 29 20:48:08 ProjectAliceDev snips-dialogue[1753]: ERROR:snips_dialogue_hermes::run_handler          : Executor: No such file or directory (os error 2)
Jun 29 20:48:13 ProjectAliceDev systemd[1]: snips-dialogue.service: Service hold-off time over, scheduling restart.
Jun 29 20:48:13 ProjectAliceDev systemd[1]: Stopped Snips Dialogue.
Jun 29 20:48:13 ProjectAliceDev systemd[1]: Started Snips Dialogue.
Jun 29 20:48:13 ProjectAliceDev snips-dialogue[1765]: INFO:snips_dialogue_hermes: Loading the configuration file
Jun 29 20:48:13 ProjectAliceDev snips-dialogue[1765]: INFO:snips_dialogue_lib::config: Loading language en

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
sub: wakeword Something about the wakeword type: enhancement Enhancement of an existing feature
Projects
None yet
Development

No branches or pull requests

4 participants