Unable to install assistant using sam (Unit snips-skill-server.service not loaded)

I have a raspberry pi 4 with raspbian buster on it, and as microphone I am using the matrix voice. The microphone and the speakers are working, both aplay & sam prove this.

However when following the instructions, the step sam install assistant will quit with an error:

Wildfire:~ s710$ sam connect 10.0.0.5
? Enter username for the device: pi
? Enter password for the device: [hidden]
βœ” Connected to 10.0.0.5
i A public key has been generated and copied to the device at 10.0.0.5:~/.ssh/authorized_keys
Wildfire:~ s710$ sam init
Installing Snips Platform components. This may take a few minutes...
βœ” Updating aptitude repository
βœ” Installing dirmngr
βœ” Adding Snips APT source list
βœ” Adding Snips PGP public key
βœ” Updating aptitude repository
βœ” Installing Snips Platform, this could take a while, grab a cup of tea & relax
βœ” Adding current user to snips-skills-admin group for security
βœ” Successfully installed the Snips Platform
i You can now setup your audio with sam setup audio
Wildfire:~ s710$ sam setup audio
? Is it a Snips Makers Kit? No
? Found 2 interfaces to record sound.
  Choose the one you want to use card 2: MATRIXIOSOUND [MATRIXIO-SOUND], device 0: matrixio.mic.0 snd-soc-dummy-dai-0 []
? Found 4 interfaces to output sound.
  Choose the one you want to use as your speaker card 0: ALSA [bcm2835 ALSA], device 0: bcm2835 ALSA [bcm2835 ALSA]
βœ” Installed /etc/asound.conf
Setting to volume to 90% if possible
Restarting snips-audio-server service done
i You can test your microphone & speaker with sam test microphone / speaker
Wildfire:~ s710$ sam test microphone
i Plug in your microphone and turn on your speaker
Stopping snips audio server
βœ” Say something in the microphone, then press a key to continue...
βœ” Playing the recording
Relaunching snips-audio-server
i Didn't hear anything? Check the recording level of your microphone and the volume of the speaker.
i Alternatively you can run sam setup audio to setup your microphone
Wildfire:~ s710$ sam install assistant
βœ– No user information to connect to the console, you must login first with sam login
Wildfire:~ s710$ sam login
? Enter email used on the console: mg.m@gmx.net
? Enter password used on the console: [hidden]
βœ” Logged in
Wildfire:~ s710$ sam install assistant
Fetching assistants done
Found 1 assistant named Home assistant
Downloading assistant
Fetching assistants done
βœ” Deploying assistant to 10.0.0.5...
Checking for actions
βœ” Installing snips-template and snips-skill-server
βœ– Error: Failed to stop snips-skill-server.service: Unit snips-skill-server.service not loaded.

What should I do?

Looking for running processes, I see none of the snips services. Also, sam status shows:

Wildfire:~ s710$ sam status

Connected to device 10.0.0.5

OS version ................... Raspbian GNU/Linux 10 (buster)
Status ....................... Snips Platform not installed

You may install the Snips Platform using sam init
To install specific components, check the help using sam init --help

So it seems like the sam init didnt actually install anything. Is this a raspi 4 / buster compatibility issue?

Also, I am not sure if β€œAdding current user to snips-skills-admin group for security” went well:

pi@homepi:~/.ssh $ id
uid=1000(pi) gid=1000(pi) groups=1000(pi),4(adm),20(dialout),24(cdrom),27(sudo),29(audio),44(video),46(plugdev),60(games),100(users),105(input),109(netdev),997(gpio),998(i2c),999(spi)

I don’t see any additional/snips-related group.

Okay, so as I’ve found out, raspbian buster is not yet supported. I’ve installed the stretch packages instead by doing the following after sam init:

Replace β€œdeb https://raspbian.snips.ai/buster stable main” with β€œdeb https://raspbian.snips.ai/stretch stable main”

sudo vi /etc/apt/sources.list.d/snips.list

Then do:

sudo apt-get update
sudo apt-get install -y snips-platform-voice
sudo apt-get install -y snips-template snips-skill-server

Then sam status shows:

Wildfire:~ s710$ sam status

Connected to device 10.0.0.5

OS version ................... Raspbian GNU/Linux 10 (buster)
Installed assistant .......... Home assistant
Language ..................... de
Hotword ...................... hey_snips
ASR engine ................... snips
Status ....................... Live

Service status:

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

Continue with:

Wildfire:~ s710$ sam login
? Enter email used on the console: ....
? Enter password used on the console: [hidden]
βœ” Logged in
Wildfire:~ s710$ sam install assistant
Fetching assistants done
Found 1 assistant named Home assistant
Downloading assistant
Fetching assistants done
βœ” Deploying assistant to 10.0.0.5...
Checking for actions
....

Thank you so much!

I’ve searched for an error on my end for several hours, your comment saved me :slight_smile:

1 Like

Glad it helped. However at some point I downgraded to a clean raspbian stretch installation instead of buster.
In case you encounter more errors, see Fresh installation of snips - 3 issues

Especially I had to set sound_feedback_disabled_default to true, otherwise snips would not start listening for intents/skills/commands. Don’t know if this is normal, or if something on my setup is special and not working as usual.