robwolff3/google-assistant-webserver

Trouble access docker image command line.

Opened this issue · 5 comments

I am having some problems with my audio. I am running it on a synology NAS (DS918+) So I thought, see if I can access the image through the command line so I would have a shell to troubleshoot the audio.
However docker run -it robwolff3/ga-webserver /bin/sh results in an error [Error] You need initialize GoogleAssistant with a client secret json!

BTW not relevant to this issue, but log when starting normally is it seems it can't find the soundcard.:

2019-06-02 08:32:57,stderr,[FATAL:audio_input_stream.cc(47)] Input device could not be opened: default
2019-06-02 08:32:57,stderr,ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM default
2019-06-02 08:32:57,stderr,ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No such file or directory
2019-06-02 08:32:57,stderr,ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
2019-06-02 08:32:57,stderr,ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name
2019-06-02 08:32:57,stderr,ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
2019-06-02 08:32:57,stderr,ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
2019-06-02 08:32:57,stderr,ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
2019-06-02 08:32:57,stderr,ALSA lib confmisc.c:767:(parse_card) cannot find card '0'
2019-06-02 08:32:50,stderr,[FATAL:audio_input_stream.cc(47)] Input device could not be opened: default
2019-06-02 08:32:50,stderr,ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM default
2019-06-02 08:32:50,stderr,ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No such file or directory
2019-06-02 08:32:50,stderr,ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
2019-06-02 08:32:50,stderr,ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name
2019-06-02 08:32:50,stderr,ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
2019-06-02 08:32:50,stderr,ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
2019-06-02 08:32:50,stderr,ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
2019-06-02 08:32:50,stderr,ALSA lib confmisc.c:767:(parse_card) cannot find card '0'

You need a sound card
When a USB type sound card is installed, the error is corrected.

@jsj0318 yeah noticed that it couldn't find the card, but you still should be able to get a shell in the docker image.

Synology devices don't have a sound card, which is why the container errors out and restarts. Still trying to find a workaround.

Although, the shell should be able to use. Just make sure you delete the access token that was created in the folder.

I inserted a USB type sound card into my synology
I have mapped / dev / snd to the docker.
It recognizes the sound card without abnormality and I use it well in my DS918 +.

@jsj0318 Just purchased a USB Headphone Adapter from Amazon. Hope this one works out well.