home-assistant / supervisor

:house_with_garden: Home Assistant Supervisor
https://home-assistant.io/hassio/
Apache License 2.0
1.75k stars 639 forks source link

Snips - Cannot open shared library /usr/lib/arm-linux-gnueabihf/alsa-lib/libasound_module_pcm_pulse.so after Supervisor 208 #1578

Closed berechetflorin closed 4 years ago

berechetflorin commented 4 years ago

Home Assistant release with the issue: 0.106.5

**Operating environment (HassOS/Generic): HassOS 3.12, Supervisor 209, kernel: 4.19.106-v7, RPi3B+

Supervisor logs:

20-03-09 12:32:31 INFO (MainThread) [supervisor.store.git] Update add-on https://github.com/ascillato/hass-io-addons repository
20-03-09 12:32:31 INFO (MainThread) [supervisor.store.git] Update add-on https://github.com/hassio-addons/repository repository
20-03-09 12:32:31 INFO (MainThread) [supervisor.store.git] Update add-on https://github.com/home-assistant/hassio-addons repository
20-03-09 12:32:31 INFO (MainThread) [supervisor.store.git] Update add-on https://github.com/bestlibre/hassio-addons repository
20-03-09 12:32:35 INFO (MainThread) [supervisor.store] Load add-ons from store: 80 all - 0 new - 0 remove
20-03-09 12:56:51 INFO (MainThread) [supervisor.updater] Fetch update data from https://version.home-assistant.io/stable.json
20-03-09 13:01:55 INFO (MainThread) [supervisor.updater] Fetch update data from https://version.home-assistant.io/stable.json
20-03-09 13:10:11 INFO (MainThread) [supervisor.updater] Fetch update data from https://version.home-assistant.io/stable.json
20-03-09 13:17:53 INFO (MainThread) [supervisor.api.security] /host/info access from core_ssh
20-03-09 13:18:25 INFO (MainThread) [supervisor.api.security] /supervisor/logs access from core_ssh
20-03-09 13:18:30 INFO (MainThread) [supervisor.api.security] /host/info access from core_ssh
20-03-09 13:32:31 INFO (MainThread) [supervisor.snapshots] Found 7 snapshot files
20-03-09 13:32:32 INFO (MainThread) [supervisor.updater] Fetch update data from https://version.home-assistant.io/stable.json
20-03-09 13:39:11 INFO (MainThread) [supervisor.host.info] Update local host information
20-03-09 13:39:11 INFO (MainThread) [supervisor.utils.gdbus] Call org.freedesktop.DBus.Properties.GetAll on /org/freedesktop/hostname1
20-03-09 13:39:12 INFO (MainThread) [supervisor.host.services] Update service information
20-03-09 13:39:12 INFO (MainThread) [supervisor.utils.gdbus] Call org.freedesktop.systemd1.Manager.ListUnits on /org/freedesktop/systemd1
20-03-09 13:39:13 INFO (MainThread) [supervisor.host.network] Update local network DNS information
20-03-09 13:39:13 INFO (MainThread) [supervisor.utils.gdbus] Call org.freedesktop.DBus.Properties.GetAll on /org/freedesktop/NetworkManager/DnsManager
20-03-09 13:39:13 INFO (MainThread) [supervisor.host.sound] Update PulseAudio information
20-03-09 15:18:37 INFO (MainThread) [supervisor.api.security] /host/info access from core_ssh

Description of problem:

I know I'm asking for help regarding a recently abandoned component (Snips) but please, bear with me, I am very positive that a recent update of Supervisor (208) that took out of order my Snips assistant from home which was working flawlessly for almost an year. The message:

INFO:snips_audio_alsa::capture: Starting ALSA capture on device “default”
ALSA lib dlmisc.c:254:(snd1_dlobj_cache_get) Cannot open shared library /usr/lib/arm-linux-gnueabihf/alsa-lib/libasound_module_pcm_pulse.so
ERROR:snips_audio_server : an error occured in the audio pipeline: Error(“snd_pcm_open”, Sys(ENXIO))
 -> caused by: ALSA function ‘snd_pcm_open’ failed with error 'ENXIO: No such device or address
1583613549: Socket error on client snips-audio-server|86-core-snips-1, disconnecting.
appears several time in Snips's logs.

Also the name of the audo devices changed, from "BCM2835 ALSA.." to "Audio Digital Stereo Output (IEC958)". The audio hardware is listed as follows:

> audio:
> 0:
> name: USB-Audio - USB PnP Sound Device
> type: Device
> devices:
> [object Object]
> [object Object]
> 1:
> name: bcm2835_alsa - bcm2835 ALSA
> type: ALSA
> devices:
> [object Object]
> [object Object]
> [object Object]

Is this issue related to some path changes (/usr/lib/arm-linux-gnueabihf/alsa-lib/libasound_module_pcm_pulse.so)? Could it be solved by adjusting Supervisor instead of Snips? The issue is reported here also. Thank you so much!

pvizeli commented 4 years ago

You need to update your add-on that they use pulse plugin for alsa.

The core add-on for snips is not supported anymore and will be not updated. Please open an issue on the repository of you snips add-on. The developer can find all information on https://developers.home-assistant.io/docs/hassio_addon_config#add-on-config

berechetflorin commented 4 years ago

Thank you!