Install on debian 9 VM


#1

Hi

I try since multiple days to install server on my VM without success. Since it doesn’t a problem with SAM, I open a topic here.

So I retried this morning and here my steps after installing debian 9 on hyper v machine :

su
apt-get install sudo -y
usermod -aG sudo username
sudo nano /etc/sudoers
add : username ALL=(ALL) NOPASSWD: ALL

sudo apt-get install curl
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
sudo apt-get install -y nodejs

sudo apt-get update
sudo apt-get install -y dirmngr apt-transport-https
sudo bash -c ‘echo “deb https://debian.snips.ai/stretch stable main” > /etc/apt/sources.list.d/snips.list’
sudo apt-key adv --keyserver pgp.mit.edu --recv-keys F727C778CCB0A455

sudo apt-get update
sudo apt-get install -y snips-platform-voice
sudo pip install hermes-python

sudo npm install -g snips-sam
sudo apt-get install unzip

sam connect localhost
sam init
sam login
sam install assistant

Ok so at the end I have :

Service status:
snips-analytics … 0.60.1 (not running)
snips-asr … 0.60.1 (not running)
snips-audio-server … 0.60.1 (not running)
snips-dialogue … 0.60.1 (not running)
snips-hotword … 0.60.1 (not running)
snips-nlu … 0.60.1 (not running)
snips-skill-server … (not running)
snips-tts … (not running)

And when I try to install my assistant I have this error :

Error: Failed to stop snips-skill-server.service: Unit snips-skill-server.service not loaded.

Why snips-skill-server didn’t install ?

I don’t know if it’s relevant but I don’t want to capture audio with this server.

Thank for your help.


#2

When I try

sudo apt-get install -y snips-template snips-skill-server

I get this message

Les paquets suivants contiennent des dépendances non satisfaites :
snips-skill-server : Dépend: snips-platform-common (< 0.59.2) mais 0.60.1 devra être installé
snips-template : Dépend: snips-platform-common (< 0.59.2) mais 0.60.1 devra être installé
E: Impossible de corriger les problèmes, des paquets défectueux sont en mode « garder en l’état ».


#3

I tried to reinstall snips-platform-common but I already had version 0.60.1 :confused:


#4

hello Hydro,

it looks like you did not do a apt-get update first …

can you download and install the package manually ? there are found in the repo …

for debian 9
https://s3.amazonaws.com/debian.snips.ai/stretch/pool/s/sn/snips-template_0.60.1_amd64.deb
https://s3.amazonaws.com/debian.snips.ai/stretch/pool/s/sn/snips-skill-server_0.60.1_amd64.deb

for raspbian stretch
https://s3.amazonaws.com/raspbian.snips.ai/stretch/pool/s/sn/snips-skill-server_0.60.1_armhf.deb
https://s3.amazonaws.com/raspbian.snips.ai/stretch/pool/s/sn/snips-template_0.60.1_armhf.deb

after download :
sudo dpkg -i snips-template_0.60.1_armhf.deb
sudo dpkg -i snips-skill-server_0.60.1_armhf.deb

what is the output of

apt-get update ; dpkg --get-selections |grep snips

?


#5

Here the result :

snips-analytics install
snips-asr install
snips-audio-server install
snips-dialogue install
snips-hotword install
snips-kaldi-atlas install
snips-nlu install
snips-platform-common install
snips-platform-voice install
snips-skill-server install
snips-template install
snips-tts install

And result of sam status after :

snips-analytics … 0.60.1 (not running)
snips-asr … 0.60.1 (not running)
snips-audio-server … 0.60.1 (not running)
snips-dialogue … 0.60.1 (not running)
snips-hotword … 0.60.1 (not running)
snips-nlu … 0.60.1 (not running)
snips-skill-server … 0.60.1 (not running)
snips-tts … 0.60.1 (not running)

So I installed my assistant and here the status

snips-analytics … 0.60.1 (running)
snips-asr … 0.60.1 (running)
snips-audio-server … 0.60.1 (not running)
snips-dialogue … 0.60.1 (running)
snips-hotword … 0.60.1 (running)
snips-nlu … 0.60.1 (running)
snips-skill-server … 0.60.1 (not running)
snips-tts … 0.60.1 (not running)

So I haven’t audi on this VM so I guess audio-server and tts off are normal, but what about skill-server ?


#6

you now just need to start the snips-skill-server … and enable it so it start after each reboot

sudo systemctl enable snips-skill-server
sudo systemctl start snips-skill-server


#7

Still not running. No messages from sudo systemctl enable snips-skill-server or sudo systemctl start snips-skill-server.


#8

you will have more output with sudo journalctl -u snips-skill-server … you can also watch the /var/log for the error message …

the issue is now : how to manually install and configure a skills without sam


#9

Here the message inside journalctl :

nov. 11 15:55:46 snips systemd[1]: snips-skill-server.service: Main process exited, code=exited, status=1/FAILURE
nov. 11 15:55:46 snips systemd[1]: snips-skill-server.service: Unit entered failed state.
nov. 11 15:55:47 snips systemd[1]: snips-skill-server.service: Failed with result ‘exit-code’.
nov. 11 15:55:52 snips systemd[1]: snips-skill-server.service: Service hold-off time over, scheduling restart.
nov. 11 15:55:52 snips systemd[1]: Stopped Snips Skill Server.
nov. 11 15:55:52 snips systemd[1]: Started Snips Skill Server.
nov. 11 15:55:52 snips snips-skill-server[101877]: ERROR:snips_skill_server: failed to fetch skills
nov. 11 15:55:52 snips snips-skill-server[101877]: -> caused by: didn’t find any skills in root skills directorie(s)


#10

I try the same thing today and facing the same error. Simply, it says, that no skills are installed. Unfortunately i have no idea how to install them manually…

But i figured out a procedure, how to install the “snips core” manually and the assistant with sam!
The important point is that you NOT use sam init! Because it change the apt repository to https://raspbian.snips.ai/... and that’s wrong on Debian. Maybe it’s not the only wrong one…

However, you have to do all the things, that sam init do, manually. The following procedure works for me on a fresh and clean Debian 9 minimal.

su
apt update && apt install sudo
usermod -aG sudo <username>
echo 'username ALL=(ALL) NOPASSWD: ALL' | sudo tee --append /etc/sudoers > /dev/null

#Logout and login as <username>

sudo apt update && sudo apt dist-upgrade
sudo apt-get install -y dirmngr apt-transport-https
sudo apt-add-repository non-free
sudo bash -c  'echo "deb https://debian.snips.ai/stretch stable main" > /etc/apt/sources.list.d/snips.list'
sudo apt-key adv --keyserver pgp.mit.edu --recv-keys F727C778CCB0A455
sudo apt update
sudo apt install -y alsa-utils snips-platform-voice snips-skill-server snips-watch curl unzip
sudo sudo usermod -aG snips-skills-admin <username>

#Logout and login

curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
sudo apt-get install -y nodejs
sudo alsactl init
sudo npm install -g snips-sam
sam connect localhost
sam login
sam install assistant
sudo systemctl restart 'snips-*'

Satellite type B no detection
Snips-skill-server not-found
Installing on Ubuntu 18.10 (Cosmic)
#11

Oh god thank a lot !!

Every services are installed, only audio server isn’t running, I guess it’s because it’s a VM without microphone / speaker.

Are you going to use satellites with configuration A or B ?

Thank again you save me :slight_smile:


#12

Nice that I could help you!

Your are right, the audio server service won’t start without a sound card. Since it is a VM, you can simply add a sound card independently of you have really connect a microphone / speaker.

My goal is to set up the satellites configuration B. The Server run as VM (or even better as a Docker container) and the satellites are raspberry pi’s running with DietPi as operating system.

So the next step is the satellite configuration. I hope i find the next days time to do it.
Of curse, i will share my results with you!


#13

Hi

I have the same goal as you, I already try to install satellite but it doesn’t trigger my VM at the moment :confused:


#14

Hi ! I just installed snips server on Debian VM. Did you solve the connection issue with satellite (B) ?
Which platform do you use for the satellite?
Regards


#15

Hi

I use a rpi3 with a respeaker pi-hat for satellite.


#16

Hi ! Did you solve the connection issue ? does the satellite work ?
Thx


#17

Not currently, I didn’t have time to install satellite with A configuration for testing.


#18

My satellites work, but only as configuration method A. The strange thing is, that i have do all steps for configuration method B… I will investigate this issue as soon as possible.


#19

Same problem for you, no detection with configuration B ?


#20

I think it’s better to talk about this problem in the separate thread that you have created. -> https://forum.snips.ai/t/satellite-type-b-no-detection/777/21