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

[Sam] should create /var/lib/snips/skills if it doesn't exist #127

Open
koenvervloesem opened this issue Apr 30, 2019 · 2 comments
Open
Assignees
Labels
sub: sam Related to SAM type: enhancement Enhancement of an existing feature
Milestone

Comments

@koenvervloesem
Copy link

koenvervloesem commented Apr 30, 2019

What's the issue?
When someone (accidentally) deletes /var/lib/snips/skills, sam is not able to deploy an assistant anymore:

bash: line 0: cd: /var/lib/snips/skills/: No such file or directory
fatal: could not create work tree dir 'snips-app-assistant-information': Permission denied
✖ Error: find: ‘/var/lib/snips/skills/snips-app-assistant-information’: No such file or directory

Use Cases Impacted
The user sees that he still has a couple of apps installed in /var/lib/snips/skills that he doesn't have anymore in his assistant and he decides to get rid of them.

How to reproduce

sudo rm -rf /var/lib/snips/skills
sam install assistant

Expected behavior
Sam creates the directory /var/lib/snips/skills and installs the assistant.

Version and Environment
Snips Flow 1.1.2 (0.62.3), Sam 0.0.52, Raspbian 9.8

Workaround

sudo mkdir /var/lib/snips/skills                                                                                                         
sudo chown _snips-skills:_snips-skills /var/lib/snips/skills
sam install assistant
@koenvervloesem koenvervloesem added the type: bug Not working as expected label Apr 30, 2019
@cpoisson cpoisson added type: enhancement Enhancement of an existing feature and removed type: bug Not working as expected labels May 7, 2019
@cpoisson
Copy link
Contributor

cpoisson commented May 7, 2019

Hi @koenvervloesem,

Only the snips-skill-server is allowed to create this folder and does it at the install steps (so it needs an uninstall/install to recreate it)

Sam does not use the skill server (at the moment).

Let's keep this feature request opened.

@cpoisson cpoisson added the sub: sam Related to SAM label May 7, 2019
@cpoisson cpoisson added this to the Sam - Next milestone May 7, 2019
@koenvervloesem
Copy link
Author

Hi @cpoisson thanks for your explanation, that makes sense. Users won't make the distinction between Sam and snips-skill-server though, so I agree that it would be better to add this feature in a next version of Sam.

@cpoisson cpoisson changed the title Sam should create /var/lib/snips/skills if it doesn't exist [Sam] should create /var/lib/snips/skills if it doesn't exist May 14, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
sub: sam Related to SAM type: enhancement Enhancement of an existing feature
Projects
None yet
Development

No branches or pull requests

3 participants