Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[snips-skill-server] -- multiple problems -- installing or cleaning #108

Closed
oziee opened this issue Mar 30, 2019 · 5 comments

Comments

Projects
None yet
3 participants
@oziee
Copy link

commented Mar 30, 2019

my snips.toml has

[snips-common]
assistant = "/usr/local/etc/assistant"
user_dir = "/usr/local/etc/snips-user-dir"

running snips-skill-server gives errors as it is looking for the wrong dir path

snips-skill-server install_skills --clean

[12:29:12.033108] INFO :snips_skill_server_lib::installer: installing snippets
[12:29:12.033356] INFO :snips_skill_server_lib::installer: ->rendering templates
[12:29:12.033766] INFO :snips_actions_templates_engine_lib: parsing snippets for app "/usr/local/etc/assistant/snippets/.DS_Store"
[12:29:12.033801] INFO :snips_actions_templates_engine_lib: parsing snippets for app "/usr/local/etc/assistant/snippets/ozie.Calculations"
[12:29:12.033904] INFO :snips_skill_server_lib::installer : ->running setup.sh
[12:29:12.033969] INFO :snips_skill_server_lib::installer : Running setup.sh in "/usr/local/var/snips/skills/ozie.Calculations"
[12:29:12.033988] WARN :snips_skill_server_lib::installer : no setup.sh in "/usr/local/var/snips/skills/ozie.Calculations", skipping
[12:29:12.034000] INFO :snips_skill_server_lib::installer : installing git apps
[12:29:12.034153] INFO :snips_skill_server_lib::installer : cloning git repo https://github.com/oziee/Calculator_Skill into "/usr/local/var/snips/skills/ozie.Calculations"
[12:29:12.066339] ERROR:snips_skill_server                : An error happened when running "git" "clone" "https://github.com/oziee/Calculator_Skill" "/usr/local/var/snips/skills/ozie.Calculations":
exit_code -> Some(128)
stdout -> 
stderr -> Cloning into '/usr/local/var/snips/skills/ozie.Calculations'...
fatal: Unable to read current working directory: No such file or directory

snips-skill-server install_skills

[12:33:00.530337] ERROR:snips_skill_server: couldn't read assistant file at path "/usr/local/share/snips/assistant"
 -> caused by: No such file or directory (os error 2)

if i copy the assistant folder into the folder its looking for i still get an error when installing
snips-skill-server install_skills

[12:42:16.349846] INFO :snips_skill_server_lib::installer: installing snippets
[12:42:16.350068] INFO :snips_skill_server_lib::installer: ->rendering templates
[12:42:16.350164] INFO :snips_actions_templates_engine_lib: parsing snippets for app "/usr/local/share/snips/assistant/snippets/.DS_Store"
[12:42:16.350237] INFO :snips_actions_templates_engine_lib: parsing snippets for app "/usr/local/share/snips/assistant/snippets/ozie.Calculations"
[12:42:16.350475] INFO :snips_skill_server_lib::installer : ->running setup.sh
[12:42:16.350566] INFO :snips_skill_server_lib::installer : Running setup.sh in "/usr/local/var/snips/skills/ozie.Calculations"
[12:42:16.350587] WARN :snips_skill_server_lib::installer : no setup.sh in "/usr/local/var/snips/skills/ozie.Calculations", skipping
[12:42:16.350605] INFO :snips_skill_server_lib::installer : installing git apps
[12:42:16.350852] INFO :snips_skill_server_lib::installer : cloning git repo https://github.com/oziee/Calculator_Skill into "/usr/local/var/snips/skills/ozie.Calculations"
[12:42:16.379059] ERROR:snips_skill_server                : An error happened when running "git" "clone" "https://github.com/oziee/Calculator_Skill" "/usr/local/var/snips/skills/ozie.Calculations":
exit_code -> Some(128)
stdout -> 
stderr -> Cloning into '/usr/local/var/snips/skills/ozie.Calculations'...
fatal: Unable to read current working directory: No such file or directory

running the commands.. the folder /usr/local/var/snips/skills is created.. but obviously errors then occur

@cpoisson

This comment has been minimized.

Copy link
Collaborator

commented Apr 1, 2019

Hi @oziee ,

I also found out that the subfolder skills is not created automatically in /usr/local/var/snips/skills

It should be automatically created when the service is installed (which is the case on debian like environment, so that's a bug)

On my side everything goes smoothly once the skills subfolder is created.

snips-skill-server install_skills --clean
[22:53:21.241925] INFO :snips_skill_server_lib::installer: installing snippets
[22:53:21.242121] INFO :snips_skill_server_lib::installer: ->rendering templates
[22:53:21.242188] INFO :snips_actions_templates_engine_lib: parsing snippets for app "/usr/local/share/snips/assistant/snippets/ozie.Calculations"
[22:53:21.242252] INFO :snips_actions_templates_engine_lib: parsing snippets for app "/usr/local/share/snips/assistant/snippets/Snips.Voice_Interaction_Dev_Kit_(EN)"
[22:53:21.242311] INFO :snips_skill_server_lib::installer : ->running setup.sh
[22:53:21.242356] INFO :snips_skill_server_lib::installer : Running setup.sh in "/usr/local/var/snips/skills/ozie.Calculations"
[22:53:21.242372] WARN :snips_skill_server_lib::installer : no setup.sh in "/usr/local/var/snips/skills/ozie.Calculations", skipping
[22:53:21.242377] INFO :snips_skill_server_lib::installer : Running setup.sh in "/usr/local/var/snips/skills/Snips.Voice_Interaction_Dev_Kit_(EN)"
[22:53:21.242388] WARN :snips_skill_server_lib::installer : no setup.sh in "/usr/local/var/snips/skills/Snips.Voice_Interaction_Dev_Kit_(EN)", skipping
[22:53:21.242396] INFO :snips_skill_server_lib::installer : installing git apps
[22:53:21.242508] INFO :snips_skill_server_lib::installer : cloning git repo https://github.com/snipsco/snips-demo-dev-kit.git into "/usr/local/var/snips/skills/Snips.Voice_Interaction_Dev_Kit_(EN)"
[22:53:23.421339] INFO :snips_skill_server_lib::installer : Running setup.sh in "/usr/local/var/snips/skills/Snips.Voice_Interaction_Dev_Kit_(EN)"
[22:53:27.569220] INFO :snips_skill_server_lib::installer : cloning git repo https://github.com/oziee/Calculator_Skill into "/usr/local/var/snips/skills/ozie.Calculations"
[22:53:28.690701] INFO :snips_skill_server_lib::installer : Running setup.sh in "/usr/local/var/snips/skills/ozie.Calculations"
[22:53:32.577974] INFO :snips_skill_server_lib::installer : install done

Need to re check that with the settings you provided.
Keep you posted

@cpoisson cpoisson changed the title snips-skill-server -- multiple problems -- installing or cleaning [snips-skill-server] -- multiple problems -- installing or cleaning Apr 2, 2019

@cpoisson

This comment has been minimized.

Copy link
Collaborator

commented Apr 8, 2019

Hi @oziee,

I cannot reproduce exactly your error using the same configuration file.
It also works when the assistant is not at the default path /usr/local/share/snips/assistant

I found another issue related to git when trying to call the install_skills command when skills have already been configured.

─○ snips-skill-server install_skills --clean
[16:13:53.605171] INFO :snips_skill_server_lib::installer: installing snippets
[16:13:53.605379] INFO :snips_skill_server_lib::installer: ->rendering templates
[16:13:53.605436] INFO :snips_actions_templates_engine_lib: parsing snippets for app "/usr/local/etc/assistant/snippets/ozie.Calculations"
[16:13:53.605489] INFO :snips_actions_templates_engine_lib: parsing snippets for app "/usr/local/etc/assistant/snippets/Snips.Voice_Interaction_Dev_Kit_(EN)"
[16:13:53.605540] INFO :snips_skill_server_lib::installer : ->running setup.sh
[16:13:53.605580] INFO :snips_skill_server_lib::installer : Running setup.sh in "/usr/local/var/snips/skills/ozie.Calculations"
[16:13:53.605616] WARN :snips_skill_server_lib::installer : no setup.sh in "/usr/local/var/snips/skills/ozie.Calculations", skipping
[16:13:53.605622] INFO :snips_skill_server_lib::installer : Running setup.sh in "/usr/local/var/snips/skills/Snips.Voice_Interaction_Dev_Kit_(EN)"
[16:13:53.605630] WARN :snips_skill_server_lib::installer : no setup.sh in "/usr/local/var/snips/skills/Snips.Voice_Interaction_Dev_Kit_(EN)", skipping
[16:13:53.605636] INFO :snips_skill_server_lib::installer : installing git apps
[16:13:53.605789] INFO :snips_skill_server_lib::installer : cloning git repo https://github.com/snipsco/snips-demo-dev-kit.git into "/usr/local/var/snips/skills/Snips.Voice_Interaction_Dev_Kit_(EN)"
[16:13:57.090522] INFO :snips_skill_server_lib::installer : Running setup.sh in "/usr/local/var/snips/skills/Snips.Voice_Interaction_Dev_Kit_(EN)"
[16:14:01.070267] INFO :snips_skill_server_lib::installer : cloning git repo https://github.com/oziee/Calculator_Skill into "/usr/local/var/snips/skills/ozie.Calculations"
[16:14:02.491108] INFO :snips_skill_server_lib::installer : Running setup.sh in "/usr/local/var/snips/skills/ozie.Calculations"
[16:14:06.042531] INFO :snips_skill_server_lib::installer : install done

─○ snips-skill-server install_skills
[16:14:10.727688] INFO :snips_skill_server_lib::installer: installing snippets
[16:14:10.727935] INFO :snips_skill_server_lib::installer: ->rendering templates
[16:14:10.728037] INFO :snips_actions_templates_engine_lib: parsing snippets for app "/usr/local/etc/assistant/snippets/ozie.Calculations"
[16:14:10.728125] INFO :snips_actions_templates_engine_lib: parsing snippets for app "/usr/local/etc/assistant/snippets/Snips.Voice_Interaction_Dev_Kit_(EN)"
[16:14:10.728202] INFO :snips_skill_server_lib::installer : ->running setup.sh
[16:14:10.728257] INFO :snips_skill_server_lib::installer : Running setup.sh in "/usr/local/var/snips/skills/ozie.Calculations"
[16:14:11.039873] INFO :snips_skill_server_lib::installer : Running setup.sh in "/usr/local/var/snips/skills/Snips.Voice_Interaction_Dev_Kit_(EN)"
[16:14:12.561990] INFO :snips_skill_server_lib::installer : installing git apps
[16:14:13.147560] ERROR:snips_skill_server                : An error happened when running "git" "stash" "pop":
exit_code -> Some(1)
stdout ->
stderr -> No stash entries found.

@cpoisson cpoisson added this to the Snips Flow - Next milestone Apr 8, 2019

@oziee

This comment has been minimized.

Copy link
Author

commented Apr 9, 2019

running on OSX

happens every time i run the command snips-skill-server install_skills --clean
takes me forever to remove all the files and even then i get errors using install_skills.. i have to do it over and over and remove files and dirs to get it to finally install..But if i run it again, its back to the start repeating deleting items until it works

@oziee

This comment has been minimized.

Copy link
Author

commented Apr 11, 2019

$ snips-skill-server install_skills
[15:04:31.522165] INFO :snips_skill_server_lib::installer: installing snippets
[15:04:31.522715] INFO :snips_skill_server_lib::installer: ->rendering templates
[15:04:31.525145] INFO :snips_actions_templates_engine_lib: parsing snippets for app "/usr/local/etc/assistant/snippets/koan.Assistant_information"
[15:04:31.526789] INFO :snips_actions_templates_engine_lib: parsing snippets for app "/usr/local/etc/assistant/snippets/ozie.Calculations"
[15:04:31.526873] INFO :snips_actions_templates_engine_lib: parsing snippets for app "/usr/local/etc/assistant/snippets/ozie.Sonarr"
[15:04:31.526933] INFO :snips_actions_templates_engine_lib: parsing snippets dir "/usr/local/etc/assistant/snippets/ozie.Sonarr/python2"
[15:04:31.536007] INFO :snips_actions_templates_engine_lib: parsed 1 snippets
[15:04:31.544499] INFO :snips_skill_server_lib::installer : ->running setup.sh
[15:04:31.544620] INFO :snips_skill_server_lib::installer : Running setup.sh in "/usr/local/var/snips/skills/koan.Assistant_information"
[15:04:31.544656] WARN :snips_skill_server_lib::installer : no setup.sh in "/usr/local/var/snips/skills/koan.Assistant_information", skipping
[15:04:31.544670] INFO :snips_skill_server_lib::installer : Running setup.sh in "/usr/local/var/snips/skills/ozie.Calculations"
[15:04:31.545005] WARN :snips_skill_server_lib::installer : no setup.sh in "/usr/local/var/snips/skills/ozie.Calculations", skipping
[15:04:31.545019] INFO :snips_skill_server_lib::installer : Running setup.sh in "/usr/local/var/snips/skills/ozie.Sonarr"
[15:04:31.651509] ERROR:snips_skill_server                : An error happened when running "/usr/local/var/snips/skills/ozie.Sonarr/setup.sh":
exit_code -> Some(1)
stdout -> The path venv (from --python=venv) does not exist

stderr -> /usr/local/var/snips/skills/ozie.Sonarr/setup.sh: line 18: venv/bin/activate: No such file or directory


$ snips-skill-server install_skills --clean
[15:04:57.747050] ERROR:snips_skill_server: Something unexpected happened with: "/usr/local/var/snips/skills"
 -> caused by: Permission denied (os error 13)

@cpoisson

This comment has been minimized.

Copy link
Collaborator

commented May 28, 2019

@oziee
Other errors related to git where fixed in version 1.2.1

[10:47:43.994734] INFO :snips_skill_server_lib::installer: installing snippets
[10:47:43.994968] INFO :snips_skill_server_lib::installer: ->rendering templates
[10:47:43.995057] INFO :snips_actions_templates_engine_lib: parsing snippets for app "/usr/local/etc/assistant/snippets/ozie.Calculations"
[10:47:43.995131] INFO :snips_actions_templates_engine_lib: parsing snippets for app "/usr/local/etc/assistant/snippets/Snips.Voice_Interaction_Dev_Kit_(EN)"
[10:47:43.995192] INFO :snips_skill_server_lib::installer : ->running setup.sh
[10:47:43.995235] INFO :snips_skill_server_lib::installer : Running setup.sh in "/usr/local/var/snips/skills/ozie.Calculations"
[10:47:43.995257] WARN :snips_skill_server_lib::installer : no setup.sh in "/usr/local/var/snips/skills/ozie.Calculations", skipping
[10:47:43.995264] INFO :snips_skill_server_lib::installer : Running setup.sh in "/usr/local/var/snips/skills/Snips.Voice_Interaction_Dev_Kit_(EN)"
[10:47:45.420659] INFO :snips_skill_server_lib::installer : installing git apps
[10:47:46.017623] ERROR:snips_skill_server                : An error happened when running "git" "stash" "pop":
exit_code -> Some(1)
stdout ->
stderr -> No stash entries found.

I'm closing this one, feel free to reopen if you still have issues on the latest release.

@cpoisson cpoisson closed this May 28, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.