Solved Error while trying to update MM, GA, EXT ec
-
Hi,
before updating MM and GA, now I have this error after saying ‘Jarvis’ in the mic :MagicMirror: v2.22.0
[GA] MMM-GoogleAssistant Version: 4.2.2 rev: 230227…
[23.10.2023 13:00.36.705] [LOG] [DETECTOR] Stops listening.
[23.10.2023 13:00.36.706] [LOG] [DETECTOR] Detected: jarvis from: Snowboy
[23.10.2023 13:00.37.759] [LOG] [GA:AS] CONVERSATION_ERROR: Error: 2 UNKNOWN: Getting metadata from plugin failed with error: invalid_grant
[23.10.2023 13:00.37.965] [LOG] [DETECTOR] Starts listening. 1 ModelsHow to resolve it please?
@bugsounet !?
Adel -
- update to MM² v2.25
- update to GA v5.4.x
- @bugsounet said in Error while trying to update MM, GA, EXT ec:
Or maybe this can help
- Don’t open another issue for this problem
-
@bugsounet
I already tried but it didn’t work !I will try again.
First, I need to upgrade node version to v18.x
For that, should i execute each line alone one after one or , all the lines in one command in the terminal ?here are the lines :
sudo apt-get update && sudo apt-get install -y ca-certificates curl gnupg
curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | sudo gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg
echo “deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_18.x nodistro main” | sudo tee /etc/apt/sources.list.d/nodesource.list
sudo apt-get update && sudo apt-get install nodejs -ythanks,
Adel -
@adel51
I used nvm to upgrade node version to 18.18.2here is the tutorial :
https://github.com/nvm-sh/nvm#troubleshooting-on-linux
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.5/install.sh | bash
then,
nvm install 18.18.2
And it works well!
Now, i need to upgrade MM. -
@adel51
the upgrade MagicMirror² to v2.25.x is ok !the upgrade of npm from 9.8.1 -> 10.2.1 is ok !
the upgrade of MMM-GoogleAssistant to v5.4.3 is ok !
the update of all MMM-GoogleAssistant components is NOT ok !!!
here is the error (log) :
rpi@raspberrypi:~/MagicMirror/modules/MMM-GoogleAssistant $ npm run refresh
MMM-GoogleAssistant@5.4.3 refresh
node installer/refresh.jsStart Refreshing and Updating MMM-GoogleAssistant, Gateway and EXTs
Skipped: ATO-MM1_TO_MM2
Found: EXT-Alert
⠴ Updating: EXT-Alert…
npmERR! Missing script: “clean”
npm ERR!
npm ERR! To see a list of scripts, run:
npm ERR!npm run
npm
ERR!
A complete log of this run can be found in: /home/rpi/.npm/_logs/2023-10-23T23_13_50_521Z-debug-0.log
Failed: Error Detected!
Result:
➤ Updated: 0/65
➤ Failed: 1/65
➤ Skipped: 1/65Please, how to resolve it?
thanks,
Adel -
Hello,
so, I decided to update Gateway, EXT-Detector and EXT-Alert : the updates are ok !I launched my magic mirror and I have the error (with GA i think) when I talk to 'Jarvis ':
[24.10.2023 12:09.19.767] [LOG] [DETECTOR] [RULES] Start listening. 1 Models
[24.10.2023 12:09.29.429] [LOG] [DETECTOR] [RULES] Stop listening.
[24.10.2023 12:09.29.429] [LOG] [DETECTOR] [RULES] Detected: jarvis from: Snowboy
[24.10.2023 12:09.31.310] [LOG] [GA] [ASSISTANT] CONVERSATION_ERROR: Error: 2 UNKNOWN: Getting metadata from plugin failed with error: invalid_grantPlease, @bugsounet help or any idea?
Thanks by advance.
Adel -
Just renew your token because it’s old
-
Hi,
that is what I thought yesterday. But when I generate another one, the file contains the same informations. So, I will try to do it, it will just change the date of the file. Am I right?
Tx @bugsounet -
npm run token
-
@bugsounet Ah OK sorry ! Now, it works !
-